<?php 
include('../Code/confHeader.inc');
$_SESSION[Me] -> goIfInvalid("../index.php");
$Conf -> goIfInvalidActivity("startPaperSubmission", "../index.php");
$Conf -> connect();
?>

<html>
<?php  $Conf->header("Submit Paper to $Conf->shortName") ?>

<body>

<p>
You can start new paper submissions
<?php  echo $Conf->printTimeRange('startPaperSubmission') ?>.
<br>
You can finalize those submissions (including uploading new
				    copies of your paper)
<?php  echo $Conf->printTimeRange('updatePaperSubmission') ?>.
<br>
Papers can be no larger than <?php echo get_cfg_var("upload_max_filesize"); ?> bytes.
</p>

<p>
Enter the following information. We will use your contact information
as the contact information for this paper.
</p>

<form method="POST" action="SubmitPaper2.php" ENCTYPE="multipart/form-data" >
<table border="0" width="100%" bgcolor="<?php echo $Conf->bgOne ?>">
<tr>
  <td>Title</td>
  <td> <input type="text" name="title" size="75" MAXLENGTH=200></td>
</tr>

<tr>
  <td>Abstract</td>
  <td><textarea rows="10" name="abstract" cols="75"></textarea> </td>
</tr>

<tr>
  <td>Author Information<br>
      (list all authors in order of appearance)</td>
  <td> <textarea rows=10 name="authorInfo" cols=75></textarea></td>
</tr>

<tr>
   <td>Location of PDF or PostScript File <br>
<big> <big> <b> NOTE: </b> This file should contain your <i> full paper </i>. <br>
You need to enter the abstract above, but you must submit a full paper! </big> </big>
</td>
   <td><input type="hidden" name="MAX_FILE_SIZE" value="2000000"><input type="file" name="uploadedFile" ACCEPT="text/pdf" size="69"></td>
</tr>

<?php 
$query="SELECT topicAreaId, topicName FROM TopicArea";
$result = $Conf->q($query);
if (!DB::isError($result) && $result->numRows() > 0 ) {
?>
	  <tr>
            <td width="16%" height="19">Topic (select any that apply)</td>
            <td width="84%" height="19">
<?php 
  while ($row = $result->fetchRow()) {
    $id = $row[0];
    $topic = $row[1];
    print "<INPUT type=checkbox name=topics[] value=$id> $topic <br>";
  }
?>
          </tr>
	  </tr>
<?php 
	      }
?>
        </table>
	<div align="center"> <center>
	<p> <input type="submit" value="Complete First Step" name="submit"> </p>
	</center> </div>
      </form>


<?php  $Conf->footer() ?>

</body>

</html>
