From 6b0d3e1996e6627574450c9527e8150c1a8ba763 Mon Sep 17 00:00:00 2001 From: Alain Peyrat Date: Tue, 29 Nov 2011 21:42:58 +0000 Subject: [PATCH] Add js coolfieldset on mass update in trackers --- src/common/tracker/actions/browse.php | 61 ++++++++++++++++++++------- 1 file changed, 46 insertions(+), 15 deletions(-) diff --git a/src/common/tracker/actions/browse.php b/src/common/tracker/actions/browse.php index ce4a138864..3205ac2d32 100644 --- a/src/common/tracker/actions/browse.php +++ b/src/common/tracker/actions/browse.php @@ -150,6 +150,8 @@ if (!$art_arr && $af->isError()) { //same for status use_javascript('/tabber/tabber.js'); +html_use_coolfieldset(); + $ath->header(array('atid'=>$ath->getID(), 'title'=>$ath->getName())); /** @@ -524,6 +526,16 @@ if ($art_arr && $art_cnt > 0) { '; } + $check_all = ''; + if ($IS_ADMIN) { + $check_all = ' + '._('Check all').' + - + '._('Clear all').''; + } + + $pager = ''; + $browse_fields = explode(',', "id,".$ath->getBrowseList()); $title_arr=array(); foreach ($browse_fields as $f) { @@ -666,6 +678,28 @@ if ($art_arr && $art_cnt > 0) { } } + echo '
'; + echo '
'; + + echo '
'; + printf(_('* Denotes requests > %1$s Days Old'), ($ath->getDuePeriod()/86400)); + echo '
'; + + if (in_array('priority', $browse_fields)) { + echo '
'; + show_priority_colors_key(); + echo '
'; + } + echo '
'; + + echo '
'; + + echo '
'.$check_all.'
'; + echo '
'.$pager.'
'."\n"; + + echo '
'; + echo '
'; + /* Mass Update Code */ @@ -681,16 +715,15 @@ if ($art_arr && $art_cnt > 0) { } } } - /* ]]> */ + /* ]]> */'; - + echo '
+ '._('Mass Update').' +
+
'; // @@ -731,17 +764,15 @@ if ($art_arr && $art_cnt > 0) { $ath->cannedResponseBox ('canned_response') .' -
- -'._('Check  all').' -- - '._('Clear  all').' - -
'._('Admin: If you wish to apply changes to all items selected above, use these controls to change their properties and click once on "Mass Update".').'
+

+ '._('Admin: If you wish to apply changes to all items selected above, use these controls to change their properties and click once on "Mass Update".').'

+ '; + echo ' + '; + echo ' '; } - printf(_('* Denotes requests > %1$s Days Old'), ($ath->getDuePeriod()/86400)); - - if (in_array('priority', $browse_fields)) { - show_priority_colors_key(); - } } else { - echo '

'._('No items found').'

'; + echo '

'._('No items found').'

'; echo db_error(); } -- 2.30.2