$tval) { if (preg_match("/^name-(\d+)$/", $tid, $tmatch) && !empty($tval)) { $q2 = "INSERT INTO " . OCC_TABLE_TOPIC . " (topicid,topicname,short) VALUES ('$j','" . safeSQLstr(substr($tval,0,250)) . "','" . safeSQLstr(substr($_POST["short-".$tmatch[1]],0,20)) . "')"; issueSQL($q2); $j++; } } // Success - if install, redirect, else let user know if (isset($_REQUEST['install']) && ($_REQUEST['install'] == 1)) { header("Location: set_status.php?install=1"); } else { print '

Options successfully updated

'; } } if (isset($_REQUEST['install']) && ($_REQUEST['install'] == 1)) { printHeader($hdr,$hdrfn); print '

Step 4 of 5: Set Topics

'; } else { print 'Note that if submissions have been made or reviewers signed up already, you should only add new topics to the end of the list or change a topic\'s name to clarify it. If you want to delete a topic in the middle of the list, replace its name with N/A or something authors and reviewers will know not to select.

'; } print '

Topics are used when making automated review assignments. Both authors and reviewers are asked to select topics. Enter a sequential list of topics below. When you click on Set Topics, topics will be added sequentially regardless of the Topic ID listed, with blank topics ignored; thus topics should only be deleted until a submission has been made or reviewer signed up. The Short Name field is optional; if present, it is used on pages where a long topic name may not display well.

'; if (isset($_REQUEST['install']) && ($_REQUEST['install'] == 1)) { print ''; } print ' '; // Display existing topics $q = "SELECT * FROM " . OCC_TABLE_TOPIC; $r = ocsql_query($q) or err("Unable to query topics - ".mysql_errno()); $topicNum = mysql_num_rows($r); $tAR = array(); $row=1; while ($l=mysql_fetch_array($r)) { print ' '; if ($row==1) { $row=2; } else { $row=1; } } // Display additional rows $addRows = ((($topicNum + 5) < $minTopics) ? ($minTopics - $topicNum) : 5); for ($i=1; $i <= $addRows; $i++) { $topicNum++; print ' '; if ($row==1) { $row=2; } else { $row=1; } } print '
Topic IDTopic NameShort Name (^20 chars)
' . $l['topicid'] . '
' . $topicNum . '

Allow authors to select multiple submission topics? ' . generateRadioOptions('OC_multipleSubmissionTopics', $yesNoAR, $OC_configAR['OC_multipleSubmissionTopics']) . '
Select Yes to allow multiple topics, or No to limit author to one topic.

Allow committee members to select multiple submission topics? ' . generateRadioOptions('OC_multipleCommitteeTopics', $yesNoAR, $OC_configAR['OC_multipleCommitteeTopics']) . '
Select Yes to allow multiple topics, or No to limit committee member to one topic.

Display topics alphabetically? ' . generateRadioOptions('OC_topicDisplayAlpha', $yesNoAR, $OC_configAR['OC_topicDisplayAlpha']) . '
Select Yes to display topics alphabetically on submission and committee sign up forms, or No to use order above.

'; printFooter(); ?>