noel-kreiss

Untitled

May 5th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4. //mencantumkan file.php yang melakukan koneksi ke server
  5. include "konfig.koneksi.php";
  6. ?>
  7. <!DOCTYPE html >
  8. <html>
  9. <head>
  10. <meta charset="utf-8" />
  11. <title>Sistem Informasi Dosen</title>
  12. <!--memanggil Bootstrap-->
  13. <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
  14. <link rel="stylesheet" type="text/css" href="css/bootstrap-theme.css" />
  15.  
  16. <!--Memanggil custom CSS-->
  17. <link rel="stylesheet" type="text/css" href="css/style-sidebar.css" />
  18. <!-- HTML5 shim dan respond.js IE8 support HTML5 -->
  19. <!--Warning: Respond.js tidak bekerja didalam file -->
  20. <!-- [if lt IE 9]>
  21. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  22. <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  23. <![endif]-->
  24.  
  25. </head>
  26. <body>
  27. <!--modal header-->
  28. <div class="modal-header">
  29. <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> &times; </button>
  30. <h4 class="modal-title">Status Informasi Dosen</h4>
  31. </div>
  32. <!--modal body-->
  33. <div class="modal-body">
  34. <?php
  35. $tampil=mysql_query("select tb_dosen.nip, tb_dosen.nama, tb_pendidikan.bidang_ilmu from tb_dosen, tb_pendidikan where tb_dosen.nip=tb_pendidikan.nip, tb_dosen.nip='$_GET[id]'"); --->query error
  36. $hasil=mysql_fetch_array($tampil) or die ("Query Gagal ".mysql_error());
  37.  
  38.  
  39.  
  40. ?>
  41. <table class="table table-responsive">
  42.  
  43. <tr>
  44. <td><label for="nip">N.I.P</label></td>
  45. <td><input type="text" id="nip" name="nip" class="form-control" value="<?php echo $hasil['nip']; ?>" readonly>
  46. </tr>
  47. <tr>
  48. <td><label for="nidn">N.I.D.N</label></td>
  49. <td><input type="text" id="nidn" name="nidn" class="form-control" value="<?php echo $hasil['nama']; ?>" readonly></td>
  50. </tr>
  51. <tr>
  52. <td><label for="nidn">ilmu</label></td>
  53. <td><input type="text" class="form-control" value="<?php echo $hasil['tb_penddidikan.bidang_ilmu']; ?>" readonly></td>
  54. </tr>
  55. </table>
  56. </div>
  57.  
  58. <!--memanggil javascript-->
  59. <!--jQuery (penting untuk Bootstrap javascript plugin-->
  60. <script src="js/jquery.min.js"></script>
  61. <script src="js/bootstrap.min.js"></script>
  62. </body>
  63.  
  64.  
  65. </html>
Advertisement
Add Comment
Please, Sign In to add comment