Advertisement
H4nk

PRINT

Feb 13th, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.44 KB | None | 0 0
  1. <!-- start page-heading -->
  2. <div id="page-heading">
  3. <h1>Laporan Penilaian</h1>
  4. </div>
  5. <!-- end page-heading -->
  6.  
  7. <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
  8. <tr>
  9. <th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
  10. <th class="topleft"></th>
  11. <td id="tbl-border-top">&nbsp;</td>
  12. <th class="topright"></th>
  13. <th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
  14. </tr>
  15. <tr>
  16. <td id="tbl-border-left"></td>
  17. <td>
  18. <!-- start content-table-inner ...................................................................... START -->
  19. <div id="content-table-inner">
  20.  
  21. <!-- start table-content -->
  22. <div id="table-content">
  23.  
  24. <form action="?page=laporan_penilaian_admin" method="post">
  25. <table border="0" width="100%" cellpadding="0" cellspacing="0">
  26. <tr valign="top">
  27. <td><!-- start step-holder -->
  28. <!-- end step-holder -->
  29. <!-- start id-form -->
  30. <table border="0" cellpadding="0" cellspacing="0" id="id-form">
  31. <tr>
  32. <th valign="top">Guru</th>
  33. <td><select name="id_guru" class="styledselect_form_1">
  34. <option value="0">-- Pilih Guru --</option>
  35. <?php
  36. $guru=mysql_query("select * from data_guru order by nama_guru asc");
  37. while($row1=mysql_fetch_array($guru)){
  38. ?>
  39. <option value="<?php echo $row1['id_guru'];?>"><?php echo $row1['nama_guru'];?> [ <?php echo $row1['nip'];?> ] </option>
  40. <?php
  41. }
  42. ?>
  43.  
  44. </select>
  45. </td>
  46. <td></td>
  47. </tr>
  48.  
  49. <tr>
  50. <th valign="top">Siswa</th>
  51. <td><select name="id_siswa" class="styledselect_form_1">
  52. <option value="0">-- Pilih Siswa --</option>
  53. <?php
  54. $siswa=mysql_query("select * from data_siswa order by nama_siswa asc");
  55. while($row4=mysql_fetch_array($siswa)){
  56. ?>
  57. <option value="<?php echo $row4['id_siswa'];?>"><?php echo $row4['nama_siswa'];?> [ <?php echo $row4['nis'];?> ] </option>
  58. <?php
  59. }
  60. ?>
  61.  
  62. </select>
  63. </td>
  64. <td></td>
  65. </tr>
  66.  
  67.  
  68. <tr>
  69. <th valign="top">Pelajaran</th>
  70. <td><select name="id_pelajaran" class="styledselect_form_1">
  71. <option value="0">-- Pilih Pelajaran --</option>
  72. <?php
  73. $pelajaran=mysql_query("select * from setup_pelajaran order by nama_pelajaran asc");
  74. while($row2=mysql_fetch_array($pelajaran)){
  75. ?>
  76. <option value="<?php echo $row2['id_pelajaran'];?>"><?php echo $row2['nama_pelajaran'];?></option>
  77. <?php
  78. }
  79. ?>
  80.  
  81. </select>
  82. </td>
  83. <td></td>
  84. </tr>
  85.  
  86. <tr>
  87. <th valign="top">Kelas</th>
  88. <td><select name="id_kelas" class="styledselect_form_1">
  89. <option value="0">-- Pilih Kelas --</option>
  90. <?php
  91. $kelas=mysql_query("select * from setup_kelas order by nama_kelas asc");
  92. while($row3=mysql_fetch_array($kelas)){
  93. ?>
  94. <option value="<?php echo $row3['id_kelas'];?>"><?php echo $row3['nama_kelas'];?></option>
  95. <?php
  96. }
  97. ?>
  98.  
  99. </select>
  100. </td>
  101. <td></td>
  102. </tr>
  103.  
  104. <tr>
  105. <th>&nbsp;</th>
  106. <td valign="top"><input type="submit" name="submit" value="Filter Data" class="form-filter" />
  107. </td>
  108. <td></td>
  109. </tr>
  110. </table>
  111. <div>
  112. <a type="submit" href="?page=laporan_penilaian_admin" class="print" rel="contentprint"></a>
  113.  
  114. <a href="" class="balik" ></a>
  115.  
  116. </div>
  117.  
  118. </html>
  119.  
  120. <!-- end id-form -->
  121. </td>
  122. <td><!-- start related-activities -->
  123. </td>
  124. </tr>
  125. <tr>
  126. <td><img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
  127. <td></td>
  128. </tr>
  129. </table>
  130. </form>
  131.  
  132.  
  133. <div id="contentprint">
  134. <!-- start product-table ..................................................................................... -->
  135. <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
  136. <tr>
  137. <th width="2%" class="table-header-check"><a id="toggle-all" ></a> </th>
  138. <th width="4%" class="table-header-repeat line-left minwidth-1"><a href="">Nomor</a></th>
  139. <th width="12%" class="table-header-repeat line-left minwidth-1"><a href="">Nama Siswa</a></th>
  140. <th width="10%" class="table-header-repeat line-left minwidth-1"><a href="">NIS</a></th>
  141. <th width="16%" class="table-header-repeat line-left minwidth-1"><a href="">Nama Guru</a></th>
  142. <th width="11%" class="table-header-repeat line-left minwidth-1"><a href="">NIP</a></th>
  143. <th width="10%" class="table-header-repeat line-left"><a href="">Kelas</a></th>
  144. <th width="26%" class="table-header-repeat line-left"><a href="">Mata Pelajaran</a></th>
  145. <th width="9%" class="table-header-options line-left"><a href="">Nilai</a></th>
  146. </tr>
  147.  
  148. <?php
  149.  
  150. if(isset($_POST['submit'])){
  151.  
  152. $id_guru=htmlentities($_POST['id_guru']);
  153. $id_siswa=htmlentities($_POST['id_siswa']);
  154. $id_pelajaran=htmlentities($_POST['id_pelajaran']);
  155. $id_kelas=htmlentities($_POST['id_kelas']);
  156.  
  157.  
  158. if($id_guru!=="0"){
  159. $filter_guru="and nilai.id_guru='$id_guru'";
  160. }else{
  161. $filter_guru="";
  162. }
  163.  
  164. if($id_siswa!=="0"){
  165. $filter_siswa="and nilai.id_siswa='$id_siswa'";
  166. }else{
  167. $filter_siswa="";
  168. }
  169.  
  170. if($id_pelajaran!=="0"){
  171. $filter_pelajaran="and nilai.id_pelajaran='$id_pelajaran'";
  172. }else{
  173. $filter_pelajaran="";
  174. }
  175.  
  176. if($id_kelas!=="0"){
  177. $filter_kelas="and nilai.id_kelas='$id_kelas'";
  178. }else{
  179. $filter_kelas="";
  180. }
  181.  
  182. }else{
  183. unset($_POST['submit']);
  184. }
  185.  
  186.  
  187. $view=mysql_query("SELECT nama_siswa, nis, nama_guru, nip, nama_kelas, nama_pelajaran, nilai FROM tbl_nilai nilai, data_siswa siswa, setup_pelajaran pelajaran, setup_kelas kelas, data_guru guru WHERE nilai.id_siswa=siswa.id_siswa and nilai.id_kelas=kelas.id_kelas and nilai.id_pelajaran=pelajaran.id_pelajaran and nilai.id_guru=guru.id_guru $filter_guru $filter_siswa $filter_pelajaran $filter_kelas order by siswa.nama_siswa asc");
  188.  
  189. $i = 1;
  190. while($row=mysql_fetch_array($view)){
  191. ?>
  192. <tr>
  193. <td><input type="checkbox" /></td>
  194. <td><?php echo $i;?></td>
  195. <td><?php echo $row['nama_siswa'];?></td>
  196. <td><?php echo $row['nis'];?></td>
  197. <td><?php echo $row['nama_guru'];?></td>
  198. <td><?php echo $row['nip'];?></td>
  199. <td><?php echo $row['nama_kelas'];?></td>
  200. <td><?php echo $row['nama_pelajaran'];?></td>
  201. <td><?php echo $row['nilai'];?></td>
  202. </tr>
  203. <?php
  204. $i++;
  205. }
  206. $jumSis = $i-1;
  207. ?>
  208.  
  209.  
  210.  
  211. </table>
  212. </div>
  213. <!-- end product-table................................... -->
  214.  
  215. </div>
  216. <!-- end content-table -->
  217.  
  218. <div class="clear"></div>
  219.  
  220. </div>
  221. <!-- end content-table-inner ............................................END -->
  222. </td>
  223. <td id="tbl-border-right"></td>
  224. </tr>
  225. <tr>
  226. <th class="sized bottomleft"></th>
  227. <td id="tbl-border-bottom">&nbsp;</td>
  228. <th class="sized bottomright"></th>
  229. </tr>
  230. </table>
  231. <div class="clear">&nbsp;</div>
  232.  
  233. <!-- end content -->
  234. <div class="clear">&nbsp;</div>
  235. </div>
  236. <!-- end content-outer........................................................END -->
  237.  
  238. <div class="clear">&nbsp;</div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement