All Committee Members'; print '
'; } if (isset($_POST['faction']) && isset($_POST['drop']) && !empty($_POST['drop'])) { // Check for valid submission if (!validToken('chair')) { warn('Invalid submission'); } if ($_POST['faction'] == "Delete Members") { // delete members foreach ($_POST['drop'] as $val) { if (preg_match("/^\d+$/", $val)) { oc_deleteAssignments(null, $val, 'advocate'); oc_deleteAssignments(null, $val); issueSQL("DELETE FROM `" . OCC_TABLE_REVIEWERTOPIC . "` WHERE `reviewerid`='" . safeSQLstr($val) . "'"); issueSQL("DELETE FROM `" . OCC_TABLE_REVIEWER . "` WHERE `reviewerid`='" . safeSQLstr($val) . "'"); } } } elseif ($_POST['faction'] == "Add to PC") { // add to program committee foreach ($_POST['drop'] as $val) { if (preg_match("/^\d+$/", $val)) { issueSQL("UPDATE " . OCC_TABLE_REVIEWER . " SET `onprogramcommittee`='T' WHERE `reviewerid`='" . safeSQLstr($val) . "' LIMIT 1"); } } } elseif ($_POST['faction'] == "Remove from PC") { // remove from program committee foreach ($_POST['drop'] as $val) { if (preg_match("/^\d+$/", $val)) { oc_deleteAssignments(null, $val, 'advocate'); issueSQL("UPDATE `" . OCC_TABLE_REVIEWER . "` SET `onprogramcommittee`='F' WHERE `reviewerid`='" . safeSQLstr($val) . "' LIMIT 1"); } } } } if (!isset($_REQUEST['s']) || empty($_REQUEST['s']) || ($_REQUEST['s'] == "id")) { $sortby = "`reviewerid`"; $rsortstr = 'ID'; } else { print '
Count: ' . ocsql_num_rows($r) . '
Note: If you choose to delete committee member(s), any records of submissions
assigned to them for review ' . ($OC_configAR['OC_paperAdvocates'] ? 'or advocacy ' : '') . 'will also be deleted.