D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
result.dominicaninstitute.org
/
Filename :
addstudent.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"); ?> <link rel="stylesheet" type="text/css" href="cal/dhtmlxcalendar.css"> <link rel="stylesheet" type="text/css" href="cal/skins/dhtmlxcalendar_dhx_web.css"> <script src="cal/dhtmlxcalendar.js"></script> <script> function doOnLoad() { var myCalendar1 = new dhtmlXCalendarObject(["dob1"]); myCalendar1.setSkin('dhx_web'); myCalendar1.setWeekStartDay=7; myCalendar1.setDateFormat("%Y-%m-%d"); myCalendar1.hideTime(); var myCalendar2 = new dhtmlXCalendarObject(["dob2"]); myCalendar2.setSkin('dhx_web'); myCalendar2.setWeekStartDay=7; myCalendar2.setDateFormat("%Y-%m-%d"); myCalendar2.hideTime(); var myCalendar3 = new dhtmlXCalendarObject(["dob3"]); myCalendar3.setSkin('dhx_web'); myCalendar3.setWeekStartDay=7; myCalendar3.setDateFormat("%Y-%m-%d"); myCalendar3.hideTime(); var myCalendar4 = new dhtmlXCalendarObject(["dob4"]); myCalendar4.setSkin('dhx_web'); myCalendar4.setWeekStartDay=7; myCalendar4.setDateFormat("%Y-%m-%d"); myCalendar4.hideTime(); var myCalendar5 = new dhtmlXCalendarObject(["dob5"]); myCalendar5.setSkin('dhx_web'); myCalendar5.setWeekStartDay=7; myCalendar5.setDateFormat("%Y-%m-%d"); myCalendar5.hideTime(); var myCalendar6 = new dhtmlXCalendarObject(["dob6"]); myCalendar6.setSkin('dhx_web'); myCalendar6.setWeekStartDay=7; myCalendar6.setDateFormat("%Y-%m-%d"); myCalendar6.hideTime(); var myCalendar7 = new dhtmlXCalendarObject(["dob7"]); myCalendar7.setSkin('dhx_web'); myCalendar7.setWeekStartDay=7; myCalendar7.setDateFormat("%Y-%m-%d"); myCalendar7.hideTime(); var myCalendar8 = new dhtmlXCalendarObject(["dob8"]); myCalendar8.setSkin('dhx_web'); myCalendar8.setWeekStartDay=7; myCalendar8.setDateFormat("%Y-%m-%d"); myCalendar8.hideTime(); var myCalendar9 = new dhtmlXCalendarObject(["dob9"]); myCalendar9.setSkin('dhx_web'); myCalendar9.setWeekStartDay=7; myCalendar9.setDateFormat("%Y-%m-%d"); myCalendar9.hideTime(); var myCalendar10 = new dhtmlXCalendarObject(["dob10"]); myCalendar10.setSkin('dhx_web'); myCalendar10.setWeekStartDay=7; myCalendar10.setDateFormat("%Y-%m-%d"); myCalendar10.hideTime(); } </script> </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">Students</div> <p> </p> <hr /> <p style="color:#990000"><b>Add New Student</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>Matric No:</b> <input name="matric<?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>Surname:</b> <input name="sur<?php echo($i); ?>" size="40" type="text" /></td> </tr> <tr valign="top"> <td> </td> <td><b>Firstname:</b> <input name="fir<?php echo($i); ?>" size="40" type="text" /></td> </tr> <tr valign="top"> <td> </td> <td><b>Other Names:</b> <input name="oth<?php echo($i); ?>" size="40" type="text" /></td> </tr> <tr valign="top"> <td> </td> <td><b>Year of Entry:</b> <input name="yea<?php echo($i); ?>" size="8" type="text" maxlength="4" /></td> </tr> <tr valign="top"> <td> </td> <td><b>Programme of Study:</b> <select name="progsn<?php echo($i); ?>"> <?php $query_dio=sprintf("select * from programmes"); $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']); ?> <?php $sql="select * from departments where sn=".$row_dio['departmentsn']; $result=mysql_query($sql); $row=mysql_fetch_array($result); echo("[ in ".$row['namer']." ]"); ?> </option> <?php } ?> <?php } ?> </select></td> </tr> <tr valign="top"> <td> </td> <td><b>Date of Birth:</b> <input name="dob<?php echo($i); ?>" id="dob<?php echo($i); ?>" size="18" type="text" readonly="readonly" value="<?php echo(date('Y-m-d')); ?>" onmousedown="doOnLoad();" /></td> </tr> <tr valign="top"> <td> </td> <td><b>Direct Entry:</b> <select name="de<?php echo($i); ?>" id="de<?php echo($i); ?>"> <option value=""></option> <option value="DE">DE</option> </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="addstudent" type="submit" style="font-size:12px;" id="addstudent" value=" Add Student " /> </td> </tr> </table> </form> <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"); }?>