EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
Variables
index.php File Reference

Go to the source code of this file.

Variables

$this breadcrumbs
 
if(isset($_POST['formSubmit2'])) else
 

Variable Documentation

$this breadcrumbs
Initial value:
=array(
'Approvepaper',
)

Paper approval function

Chair can approve/reject papers using this function. The function is used in admin table view page for approval/rejection of evaluated papers.

Definition at line 11 of file index.php.

if (isset($_POST['formSubmit2'])) else
Initial value:
{
if(isset($_POST['approve']) || isset($_POST['reject']))
{
if(isset($_POST['approve']))
{
foreach($_POST['approve'] as $accepted)
{
echo "approved paper id : " . $accepted . "<br>";
$sql_edit_paper="UPDATE paper SET approved=1 WHERE id=$accepted";
mysql_query($sql_edit_paper) or die (mysql_error());
}
}
if(isset($_POST['reject']))
{
foreach($_POST['reject'] as $rejected)
{
echo "rejected paper id : " . $rejected . "<br>";
$sql_edit_paper="UPDATE paper SET approved=2 WHERE id=$rejected";
mysql_query($sql_edit_paper) or die (mysql_error());
}
}
}
else echo "No Selection Was Made."

Definition at line 28 of file index.php.