D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Filename :
registercoursesadmin1.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['findstudent'])) { $mat=$_POST['mat']; ?> <?php $query_dio1 = "SELECT distinct session, level, de, programmesn FROM studentsexisting where status='good' and matric='$mat' order by programmesn asc, session desc, level desc"; $dio1 = mysql_query($query_dio1, $csn) or die(mysql_error()); $row_dio1 = mysql_fetch_assoc($dio1); $totalRows_dio1 = mysql_num_rows($dio1); ?> <?php if ($totalRows_dio1==0) { $jkjk="Student with Matric No: <b>".$mat."</b> was not found. It is either there is no student with this matric number or that student has not yet been registered for any session!"; include("registerindividualadmin.php"); exit(); } ?> <!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"); ?> </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">Register for Courses</div><hr /> <p style="color:#990000"><b>Please click the session and semester you want to register courses for:</b></p> <table width="98%"> <tr valign="top"><td><b>Programme</b></td><td><b>Session</b></td><td><b>Level</b></td><td><b>Direct Entry</b></td><td width="180px"><b> </b></td></tr> <?php do { ?> <tr valign="top"> <td style="border-bottom:1px solid #333333;"> <?php $sql = "SELECT * FROM programmes where sn=".$row_dio1['programmesn']; $result = mysql_query($sql, $csn) or die(mysql_error()); $row = mysql_fetch_assoc($result); $query_dio2 = "SELECT * FROM departments where sn=".$row['departmentsn']; $dio2 = mysql_query($query_dio2, $csn) or die(mysql_error()); $row_dio2 = mysql_fetch_assoc($dio2); ?> <?php echo($row['namer']); ?> [<?php echo($row_dio2['namer']); ?>] </td> <td style="border-bottom:1px solid #333333;"><?php echo $row_dio1['session']; ?></td> <td style="border-bottom:1px solid #333333;"><?php echo $row_dio1['level']; ?></td> <td style="border-bottom:1px solid #333333;"><?php echo $row_dio1['de']; ?></td> <td> <?php $sql="select * from sessions where session='".$row_dio1['session']."'"; $result=mysql_query($sql); $row=mysql_fetch_array($result); if($row['status']!='opened'){ echo('<b>Locked</b>'); } else { ?> <a href="registerdcoursesadmin1.php?tab=<?php echo $row_dio1['programmesn']; ?>&ses=<?php echo $row_dio1['session']; ?>&lev=<?php echo $row_dio1['level']; ?>&de=<?php echo $row_dio1['de']; ?>&who=<?php echo($mat); ?>">Register Courses</a> <?php } ?> </td></tr> <?php } while ($row_dio1 = mysql_fetch_assoc($dio1)); ?> </table> <!--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("registerindividualadmin.php"); }?> <?php } else { include("dadmin.php"); }?>