EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <html>
2 <body>
3 
4 <h3>Select Referee From The List:</h3>
5 
6 <?php
14 
15  $papid = $_GET["va"];
16 
17  $conference = mysql_query("SELECT conferenceid FROM conference_paper WHERE paperid=$papid");
18 
19  while($ro = mysql_fetch_array($conference))
20  {
21 
22  $confid = $ro['conferenceid'];
23 
24  $referees = mysql_query("SELECT DISTINCT userid FROM conference_user_type WHERE usertype=3 AND conferenceid=$confid");
25 
26  $i=0;
27 
28  while($row = mysql_fetch_array($referees))
29  {
30 
31  $asd = $row['userid'];
32  $result1 = mysql_query("SELECT * FROM users WHERE userid='$asd'");
33 
34  while($row2 = mysql_fetch_array($result1))
35  {
36  $asd2[$i] = $row2['username'];
37  $asd3[$i] = $row2['userid'];
38  }
39  $co = $row2['username'];
40 
41  $i++;
42  }
43 
44  }
45 
46 $paperid = $_GET['va'];
47 
48 echo "<form action='index.php?r=assignRefereeCheckbox/index' method='post'>";
49 
50 $j=0;
51 while($j<sizeof($asd2))
52 {
53  echo "<B>".($j+1)."</B>" . ") ";
54  echo "<a href=\" /test/index.php?r=user_profile/index&usid=$asd3[$j]\">" . $asd2[$j] . "</a>";
55 
56  echo "<input hidden name='val' value='$paperid'/>";
57  echo "<input type='checkbox' name='names[]' value=$asd3[$j]><br><br>";
58 
59  $j++;
60 }
61 
62 echo "<input type='submit' name=\'formSubmit' value='Submit' />";
63 echo "</form>";
64 
65 
66 ?>
67 
68 
69 
70 </body>
71 </html>