SHARE
TWEET

Untitled

a guest Jun 20th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include('pengesahan.php'); //untuk keselamatan capaian pada laman ini
  3. require('config.php'); //untuk sambungan ke p.data
  4. ?>
  5. <html>
  6. <head>
  7. <title>SISTEM PENGURUSAN PINJAMAN SMKTS</title>
  8. </head>
  9. <body>
  10. <h2>DAFTAR PINJAMAN PERALATAN BILIK MASAK BARU</h2>
  11. <fieldset>
  12.  
  13. <!-- form daftar pinjaman peralatan -->
  14. <form action="import_gambar.php" method="post" enctype="multipart/from-data"
  15. name="addroom">
  16.  
  17. IDPINJAMAN:<br />
  18.  <input name="idpinjaman" type="text" style="height:20px;
  19. width:250px" placeholder="IDPINJAMAN" required/>
  20.  <br />
  21.  
  22. <label>Pengguna: <br />
  23. </label><select name="idmurid" required>
  24. <?php
  25.     $data1=mysqli_query($sambung,"select * from murid");
  26.     while ($info1=mysqli_fetch_array($data1))
  27.     {
  28. echo "<option hidden selected> -- pilih murid -- </option>";
  29. echo "<option value='$info1[idmurid]'>$info1[namamurid]</option>";
  30.     }
  31. ?>
  32. </select></td>
  33.  
  34. <!-- daftar murid baru dengan buka tetingkap baru-->
  35. <a href="#" onClick="window.open
  36. ('daftar_murid.php','murid','resizable,height=400,width=400'); return
  37. false;">Daftar Murid Baru</a>
  38.  <br />
  39.  
  40. Tarikh Pinjam:<br />
  41.  <input name="tarikhpinjam" type="text" style="height:20px; width:250px"
  42. placeholder="TARIKH MULA PINJAM PERALATAN" required/>
  43.  <br />
  44.  
  45.  Tarikh Pulang:<br />
  46.  <input name="tarikhpulang" type="text" style="height:20px; width:250px"
  47. placeholder="TARIKH AKHIR PINJAM PERALATAN" required/>
  48.  <br />
  49.  
  50.  Peralatan:<br />
  51. </lable><select name="idperalatan" required>
  52. <?php
  53.     $data2=mysqli_query($sambung,"select * from peralatan");
  54.     while ($info2=mysqli_fetch_array($data2))
  55.     {
  56. echo "<option hidden selected> -- pilih peralatan -- </option>";
  57. echo "<option value='$info2[idperalatan]'>$info2[namaperalatan] </option>";
  58.     }
  59. ?>
  60. </select></td>
  61.  
  62. <!-- daftar peralatan  baru dengan tetingkap baru-->
  63. <a href="#" onClick="window.open
  64. ('daftar_peralatan.php','peralatan','size,height=400,width=400'); return
  65. false;">Daftar Peralatan Baru</a>
  66.   <br />
  67.  
  68. Pendaftar:<?php echo $_SESSION["idpengguna"];?>
  69. <input input type="hidden" name="idpendaftar" value=<?php echo $_SESSION
  70. ["idpengguna"];?> />
  71. <br /><br />
  72.  
  73. <input type="submit" name="Submit" value="Daftar" id="button1" />
  74. </form>
  75. <input onClick="location.href='page_pendaftar.php'" type="submit" value="Menu utama">
  76.  </fieldset>
  77.  </body>
  78. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top