示例#1
0
function TampilkanHeaderUTS()
{
    $optprodi = GetProdiUser($_SESSION['_Login'], $_SESSION['_utsProdi']);
    $optprog = GetOption2('program', "concat(ProgramID, ' - ', Nama)", 'ProgramID', $_SESSION['_utsProg'], "KodeID='" . KodeID . "'", 'ProgramID');
    if (!empty($_SESSION['_utsTahun']) && !empty($_SESSION['_utsProdi'])) {
        JdwlEdtScript();
        $btn1 = " |\r\n      <input type=button name='HapusSemua' value='Hapus Semua Jadwal UTS' \r\n        onClick=\"javascript:JdwlDelAll('{$_SESSION['_utsTahun']}', '{$_SESSION['_utsProdi']}','{$_SESSION['_utsProg']}')\" />\r\n     ";
    }
    echo <<<SCR
  <table class=box cellspacing=1 align=center width=800>
  <form name='frmJadwalHeader' action='?' method=POST>
  <input type=hidden name='mnux' value='{$_SESSION['mnux']}' />
  <input type=hidden name='gos' value='' />
  
  <tr>
      <td class=inp>Tahun Akd:</td>
      <td class=ul1><input type=text name='_utsTahun' value='{$_SESSION['_utsTahun']}' size=5 maxlength=5 /></td>
      <td class=inp>Program:</td>
      <td class=ul1><select name='_utsProg'>{$optprog}</select></td>
      <td class=inp>Program Studi:</td>
      <td class=ul1 colspan=3><select name='_utsProdi'>{$optprodi}</select></td>
      </tr>
  <tr><td bgcolor=silver height=1 colspan=10></td></tr>
  <tr><td class=ul1 colspan=10 nowrap>
      <input type=submit name='btnKirim' value='Kirim Parameter' />
      <input type=button name='btnReset' value='Reset Parameter'
        onClick="location='?mnux={$_SESSION['mnux']}&_utsHari=&_utsKelas=&_utsMKKode=&_utsSemester='" />
      {$btn1}</td></tr>
  <tr>
      <td class=ul1 colspan=10 nowrap>
      {$btn2}
      </td>
      </tr>
  </form>
  </table>
SCR;
}
示例#2
0
function TampilkanHeaderJadwal()
{
    // Edit: Ilham
    $s = "select DISTINCT(TahunID) from tahun where KodeID='" . KodeID . "' order by TahunID DESC";
    $r = _query($s);
    $opttahun = "<option value=''></option>";
    while ($w = _fetch_array($r)) {
        $ck = $w['TahunID'] == $_SESSION['_jdwlTahun'] ? "selected" : '';
        $opttahun .= "<option value='{$w['TahunID']}' {$ck}>{$w['TahunID']}</option>";
    }
    $optprodi = GetProdiUser($_SESSION['_Login'], $_SESSION['_jdwlProdi']);
    $optprog = GetOption2('program', "concat(ProgramID, ' - ', Nama)", 'ProgramID', $_SESSION['_jdwlProg'], "KodeID='" . KodeID . "'", 'ProgramID');
    $opthr = GetOption2('hari', 'Nama', 'HariID', $_SESSION['_jdwlHari'], '', 'HariID');
    $optkelas = GetOption2('kelas', 'Nama', 'Nama', $_SESSION['_jdwlKelas'], "ProdiID='{$_SESSION['_jdwlProdi']}' AND TahunID='{$_SESSION['_jdwlTahun']}' and KodeID='" . KodeID . "'", "KelasID");
    if (!empty($_SESSION['_jdwlTahun']) && !empty($_SESSION['_jdwlProdi'])) {
        JdwlEdtScript();
        $btn1 = " |\r\n      <input type=button name='TambahJdwl' value='Tambah Jadwal' \r\n        onClick=\"javascript:JdwlEdt(1, 0)\"/>";
        //<input type=button name='HapusSemua' value='Hapus Semua'
        //  onClick=\"javascript:JdwlDelAll('$_SESSION[_jdwlTahun]', '$_SESSION[_jdwlProdi]','$_SESSION[_jdwlProg]')\" />
        // <input type=button name='btnJadwalUjian' value='Jadwal UAS'
        //   onClick=\"location='?mnux=$_SESSION[mnux]ujian&_jdwlProdi=$_SESSION[_jdwlProdi]&_jdwlProg=$_SESSION[_jdwlProg]&_jdwlTahun=$_SESSION[_jdwlTahun]&_jdwlUjian=2'\" />
        $btn2 = "\r\n      <input type=button name='Cetak' value='Cetak Jadwal' onClick=\"javascript:CetakJadwal()\" />\r\n      <input type=button name='CetakFormKRS' value='Cetak FRS' onClick=\"javascript:CetakFormulirKRS()\" />\r\n\t  <input type=button name='CetakJdwlDosen' value='Cetak Jadwal Dosen' onClick=\"javascript:CetakJadwalDosen()\" />\r\n      <input type=button name='CetakJdwlRuang' value='Cetak Jadwal Per Ruang' onClick=\"javascript:CetakJadwalRuang()\" />\r\n\t  </br>\r\n    ";
    }
    echo <<<SCR
  <table class=box cellspacing=1 align=center width=960>
  <form name='frmJadwalHeader' action='?' method=POST>
  <input type=hidden name='mnux' value='{$_SESSION['mnux']}' />
  <input type=hidden name='gos' value='' />
  
  <tr><td class=wrn width=2 rowspan=5></td>
      <td class=inp>Tahun Akd:</td>
      <td class=ul1><select name='_jdwlTahun' onChange='this.form.submit()' />{$opttahun}</select></td>
      <td class=inp>Prg. Pendidikan:</td>
      <td class=ul1><select name='_jdwlProg'>{$optprog}</select></td>
      <td class=inp>Program Studi:</td>
      <td class=ul1 colspan=3><select name='_jdwlProdi' onChange='this.form.submit()'>{$optprodi}</select></td>
      </tr>
  <tr><td class=inp>Hari:</td>
      <td class=ul1><select name='_jdwlHari'>{$opthr}</select></td>
      <td class=inp>Kelas:</td>
      <td class=ul1><select name='_jdwlKelas' value='{$_SESSION['_jdwlKelas']}'>{$optkelas}</select></td>
      <td class=inp>Filter MK:</td>
      <td class=ul1><input type=text name='_jdwlMKKode' value='{$_SESSION['_jdwlMKKode']}' size=10 maxlength=50 /></td>
      <td class=inp>Semester MK:</td>
      <td class=ul1>
        <input type=text name='_jdwlSemester' value='{$_SESSION['_jdwlSemester']}' size=3 maxlength=10 />
        </td>
      </tr>
  <tr><td bgcolor=silver height=1 colspan=10></td></tr>
  <tr><td class=ul1 colspan=10 nowrap>
      <input type=submit name='btnKirim' value='Kirim Parameter' />
      <input type=button name='btnReset' value='Reset Parameter'
        onClick="location='?mnux={$_SESSION['mnux']}&_jdwlHari=&_jdwlKelas=&_jdwlMKKode=&_jdwlSemester='" />
      {$btn1}</td></tr>
  <tr>
      <td class=ul1 colspan=10 nowrap>
      {$btn2}
      </td>
      </tr>
  </form>
  </table>
SCR;
}