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:
myprofile2.php
<?php require("header_leftnav.inc.php"); include_once("../inc/lang.php"); ?> <td valign="top"> <!- content starts here --> <script type="text/JavaScript"> <!-- function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_validateForm() { //v4.0 var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]); if (val) { nm=val.name; if ((val=val.value)!="") { if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@'); if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n'; } else if (test!='R') { num = parseFloat(val); if (isNaN(val)) errors+='- '+nm+' must contain a number.\n'; if (test.indexOf('inRange') != -1) { p=test.indexOf(':'); min=test.substring(8,p); max=test.substring(p+1); if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n'; } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; } } if (errors) alert('The following error(s) occurred:\n'+errors); document.MM_returnValue = (errors == ''); } //--> </script> <script language="javascript" type="text/javascript"> function checkform (form) { if (document.form.image.value == "") { alert( "Please attach a picture" ); document.form.image.focus(); return false ; } if (document.form.gender.value == "") { alert( "Please select your gender" ); document.form.gender.focus(); return false ; } if (document.form.marital_status.value == "") { alert( "Please select your Marital Status" ); document.form.marital_status.focus(); return false ; } if (document.form.date_day.value == "") { alert( "Please select your Day of Birth" ); document.form.date_day.focus(); return false ; } if (document.form.date_month.value == "") { alert( "Please select your Month of Birth" ); document.form.date_month.focus(); return false ; } if (document.form.date_year.value == "") { alert( "Please select your Year of Birth" ); document.form.date_year.focus(); return false ; } if (document.form.semester.value == "") { alert( "Please select a Semester" ); document.form.semester.focus(); return false ; } if (document.form.level_id.value == "") { alert( "Please select your Level" ); document.form.level_id.focus(); return false ; } if (document.form.programme_id.value == "") { alert( "Please select your Programme" ); document.form.programme_id.focus(); return false ; } if (document.form.faculty_id.value == "") { alert( "Please select your Faculty/School" ); document.form.faculty_id.focus(); return false ; } if (document.form.department_id.value == "") { alert( "Please select your Department" ); document.form.department_id.focus(); return false ; } // return < aheref } </script> <? require("pic.php"); ?> <table width="90%" border="0" align="center" cellspacing="0" cellpadding="5" 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="5" 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> <? } ?> <? $query1 = "SELECT * FROM acceptance WHERE acpt_email = '$mylog_email' LIMIT 1"; $result1 = mysql_query($query1); $num1 = mysql_num_rows($result1); $row1 = mysql_fetch_array($result1); $acpt_id = $row1["acpt_id"]; $acpt_surname = $row1["acpt_surname"]; $acpt_firstname = $row1["acpt_firstname"]; $acpt_othernames = $row1["acpt_othernames"]; $acpt_regid = $row1["acpt_regid"]; $acpt_prg = $row1["acpt_prg"]; $acpt_fac = $row1["acpt_fac"]; $acpt_dpt = $row1["acpt_dpt"]; $acpt_surname = stripslashes($acpt_surname); $acpt_othernames = stripslashes($acpt_othernames); $acpt_firstname = stripslashes($acpt_firstname); ?> <form action="update_profile.php" method="post" enctype="multipart/form-data" name="form" id="form" onSubmit="MM_validateForm('surname','','R','firstname','','R','place_of_birth','','R','home_town','','R','local_gov','','R','state_of_origin','','R','nationality','','R','student_email','','RisEmail','parents_name','','R','next_of_kin','','R','matric_no','','R','contact_address','','R','student_homeaddress','','R','nok_address','','R');return document.MM_returnValue"> <input name="std_id" type="hidden" id="std_id" value="<? echo $std_id ?>"> <input name="admission_no" type="hidden" id="admission_no" value="<? echo $admission_no ?>"> <table width="90%" border="0" align="center" cellpadding="5" 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>Add Your Profile</u></b> (* fields are compulsory)</td> </tr> <? if ($surname) { $surname = $surname; } else { $surname = $acpt_surname; } if ($firstname) { $firstname = $firstname; } else { $firstname = $acpt_firstname; } if ($othernames) { $othernames = $othernames; } else { $othernames = $acpt_othernames; } ?> <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"> * (Passport must be less than 100kb and in .jpg format) <? } ?></td> </tr> <tr> <td>Gender</td> <td><select name="gender" id="gender"> <option value="">Select</option> <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="">Select</option> <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"> <option value="">..</option> <?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="">..</option> <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"> <option value="">..</option> <?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> <? if ($matric_no) { $matric_no = $matric_no; } else { $matric_no = $acpt_regid; } ?> <tr> <td>Student's Payment Registration No</td> <td><? echo $matric_no ?></td> </tr> <tr> <td>Session</td> <td> <select name="yearsession" id="yearsession"> <option value="">Select</option> <?php $tillyear = 2003; for ($year = date(Y); $year >= $tillyear; $year--) { ?> <option value="<? echo $year ?>" <? if ($year == date("Y")-1) {echo "selected"; } ?>><? echo $year ?>/<? echo $year+1 ?></option> <? } ?> </select> * </td> </tr> <tr> <td>Semester</td> <td><select name="semester" id="semester"> <option value="">Select</option> <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"> <option value="">Select</option> <? $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> <? if ($stdprogramme_id) { $stdprogramme_id = $stdprogramme_id; } else { $stdprogramme_id = $acpt_prg; } if ($stdfaculty_id) { $stdfaculty_id = $stdfaculty_id; } else { $stdfaculty_id = $acpt_fac; } if ($stddepartment_id) { $stddepartment_id = $stddepartment_id; } else { $stddepartment_id = $acpt_dpt; } ?> <tr> <td>Programme</td> <td> <select name="programme_id" id="programme_id"> <option value="">Select</option> <? $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 ?>" <? if ($stdprogramme_id == $programme_id) { echo "selected"; } ?>><? echo $programme_name ?></option> <? } ?> </select> * </td> </tr> <tr> <td>Faculty/School </td> <td> <select name="faculty_id" id="faculty_id"> <option value="">Select</option> <? $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 ?>" <? if ($stdfaculty_id == $faculties_id) { echo "selected"; } ?>><? echo $faculties_name ?></option> <? } ?> </select> * </td> </tr> <tr> <td>Department</td> <td> <select name="department_id" id="department_id"> <option value="">Select</option> <? $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 ?>" <? if ($stddepartment_id == $departments_id) { echo "selected"; } ?>><? echo $departments_name ?></option> <? } ?> </select> * </td> </tr> <tr> <td> </td> <td>(Please note that you can not make any change once you add your profile, so please cross check your inputs).<br><input type="submit" name="submit" value="Update Profile" onClick="return checkform(this)"></td> </tr> </table> </form> <!- content ends here --> </td> </tr> </table> <?php require("footer.php"); ?> </body> </html>
Simpan