Esempio n. 1
0
function TampilkanHeader($gels, $gel)
{
    $optfrm = GetOption2('pmbformulir', 'Nama', 'Nama', $_SESSION['_pmbFrmID'], "KodeID='" . KodeID . "'", 'PMBFormulirID');
    $optprg = GetOption2('program', "concat(ProgramID, ' - ', Nama)", 'ProgramID', $_SESSION['_pmbPrg'], "KodeID='" . KodeID . "'", 'ProgramID');
    $opturut = GetUrutanPMB();
    echo "<table class=box cellspacing=1 align=center>\r\n  <form action='?' method=POST>\r\n  <input type=hidden name='mnux' value='{$_SESSION['mnux']}' />\r\n  <input type=hidden name='gos' value='' />\r\n  <input type=hidden name='_pmbPage' value='0' />\r\n  \r\n  <tr>\r\n      <td class=inp>Cari Nama:</td>\r\n      <td class=ul1><input type=text name='_pmbNama' value='{$_SESSION['_pmbNama']}' size=20 maxlength=30 /></td>\r\n      <td class=inp width=100>Filter Formulir:</td>\r\n      <td class=ul1>\r\n        <select name='_pmbFrmID'>{$optfrm}</select>\r\n      </td>\r\n      </tr>\r\n  <tr>\r\n      <td class=inp>Cari No. PMB:</td>\r\n      <td class=ul1><input type=text name='_pmbNomer' value='{$_SESSION['_pmbNomer']}' size=20 maxlength=30 /></td>\r\n      <td class=inp>Urutkan:</td>\r\n      <td class=ul1><select name='_pmbUrut'>{$opturut}</select></td>\r\n      </tr>\r\n  <tr>\r\n      <td class=inp>Program:</td>\r\n      <td class=ul1><select name='_pmbPrg'>{$optprg}</select></td>\r\n      <td class=ul1 colspan=2 align=center>\r\n      <input type=submit name='Submit' value='Submit' />\r\n      <input type=button name='Reset' value='Reset'\r\n        onClick=\"location='?mnux={$_SESSION['mnux']}&gos=&_pmbPage=0&_pmbNama=&_pmbNomer='\" />\r\n      </td>\r\n  </form>\r\n  </table>";
}
Esempio n. 2
0
function TampilkanHeader($gels, $gel)
{
    //IsiFormulirScript($gel);
    //CetakKartuScript();
    EditNilaiScript();
    $optfrm = GetOption2('pmbformulir', 'Nama', 'Nama', $_SESSION['_pmbFrmID'], "KodeID='" . KodeID . "'", 'PMBFormulirID');
    $optprg = GetOption2('program', "concat(ProgramID, ' - ', Nama)", 'ProgramID', $_SESSION['_pmbPrg'], "KodeID='" . KodeID . "'", 'ProgramID');
    $opturut = GetUrutanPMB();
    echo "<table class=box cellspacing=1 align=center>\r\n  <form action='?' method=POST>\r\n  <input type=hidden name='mnux' value='{$_SESSION['mnux']}' />\r\n  <input type=hidden name='gos' value='' />\r\n  <input type=hidden name='_pmbPage' value='0' />\r\n  \r\n  <tr>\r\n      <td class=inp>Cari Nama:</td>\r\n      <td class=ul1><input type=text name='_pmbNama' value='{$_SESSION['_pmbNama']}' size=20 maxlength=30 /></td>\r\n      <td class=inp>Cari No. Formulir:</td>\r\n      <td class=ul1><input type=text name='_pmbNomer' value='{$_SESSION['_pmbNomer']}' size=20 maxlength=30 /></td>\r\n      <td class=inp width=100>Filter Formulir:</td>\r\n      <td class=ul1>\r\n        <select name='_pmbFrmID'>{$optfrm}</select>\r\n      </td>\r\n      </tr>\r\n  <tr>\r\n      <td class=inp>Program:</td>\r\n      <td class=ul1><select name='_pmbPrg'>{$optprg}</select></td>\r\n      <td class=inp>Urutkan:</td>\r\n      <td class=ul1><select name='_pmbUrut'>{$opturut}</select></td>\r\n      <td class=ul1 colspan=2>\r\n        <input type=submit name='Submit' value='Submit' />\r\n        <input type=button name='Reset' value='Reset'\r\n          onClick=\"location='?mnux={$_SESSION['mnux']}&gos=&_pmbPage=0&_pmbNama=&_pmbNomer='\" />\r\n      </td>\r\n      </tr>\r\n  <tr><td bgcolor=silver colspan=7 height=2></td></tr>\r\n  <tr>      \r\n      <td class=ul1 colspan=6 align=center>\r\n      <input type=button name='ExportXL' value='Export ke Excel' \r\n        onClick=\"window.location='{$_SESSION['mnux']}.XL.php?gel={$gel}'\" />\r\n      <!--\r\n\t  <input type=button name='ImportXL' value='Upload Data Excel' />\r\n      -->\r\n\t  <input type=button name='CetakPengumuman' value='Cetak Pengumuman'\r\n        onClick=\"location='{$_SESSION['mnux']}.pengumuman.php?PMBPeriodID={$gel}'\" />\r\n      <input type=button name='CetakSurat' value='Cetak Semua Surat Kelulusan'\r\n        onClick=\"CetakSemuaSuratKelulusan()\" />\r\n      </td>\r\n  </form>\r\n  </table>";
}
Esempio n. 3
0
function TampilkanHeader($gel)
{
    IsiFormulirScript($gel);
    CetakKartuScript();
    $optfrm = GetOption2('pmbformulir', 'Nama', 'Nama', $_SESSION['_pmbFrmID'], "KodeID='" . KodeID . "'", 'PMBFormulirID');
    $optprg = GetOption2('program', "concat(ProgramID, ' - ', Nama)", 'ProgramID', $_SESSION['_pmbPrg'], "KodeID='" . KodeID . "'", 'ProgramID');
    $opturut = GetUrutanPMB();
    if ($_SESSION['_LevelID'] != 33) {
        $AmbilLalu = "<input type=button name='btnAmbilPMBLalu' value='Ambil Dari Periode Lalu'\n        onClick=\"javascript:AmbilPMBLalu('{$gel}')\" />";
        echo "<table class=box cellspacing=1 align=center>\n  <form action='?' method=POST>\n  <input type=hidden name='mnux' value='{$_SESSION['mnux']}' />\n  <input type=hidden name='gos' value='' />\n  <input type=hidden name='_pmbPage' value='0' />\n  \n  <tr>\n      <td class=inp>Cari Nama:</td>\n      <td class=ul1><input type=text name='_pmbNama' value='{$_SESSION['_pmbNama']}' size=20 maxlength=30 /></td>\n      <td class=inp width=100>Filter Formulir:</td>\n      <td class=ul1>\n        <select name='_pmbFrmID'>{$optfrm}</select>\n      </td>\n      </tr>\n  <tr>\n      <td class=inp>Cari No. Formulir:</td>\n      <td class=ul1><input type=text name='_pmbNomer' value='{$_SESSION['_pmbNomer']}' size=20 maxlength=30 /></td>\n      <td class=inp>Urutkan:</td>\n      <td class=ul1><select name='_pmbUrut'>{$opturut}</select></td>\n      </tr>\n  <tr>\n      <td class=inp>Program:</td>\n      <td class=ul1><select name='_pmbPrg'>{$optprg}</select></td>\n      <td class=ul1 colspan=2 align=center nowrap>\n      <input type=submit name='Submit' value='Submit' />\n      <input type=button name='Reset' value='Reset'\n        onClick=\"location='?mnux={$_SESSION['mnux']}&gos=&_pmbPage=0&_pmbNama=&_pmbNomer='\" />\n      &raquo&raquo<input type=button name='IsiFrm' value='Isi Formulir' onClick=\"javascript:IsiFormulir(1,'{$gel}','')\" />&laquo&laquo\n      {$AmbilLalu}\n      </td>\n  </form>\n  </table>";
    }
    // Javascript
    echo <<<ESD
  <script>
  function AmbilPMBLalu(gel) {
    lnk = "{$_SESSION['mnux']}.lalu.php?gel="+gel;
    win2 = window.open(lnk, "", "width=820, height=500, scrollbars, status");
    if (win2.opener == null) childWindow.opener = self;
  }
  </script>
ESD;
}