EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <?php
2 /* @var $this Assignment_function_submitController */
3 
12 $this->breadcrumbs=array(
13  'Assignment Function Submit',
14 );
15 ?>
16 
17 <?php
18 
20 
21 
22  if(isset($_POST['refid']))
23  {
24  foreach($_POST['refid'] as $refid)
25  {
26 
27  list($pap_id,$maxref) = explode('|', $refid);
28  echo "Paper id :" . $pap_id . " Referee id :" . $maxref . "<br>";
29 
30  $sql_insert_paper_referee="INSERT INTO paper_referee ( paperid, userid)
31 VALUES
32 ('$pap_id','$maxref')";
33 mysql_query($sql_insert_paper_referee) or die (mysql_error());
34 
35  echo "Referee is assigned to paper.<br><br>";
36 
37 
38 
39  }
40 
41  }
42 
43 else echo "No Paper Selected<br>";
44 
45 
46 ?>
47 
48 <?php
49 echo "";
50 echo "<a href=\" ./index.php?r=assignment_function/index\">" . "Go Back To Automatic Assignment Page" . "</a>";
51 ?>