diff --git a/inc/show_search_form.inc.php b/inc/show_search_form.inc.php index ea727e78..46c1faef 100644 --- a/inc/show_search_form.inc.php +++ b/inc/show_search_form.inc.php @@ -1,36 +1,36 @@ 'CRITICAL', - 1 => 'HIGH', - 2 => 'MEDIUM', - 3 => 'LOW', - ); + $priority = array( + 0 => 'CRITICAL', + 1 => 'HIGH', + 2 => 'MEDIUM', + 3 => 'LOW', + ); } if ( ! isset($what) ) { - $what = 'trackid'; + $what = 'trackid'; } if ( ! isset($date_input) ) { - $date_input = ''; + $date_input = ''; } /* Can view tickets that are unassigned or assigned to others? */ @@ -73,22 +73,22 @@ $can_view_unassigned = hesk_checkPermission('can_view_unassigned',0); $category_options = ''; if ( isset($hesk_settings['categories']) && count($hesk_settings['categories']) ) { - foreach ($hesk_settings['categories'] as $row['id'] => $row['name']) - { - $row['name'] = (strlen($row['name']) > 30) ? substr($row['name'],0,30) . '...' : $row['name']; - $selected = ($row['id'] == $category) ? 'selected="selected"' : ''; - $category_options .= ''; - } + foreach ($hesk_settings['categories'] as $row['id'] => $row['name']) + { + $row['name'] = (strlen($row['name']) > 30) ? substr($row['name'],0,30) . '...' : $row['name']; + $selected = ($row['id'] == $category) ? 'selected="selected"' : ''; + $category_options .= ''; + } } else { - $res2 = hesk_dbQuery('SELECT `id`, `name` FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'categories` WHERE ' . hesk_myCategories('id') . ' ORDER BY `cat_order` ASC'); - while ($row=hesk_dbFetchAssoc($res2)) - { - $row['name'] = (strlen($row['name']) > 30) ? substr($row['name'],0,30) . '...' : $row['name']; - $selected = ($row['id'] == $category) ? 'selected="selected"' : ''; - $category_options .= ''; - } + $res2 = hesk_dbQuery('SELECT `id`, `name` FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'categories` WHERE ' . hesk_myCategories('id') . ' ORDER BY `cat_order` ASC'); + while ($row=hesk_dbFetchAssoc($res2)) + { + $row['name'] = (strlen($row['name']) > 30) ? substr($row['name'],0,30) . '...' : $row['name']; + $selected = ($row['id'] == $category) ? 'selected="selected"' : ''; + $category_options .= ''; + } } $more = empty($_GET['more']) ? 0 : 1; @@ -99,211 +99,211 @@ $more2 = empty($_GET['more2']) ? 0 : 1;
-
-

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - + -
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
:   - - - +

+ +
+
+ + + + + +
+ + + + + + +
:   + + + fetch_assoc()) + { + if ($rowCounter > 3) + { + echo ''; $rowCounter = 1; - $statusRS = hesk_dbQuery('SELECT `ID`, `ShortNameContentKey`, `TextColor` FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'statuses`'); - while ($row = $statusRS->fetch_assoc()) - { - if ($rowCounter > 3) - { - echo ''; - $rowCounter = 1; - } - echo ''; + } + echo ''; - $rowCounter++; + $rowCounter++; + } + ?> + +
'.$hesklang[$row['ShortNameContentKey']].' '.$hesklang[$row['ShortNameContentKey']].'
+
+ +
+  
+ + +
 
+
+ +
+ + + + + + + + + + - -
:   + + + + + + + + + + + + +
 
 
+ +
:   + + + + -
+ + +
+ + -
-
+
+ + +
+ +
 
-
-  
- - -
 
-
+
:   + + + + + + + + + + + +
 
- - - - + -
:   +
- - - - - - - - - - -
 
 
+
:   + + + + + + + + + + + +
+ + +  
 
+ +
:   +
+
:  
:   + + | +
:   + +
+ () + +
+ +

+

+ + + +
:   - - - - - - - -
- - -
- - -
- - -
- -
 
- -
:   - - - - - - - - - - - -
 
- -
:   - - - - - - - - - - - -
- - -  
 
- -
:   -
-
:  
:   - - | -
:   - -
- () - -
- -

-

- -
- - - - - - -
+ + + @@ -311,123 +311,123 @@ $more2 = empty($_GET['more2']) ? 0 : 1;
-
-

-
-
- - - - -
+
+

+
+
+ + + + + + + + +
-
+ - - - - - -
-
- /> -
-
- -
+ + + + + +
+
+ /> +
+
+ +
-

- - -
 
-
+
+  
+ + +
 
+
-
+

+  
- - - - - - - - - - - - + + + + + + + + + + - - - - - -
:   - -
:   -
/>
-
:   - - -
- - +
:   + +
:   +
/>
+
:   + + +
+ + -
- - -
- -
:  
+ if ($can_view_unassigned) + { + ?> +
+ + +
+ +
:  
-

-

+

+

-
+ - -
-
+ + + + +