D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Filename :
registercourses.php
back
Copy
<?php if (!$_SESSION){ session_start(); } $acc=$_SESSION['acc']; $yto=$_SESSION['yto']; if(isset($acc) && ($acc=="studentoftheuniversity2015byto")){?> <?php include("Connecter/dataconn.php"); ?> <?php $sqlspe="select * from students where sn=$yto"; $resultspe=mysql_query($sqlspe); $rowspe=mysql_fetch_array($resultspe); $mat=$rowspe['matric']; $pro=$rowspe['programmesn']; $yea=$rowspe['yearofentry']; $dde=$rowspe['de']; ?> <?php $query_dio1 = "SELECT * FROM studentsexisting where matric='$mat' and status='good' order by 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); ?> <!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> <?php if ($totalRows_dio1>0) { ?> <table width="98%"> <tr valign="top"><td><b>Session</b></td><td><b>Level</b></td><td width="180px"><b> </b></td></tr> <?php do { ?> <tr valign="top"> <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> <?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="registerdcourses.php?tab=<?php echo $row_dio1['programmesn']; ?>&who=<?php echo $mat; ?>&ses=<?php echo $row_dio1['session']; ?>&lev=<?php echo $row_dio1['level']; ?>&de=<?php echo $row_dio1['de']; ?>">Register Courses</a> <?php } ?> </td></tr> <?php } while ($row_dio1 = mysql_fetch_assoc($dio1)); ?> </table> <?php } else { echo("You are not enrolled for any session 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("student.php"); }?>