One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
nportal.andjemztech.com
/
examAdmin
/
Edit File:
add_profile_student.php
<?php require("header_leftnav.inc.php"); include_once("../inc/lang.php"); ?> <td valign="top"> <!- content starts here --> <script language="javascript" type="text/javascript"> function checkform (form) { if (document.form.surname.value == "") { alert( "Please enter your Surname" ); document.form.surname.focus(); return false ; } if (document.form.firstname.value == "") { alert( "Please fill in your First Name" ); document.form.firstname.focus(); return false ; } // return < aheref } </script> <? require("pic.php"); ?> <table width="90%" border="0" align="center" cellspacing="0" cellpadding="10" class="text" id=title> <tr> <td><b><u>Profile</u></b></td> </tr> </table> <? if ($surname) { ?> <table width="90%" border="0" align="center" cellspacing="0" cellpadding="10" class="text"> <tr> <td>Surname</td> <td><b><? echo strtoupper($surname) ?></b></td> <td rowspan="4"><? echo $dmyfilename ?></td> </tr> <tr> <td>Firstname</td> <td><? echo strtoupper($firstname) ?></td> </tr> <tr> <td>Othernames</td> <td><? echo strtoupper($othernames) ?></td> </tr> <tr> <td>Matric No</td> <td><? echo $admission_no ?></td> </tr> </table> <? } ?> <form action="insert_profile.php" method="post" name="form" id="form" enctype="multipart/form-data"> <input name="std_id" type="hidden" id="std_id" value="<? echo $std_id ?>"> <table width="90%" border="0" align="center" cellpadding="10" cellspacing="0" class="text"> <tr> <td colspan="2" class="border2"><strong style="color:#FF9900"><? echo $w_update ?></strong></td> </tr> <tr> <td colspan="2"><b><u><? echo $exams_addprofile_wd ?></u></b></td> </tr> <tr> <td>Surname</td> <td><input name="surname" type="text" id="surname" size="30" value="<? echo $surname ?>"></td> </tr> <tr> <td>First Name</td> <td><input name="firstname" type="text" id="firstname" size="30" value="<? echo $firstname ?>"></td> </tr> <tr> <td>Othernames</td> <td><input name="othernames" type="text" id="othernames" size="30" value="<? echo $othernames ?>"></td> </tr> <tr> <td>Passport</td> <td> <? if (file_exists($myfilename)) { ?> <span style="color: red">You cannot change your picture more than once. Please contact your HOD for more info.</span> <? } else { ?> <input type="file" name="image"> <? } ?> </td> </tr> <tr> <td>Gender</td> <td><select name="gender" id="gender"> <option value="Male" <? if ($gender == Male) { echo "selected"; } ?>>Male</option> <option value="Female" <? if ($gender == Female) { echo "selected"; } ?>>Female</option> </select> </td> </tr> <tr> <td>Marital Status</td> <td><select name="marital_status" id="marital_status"> <option value="Single" <? if ($marital_status == Single) { echo "selected"; } ?>>Single</option> <option value="Married" <? if ($marital_status == Married) { echo "selected"; } ?>>Married</option> </select> </td> </tr> <tr> <td>Date of Birth</td> <td>d <select name="date_day" id="date_day"> <?php for ($mday = 1; $mday<= 31; $mday++) { ?> <option value="<? if (strlen($mday) == 1) {$mday = "0$mday";} echo $mday ?>" <? if ($mday == $date_day) {echo "selected"; } ?>><? echo $mday ?></option> <? } ?> </select> m <select name="date_month" id="date_month"> <option value='01' <? if ($date_month == 1) {echo "selected"; } ?>>Jan</option> <option value='02' <? if ($date_month == 2) {echo "selected"; } ?>>Feb</option> <option value='03' <? if ($date_month == 3) {echo "selected"; } ?>>March</option> <option value='04' <? if ($date_month == 4) {echo "selected"; } ?>>Apr</option> <option value='05' <? if ($date_month == 5) {echo "selected"; } ?>>May</option> <option value='06' <? if ($date_month == 6) {echo "selected"; } ?>>Jun</option> <option value='07' <? if ($date_month == 7) {echo "selected"; } ?>>Jul</option> <option value='08' <? if ($date_month == 8) {echo "selected"; } ?>>Aug</option> <option value='09' <? if ($date_month == 9) {echo "selected"; } ?>>Sept</option> <option value='10' <? if ($date_month == 10) {echo "selected"; } ?>>Oct</option> <option value='11' <? if ($date_month == 11) {echo "selected"; } ?>>Nov</option> <option value='12' <? if ($date_month == 12) {echo "selected"; } ?>>Dec</option> </select> y <select name="date_year" id="date_year"> <?php $tillyear = 1950; for ($year = date(Y); $year >= $tillyear; $year--) { ?> <option value="<? echo $year ?>" <? if ($year == $date_year) {echo "selected"; } ?>><? echo $year ?></option> <? } ?> </select></td> </tr> <tr> <td>Place of Birth</td> <td><input name="place_of_birth" type="text" id="place_of_birth" size="30" value="<? echo $place_of_birth ?>"></td> </tr> <tr> <td>Home Town</td> <td><input name="home_town" type="text" id="home_town" size="30" value="<? echo $home_town ?>"></td> </tr> <tr> <td>Local Gov. Area</td> <td><input name="local_gov" type="text" id="local_gov" size="30" value="<? echo $local_gov ?>"></td> </tr> <tr> <td>State of Origin</td> <td><input name="state_of_origin" type="text" id="state_of_origin" size="30" value="<? echo $state_of_origin ?>"></td> </tr> <tr> <td>Nationality</td> <td><input name="nationality" type="text" id="nationality" size="30" value="<? echo $nationality ?>"></td> </tr> <tr> <td>Contact Address</td> <td><textarea name="contact_address" cols="30" rows="4" id="contact_address"><? echo $contact_address ?></textarea></td> </tr> <tr> <td>Student's Email</td> <td><input name="student_email" type="text" id="student_email" size="30" value="<? echo $mylog_email ?>" readonly></td> </tr> <tr> <td>Parents' Name</td> <td><input name="parents_name" type="text" id="parents_name" size="30" value="<? echo $parents_name ?>"></td> </tr> <tr> <td>Student's Home Address</td> <td><textarea name="student_homeaddress" cols="30" rows="4" id="student_homeaddress"><? echo $student_homeaddress ?></textarea></td> </tr> <tr> <td>Student's Mobile Telephone</td> <td><input name="student_mobiletel" type="text" id="student_mobiletel" size="30" value="<? echo $student_mobiletel ?>"></td> </tr> <tr> <td>Student's Land Telephone</td> <td><input name="student_landtel" type="text" id="student_landtel" size="30" value="<? echo $student_landtel ?>"></td> </tr> <tr> <td>Next of Kin</td> <td><input name="next_of_kin" type="text" id="next_of_kin" size="30" value="<? echo $next_of_kin ?>"></td> </tr> <tr> <td>Next of Kin Address</td> <td><textarea name="nok_address" cols="30" rows="4" id="nok_address"><? echo $nok_address ?></textarea></td> </tr> <tr> <td>Next of Kin Telephone</td> <td><input name="nok_tel" type="text" id="nok_tel" size="30" value="<? echo $nok_tel ?>"></td> </tr> <tr> <td colspan=2><b><u>Registration Information</u></b></td> </tr> <tr> <td>Student's Matric No</td> <td><input name="matric_no" type="text" id="matric_no" size="30"></td> </tr> <tr> <td>Session</td> <td> <select name="yearsession" id="yearsession"> <?php $tillyear = 2003; for ($year = date(Y); $year >= $tillyear; $year--) { ?> <option value="<? echo $year ?>" <? if ($year == date("Y")) {echo "selected"; } ?>><? echo $year ?>/<? echo $year+1 ?></option> <? } ?> </select> </td> </tr> <tr> <td>Semester</td> <td><select name="semester" id="semester"> <option value="<? echo $exams_coursesemester_wd1 ?>"><? echo $exams_coursesemester_wd1 ?></option> <option value="<? echo $exams_coursesemester_wd2 ?>"><? echo $exams_coursesemester_wd2 ?></option> </select> </td> </tr> <tr> <td>Level</td> <td><select name="level_id" id="level_id"> <? $query = "SELECT * FROM level ORDER BY level_name"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $level_id = $row["level_id"]; $level_name = $row["level_name"]; ?> <option value="<? echo $level_id ?>" <? if ($level_id == $level_id1) { echo "selected"; } ?>><? echo $level_name ?></option> <? } ?> </select> </td> </tr> <tr> <td>Programme</td> <td> <select name="programme_id" id="programme_id"> <? $query = "SELECT * FROM programme ORDER BY programme_name"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $programme_id = $row["programme_id"]; $programme_name = $row["programme_name"]; ?> <option value="<? echo $programme_id ?>"><? echo $programme_name ?></option> <? } ?> </select> </td> </tr> <tr> <td>Faculty/School </td> <td> <select name="faculty_id" id="faculty_id"> <? $query = "SELECT * FROM faculties ORDER BY faculties_name"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $faculties_id = $row["faculties_id"]; $faculties_name = $row["faculties_name"]; ?> <option value="<? echo $faculties_id ?>"><? echo $faculties_name ?></option> <? } ?> </select> </td> </tr> <tr> <td>Department</td> <td> <select name="department_id" id="department_id"> <? $query = "SELECT * FROM departments ORDER BY departments_name"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_assoc($result)) { $departments_id = $row["departments_id"]; $departments_name = $row["departments_name"]; ?> <option value="<? echo $departments_id ?>"><? echo $departments_name ?></option> <? } ?> </select> </td> </tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="Add Profile" onClick="return checkform(this)"></td> </tr> </table> </form> <!- content ends here --> </td> </tr> </table> <?php require("footer.php"); ?> </body> </html>
Simpan