isAdmin()) die('Access Denied'); $page = ($_GET['p'] && is_numeric($_GET['p'])) ? $_GET['p'] : 1; $count = Topic::objects()->count(); $pageNav = new Pagenate($count, $page, PAGE_LIMIT); $pageNav->setURL('helptopics.php', $_qstr); $showing = $pageNav->showing().' '._N('help topic', 'help topics', $count); $order_by = 'sort'; ?>

getTopicSortMode() != 'a') { ?>
order_by(sprintf('%s%s', strcasecmp($order, 'DESC') ? '' : '-', $order_by)) ->limit($pageNav->getLimit()) ->offset($pageNav->getStart()); $T = $topics; $names = $topics = array(); foreach ($T as $topic) { $names[$topic->getId()] = $topic->getFullName(); $topics[$topic->getId()] = $topic; } if ($cfg->getTopicSortMode() != 'm') $names = Internationalization::sortKeyedList($names); $defaultDept = $cfg->getDefaultDept(); $defaultPriority = $cfg->getDefaultPriority(); $sort = 0; foreach($names as $topic_id=>$name) { $topic = $topics[$topic_id]; $id = $topic->getId(); $sort++; // Track initial order for transition $sel=false; if ($ids && in_array($id, $ids)) $sel=true; if ($topic->dept_id) { $deptId = $topic->dept_id; $dept = (string) $topic->dept; } elseif ($defaultDept) { $deptId = $defaultDept->getId(); $dept = (string) $defaultDept; } else { $deptId = 0; $dept = ''; } $priority = $topic->priority ?: $defaultPriority; ?>
:
 
> getTopicSortMode() == 'm') { ?>   getStatus() == __('Active')) echo $topic->getStatus(); else echo ''.$topic->getStatus(); ?> ispublic ? __('Public') : ''.__('Private').''; ?>  updated); ?>  created); ?>
        
 '.__('Page').':'.$pageNav->getPageLinks().' '; ?>