|
@@ 1075-1089 (lines=15) @@
|
| 1072 |
|
|
| 1073 |
|
//Setup Column Sorting Vars |
| 1074 |
|
$tpl_cols = array(); |
| 1075 |
|
foreach ($sort_columns as $col=>$initsort) { |
| 1076 |
|
$col_qs = array('sort' => $col); |
| 1077 |
|
//Check if we need to sort by current column |
| 1078 |
|
if ($sort == $col) { |
| 1079 |
|
$col_qs['order'] = ($order == $sort_order[0] ? $sort_order[1]: $sort_order[0]); |
| 1080 |
|
$col_sortby = true; |
| 1081 |
|
} else { |
| 1082 |
|
$col_qs['order'] = $initsort; |
| 1083 |
|
$col_sortby = false; |
| 1084 |
|
} |
| 1085 |
|
$tpl_cols[$col] = array('url'=>xhelpMakeURI(basename(__FILE__), array_merge($qs, $col_qs)), |
| 1086 |
|
'urltitle' => _XHELP_TEXT_SORT_TICKETS, |
| 1087 |
|
'sortby' => $col_sortby, |
| 1088 |
|
'sortdir' => strtolower($col_qs['order'])); |
| 1089 |
|
} |
| 1090 |
|
|
| 1091 |
|
$allTickets = $hTickets->getObjectsByStaff($crit, true); |
| 1092 |
|
$count = $hTickets->getCountByStaff($crit); |
|
@@ 1354-1368 (lines=15) @@
|
| 1351 |
|
|
| 1352 |
|
//Setup Column Sorting Vars |
| 1353 |
|
$tpl_cols = array(); |
| 1354 |
|
foreach ($sort_columns as $col => $initsort) { |
| 1355 |
|
$col_qs = array('sort' => $col); |
| 1356 |
|
//Check if we need to sort by current column |
| 1357 |
|
if ($sort == $col) { |
| 1358 |
|
$col_qs['order'] = ($order == $sort_order[0] ? $sort_order[1]: $sort_order[0]); |
| 1359 |
|
$col_sortby = true; |
| 1360 |
|
} else { |
| 1361 |
|
$col_qs['order'] = $initsort; |
| 1362 |
|
$col_sortby = false; |
| 1363 |
|
} |
| 1364 |
|
$tpl_cols[$col] = array('url'=>xhelpMakeURI(basename(__FILE__), array_merge($qs, $col_qs)), |
| 1365 |
|
'urltitle' => _XHELP_TEXT_SORT_TICKETS, |
| 1366 |
|
'sortby' => $col_sortby, |
| 1367 |
|
'sortdir' => strtolower($col_qs['order'])); |
| 1368 |
|
} |
| 1369 |
|
|
| 1370 |
|
$xoopsTpl->assign('xhelp_cols', $tpl_cols); |
| 1371 |
|
$staffCount =& $hStaff->getObjects(); |