Server IP : 103.6.199.200 / Your IP : 18.227.48.131 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/feenixmy/kunci.feenix.my/wwwroot/ |
Upload File : |
<?php include "h.php"; //pinjam if(@$_SESSION['KBILIK']!=NULL && @$_GET['idb']==NULL && @$_GET['idm']==NULL){ echo "<center><strong><div style='border: 1px solid rgb(70, 70, 0); padding: 10px; background-color: rgb(235, 235, 214); margin: 10px;'><font color='BLUE'><br>".$_SESSION['STAF']."</font> <font color='#000000'>telah mengambil kunci bilik</font> <font color='BLUE'>".$_SESSION['BILIK']." (".$_SESSION['KBILIK'].")<br></font><br></div></strong></center><br><br><br>";} if(@$_SESSION['infoPINJAM']!=NULL && @$_GET['idb']==NULL && @$_GET['idm']==NULL){ echo "<font color='#FFFFFF'>".@$_SESSION['nopinPINJAM']."</font><center><strong><div style='border: 1px solid rgb(70, 70, 0); padding: 10px; background-color: rgb(235, 235, 214); margin: 10px;'><font color='RED'><br>".@$_SESSION['infoPINJAM']."<br></font><br></div></strong></center><br><br><br>";} //pulang if(isset($_POST['fpul'])){ $h=mysqli_query($paut,"SELECT * FROM nms WHERE ids='".@$_SESSION['idmids']."'");while($h1=mysqli_fetch_array($h)){ if($h1['nopin']==$_POST['nopin2']){ $fpul=mysqli_query($paut,"UPDATE pnj SET Statp='1', dp='".date("d")."', mp='".date("M")."', yp='".date("Y")."', tp='".date("h:i A")."', tsp='".date("d M Y h:i A")."' WHERE id='".$_SESSION['idmid']."'"); $uW=mysqli_query($paut,"UPDATE bil SET Stat='0' WHERE idbil='".$_SESSION['idmidbil']."'"); echo "<center><strong><div style='border: 1px solid rgb(70, 70, 0); padding: 10px; background-color: rgb(235, 235, 214); margin: 10px;'><font color='GREEN'><br>".$_SESSION['idmNms']."</font> <font color='#000000'>telah MEMULANGKAN kunci bilik</font> <font color='GREEN'>".$_SESSION['idmNm']." (".$_SESSION['idmKod'].")<br></font><br>"; echo"</div></strong></center><br><br><br>"; } else{ echo "<font color='#FFFFFF'>".$h1['nopin']."</font><center><strong><div style='border: 1px solid rgb(70, 70, 0); padding: 10px; background-color: rgb(235, 235, 214); top: 0px;'><font color='RED'><br>NOMBOR PIN yang anda masukkan SALAH. Cuba lagi.<br></font><br></div></strong></center><br><br><br>";} } }else{echo"";} echo"<br>"; if (@$_GET['idb']!=NULL && @$_SESSION['UserID']){?> <div class="shrink-form" style='border: 1px solid rgb(70, 70, 0); padding: 10px; background-color: rgb(235, 235, 214); margin: 5px;'> <p align='center'><strong><U>MAKLUMAT PEMINJAMAN KUNCI</U></strong></p> <form id="bpinjam" name="form1" method="post" action="GAd.php"> <p> <b><font color='blue'> <?php date_default_timezone_set("Asia/Kuala_Lumpur");echo date("d M Y h:i A");?> </font></b> </p> <p> <select class="slc-carian2" name='bil' size='1'> <?php $f=mysqli_query($paut,"SELECT * FROM bil WHERE idbil=".$_GET['idb']."")or die("FAILED!!!");while($f1=mysqli_fetch_array($f)){?> <option value="<?php echo $f1['idbil'];?>" <?php if (@$_POST['bil']==$f1['idbil']){ echo "selected";}else {echo"";}?>><?php echo $f1['Kod']." : ".$f1['Nm']."</font></B>";?></option> <?php }?> </select> </p> <p> <select class="slc-carian2" name='nms' size='1'> <?php $j=mysqli_query($paut,"SELECT * FROM nms WHERE Stat=0 ORDER BY Nms ASC")or die("FAILED!!!");while($j1=mysqli_fetch_array($j)){?> <option value="<?php echo $j1['ids'];?>" <?php if (@$_POST['nms']==$j1['ids']){ echo "selected";}else {echo"";}?>><?php echo $j1['Nms'];?></option> <?php }?> </select> </p> <p> <input class="carian2" name='nopin' type='password' size='40' maxlength='30' placeholder="* Masukkan KATA LALUAN anda.." /> </p> <br> <div align="center"> <table width="34" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="17"><div align="center"><a href="<?php echo 'RakAd.php?idb=NULL';?>" onClick="javascript:return confirm(\'Adakah anda hendak meminjam kunci?\')"><center><input class="btn-carian" type='submit' name='fpinj' value='Peminjaman' /></center></a></div></td> </tr> </table> </div> </form> </div> <br><br> <?php }elseif (@$_GET['idm']!=NULL && @$_SESSION['UserID']){?> <div style='border: 1px solid rgb(70, 70, 0); padding: 10px; background-color: rgb(235, 235, 214); margin: 5px;'> <p align='center'><U><strong>MAKLUMAT PEMULANGAN KUNCI</strong></U></p> <form id="form1" name="form1" method="post" action="RakAd.php"> <p> <b><font color='GREEN'> <?php date_default_timezone_set("Asia/Kuala_Lumpur");echo date("d M Y h:i A");?> </font></b> </p> <p> <?php $f=mysqli_query($paut,"SELECT * FROM bil WHERE idbil=".$_GET['idm']."")or die("FAILED!!!");while($f1=mysqli_fetch_array($f)){ $_SESSION['idmidbil']=$f1['idbil'];$_SESSION['idmKod']=$f1['Kod'];$_SESSION['idmNm']=$f1['Nm']; echo "<B><font color='GREEN'>".$f1['Kod']." : ".$f1['Nm']."</font></B>";}?> </p> <p><span class="style24"> <?php $j=mysqli_query($paut,"SELECT * FROM pnj, nms WHERE pnj.idbil=".$_GET['idm']." AND pnj.Statp='0' AND pnj.ids=nms.ids")or die("FAILED!!!"); while($j1=mysqli_fetch_array($j)){ $_SESSION['idmid']=$j1['id'];$_SESSION['idmids']=$j1['ids'];$_SESSION['idmNms']=$j1['Nms']; echo "<B><font color='GREEN'>".$j1['Nms']."<br></font></B>";}?> </span></p> <p> <input class="carian2" name="nopin2" type="password" size="40" maxlength="30" placeholder="Masukkan KATA LALUAN anda.." /> </p> <br /> <div align="center"> <table width="34" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="17"><div align="center"><a href="<?php echo 'RakAd.php?idm=NULL';?>"><center><input class="btn-carian" type='submit' name='fpul' value='Pemulangan' /></center></a></div></td> </tr> </table> </div></form> </div> <br><br> <?php }else{echo"";}?> <table align="center" width='<?php if(@$_SESSION['mobile']!=NULL){echo"100%";}else{echo"464";}?>' height='57' border='0' cellpadding='5' cellspacing='0'> <tr valign='middle'> <td align='center' width='50' height='19' bgcolor='#FFFFFF'><strong><font color="#000">BLOK A<br />TINGKAT 1</font></strong></td> <td width='50' align='center'><strong><font size="3" color="#000">BLOK A<br />TINGKAT 2</font></strong></td> <td width='50' align='center'><strong><font size="3" color="#000">BLOK C</font></strong></td> <td width='50' align='center'><strong><font size="3" color="#000">BLOK D</font></strong></td> <td width='50' align='center'><strong><font size="3" color="#000">BLOK E<br />TINGKAT 1</font></strong></td> <td width='50' align='center'><strong><font size="3" color="#000">BLOK E<br />TINGKAT 2 & 3</font></strong></td> <td width='50' align='center'><strong><font size="3" color="#000">SURAU</font></strong></td> </tr> <tr> <td align="center" valign="top"><?php include "RakAda1.php";?></td> <td align="center" valign="top"><?php include "RakAda2.php";?></td> <td align="center" valign="top"><?php include "RakAdc.php";?></td> <td align="center" valign="top"><?php include "RakAdd.php";?></td> <td align="center" valign="top"><?php include "RakAde1.php";?></td> <td align="center" valign="top"><?php include "RakAde2.3.php";?></td> <td align="center" valign="top"><?php include "RakAdsurau.php";?></td> </tr> <tr> <td height="19" align="center" valign="top" bgcolor="#FFFFFF"> </td> <td align="center" valign="top"> </td> <td align="center" valign="top"> </td> <td align="center" valign="top"> </td> <td align="center" valign="top"> </td> <td align="center" valign="top"> </td> <td align="center" valign="top"> </td> </tr> </table> <?php //echo "sesisemasa--> ".@$_SESSION['sesisemasa'];?> <br /> <?php //if(@$_SESSION['sesisemasa']==NULL){echo "sesisemsa0";}else{echo "sesisemasa1";}?> <?php include"f.php";?> <style> img { max-width: 100%; } p{ color: #000; } .carian2{ max-width: 100% } .slc-carian2{ max-width: 100% } </style>