@@ 1235-1242 (lines=8) @@ | ||
1232 | $newSearch =& $hSavedSearch->create(); |
|
1233 | $crit = new CriteriaCompo(); |
|
1234 | switch($ticketList){ |
|
1235 | case XHELP_QRY_STAFF_HIGHPRIORITY: |
|
1236 | $crit->add(new Criteria('uid', XHELP_GLOBAL_UID, '=', 'j')); |
|
1237 | $crit->add(new Criteria('state', 1, '=', 's')); |
|
1238 | $crit->add(new Criteria('ownership', 0, '=', 't')); |
|
1239 | $crit->setSort('t.priority, t.posted'); |
|
1240 | $newSearch->setVar('name', _XHELP_TEXT_HIGH_PRIORITY); |
|
1241 | $newSearch->setVar('pagenav_vars', 'limit=50&state=1'); |
|
1242 | break; |
|
1243 | ||
1244 | case XHELP_QRY_STAFF_NEW: |
|
1245 | $crit->add(new Criteria('uid', XHELP_GLOBAL_UID, '=', 'j')); |
|
@@ 1244-1252 (lines=9) @@ | ||
1241 | $newSearch->setVar('pagenav_vars', 'limit=50&state=1'); |
|
1242 | break; |
|
1243 | ||
1244 | case XHELP_QRY_STAFF_NEW: |
|
1245 | $crit->add(new Criteria('uid', XHELP_GLOBAL_UID, '=', 'j')); |
|
1246 | $crit->add(new Criteria('ownership', 0, '=', 't')); |
|
1247 | $crit->add(new Criteria('state', 1, '=', 's')); |
|
1248 | $crit->setSort('t.posted'); |
|
1249 | $crit->setOrder('DESC'); |
|
1250 | $newSearch->setVar('name', _XHELP_TEXT_NEW_TICKETS); |
|
1251 | $newSearch->setVar('pagenav_vars', 'limit=50&state=1'); |
|
1252 | break; |
|
1253 | ||
1254 | case XHELP_QRY_STAFF_MINE: |
|
1255 | $crit->add(new Criteria('uid', XHELP_GLOBAL_UID, '=', 'j')); |