dotphp

nilai

Jul 6th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.78 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if(!isset($_SESSION['id_user'])){
  4.     die("Silakan <a href='../index.php'>Masuk</a> terlebih dahulu");}
  5. if($_SESSION['hak_akses']!="kepsek"){
  6.     die("Anda tidak dapat mengakses halaman ini !! Silahkan <a href='../index.php'>Masuk</a>");
  7. }
  8. ?>
  9. <html>
  10. <head><title>Sistem Informasi Penilaian Kinerja Guru</title>
  11.  
  12. </head>
  13. <body bgcolor="#CCCCCC">
  14.  
  15. <table border="0" width="80%" align="center" bgcolor="#FFFFFF">
  16. <tr>
  17.     <td colspan="2"><img src="../gambar/header.png" width="100%"></td></tr>
  18. <tr>
  19.     <td bgcolor="#005555" width="25%" valign="top">
  20.     <?php
  21.     include "../koneksi.php";
  22.     include "menu.php";
  23.     $query2 = mysqli_query($connect,"select awal, akhir from tanggal");
  24.     $result = mysqli_fetch_array($query2);
  25.     $tgl_awal = $result['awal'];
  26.     $tgl_akhir = $result['akhir'];
  27.     ?>
  28.     </td>
  29.     <td align="center" valign="middle">
  30.     <font face="Arial, Helvetica, sans-serif" style="font-size:20px; color:#005555">Beri penilaian kepada:</font><br />
  31.     <select name="guru" onChange="location=this.options[this.selectedIndex].value;">
  32.     <option disabled selected style="display:none;"></option>
  33.     <?php
  34.     $id_user = $_SESSION['id_user'];
  35.     $query = mysqli_query($connect,"select u.id_user, u.nama_lengkap, u.hak_akses from user u left join quesioner q ON u.id_user=q.id_guru AND (DATE_FORMAT(q.tgl,'%Y%m') between $tgl_awal AND $tgl_akhir) where q.id_q IS NULL AND u.id_user<>'$id_user' AND u.hak_akses='guru' order by u.nama_lengkap asc");
  36.     while($hasil = mysqli_fetch_array($query)){
  37.     ?>
  38.     <option value="penilaian2.php?id_guru=<?php echo $hasil['id_user'];?>"><?php echo $hasil['nama_lengkap'];?></option>
  39.     <?php } ?></select>
  40.     </td></tr>
  41. <tr>
  42.     <td></td>
  43.     <td align="center" style="color:#CCC"><?php include "../footer.php";?></td></tr>
  44. </table>
  45. </body>
  46. </html>
Advertisement
Add Comment
Please, Sign In to add comment