<?php $_GET['p'] = isset($_GET['p']) ? $_GET['p'] : 'x'; if (!defined('PARENT') || !in_array($_GET['p'], array('open', 'close', 'disputes', 'cdisputes', 'search', 'assign', 'acchistory', 'spam', 'submit'))) { exit; } //============================= // ORDER BY OPTIONS //============================= $links = array(array('link' => '?p=' . $_GET['p'] . mswUrlApp('dept') . mswQueryParams(array('p', 'dept', 'priority', 'status')), 'name' => $msg_open3)); foreach ($ticketLevelSel as $k => $v) { $links[] = array('link' => '?p=' . $_GET['p'] . '&priority=' . $k . mswUrlApp('dept') . mswQueryParams(array('p', 'dept', 'priority', 'status')), 'name' => $v); } //============================= // SHOW STATUS OPTIONS //============================= if (in_array($_GET['p'], array('open', 'search', 'acchistory'))) { $links[] = array('link' => '?p=' . $_GET['p'] . '&status=visitor' . mswQueryParams(array('p', 'status')), 'name' => $msg_open12); $links[] = array('link' => '?p=' . $_GET['p'] . '&status=admin' . mswQueryParams(array('p', 'status')), 'name' => $msg_open11); $links[] = array('link' => '?p=' . $_GET['p'] . '&status=start' . mswQueryParams(array('p', 'status')), 'name' => $msg_open27); } echo $MSBOOTSTRAP->button($msg_search20, $links);
<?php $_GET['p'] = isset($_GET['p']) ? $_GET['p'] : 'x'; if (!defined('PARENT') || !in_array($_GET['p'], array('open', 'close', 'disputes', 'cdisputes', 'search', 'assign', 'acchistory', 'spam', 'submit'))) { exit; } //============================= // ORDER BY OPTIONS //============================= $links = array(); foreach ($msg_script44 as $k => $v) { $links[] = array('link' => '?p=' . $_GET['p'] . '&orderby=' . $k . mswUrlApp('dept') . mswQueryParams(array('p', 'orderby', 'dept')), 'name' => $v); } echo $MSBOOTSTRAP->button($msg_script45, $links);