From de7ed0f1f3f72eeb9e7048ed9399a64cb76035ec Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Wed, 3 Sep 2014 21:32:04 -0400 Subject: [PATCH] Half-baked newish admin dashboard --- admin/admin_main.php | 12 ++++----- inc/ticket_list.inc.php | 60 +++++++++++++---------------------------- language/en/text.php | 2 +- 3 files changed, 24 insertions(+), 50 deletions(-) diff --git a/admin/admin_main.php b/admin/admin_main.php index f2cae84a..0860a0bf 100644 --- a/admin/admin_main.php +++ b/admin/admin_main.php @@ -59,7 +59,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); ?>
-
+
-
 
-

'.$hesklang['open_tickets'].'

-
 
-
- '; +
+
+

'.$hesklang['open_tickets'].' '.$hesklang['nti'].'

+
'; // The rest of the panel will be printed by print_tickets.inc.php } /* Reset default settings? */ diff --git a/inc/ticket_list.inc.php b/inc/ticket_list.inc.php index 38cda5b4..33bdc779 100644 --- a/inc/ticket_list.inc.php +++ b/inc/ticket_list.inc.php @@ -115,33 +115,29 @@ if ($total > 0) if ($pages > 1) { + //-- Precondition: The panel has already been created, and there is NO open
tag yet. echo ' -
-
- '.sprintf($hesklang['tickets_on_pages'],$total,$pages).' '.$hesklang['jump_page'].'
'; - +
+ '.sprintf($hesklang['tickets_on_pages'],$total,$pages).' '.$hesklang['jump_page'].'
'; + /* List pages */ + echo '
    '; if ($pages > 7) { if ($page > 2) { - echo '«   '; + echo '
  • «
  • '; // << } if ($prev_page) { - echo '   '; + echo '
  • '; // < } } @@ -151,11 +147,11 @@ if ($total > 0) { if ($i == $page) { - echo ' '.$i.' '; + echo '
  • '.$i.'
  • '; } else { - echo ' '.$i.' '; + echo '
  • '.$i.'
  • '; } } } @@ -164,36 +160,16 @@ if ($total > 0) { if ($next_page) { - echo '   '; + echo '
  • '; // > } if ($page < ($pages - 1)) { - echo '   »'; + echo '
  • »
  • '; // >> } } + echo '
'; - echo '

'; - echo ' - '; - - } // end PAGES > 1 - else - { - echo ' -
-
- '.sprintf($hesklang['tickets_on_pages'],$total,$pages).' -
- -
'; } /* We have the full SQL query now, get tickets */ diff --git a/language/en/text.php b/language/en/text.php index 7988b9e0..58a37197 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -410,7 +410,7 @@ $hesklang['remember_user']='Remember my username'; $hesklang['wrong_user']='Wrong username'; $hesklang['no_permission']='You don\'t have permission to perform this task, please login with an account that has.'; $hesklang['tickets_on_pages']='Number of tickets: %d | Number of pages: %d'; // First %d is replaced with number of tickets, second %d with number of pages -$hesklang['jump_page']=' | Jump to page:'; +$hesklang['jump_page']='Jump to page:'; $hesklang['no_tickets_open']='No unresolved tickets found'; $hesklang['no_tickets_crit']='No tickets found matching your criteria'; $hesklang['confirm_execute']='Are you sure you want to continue?';