' . $OC_sortImg;
$tsort = 'Topic';
$sortfld = 'paperid';
} else {
$sort = 'topicid, paperid';
$psort = 'Submission';
$tsort = 'Topic
' . $OC_sortImg;
$sortfld = 'topicid';
}
printHeader("$scope & Topics",1);
print '
Show Topic Count for ' . $scope . '
'; $q = "SELECT " . OCC_TABLE_PAPER . ".paperid, " . OCC_TABLE_TOPIC . ".topicid, " . OCC_TABLE_PAPER . ".title, " . OCC_TABLE_TOPIC . ".topicname, " . OCC_TABLE_TOPIC . ".short FROM " . OCC_TABLE_PAPER . ", " . OCC_TABLE_TOPIC . ", " . OCC_TABLE_PAPERTOPIC . " WHERE " . OCC_TABLE_PAPERTOPIC . ".paperid=" . OCC_TABLE_PAPER . ".paperid AND " . OCC_TABLE_PAPERTOPIC . ".topicid=" . OCC_TABLE_TOPIC . ".topicid $accSQL ORDER BY $sort"; $r = ocsql_query($q) or err("Unable to get information ".mysql_errno()); if (mysql_num_rows($r) == 0) { print 'No papers available'; } else { print '
' . $tsort . ' | ' . $psort . ' | ||||
---|---|---|---|---|---|
' . $tbo . $l['topicid'] . ' - ' . useTopic($l['short'],$l['topicname']) . $tbc . ' | '; print '' . $pbo . '' . $l['paperid'] . ' - ' . safeHTMLstr($l['title']) . '' . $pbc . ' | '; } elseif ($sortfld == 'paperid') { print '||||
' . $l['topicid'] . ' - ' . useTopic($l['short'],$l['topicname']) . ' | '; } else { print ' | ||||
' . $l['paperid'] . ' - ' . safeHTMLstr($l['title']) . ' | '; } /* if (empty($l['paperid'])) { print ""; } else { */ // print ' | '.$l['paperid'].' - ' . safeHTMLstr($l['title']) . ' | '; /* } */ print "