D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Filename :
courseregprev.php
back
Copy
<?php if (!$_SESSION){ session_start(); } include("Connecter/dataconn.php"); $natasession=$_SESSION['ss']; $progid=$_SESSION["deptsn"]; $mat=$_SESSION["matric_no"]; $level=$_SESSION["level"]; $de=$_SESSION["de"]; //$_SESSION["de"] = $de; //echo "ss:".$_SESSION['ss']." Dept/Prog ID:".$_SESSION["deptsn"]." Matric:".$_SESSION["matric_no"]." Level:".$_SESSION["level"]." DE:".$_GET['de']; $session=$natasession; $programmesn=$progid; ?> <!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" /> <link rel="shortcut icon" href="logo.ico" type="image/ico" /> <style type="text/css"> body,td { font-family: Verdana, Geneva, sans-serif; font-size:12px; } </style> <style type="text/css" media="print"> @media print { .no-print { display: none !important; } } </style> <title>::Course Registration Preview</title> </head> <body> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td scope="col"><table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td scope="col"><table width="100%" border="0" cellspacing="5" cellpadding="5"> <tr> <td width="22%" align="left" scope="col"><img src="./di-logo.png" width="126" height="114" /></td> <td width="78%" align="left" scope="col"><p style="font-size:26px"><strong>DOMINICAN INSTITUTE IBADAN</strong> <hr /> <strong> Education Layout, Oyo Road, Samonda, Ibadan, Oyo State.</p> </strong></td> </tr> </table></td> </tr> <tr> <td align="center"><hr /></td> </tr> <tr> <td align="center" style="font-size:20px"><strong>COURSE REGISTRATION FORM</strong></td> </tr> <tr> <td align="center"><hr /></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="50%" align="left" scope="col"><strong>NAME:</strong> <?php echo $_SESSION['stud_name'];?></td> <td width="50%" align="left" scope="col"><strong>MATRIC NUMBER:</strong> <?php echo $_SESSION['matric_no'];?></td> </tr> <tr> <td align="left" scope="col"><strong>LEVEL OF STUDY:</strong> <?php echo $_SESSION['level'];?>00 Level</td> <td align="left" scope="col"><strong>SESSION:</strong> <?php echo $_SESSION['ss'];?> <strong>YEAR OF ENTRY: </strong><?php echo $_SESSION['yearofentry'];?></td> </tr> <tr> <td align="left" scope="col"><strong>FACULTY:</strong> <?php echo $_SESSION['faculty'];?></td> <td align="left" scope="col"><strong>DEPARTMENT:</strong> <?php echo $_SESSION['dept'];?></td> </tr> <tr> <td align="left" scope="col"><strong>PROGRAM:</strong> <?php echo $_SESSION['prog'];?></td> <td align="left" scope="col"><strong>DEGREE IN VIEW:</strong> <?php echo $_SESSION['degree'];?> <?php echo $_SESSION['prog'];?></td> </tr> </table></td> </tr> <?php for($u=1;$u<=1;$u++){ $semester=$u; if($semester == 2){?> <p style="page-break-after: always;"></p> <p style="page-break-after: always;"></p> <?php }?> <tr> <td><?php if($semester == 1){?><hr /><?php }?> </td> </tr> <tr> <td align="left" style="font-size:16px"> </td> </tr> <tr> <td align="left" style="font-size:20px"><strong><?php if($u == 1){echo "FIRST";}else{echo "SECOND";}?> SEMESTER COURSES:</strong></td> </tr> <tr> <td align="left" style="font-size:20px"><hr /></td> </tr> <tr> <td> <table width="100%" border="1" cellpadding="3" cellspacing="2" style="border-collapse:collapse"> <?php $query_vin = "SELECT *,r.sn as dsn FROM coursesregistered as r inner join coursestobetaken as t on r.coursesn=t.sn where t.programmesn='$programmesn' and t.session='$session' and t.semester='$semester' and t.de='$de' and r.matric='$mat'"; $vin = mysql_query($query_vin, $csn) or die(mysql_error()); $num_vin=mysql_num_rows($vin); ?> <?php if($num_vin<1){ echo("<tr><td colspan='9' style='color:#990000;'>No Course Added Yet!</td></tr>"); } else { ?> <tr valign="top" style="background-color:#000; color:#FFF;"> <td width="20px" align="center"><b> S/No</b></td> <td width="60px" align="center"><b>Code</b></td> <td><b>Course</b></td> <td align="center"><b>Unit</b></td> <td align="center"><b>Status</b></td> <td><b>Stand</b></td> <td align="center"><b>Stance</b></td> <td><b>Lecturer</b></td> </tr> <?php $f=0; while($row_vin = mysql_fetch_assoc($vin)) { $f++; ?> <tr valign="top"> <td align="center"><?php echo($f); ?>.</td> <td align="center"><?php echo($row_vin['code']); ?></td> <td align="left"><?php echo($row_vin['namer']); ?></td> <td align="center"><?php echo($row_vin['unit']); ?></td> <td align="center"><?php echo($row_vin['status']); ?></td> <td align="left"><?php echo($row_vin['stand']); ?></td> <td align="center"><?php echo($row_vin['stance']); ?></td> <td align="left"><?php $sql="SELECT * FROM lecturers where sn = ".$row_vin['lecturersn']; $result = mysql_query($sql); $row = mysql_fetch_array($result); echo($row['namer']); ?></td> </tr> <?php } } ?> </table> <?php $sql = "SELECT sum(unit) FROM coursesregistered as r inner join coursestobetaken as t on r.coursesn=t.sn where t.programmesn=$programmesn and t.session='$session' and t.semester=$semester and t.de='$de' and r.matric='$mat'"; $result = mysql_query($sql); $row=mysql_fetch_array($result); ?> <?php if($num_vin>0){ ?> <div align="right" style="font-weight:bold; color:#22398f; font-size:14px; background-color:#b7c5f9; padding:5px 20px 5px 20px;">Total Units: <?php echo($row[0]); ?></div> <?php } ?> <?php } ?> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td align="left" style="font-size:20px"><strong>STUDENT DECLARATION:</strong></td> </tr> <tr> <td align="left"><em>I declare that I have read the conduct and guidelines governing the conduct of eaminations in the Institute as contained in the Student Academic Handbook and have agreed to the terms therein which specify that breach of any of the rules, or any other act considered subversive to the integrity of the Institute examination process, by me, may lead to my expulsion or any other sanction as may be determines by the appropriate authority of the Institute.</em></td> </tr> <tr> <td><hr /></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td align="left" scope="col"> </td> <td align="left" scope="col"> </td> </tr> <tr> <td width="50%" align="left" scope="col"><strong>Student's Signature: ..............................</strong></td> <td width="50%" align="left" scope="col"><strong>Date: .................................</strong></td> </tr> </table></td> </tr> <tr> <td align="right"><table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td align="left" scope="col"> </td> <td align="left" scope="col"> </td> </tr> <tr> <td width="50%" align="left" scope="col"><strong>HOD's Signature: ...................................</strong></td> <td width="50%" align="left" scope="col"><strong>Date: .................................</strong></td> </tr> </table></td> </tr> <tr> <td align="right"> </td> </tr> <tr> <td align="right"> </td> </tr> <tr> <td align="center" class="no-print"> <p style="page-break-after: always;"></p> <table width="100%" border="0" cellspacing="5" cellpadding="5" style="border-collapse:collapse"> <tr> <td width="50%" align="right" scope="col"> <a href="registerdcourses.php?tab=<?php echo $programmesn; ?>&who=<?php echo $mat; ?>&ses=<?php echo $session; ?>&lev=<?php echo $level; ?>&de=<?php echo $de; ?>"><input name="back" type="submit" value="Back" style="font-size:25px; font-weight:bold; color:#F90;" /></a> </td> <td width="50%" align="left" scope="col"> <input onClick="printer()" title="Send to printer" id="print-me" name="print" type="submit" value="Print" style="font-size:25px; font-weight:bold; color:#090;" /> </td> </tr> </table> </td> </tr> <tr> <td align="right"> </td> </tr> </table></td> </tr> </table> </body> </html> <script type="text/javascript"> function printer() { window.print(); } </script>