1<?php 2function paperForm( $Conf, $title="", $abstract="", $authorInfo="", $collaborators="", $topics=array() ){ 3?> 4<table border="0" width="100%" bgcolor="<?php echo $Conf->bgOne ?>"> 5<tr> 6 <td valign="top"><P><STRONG>Title</STRONG></P></td> 7 <td valign="top"> <input type="text" name="title" size="75" 8 value="<?php echo stripslashes($title)?>" 9 MAXLENGTH=200></td> 10</tr> 11 12<tr> 13<td valign="top"><P><STRONG>Abstract</STRONG></P> <P>Maximum 200 words.</P> </td> 14<td valign="top"><textarea rows="30" name="abstract" cols="75"><?php echo stripslashes($abstract)?></textarea> </td> 15</tr> 16 17<tr> 18 <td valign="top"><P><STRONG>Author Information</STRONG></P> 19 <P>List all authors and their affiliation in order of appearance. 20Please list one author per line.</P></td> 21 <td valign="top"> <textarea rows=10 name="authorInfo" cols=75><?php echo stripslashes($authorInfo)?></textarea></td> 22</tr> 23 24<tr> 25 <td valign="top"><P><STRONG>Collaborators and Other Affiliations for <EM>ALL</EM> 26Authors of the Paper</STRONG></P> 27<P>List all persons in alphabetical order (including their current 28affiliations) who are currently, or who have been collaborators or 29co-authors in the past. This includes your advisor, students, 30and collaborators. Please list one person per line. This is 31used to avoid conflicts of interest when papers are assigned.</P> 32</td> 33 <td valign="top"> <textarea rows=20 name="collaborators" cols=75><?php echo stripslashes($collaborators)?></textarea></td> 34</tr> 35<TR><TD BGCOLOR='White' COLSPAN=2></TD></TR> 36<?php 37$query="SELECT TopicArea.topicAreaId, TopicArea.topicName FROM TopicArea "; 38$result = $Conf->q($query); 39if ( DB::isError($result) ) { 40 $Conf->errorMsg("Error in query " . $result->getMessage()); 41} else if ($result->numRows() > 0) { 42?> 43 <tr> 44 <td valign="top" width="16%" height="19"><P><STRONG>Topics</STRONG></P> <P>Please mark 45 all topics that apply to your submission. This will 46 be used to help match reviewers to your 47 paper. Select at least one.</P></td> 48 <td valign="top" width="84%" height="19"> 49<?php 50 while ($row = $result->fetchRow()) { 51 $id = $row[0]; 52 $topic = $row[1]; 53 if (IsSet($topics[$id])) { 54 $checked = " CHECKED "; 55 } else { 56 $checked =""; 57 } 58 print "<INPUT type=checkbox name=topics[] value=$id $checked> $topic <br>"; 59 } 60?> 61</td> 62</tr> 63<?php 64 } 65?> 66 67 68 69</table> 70<?php 71} 72?> 73 74