D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Filename :
managegp4.php
back
Copy
<?php if (!$_SESSION){ session_start(); } $acc=$_SESSION['acc']; $yto=$_SESSION['yto']; if(isset($acc) && ($acc=="administratoroftheduresult2018byto")){?> <?php include("Connecter/dataconn.php"); ?> <?php if (isset($_POST['applystage3'])){ //$nsql="update gradepoints set status='passive',dfrom=0,dto=0"; //$nresult=mysql_query($nsql); $felis=$_POST['applystage3']; for($i=0;$i<=$felis;$i++){ $gradepoint="gp".$i; $dfrom="from".$i; $dto="to".$i; $gp=$_POST[$gradepoint]; $from=$_POST[$dfrom]; $to=$_POST[$dto]; $nsql="update classofdegree set status='active', dfrom='".$from."', dto='".$to."' where class1='".$gp."'"; //$nresult=@mysql_query($nsql); if (mysql_query($nsql)){ $bb=$bb."<div class='alert alert-success'><p><span class='glyphicon glyphicon-ok' aria-hidden='true'></span> ".$gp." Successfully Edited!</p></div>"; } else { $bb=$bb."<div class='alert alert-danger'><p><span class='glyphicon glyphicon-remove' aria-hidden='true'></span> Unable to edit ".$gp.": " . mysql_error() . "</p></div>"; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php include("head.php"); ?> <link rel="stylesheet" href="jay/bootstrap.min.css"> <script src="jay/bootstrap.min.js"></script> </head> <body> <?php include("top.php"); ?> <?php include("dtable0.php"); ?> <?php include("nav.php"); ?> <?php include("dtable1.php"); ?> <?php include("topcontainer.php"); ?> <!--Content Goes Here--> <div class="headingbiggest">Editing Class of Degree</div> <div class="headingbigger"> </div> <hr /> <p> </p> <hr /> <?php echo($bb); ?> <!--Content Ends Here--> <?php include("bottomcontainer.php"); ?> <?php include("dtable2.php"); ?> <?php include("side.php"); ?> <?php include("dtable3.php"); ?> <?php include("foot.php"); ?> </body> </html> <?php } else { include("dadmin.php"); } ?> <?php } else { include("ddadmin.php"); }?>