From 27ba6ebc78fa783785daadac307a148505f0c634 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sat, 9 Aug 2014 22:09:11 -0400 Subject: [PATCH] The admin_ticket screen is now fully responsive. Woohoo! --- admin/admin_ticket.php | 313 +++++++++++++++++++++-------------------- css/hesk_newStyle.php | 19 +++ 2 files changed, 177 insertions(+), 155 deletions(-) diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index 1bf456ff..5aac7c08 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -515,11 +515,10 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); ?>
- - - - - - - - - - - - - + +
+ + + + + + + +
+ - - - - - + + - - '', - 1 => '', - 2 => '', - 3 => '' - ); - - echo ''; + echo '


'; - echo ''; - echo ''; - echo ''; + } + echo ' + + + + '; + } + echo ''; + echo '

'.$hesklang['category'].'

+

'.$category['name'].'

'; + + if ($can_change_cat) + { + echo ' + +
+
+ + + + + + + + + '; } + + echo '
'; ?> - - -
-

+
+
+
+

-

     - + +
+
+

+
+
+

+
+
+ '.$hesklang['open_action'].''; } ?> -
- : - -   - + + +
+
+ : + +   + - -
+ ?> +
';} - elseif ($ticket['priority'] == 1) {echo 'class="highPriority">';} - else {echo 'class="medLowPriority">';} + ?> +
+ '.$hesklang['priority'].'

'; + $options = array( + 0 => '', + 1 => '', + 2 => '', + 3 => '' + ); + + echo '
';} + elseif ($ticket['priority'] == 1) {echo 'highPriority">';} + else {echo 'medLowPriority">';} + + echo '

'.$hesklang['priority'].'

'; + + if ($ticket['priority']==0) {echo '

'.$hesklang['critical'].'

';} + elseif ($ticket['priority']==1) {echo '

'.$hesklang['high'].'

';} + elseif ($ticket['priority']==2) {echo '

'.$hesklang['medium'].'

';} + else {echo '

'.$hesklang['low'].'

';} + echo '
+
+ + + + + + + + +
+ +
'; + + echo '

'.$hesklang['status'].'

'; + $status_options = array(); + $results = hesk_dbQuery("SELECT `ID`, `ShortNameContentKey` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses`"); + while ($row = $results->fetch_assoc()) + { + $status_options[$row['ID']] = ''; + } - if ($ticket['priority']==0) {echo '

'.$hesklang['critical'].'

';} - elseif ($ticket['priority']==1) {echo '

'.$hesklang['high'].'

';} - elseif ($ticket['priority']==2) {echo '

'.$hesklang['medium'].'

';} - else {echo '

'.$hesklang['low'].'

';} - echo '
-
+ $ticketStatus = hesk_dbFetchAssoc(hesk_dbQuery("SELECT `TicketViewContentKey` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` WHERE ID = " .$ticket['status'])); + echo '

'.$hesklang[$ticketStatus['TicketViewContentKey']].'

'; + echo '
- - + + ' . implode('', $status_options) . ' - + - + +
+
'; + echo '

'.$hesklang['owner'].'

+

'; + + echo isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] : + ($can_assign_self ? $hesklang['unas'].' ['.$hesklang['asss'].']' : $hesklang['unas']); - - -

'.$hesklang['status'].'

'; - $status_options = array(); - $results = hesk_dbQuery("SELECT `ID`, `ShortNameContentKey` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses`"); - while ($row = $results->fetch_assoc()) + if (hesk_checkPermission('can_assign_others',0)) + { + echo' +
+ + - - ' . implode('', $status_options) . ' - - - - - -
-

'.$hesklang['owner'].'

-

'; - - echo isset($admins[$ticket['owner']]) ? $admins[$ticket['owner']] : - ($can_assign_self ? $hesklang['unas'].' ['.$hesklang['asss'].']' : $hesklang['unas']); - - echo '


'; - - if (hesk_checkPermission('can_assign_others',0)) + foreach ($admins as $k=>$v) + { + if ($k != $ticket['owner']) { - echo' -
- - - - - - '; + echo ''; } - echo '

'.$hesklang['category'].'

-

'.$category['name'].'

'; - - if ($can_change_cat) - { - echo ' - -
-
- - - - - - - - -
'; } - - echo '
+ + +