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:
assign_officer.php
<? include("inc/header.php"); include("inc/fxn.php"); $branchid=$_GET['branchid']; function Get22($table,$value,$field,$output){ $sql=mysql_query("SELECT * FROM $table WHERE $field='$value'"); $row=mysql_fetch_array($sql); return $row["$output"]; } ?> <form action="" method="post"> <table border="1" cellpadding="10" cellspacing="5"> <tr> <td colspan="2"> <? if(isset($_POST['submit'])){ $officer=$_POST['officer']; $update=mysql_query("UPDATE branch SET officer_id='$officer' WHERE branchid='$branchid'"); if($update){ echo "<font color=\"#FF0000\"><h4>Officer Assigned</h4></font>"; header("refresh: 2; url=view_school.php"); } } ?> </td> </tr> <tr> <td>Branch Name</td><td><input type="text" name="name" readonly="readonly" value="<?=Get22("branch",$branchid,"branchid","branch_name")?>" /></td> </tr> <tr> <td>Select an Officer</td> <td><select name="officer"> <? $sq=mysql_query("SELECT * FROM admin_corp"); while ($rw1=mysql_fetch_array($sq)){ ?> <option value="<?=$rw1['id']?>"><?=$rw1['surname'] . " ". $rw1['othernames'] ?></option> <? } ?> </select> </td> </tr> <tr> <td colspan="2"><input type="hidden" name="branchid" value="<?=$branchid?>" /><input type="submit" name="submit" value="Assign Officer" /> </td> </tr> </table> </form> <? include("inc/footer.php"); ?>
Simpan