D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Filename :
enterdresults.php
back
Copy
<?php if (!$_SESSION){ session_start(); } $acc=$_SESSION['acc']; $yto=$_SESSION['yto']; if(isset($acc) && ($acc=="lectureroftheuniversity2015byto")){?> <?php include("Connecter/dataconn.php"); ?> <?php if(isset($_GET['tab'])) { $dsn=$_GET['tab']; $prog=$_GET['prog']; $description1=$_GET['des1']; $description2=$_GET['des2']; ?> <?php $query_dio1 = "SELECT * FROM coursesregistered where coursesn=$dsn order by matric asc"; $dio1 = mysql_query($query_dio1, $csn) or die(mysql_error()); $row_dio1 = mysql_fetch_assoc($dio1); $totalRows_dio1 = mysql_num_rows($dio1); ?> <!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"); ?> <script> function isNumber(evt) { evt = (evt) ? evt : window.event; var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 46) { return false; } return true; } </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"><?php echo $description1; ?></div><hr /> <div class="headingbigger"><?php echo $description2; ?></div> <p style="color:#000099"><b>Programme of Study: <?php echo $prog; ?></b></p><hr /> <?php if ($totalRows_dio1>0) { $z=0; ?> <form action="enterresults.php" method="post" name="form1" id="form1"> <table width="98%"> <tr valign="top"><td><b>Matric</b></td><td><b>Name</b></td><td width="280px"><b> </b></td></tr> <?php do { $z++; ?> <tr valign="top"> <td style="border-bottom:1px solid #333333;"><?php echo $row_dio1['matric']; ?></td> <td style="border-bottom:1px solid #333333;"> <?php $sql="SELECT * FROM students where matric='".$row_dio1['matric']."'"; $result=mysql_query($sql); $row=mysql_fetch_array($result); $nam=strtoupper($row['surname']).', '.$row['firstname'].' '.$row['othernames']; echo($nam); ?> </td> <td> <input type="text" name="x<?php echo $z; ?>" maxlength="5" value="<?php echo $row_dio1['score']; ?>" onkeypress="return isNumber(event)" /> <input type="hidden" name="y<?php echo $z; ?>" value="<?php echo $row_dio1['sn']; ?>" /> </td></tr> <?php } while ($row_dio1 = mysql_fetch_assoc($dio1)); ?> </table> <div align="right"> <input name="doneresult" type="submit" id="doneresult" value=" Submit Result " style="font-size:16px; font-weight:bold; color:maroon;" /> <input name="numof" type="hidden" value="<?php echo($totalRows_dio1); ?>" /> </div> </form> <?php } else { echo("No student has registered for this course yet! Contact the Web administrator."); } ?> <!--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("dlec.php"); }?> <?php } else { include("lecturer.php"); }?>