D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
back_up
/
Filename :
addlecturer.php
back
Copy
<?php if (!$_SESSION){ session_start(); } $acc=$_SESSION['acc']; $yto=$_SESSION['yto']; if(isset($acc) && ($acc=="administratoroftheduresult2018byto")){?> <?php include("Connecter/dataconn.php"); ?> <!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">Lecturers</div> <p> </p> <hr /> <p style="color:#990000"><b>Add New Lecturer</b></p> <form id="form1" name="form1" method="post" action="dadmin.php"> <table width="100%" cellpadding="1" cellspacing="2"><?php for($i=1; $i<=1; $i++){ ?> <tr valign="top"> <td style="text-align:left"><span style="font-weight:bold; color:#009900; font-size:20px;"><?php echo($i); ?></span></td> <td><b>Name:</b> <input name="namer<?php echo($i); ?>" size="40" type="text" /></td> </tr> <tr valign="top"> <td> </td> <td><b>Username:</b> <input name="user<?php echo($i); ?>" size="40" type="text" /></td> </tr> <tr valign="top"> <td> </td> <td><b>Password:</b> <input name="pass<?php echo($i); ?>" size="40" type="text" /></td> </tr> <tr valign="top"> <td> </td> <td><b>Department:</b> <select name="deptsn<?php echo($i); ?>"> <option value="0">External</option> <?php$query_dio=sprintf("select * from departments");$dio = mysql_query($query_dio, $csn) or die(mysql_error());$totalRows_dio = mysql_num_rows($dio); ?> <?php if($totalRows_dio>0){ ?> <?php while($row_dio = mysql_fetch_assoc($dio)) { ?> <option value="<?php echo($row_dio['sn']); ?>"><?php echo($row_dio['namer']); ?></option> <?php } ?> <?php } ?> </select></td> </tr> <tr valign="top"> <td colspan="2"><hr /></td> </tr> <?php } ?> <tr valign="top"> <td style="text-align:right; font-size:10px;" colspan="12"><a href="dadmin.php">Cancel</a> <input name="faculty_id" type="hidden" value="<?php echo $row_dio['facultysn']; ?>" /><?php echo $row_dio['facultysn']; ?>lecturer" type="submit" style="font-size:12px;" id="addlecturer" value=" Add Lecturer " /> </td> </tr> </table> </form><p> </p><p <input name="addlecturer" type="submit" style="font-size:12px;" id="addlecturer" value=" Add Lecturer " /> </td> </tr> </table> </form><p> </p><p><a href="dadmin.php">Back to Admin Page</a></p><!--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("ddadmin.php");}?>