D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Filename :
editcoursestobetaken2.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 include("checkforpending2.php"); ?> <?php include("checkforpending.php"); ?> <?php if (isset($_GET['tab'])) { $session=$_GET['ses']; $programmesn=$_GET['tab']; $editab=$_GET['editab']; $query_dio="select * from coursestobetaken where sn = " . $editab; $dio = mysql_query($query_dio, $csn) or die(mysql_error()); $row_dio = mysql_fetch_assoc($dio); $totalRows_dio = mysql_num_rows($dio); ?> <!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">Edit Course</div> <p> </p> <form action="listcoursestobetaken2.php" method="get" name="form1" id="form1"> <table width="100%"> <tr valign="top"><td width="150" style="font-weight:bold; text-align:right">Code</td> <td style="font-size:9px;"> <input name="course_id" type="hidden" value="<?php echo($row_dio['course_id']); ?>" /> <input name="code" id="code" size="40" type="text" value="<?php echo($row_dio['code']); ?>" readonly="readonly" /></td></tr> <tr valign="top"><td width="150" style="font-weight:bold; text-align:right">Name</td> <td style="font-size:9px;"><input name="namer" id="namer" size="40" type="text" value="<?php echo($row_dio['namer']); ?>" /></td></tr> <tr valign="top"> <td style="font-weight:bold; text-align:right">Unit</td> <td> <select name="unit"> <option value="<?php echo($row_dio['unit']); ?>" selected="selected"><?php echo($row_dio['unit']); ?></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> </select> </td> </tr> <tr valign="top"> <td style="font-weight:bold; text-align:right">Status</td> <td> <select name="status"> <option value="<?php echo($row_dio['status']); ?>" selected="selected"><?php echo($row_dio['status']); ?></option> <option value="C">C</option> <option value="R">R</option> <option value="E">E</option> </select> </td> </tr> <tr valign="top"> <td style="font-weight:bold; text-align:right">Stand</td> <td> <select name="stand"> <option value="<?php echo($row_dio['stand']); ?>" selected="selected"><?php echo($row_dio['stand']); ?></option> <option value=""></option> <option value="Faculty Required">Faculty Required</option> <option value="Department Required">Department Required</option> </select> </td> </tr> <tr valign="top"> <td style="font-weight:bold; text-align:right">Stance</td> <td> <select name="stance"> <option value="<?php echo($row_dio['stance']); ?>" selected="selected"><?php echo($row_dio['stance']); ?></option> <option value="Internal">Internal</option> <option value="External">External</option> <option value="Compulsory">Compulsory</option> </select> </td> </tr> <tr valign="top"> <td style="font-weight:bold; text-align:right">Lecturer</td> <td> <select name="lecturersn"> <?php $sql = "SELECT * FROM lecturers where sn=".$row_dio['lecturersn']; $result = mysql_query($sql); $row=mysql_fetch_array($result); ?> <option value="<?php echo($row_dio['lecturersn']); ?>" selected="selected"><?php echo($row['namer']); ?></option> <?php $sql = "SELECT * FROM lecturers where archived='No'"; $result = mysql_query($sql); ?> <?php while($row = mysql_fetch_array($result)){ ?> <option value="<?php echo $row['sn']; ?>"><?php echo $row['namer']; ?></option> <?php }?> </select> </td> </tr> <tr valign="top"> <td style="text-align:right; font-size:10px;" colspan="2"><a href="listcoursestobetaken2.php?tab=<?php echo $programmesn; ?>&ses=<?php echo $session; ?>">Cancel</a> <input name="editcoursestobetaken" type="submit" id="editcoursestobetaken" value=" Edit Record " /> <input name="sn" type="hidden" value="<?php echo ($row_dio['sn']); ?>" /> <input name="ses" type="hidden" value="<?php echo($session); ?>" /> <input name="tab" type="hidden" value="<?php echo($programmesn); ?>" /> </td> </tr> </table> </form> <!--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"); }?>