EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <?php
2 /* @var $this ApprovepaperController */
3 
11 $this->breadcrumbs=array(
12  'Approvepaper',
13 );
14 ?>
15 
16 
17 <?php
18 
20 
21 if(isset($_POST['formSubmit2']))
22 {
23 
24 $this->save();
25 
26 
27 }
28 else{
29 if(isset($_POST['approve']) || isset($_POST['reject']))
30 {
31 if(isset($_POST['approve']))
32 {
33  foreach($_POST['approve'] as $accepted)
34  {
35 
36  echo "approved paper id : " . $accepted . "<br>";
37 
38  $sql_edit_paper="UPDATE paper SET approved=1 WHERE id=$accepted";
39  mysql_query($sql_edit_paper) or die (mysql_error());
40 
41  }
42 }
43 
44 if(isset($_POST['reject']))
45 {
46  foreach($_POST['reject'] as $rejected)
47  {
48 
49  echo "rejected paper id : " . $rejected . "<br>";
50 
51  $sql_edit_paper="UPDATE paper SET approved=2 WHERE id=$rejected";
52  mysql_query($sql_edit_paper) or die (mysql_error());
53  }
54 }
55 }
56 
57 else echo "No Selection Was Made.";
58 }
59 echo "<br><br><a href=\" ./index.php?r=admintableview/index&sort=1\">Go Back To Assignment Page </a>";
60 
61 ?>