mrs_cl4y

Edit_!ia01.php

May 26th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4.  
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6.  
  7. <title>Pengelola Nilai Mahasiswa</title>
  8.  
  9. <link href="css/tooplate_style.css" rel="stylesheet" type="text/css" />
  10.  
  11. <script type="text/javascript" src="js/swfobject.js"></script>
  12.  
  13. <script type="text/javascript">
  14.  
  15. var flashvars = {};
  16.  
  17. flashvars.xml_file = "photo_list.xml";
  18.  
  19. var params = {};
  20.  
  21. params.wmode = "transparent";
  22.  
  23. var attributes = {};
  24.  
  25. attributes.id = "slider";
  26.  
  27. swfobject.embedSWF("flash_slider.swf", "flash_grid_slider", "780", "210", "9.0.0", false, flashvars, params, attributes);
  28.  
  29. </script>
  30.  
  31. </head>
  32.  
  33. <body>
  34.  
  35. <div id="tooplate_wrapper">
  36.  
  37. <div id="tooplate_header">
  38.  
  39. <div id="tooplate_menu">
  40.  
  41. <ul>
  42.  
  43. <li><a class="current">Saya Dosen</a></li>
  44.  
  45. <li><a href="index.html" class="current">Logout</a></li>
  46.  
  47. </ul>
  48.  
  49. </div> <!-- end of tooplate_menu -->
  50.  
  51. </div> <!-- end of forever header -->
  52.  
  53. <div id="tooplate_middle">
  54.  
  55. <div id="flash_grid_slider">
  56.  
  57. <a rel="nofollow" href="http://www.adobe.com/go/getflashplayer">
  58.  
  59. <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
  60.  
  61. </a>
  62.  
  63. </div>
  64.  
  65. </div> <!-- end of middle -->
  66.  
  67. <div id="tooplate_content"><span class="content_top"></span>
  68.  
  69. <!-- dari sini logika loginnya-->
  70.  
  71. <div class="cleaner h40"></div>
  72.  
  73. <form action="" method="get">
  74.  
  75. <center>
  76.  
  77. <h1>Edit Data Mahasiswa</h1>
  78.  
  79. <table border="1" style="border-collapse:collapse" width="100%">
  80.  
  81. <tr style="background:orange;">
  82.  
  83. <!-- di gunakan untuk membuat label nama fieldnya-->
  84.  
  85. <th>NPM</th>
  86.  
  87. <th>Nama</th>
  88.  
  89. <th>Kelas</th>
  90.  
  91. <th>Absen</th>
  92.  
  93. <th>Tugas 1</th>
  94.  
  95. <th>Tugas 2</th>
  96.  
  97. <th>Tugas 3</th>
  98.  
  99. <th>Nilai Ujian</th>
  100.  
  101. <th>Grade</th>
  102.  
  103. </tr>
  104.  
  105.  
  106. <?php
  107.  
  108. include "koneksi.php";
  109.  
  110. $sql="SELECT * FROM mhsnilai where kelas<='1IA01' order by nama";
  111.  
  112. $result=mysqli_query($conn,$sql) or die(mysqli_error());
  113.  
  114. while ($row=mysqli_fetch_array($result)) {
  115.  
  116. extract($row);
  117.  
  118. ?>
  119.  
  120. <tr>
  121.  
  122. <td><?php echo $npm ?></td>
  123.  
  124. <td><?php echo $nama ?></td>
  125.  
  126. <td><?php echo $kelas ?></td>
  127.  
  128. <td><center><input name='absen' placeholder="absen" size='4' maxlength='4' type=text value= '<?php echo $absen ?>'></center></td>
  129.  
  130. <td><center><input name='tugas1' placeholder="tugas1" size='4' maxlength='4' type=text value='<?php echo $tugas1 ?>'></center></td>
  131.  
  132. <td><center><input name='tugas2' placeholder='tugas2' size='4' maxlength='4' type=text value='<?php echo $tugas2 ?>'></center></td>
  133.  
  134. <td><center><input name='tugas3' placeholder='tugas3' size='4' maxlength='4' type=text value='<?php echo $tugas3 ?>'></center></td>
  135.  
  136. <td><center><input name='nilai_ujian' placeholder='nilai_ujian' size='5' maxlength='5' type=text value='<?php echo $nilai_ujian?>'></center></td>
  137.  
  138. <td><center><?php echo $grade ?></center></td>
  139.  
  140. </tr>
  141.  
  142. <?php
  143.  
  144. }
  145.  
  146. ?>
  147.  
  148. </table>
  149.  
  150. </center>
  151.  
  152. </form>
  153.  
  154. <center>
  155.  
  156. <p>||<a href="update.php">Simpan</a>||</p>
  157.  
  158. </center>
  159.  
  160. <div class="cleaner"></div>
  161.  
  162. </div> <!-- end of content -->
  163.  
  164. <div id="tooplate_footer">
  165.  
  166. Copyright © 2048 <a href="#">Company Name</a>
  167.  
  168. <div class="cleaner"></div>
  169.  
  170. </div>
  171.  
  172. </div> <!-- end of wrapper -->
  173.  
  174. </body>
  175.  
  176. </html>
Advertisement
Add Comment
Please, Sign In to add comment