$acc) { $accOptions .= ''; } print '
'; $q = "SELECT `topicname`, `short`, COUNT(*) AS `num` FROM `" . OCC_TABLE_TOPIC . "`, `" . OCC_TABLE_PAPERTOPIC . "`, `" . OCC_TABLE_PAPER . "` WHERE `" . OCC_TABLE_TOPIC . "`.`topicid`=`" . OCC_TABLE_PAPERTOPIC . "`.`topicid` AND `" . OCC_TABLE_PAPERTOPIC . "`.`paperid`=`" . OCC_TABLE_PAPER . "`.`paperid` $accSQL GROUP BY `" . OCC_TABLE_TOPIC . "`.`topicid` ORDER BY "; if (!isset($_REQUEST['s']) || ($_REQUEST['s']=="topicname")) { $q .= "`topicname`"; $tsort = 'Topic'; } else { print '
' . $tsort . ' | ' . $nsort .' |
---|---|
' . safeHTMLstr(useTopic($l['short'],$l['topicname'])) . ' | ' . $l['num'] . " |