' . $OC_sortImg; $pcsortstr = 'PC'; $nsortstr = 'Name'; } elseif ($_REQUEST['s'] == "pc") { $sortby = "onprogramcommittee, name_last, name_first"; $pcsortstr = 'PC
' . $OC_sortImg; $rsortstr = 'ID'; $nsortstr = 'Name'; } else { // name sort $sortby = "name_last, name_first"; $nsortstr = 'Name
' . $OC_sortImg; $rsortstr = 'ID'; $pcsortstr = 'PC'; } $q = "SELECT `reviewerid`, CONCAT_WS(' ',`name_first`,`name_last`) AS `name`, `username`, `email`, `onprogramcommittee`, `comments` FROM `" . OCC_TABLE_REVIEWER . "` $cmtAdd ORDER BY $sortby"; $r = ocsql_query($q) or err("Unable to get information"); if (mysql_num_rows($r) == 0) { print 'No committee members have signed up yet

'; } else { print "Count: ".mysql_num_rows($r)."

\n"; print ' Note: If you choose to delete committee member(s), any records of papers assigned to them for review or advocacy will also be deleted.

'; if (isset($_REQUEST['s'])) { print ''; } print '
'; if ($OC_configAR['OC_paperAdvocates']) { print '         '; } print '
'; if (empty($_REQUEST['cmt'])) { print ''; } print ' '; $row = 1; while ($l = mysql_fetch_array($r)) { print ''; if (empty($_REQUEST['cmt'])) { print ''; } print '\n"; if ($row==1) { $row=2; } else { $row=1; } } print '
 ' . $rsortstr . '' . $pcsortstr . '' . $nsortstr . 'UsernameComments
' . $l['reviewerid'] . ''; if ($l['onprogramcommittee'] == 'T') { print "\"PC"; } else { print " "; } print '' . safeHTMLstr($l['name']) . ''.$l['username'].'' . safeHTMLstr($l['comments']) . "  
'; if ($OC_configAR['OC_paperAdvocates']) { print '         '; } print '
'; } printFooter(); ?>