Submissions are closed.

'; printFooter(); exit; } // Get topics $topq = "SELECT * FROM `" . OCC_TABLE_TOPIC . "`"; $topr = ocsql_query($topq) or err('unable to retrieve topics'); if (($tnum = mysql_num_rows($topr)) < 1) { warn('We are still waiting for the Program Chair to finalize the list of topics before opening up for submissions. Please check back later.'); } else { $half = ceil($tnum / 2); $topicAR = array(); while ($topl = mysql_fetch_assoc($topr)) { $topicAR[$topl['topicid']] = $topl['topicname']; } } // Check whether this is a submission if (isset($_POST['submit']) && ($_POST['submit'] == "Make Submission")) { $err = ''; $errInc = ''; // Check title if (!preg_match("/\w+/",$_POST['title'])) { $err .= "

  • Enter a title for your submission
  • "; } // Check that we have a valid contact author & email if (!preg_match("/^[1-5]$/",$_POST['contact'])) { $err .= "
  • Contact author invalid
  • "; } else { $contactemail = $_POST['email'.$_POST['contact']]; if (!preg_match("/\w/",$_POST['name_last'.$_POST['contact']]) || !preg_match("/\w/",$_POST['name_first'.$_POST['contact']])) { $err .= "
  • Fill in both the first & last name of the contact author
  • "; } if (!validEmail($contactemail)) { $err .= "
  • Contact author email does not seem valid"; } } // Check author countries for ($c=1; $c<=4; $c++) { if ((!isset($_POST['country'.$c]) || empty($_POST['country'.$c])) && isset($_POST['isocountry'.$c]) && !empty($_POST['isocountry'.$c])) { $isoUpper = oc_strtoupper($_POST['isocountry'.$c]); if (!in_array($isoUpper, array_keys($OC_countryAR))) { $err .= "
  • Author #" . $c . " (2-letter) ISO country code is not valid
  • "; } else { $_POST['country'.$c] = $OC_countryAR[$isoUpper]; } } } // Check that we have alternate contact info for contact author if (!validEmail($_POST['contactaltemail']) && !preg_match("/\d/",$_POST['contactphone'])) { $err .= "
  • Enter a valid alternate email or phone number for contact author
  • "; } // Check student if (!preg_match("/^[FT]$/", $_POST['student'])) { $err .= "
  • Student selection invalid
  • "; } // Check topics if (empty($_POST['topic'])) { $err .= "
  • Select a topic area
  • "; } if (oc_hookSet('author-submit-validate')) { foreach ($GLOBALS['OC_hooksAR']['author-submit-validate'] as $hook) { require_once $hook; } } // Check password if (empty($_POST['password1'])) { $err .= "
  • Password must be entered
  • "; } elseif ($_POST['password1'] != $_POST['password2']) { $err .= "
  • Passwords entered do not match
  • "; } // errors? if ($err) { print '

    Please check the following:


    '; } else { // Check that paper hasn't been submitted yet; if it has notify author and bail $q = "SELECT " . OCC_TABLE_PAPER . ".paperid FROM " . OCC_TABLE_PAPER . ", " . OCC_TABLE_AUTHOR . " WHERE " . OCC_TABLE_PAPER . ".title='" . safeSQLstr($_POST['title']) . "' AND " . OCC_TABLE_AUTHOR . ".paperid=" . OCC_TABLE_PAPER . ".paperid AND " . OCC_TABLE_AUTHOR . ".position=" . OCC_TABLE_PAPER . ".contactid AND " . OCC_TABLE_AUTHOR . ".name_last='" . safeSQLstr($_POST['name_last'.$_POST['contact']]) . "'"; $r = ocsql_query($q) or err("Unable to verify whether submission has already been made " . mysql_errno()); if (mysql_num_rows($r) > 0) { print '

    This submission appears to already have been made; please check your email for a confirmation. '; if ($OC_statusAR['OC_edit_open']) { print 'You may review or edit the submission here. '; } print 'Please contact the Chair with any questions.

    '; printFooter(); exit; } $backupMsg = ''; // add paper $q = "INSERT INTO `" . OCC_TABLE_PAPER . "` (`password`,`title`,`student`,`contactid`,`contactemail`,`contactphone`,`submissiondate`,`lastupdate`,`format`,`otherauthors`,`keywords`,`comments`,`abstract`) VALUES (" . "'" . hashPassword(stripslashes($_POST['password1'])) . "'," . "'" . safeSQLstr($_POST['title']) . "'," . "'" . $_POST['student'] . "'," . "'" . $_POST['contact'] . "'," . "'" . safeSQLstr(oc_strtolower($_POST['contactaltemail'])) . "'," . "'" . safeSQLstr($_POST['contactphone']) . "'," . "'" . date("Y-m-d") . "'," . "'" . date("Y-m-d") . "'," . "NULL," . "'" . safeSQLstr($_POST['otherauthors']) . "',". "'" . safeSQLstr($_POST['keywords']) . "',". "'" . safeSQLstr($_POST['comments']) . "',". "'" . safeSQLstr($_POST['abstract']) . "'". ")"; $r = ocsql_query($q) or err("unable to process submission ".mysql_errno()); $backupMsg .= "$q\n\n"; // get paper ID $pid = mysql_insert_id() or err("unable to get submission id ".mysql_errno()); // add authors for ($i=1;$i<=5;$i++) { if (!empty($_POST["name_last$i"])) { $q = "INSERT INTO " . OCC_TABLE_AUTHOR . " (paperid,position,name_last,name_first,organization,country,email) VALUES (". "'$pid',". "'$i',". "'".safeSQLstr($_POST["name_last$i"])."',". "'".safeSQLstr($_POST["name_first$i"])."',". "'".safeSQLstr($_POST["org$i"])."',". "'".safeSQLstr($_POST["country$i"])."',". "'".safeSQLstr($_POST["email$i"])."'". ")"; $r = ocsql_query($q) or err("unable to add one or more authors, but submission added. Please edit submission. ".mysql_errno()); $backupMsg .= "$q\n\n"; } } // add topic(s) foreach ($_POST['topic'] as $t) { if (is_numeric($t)) { $q = "INSERT INTO " . OCC_TABLE_PAPERTOPIC . " (paperid,topicid) VALUES ($pid,$t)"; $r = ocsql_query($q) or err("unable to add paper topic, but paper and authors added ".mysql_errno()); $backupMsg .= "$q\n\n"; } else { err("invalid submission topic - ..$t.."); } } if (!empty($OC_configAR['OC_subBackupEmail'])) { sendEmail($OC_configAR['OC_subBackupEmail'], "Submission ID $pid SQL", $backupMsg); } if (oc_hookSet('author-submit-save')) { foreach ($GLOBALS['OC_hooksAR']['author-submit-save'] as $hook) { require_once $hook; } } $confirmmsg = ' Submission ID: '.$pid.' Title: '.stripslashes($_POST['title']).' '; if ($OC_configAR['OC_trackStudent'] == 1) { $confirmmsg .= 'Student: '.$_POST['student']; } for ($i=1;$i<=5;$i++) { $confirmmsg .= ' Author ' . $i; if ($i == $_POST['contact']) { $confirmmsg .= " (CONTACT AUTHOR)"; } $confirmmsg .= ' Name: '.stripslashes($_POST["name_first$i"] . " " . $_POST["name_last$i"]).' Org: '.stripslashes($_POST['org'.$i]).' Country: '.$_POST['country'.$i].' Email:'.$_POST['email'.$i]; } $confirmmsg .= ' Other Authors: '.stripslashes($_POST['otherauthors']).' Contact Alt Email: '.$_POST['contactaltemail'].' Contact Phone: '.$_POST['contactphone'].' Keywords: '.stripslashes($_POST['keywords']).' Abstract: '.stripslashes($_POST['abstract']).' Comments: '.stripslashes($_POST['comments']) . ' '; if (oc_hookSet('author-submit-confirm')) { foreach ($GLOBALS['OC_hooksAR']['author-submit-confirm'] as $hook) { require_once $hook; } } // confirm it print ' Thank you for your submission. Your submission ID number is ' . $pid . '. Please write this number down and include it in any communications with the conference committee.

    Below is the information submitted. We have also emailed a copy to the contact author. If you notice any problems or do not receive the email within 24 hours, please contact the Program Chair.

    ' . safeHTMLstr($confirmmsg) . '
    '; $confirmmsg = "Thank you for your submission to " . $OC_configAR['OC_confName'] . ". Below is a copy of the information submitted for your records.\n\n" . $confirmmsg; sendEmail($contactemail, "Submission ID $pid", $confirmmsg, $OC_configAR['OC_notifyAuthorSubmit']); printFooter(); exit; } // else no errors } // Print Form print ' ' . $OC_configAR['OC_paperSubNote'] . '


    '; if ($OC_configAR['OC_trackStudent'] == 1) { print ' '; } else { print ''; } if (oc_hookSet('author-submit-general')) { foreach ($GLOBALS['OC_hooksAR']['author-submit-general'] as $hook) { require_once $hook; } } print ' '; $colar = array(1,3,5); for ($i=1;$i<=5;$i++) { if (in_array($i,$colar)) { $it = "item2"; } else { $it = "item"; } print ' '; } print ' '; if (oc_hookSet('author-submit-authors')) { foreach ($GLOBALS['OC_hooksAR']['author-submit-authors'] as $hook) { require_once $hook; } } print ' '; if (oc_hookSet('author-submit-contact')) { foreach ($GLOBALS['OC_hooksAR']['author-submit-contact'] as $hook) { require_once $hook; } } print ' '; if (oc_hookSet('author-submit-topics')) { foreach ($GLOBALS['OC_hooksAR']['author-submit-topics'] as $hook) { require_once $hook; } } print ' '; if (oc_hookSet('author-submit-content')) { foreach ($GLOBALS['OC_hooksAR']['author-submit-content'] as $hook) { require_once $hook; } } print ' '; if (oc_hookSet('author-submit-comments')) { foreach ($GLOBALS['OC_hooksAR']['author-submit-comments'] as $hook) { require_once $hook; } } print ' '; print '
    General Information
    Student? '; $studoptions = '     '; if (isset($_POST['student']) && ($_POST['student'] == "T")) { print preg_replace("/(value=\"T\")/","$1 checked", $studoptions); } else { print preg_replace("/(value=\"F\")/","$1 checked", $studoptions); } print '
    ' . $OC_configAR['OC_studentNote'] . '
     
     
    Author(s) Information
    Author #' . $i . ' Name: '; if ($i==1) { print '

       
    '; } else { print '     '; } print '
    '; if ($i==1) { print "
    NOTE: Organization should be your company, university, or similar. Please do not use your department or division, unless it is part of your organization's name such as Interior Department."; } print '
    '; if ($i == 1) { print '
    Enter the 2-letter ISO country code above or select country name from drop-down menu.'; } print '
    If you have more than 5 authors, please enter the additional information here:
     
     
    Contact Author
    The contact author is the person responsible for correspondence with the program chair. We ask for additional information for the contact author, so that we can ensure timely communication and make the program accurate. We will only contact authors other than the contact author if we are unable to reach the contact author (e.g., because of a bad email address). Please notify us of any changes in names, affiliations, etc. in the contact author\'s information

    Note: If you have more than one email address, please put the second address under "Alternate Email". We will only use that address if there is a problem with the primary email.

    Either an alternate email address,
    or a telephone number is required
     
     
    Topic Areas
    To help match submissions to reviewers and sessions, please select '; if ($OC_configAR['OC_multipleSubmissionTopics']) { print 'one or more area(s)'; } else { print 'one area'; } print ' most applicable to your submission:
    '; $i=1; if ($OC_configAR['OC_multipleSubmissionTopics']) { $type = 'checkbox'; } else { $type = 'radio'; } foreach ($topicAR as $tid => $topic) { print ''; if (($OC_configAR['OC_topicColumns'] == 2) && ($i++ == $half)) { print "         "; } else { print "
    \n"; } } print '
     
     
    Content
     
     
    Password
    Please enter a password you will remember. The submission id, which you will receive via email upon submission of this form, along with this password will allow you to make future changes to this submission.
     
     

    (optional)
     
     
    Submission
    Please check over your entries, making sure everything is filled out. When ready, click on the Make Submission button below.


    '; printFooter(); ?>