Server IP : 103.6.199.200 / Your IP : 18.190.153.77 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="G.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 echo $f1['Kod']." : ".$f1['Nm']."</font></B>";?></option> <?php }?> </select> </p> <p> <?php $j=mysqli_query($paut,"SELECT * FROM nms WHERE ids='".@$_SESSION['UserID']."' && Stat=0")or die("FAILED!!!");while($j1=mysqli_fetch_array($j)){ echo "<strong><font color='BLUE'>".$j1['Nms']."</font></strong>";}?> </p> <p> <input class="carian" name="TujuanPinjam" type="text" id="TujuanPinjam" size="60" maxlength="100" title="Tujuan pinjaman kunci.." /> </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 'Rak.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="Rak.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> <?php if(@$_SESSION['UserID']==$j1['ids'] || @$_SESSION['admin']!=NULL){?> <br /> <div align="center"> <table width="34" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="17"><div align="center"><a href="<?php echo 'Rak.php?idm=NULL';?>"><center> <input class="btn-carian" type='submit' name='fpul' value='Pemulangan' /> </center></a></div></td> </tr> </table> </div> <?php }else{echo "";} }?> </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 "Raka1.php";?></td> <td align="center" valign="top"><?php include "Raka2.php";?></td> <td align="center" valign="top"><?php include "Rakc.php";?></td> <td align="center" valign="top"><?php include "Rakd.php";?></td> <td align="center" valign="top"><?php include "Rake1.php";?></td> <td align="center" valign="top"><?php include "Rake2.3.php";?></td> <td align="center" valign="top"><?php include "Raksurau.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 include"f.php";?> <style> img { max-width: 100%; } p{ color: #000; } .carian2{ max-width: 100% } .slc-carian2{ max-width: 100% } </style>