当前位置: 首页>>代码示例>>PHP>>正文


PHP GetSetVar函数代码示例

本文整理汇总了PHP中GetSetVar函数的典型用法代码示例。如果您正苦于以下问题:PHP GetSetVar函数的具体用法?PHP GetSetVar怎么用?PHP GetSetVar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了GetSetVar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Proses

function Proses()
{
    $_max = 100;
    $_praPrc = GetSetVar('_praPrc');
    $_praCnt = GetSetVar('_praCnt');
    $_dari = $_praPrc * $_max;
    $s = "select m.MhswID, m.Nama\r\n    from mhsw m\r\n    where m.KodeID = '" . KodeID . "'\r\n      and m.ProdiID = '{$_SESSION['ProdiID']}'\r\n      and m.StatusMhswID = 'A'\r\n    order by m.MhswID\r\n    limit {$_dari}, {$_max}";
    //die($s);
    $r = _query($s);
    $jml = _num_rows($r);
    if ($jml > 0) {
        while ($w = _fetch_array($r)) {
            $_SESSION['_praCnt']++;
            // Proses satu per satu
            $MhswID = $w['MhswID'];
            $Nama = $w['Nama'];
            $oke = true;
            $psn = '';
            // Apakah ada SKS Minimalnya?
            $oke = CheckSKSMin($MhswID, $psn);
            // Apakah ada IP Minimalnya?
            if ($oke) {
                $oke = CheckIPMin($MhswID, $psn);
            }
            // Apakah ada MK Prasyaratnya?
            if ($oke) {
                $oke = CheckPrasyarat($MhswID, $psn);
            }
            echo <<<ESD
      <script>
      self.parent.Progresnya({$_SESSION['_praCnt']}, '{$MhswID}', '{$Nama}', '{$psn}');
      </script>
ESD;
            // Jika memenuhi syarat
            if ($oke == true) {
                $f = fopen("../" . $_SESSION['_praFile'] . ".txt", 'a');
                fwrite($f, "{$MhswID}|{$Nama}|Oke\r\n");
                fclose($f);
            } else {
                // Jika tidak memenuhi syarat
                $f = fopen("../" . $_SESSION['_praFile'] . "_gagal.txt", 'a');
                fwrite($f, "{$MhswID}|{$Nama}|{$psn}\r\n");
                fclose($f);
            }
        }
        // Nex Process
        $_SESSION['_praPrc']++;
        $time = 10;
        echo <<<ESD
    <script>
    <!--
    //window.setTimeout("location='{$_SESSION['mnux']}.proses.php?gos=Proses&_praPrc={$_praPrc}&_praCnt={$_SESSION['_praCnt']}'", {$time});
    window.setTimeout("location='../{$_SESSION['mnux']}.proses.php'", {$time});
    //-->
    </script>
ESD;
    } else {
        echo "\r\n    <script>\r\n    self.parent.Selesai();\r\n    </script>\r\n    ";
    }
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:60,代码来源:mhswprasyarat.proses.php

示例2: DftrMhswTA

function DftrMhswTA()
{
    TampilkanFotoScript();
    // setup where-statement
    $whr_prodi = empty($_SESSION['FilterProdiID']) ? '' : "and m.ProdiID='{$_SESSION['FilterProdiID']}'";
    $whr_nama = empty($_SESSION['FilterNamaMhsw']) ? '' : "and m.Nama like '{$_SESSION['FilterNamaMhsw']}%'";
    $whr_nim = empty($_SESSION['FilterMhswID']) ? '' : "and m.MhswID like '{$_SESSION['FilterMhswID']}%'";
    $whr_tahun = empty($_SESSION['TahunID']) ? '' : "and t.TahunID = '{$_SESSION['TahunID']}' ";
    // Tampilkan
    $tapage = GetSetVar('tapage', 1);
    include_once "class/dwolister.class.php";
    $lst = new dwolister();
    $lst->maxrow = 10;
    $lst->page = $_SESSION['tapage'] + 0;
    $lst->pageactive = "=PAGE=";
    $lst->pages = "<a href='?mnux={$_SESSION['mnux']}&tapage==PAGE='>=PAGE=</a>";
    $lst->tables = "ta t\r\n    left outer join mhsw m on t.MhswID = m.MhswID and m.KodeID = '" . KodeID . "'\r\n    left outer join dosen d on d.Login = t.Pembimbing and d.KodeID = '" . KodeID . "'\r\n    left outer join dosen d1 on d1.Login = t.Penguji and d1.KodeID = '" . KodeID . "'\r\n    left outer join prodi prd on prd.ProdiID = m.ProdiID\r\n    where t.NA = 'N'\r\n    {$whr_prodi}\r\n    {$whr_nama}\r\n    {$whr_nim}\r\n    {$whr_tahun}\r\n    ";
    $lst->fields = "t.*, m.Nama as NamaMhsw,\r\n    date_format(TglMulai, '%d-%m-%Y') as _TglMulai,\r\n    date_format(TglSelesai, '%d-%m-%Y') as _TglSelesai,\r\n    date_format(TglUjian, '%d-%m-%Y') as _TglUjian,\r\n    m.PenasehatAkademik, \r\n    d.Nama as NamaDosen, d.Gelar,\r\n    d1.Nama as NamaPenguji, d1.Gelar as GelarPenguji,\r\n    \r\n    replace((select group_concat(concat('&rsaquo; ', td_d.Nama, ' <sup>', td_d.Gelar, '</sup>')) \r\n    from tadosen td\r\n      left outer join dosen td_d on td_d.Login = td.DosenID and td_d.KodeID = '" . KodeID . "' \r\n    where td.TAID = t.TAID\r\n      and td.Tipe=0), ',', '<br />') as _DP,\r\n    \r\n\t(select count(tb.TAID) from tabimbingan tb where tb.TAID = t.TAID) as Bimbingan,\r\n\t\r\n    replace((select group_concat(concat('&rsaquo; ', td_d.Nama, ' <sup>', td_d.Gelar, '</sup>')) \r\n    from tadosen td\r\n      left outer join dosen td_d on td_d.Login = td.DosenID and td_d.KodeID = '" . KodeID . "' \r\n    where td.TAID = t.TAID\r\n      and td.Tipe=1), ',', '<br />') as _DU\r\n    ";
    $lst->headerfmt = "<table class=box cellspacing=1 cellpadding=4 width=940>\r\n    <tr><th class=ttl width=10>Edit</th>\r\n        <th class=ttl width=80>NPM</th>\r\n        <th class=ttl>Nama</th>\r\n        <th class=ttl>Judul</th>\r\n        <th class=ttl width=70>Tgl Mulai<hr size=1 color=white />Selesai</th>\r\n        <th class=ttl width=180>Pembimbing</th>\r\n        <th class=ttl width=70>Bimbingan</th>\r\n\t\t<th class=ttl width=180>Ujian Akhir<hr size=1 color=white />Penguji</th>\r\n        <th class=ttl width=10>Lulus</th>\r\n        </tr>";
    $lst->footerfmt = "</table></p>";
    $lst->detailfmt = "<tr>\r\n    <td class=cna=Lulus= align=center>\r\n      <a href='#' onClick=\"javascript:TAEdit(0,=TAID=)\"><img src='img/edit.png' title='Edit Data TA' /></a>\r\n      </td>\r\n    <td class=cna=Lulus= align=center>\r\n      =MhswID=\r\n      <hr size=1 color=silver />\r\n      <sup>=TahunID=</sup>\r\n      </td>\r\n    <td class=cna=Lulus=>=NamaMhsw=</td>\r\n    <td class=cna=Lulus=>=Judul=</td>\r\n    <td class=cna=Lulus= align=center>\r\n      <sup>=_TglMulai=\r\n      <hr size=1 color=silver />\r\n      =_TglSelesai=</sup>\r\n      </td>\r\n\t<td class=cna=Lulus=>\r\n      &bull; =NamaDosen= <sup>=Gelar=</sup><br />\r\n      =_DP=\r\n      <div align=right>\r\n      <a href='#' onClick=\"javscript:EditPembimbing(=TAID=)\" title='Edit Dosen Pembimbing'><img src='img/edit.png' /></a>\r\n      </div>\r\n      </td>\r\n    <td class=cna=Lulus= align=center>\r\n\t  =Bimbingan=&times;\r\n\t  <div align=right>\r\n      <a href='#' onClick=\"javscript:EditBimbingan(=TAID=)\" title='Edit Bimbingan'><img src='img/edit.png' /></a>\r\n\t  </td>\r\n    <td class=cna=Lulus= align=center>\r\n      <sup>=_TglUjian=</sup>\r\n      <hr size=1 color=silver />\r\n      <div align=left>\r\n      &bull; =NamaPenguji= <sup>=GelarPenguji=</sup><br />\r\n      =_DU=\r\n      </div>\r\n      <div align=right>\r\n      <a href='#' onClick=\"javascript:TAUjian(=TAID=)\" title='Edit Dosen Penguji'><img src='img/edit.png' /></a>\r\n      </div>\r\n      </td>\r\n    <td class=cna=Lulus= align=center>\r\n      <a href='#' onClick=\"javascript:fnKelulusan(=TAID=)\"><img src='img/=Lulus=.gif' /></a>\r\n      </td>\r\n    </tr>\r\n    <tr><td bgcolor=silver colspan=9 height=1></td></tr>";
    echo $lst->TampilkanData();
    echo $ttl;
    echo "<p>Hal.: " . $lst->TampilkanHalaman() . "<br />" . "Total: " . number_format($lst->MaxRowCount) . "</p>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:25,代码来源:ta.php

示例3: DftrTahun

function DftrTahun()
{
    $_maxbaris = 10;
    $fmtTgl = '%d-%m-%Y';
    TahunEditScript();
    include_once "class/dwolister.class.php";
    $page = GetSetVar('page', 1);
    $pagefmt = "<a href='?mnux={$_SESSION['mnux']}&gos=&page==PAGE='>=PAGE=</a>";
    $pageoff = "<b>=PAGE=</b>";
    $brs = "<hr size=1 color=silver />";
    $gantibrs = "<tr><td bgcolor=silver height=1 colspan=11></td></tr>";
    $lst = new dwolister();
    $lst->tables = "tahun t\r\n    where t.KodeID = '" . KodeID . "'\r\n      and t.ProdiID = '{$_SESSION['prodi']}'\r\n      and t.ProgramID = '{$_SESSION['prid']}'\r\n    order by t.TahunID desc";
    $lst->fields = "t.TahunID, t.Nama, t.ProgramID, t.ProdiID, \r\n    t.SP,t.NA,\r\n    date_format(t.TglKuliahMulai, '{$fmtTgl}') as _KuliahMulai,\r\n    date_format(t.TglKuliahSelesai, '{$fmtTgl}') as _KuliahSelesai,\r\n    date_format(t.TglKRSMulai, '{$fmtTgl}') as _KRSMulai,\r\n    date_format(t.TglKRSSelesai, '{$fmtTgl}') as _KRSSelesai,\r\n\tdate_format(t.TglBayarMulai, '{$fmtTgl}') as _BayarMulai,\r\n    date_format(t.TglBayarSelesai, '{$fmtTgl}') as _BayarSelesai,\r\n    date_format(t.TglUTSMulai, '{$fmtTgl}') as _UTSMulai,\r\n    date_format(t.TglUTSSelesai, '{$fmtTgl}') as _UTSSelesai,\r\n    date_format(t.TglUASMulai, '{$fmtTgl}') as _UASMulai,\r\n    date_format(t.TglUASSelesai, '{$fmtTgl}') as _UASSelesai,\r\n    date_format(t.TglNilai, '{$fmtTgl}') as _TglNilai,\r\n    t.Catatan, t.ProsesBuka\r\n    ";
    $lst->page = $_SESSION['page'] + 0;
    $lst->maxrow = $_maxbaris;
    $lst->pages = $pagefmt;
    $lst->pageactive = $pageoff;
    $lst->headerfmt = "<p><table class=box cellspacing=1 align=center width=940>\r\n    <tr>\r\n      <td class=ul1 colspan=9>\r\n      <input type=button name='BuatTahun' value='Buat Tahun Baru' onClick=\"javascript:TahunEdit('', '{$_SESSION['prodi']}', '{$_SESSION['prid']}', 1)\" />\r\n      <input type=button name='BuatTahunCopy' value='Copy Dari Prodi Lain' onClick=\"javascript:TahunEditCopy('', '{$_SESSION['prodi']}', '{$_SESSION['prid']}', 1)\" />\r\n      <input type=button name='Refresh' value='Refresh' onClick=\"location='?mnux={$_SESSION['mnux']}&gos='\" />\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <th class=ttl colspan=3>Kode</th>\r\n      <th class=ttl>Nama Tahun</th>\r\n      <th class=ttl>Perkuliahan</th>\r\n\t  <th class=ttl>KRS</th>\r\n      <th class=ttl>Pembayaran</th>\r\n      <th class=ttl>UTS</th>\r\n      <th class=ttl>UAS</th>\r\n      <th class=ttl>Penilaian</th>\r\n      <th class=ttl>SP</th>\r\n\t  <th class=ttl>NA</th>\r\n    </tr>";
    $lst->detailfmt = "<tr>\r\n    <td class=ul1 width=5>\r\n      <a href='#' onClick=\"javascript:TahunCetak('=TahunID=', '=ProdiID=', '=ProgramID=')\"><img src='img/printer2.gif' width=12 /></a>\r\n      </td>\r\n\t<td class=ul1 width=40 align=center><font color=green><b>=TahunID=</b><font></td>\r\n    <td class=ul1 width=5>\r\n      <a href='#' onClick=\"javascript:TahunEdit('=TahunID=', '=ProdiID=', '=ProgramID=', 0)\"><img src='img/edit.png' /></a>\r\n      </td>\r\n    <td class=ul1>\r\n      <b>=Nama=</b>\r\n\t  <div align=right><sub>=Catatan=<sub></div>\r\n      </td>\r\n    <td class=cna=NA= align=center width=80>\r\n      =_KuliahMulai=\r\n      <hr size=1 color=silver />\r\n      =_KuliahSelesai=\r\n      </td>\r\n    <td class=cna=NA= align=center width=80>\r\n      =_KRSMulai=\r\n      <hr size=1 color=silver />\r\n      =_KRSSelesai=\r\n      </td>\r\n\t<td class=cna=NA= align=center width=80>\r\n      =_BayarMulai=\r\n      <hr size=1 color=silver />\r\n      =_BayarSelesai=\r\n      </td>\r\n    <td class=cna=NA= align=center width=80>\r\n      =_UTSMulai=\r\n      <hr size=1 color=silver />\r\n      =_UTSSelesai=\r\n      </td>\r\n    <td class=cna=NA= align=center width=80>\r\n      =_UASMulai=\r\n      <hr size=1 color=silver />\r\n      =_UASSelesai=\r\n      </td>\r\n    <td class=cna=NA= align=center width=80>=_TglNilai=</td>\r\n    <td class=cna=NA= width=5>=SP=</td>\r\n\t<td class=ul1 width=5><img src='img/book=NA=.gif' /></td>\r\n    </tr>" . $gantibrs;
    $lst->footerfmt = "</table>";
    $hal = $lst->TampilkanHalaman();
    $ttl = $lst->MaxRowCount;
    echo $lst->TampilkanData();
    echo "<p align=center>Hal: {$hal} <br />(Tot: {$ttl})</p>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:26,代码来源:tahun.php

示例4: DftrMhswPraktek

function DftrMhswPraktek()
{
    TampilkanFotoScript();
    // setup where-statement
    $whr_prodi = empty($_SESSION['FilterProdiID']) ? '' : "and m.ProdiID='{$_SESSION['FilterProdiID']}'";
    $whr_nama = empty($_SESSION['FilterNamaMhsw']) ? '' : "and m.Nama like '{$_SESSION['FilterNamaMhsw']}%'";
    $whr_nim = empty($_SESSION['FilterMhswID']) ? '' : "and m.MhswID like '{$_SESSION['FilterMhswID']}%'";
    $whr_tahun = empty($_SESSION['TahunID']) ? '' : "and p.TahunID = '{$_SESSION['TahunID']}' ";
    // Tampilkan
    $tapage = GetSetVar('praktekpage', 1);
    include_once "class/dwolister.class.php";
    $lst = new dwolister();
    $lst->maxrow = 10;
    $lst->page = $_SESSION['praktekpage'] + 0;
    $lst->pageactive = "=PAGE=";
    $lst->pages = "<a href='?mnux={$_SESSION['mnux']}&praktekpage==PAGE='>=PAGE=</a>";
    $lst->tables = "praktekkerja p\n    left outer join mhsw m on p.MhswID = m.MhswID and m.KodeID = '" . KodeID . "'\n    left outer join dosen d on d.Login = p.Pembimbing and d.KodeID = '" . KodeID . "'\n    left outer join prodi prd on prd.ProdiID = m.ProdiID\n    where p.NA = 'N'\n    {$whr_prodi}\n    {$whr_nama}\n    {$whr_nim}\n    {$whr_tahun}\n    ";
    $lst->fields = "p.*, m.Nama as NamaMhsw,\n    date_format(p.TglMulai, '%d-%m-%Y') as _TglMulai,\n    date_format(p.TglSelesai, '%d-%m-%Y') as _TglSelesai,\n    m.PenasehatAkademik, \n    d.Nama as NamaDosen, d.Gelar\n    ";
    $lst->headerfmt = "<table class=box cellspacing=1 cellpadding=4 width=940>\n    <tr><th class=ttl width=10>Edit</th>\n        <th class=ttl width=80>NIM</th>\n        <th class=ttl>Nama</th>\n        <th class=ttl>Profil Perusahaan</th>\n        <th class=ttl width=70>Tgl Mulai<hr size=1 color=white />Selesai</th>\n        <th class=ttl width=180>Pembimbing</th>\n        <th class=ttl width=10>Lulus</th>\n        </tr>";
    $lst->footerfmt = "</table></p>";
    $lst->detailfmt = "<tr>\n    <td class=cna=Lulus= align=center>\n      <a href='#' onClick=\"javascript:PraktekEdit(0,=PraktekKerjaID=)\"><img src='img/edit.png' title='Edit Data Praktek Kerja' /></a>\n      </td>\n    <td class=cna=Lulus= align=center>\n      =MhswID=\n      <hr size=1 color=silver />\n      <sup>=TahunID=</sup>\n      </td>\n    <td class=cna=Lulus=>=NamaMhsw=</td>\n    <td class=cna=Lulus=>=NamaPerusahaan=<sup>=TeleponPerusahaan=</sup>\n\t  <br>\n\t  &nbsp;&nbsp;<font size=1 color=teal>=AlamatPerusahaan= \n\t  =KotaPerusahaan=</font>\n\t  </td>\n    <td class=cna=Lulus= align=center>\n      <sup>=_TglMulai=\n      <hr size=1 color=silver />\n      =_TglSelesai=</sup>\n      </td>\n\t<td class=cna=Lulus=>\n      &bull; =NamaDosen= <sup>=Gelar=</sup>\n      </td>\n    <td class=cna=Lulus= align=center>\n      <a href='#' onClick=\"javascript:fnKelulusan(=PraktekKerjaID=)\"><img src='img/=Lulus=.gif' /></a>\n      </td>\n    </tr>\n    <tr><td bgcolor=silver colspan=9 height=1></td></tr>";
    echo $lst->TampilkanData();
    echo $ttl;
    echo "<p>Hal.: " . $lst->TampilkanHalaman() . "<br />" . "Total: " . number_format($lst->MaxRowCount) . "</p>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:25,代码来源:praktek.php

示例5: Sek

function Sek()
{
    $NamaSekolah = GetSetVar('NamaSekolah');
    $KotaSekolah = GetSetVar('KotaSekolah');
    include_once "pmbsetup.sek.php";
    $sub = !empty($_REQUEST['sub']) ? $_REQUEST['sub'] : 'DftrSek';
    $sub();
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:8,代码来源:pmbsetup.php

示例6: CetakNilai

function CetakNilai($jid, $p)
{
    $JadwalID = GetSetVar('JadwalID');
    $jdwl = GetFields("jadwal j\r\n    left outer join dosen d on d.Login = j.DosenID and d.KodeID = '" . KodeID . "'\r\n    left outer join prodi prd on prd.ProdiID = j.ProdiID and prd.KodeID = '" . KodeID . "'\r\n    left outer join program prg on prg.ProgramID = j.ProgramID and prg.KodeID = '" . KodeID . "'\r\n    left outer join mk mk on mk.MKID = j.MKID\r\n    left outer join hari huas on huas.HariID = date_format(j.UASTanggal, '%w') \r\n\tLEFT OUTER JOIN kelas k ON k.KelasID = j.NamaKelas\r\n    ", "j.JadwalID", $JadwalID, "j.*, concat(d.Nama, ', ', d.Gelar) as DSN, d.NIDN,\r\n    prd.Nama as _PRD, prg.Nama as _PRG,\r\n    mk.Sesi,\r\n    date_format(j.UASTanggal, '%d-%m-%Y') as _UASTanggal,\r\n    date_format(j.UASTanggal, '%w') as _UASHari,\r\n    huas.Nama as HRUAS,\r\n    LEFT(j.UASJamMulai, 5) as _UASJamMulai, LEFT(j.UASJamSelesai, 5) as _UASJamSelesai, k.Nama AS namaKelas\r\n    ");
    $TahunID = $jdwl['TahunID'];
    $thn = GetFields('tahun', "KodeID = '" . KodeID . "' and ProdiID = '{$jdwl['ProdiID']}' and ProgramID = '{$jdwl['ProgramID']}' and TahunID", $TahunID, "*");
    // Buat Header
    BuatHeader($jdwl, $thn, $p);
    BuatIsinya($jdwl, $p);
    BuatFooter($jdwl, $p);
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:11,代码来源:nilai.pdf.php

示例7: DaftarMhsw

function DaftarMhsw($mnux, $lnk = '', $keluar = 0)
{
    include_once "class/xthlister.class.php";
    $inqMhswPage = GetSetVar('inqMhswPage');
    $arrKey = array('NIM' => 'MhswID', 'Nama' => 'Nama', 'Semua' => '');
    // filter
    $whr = array();
    if (!empty($arrKey[$_SESSION['crmhswkey']]) && !empty($_SESSION['crmhswval'])) {
        $whr[] = "m." . $arrKey[$_SESSION['crmhswkey']] . " like '%" . $_SESSION['crmhswval'] . "%' ";
    }
    if ($keluar > 0) {
        $whr[] = "sm.Keluar <> 1";
    }
    if ($_SESSION['_LevelID'] > 1) {
        if (empty($_SESSION['_LevelID'])) {
            die(ErrorMsg("Tidak Dapat Akses", "Anda tidak memiliki hak akses ke data Mahasiswa."));
        }
        $_ProdiID = trim($_SESSION['_ProdiID'], ',');
        $arrProdi = explode(',', $_ProdiID);
        $_prodi = '';
        for ($i = 0; $i < sizeof($arrProdi); $i++) {
            $_prodi .= ",'" . $arrProdi[$i] . "'";
        }
        $_prodi = trim($_prodi, ',');
        $_prodi = empty($arrProdi) ? '-1' : $_prodi;
        //implode(', ', $arrProdi);
        if ($_SESSION['_LevelID'] == 100) {
        } else {
            $whr[] = "m.ProdiID in ({$_prodi})";
        }
    }
    // Satukan filter
    $_whr = implode(' and ', $whr);
    $_whr = empty($_whr) ? '' : "where {$_whr}";
    // Tampilkan daftar
    $lst = new xthlister();
    $lst->page = $_SESSION['inqMhswPage'] + 0;
    $lst->pageactive = "=PAGE=";
    $lst->pages = "<a href='?mnux={$lnk}&inqMhswPage==PAGE='>=PAGE=</a>";
    $lst->tables = "mhsw m\n    left outer join program prg on m.ProgramID=prg.ProgramID\n    left outer join prodi prd on m.ProdiID=prd.ProdiID\n    left outer join statusmhsw sm on m.StatusMhswID=sm.StatusMhswID\n    {$_whr}\n    order by m.MhswID";
    $lst->fields = "m.MhswID, m.Nama, m.ProgramID, m.ProdiID, m.SKKeluar, m.Foto,\n    prg.Nama as PRG, prd.Nama as PRD, sm.Nama as SM, sm.Keluar";
    $lst->headerfmt = "<p><table class=box cellspacing=1 cellpadding=4>\n    <tr><th class=ttl>#</th>\n    <th class=ttl>No Mhsw</th>\n    <th class=ttl>Nama Mhsw</th>\n    <th class=ttl>Program</th>\n    <th class=ttl>Program Studi</th>\n    <th class=ttl>Status</th>\n    <th class=ttl>SK Lulus/Keluar</th>\n    </tr>";
    $lst->footerfmt = "</table></p>";
    $lst->detailfmt = "<tr><td class=inp1>=NOMER=</td>\n    <td bgcolor='#9BBB59' class=cna=Keluar=><a href='?mnux={$mnux}&mhswid==MhswID=&{$lnk}'><img src='img/edit.png'>\n    =MhswID=</a></td>\n    <td bgcolor='#8DB3E2' class=cna=Keluar=><a id='=MhswID=' class='jTip' name='    Foto Mahasiswa' href='foto.pop.php?width=156&mhswid==MhswID=&foto==Foto='>=Nama=</a></td>\n    <td bgcolor='#E5B8B7' class=cna=Keluar=>=ProgramID=-=PRG=</td>\n    <td bgcolor='#B2A1C7' class=cna=Keluar=>=ProdiID=-=PRD=</td>\n    <td bgcolor='#FABF8F' class=cna=Keluar=>=SM=</td>\n    <td bgcolor='#BFBFBF' class=cna=Keluar=>=SKKeluar=&nbsp;</td>\n    </tr>";
    echo $lst->TampilkanData();
    echo "Halaman : " . $lst->TampilkanHalaman();
}
开发者ID:johnxth,项目名称:sisfoapp,代码行数:47,代码来源:carimhsw.php

示例8: DaftarMhsw

function DaftarMhsw($mnux, $lnk = '', $keluar = 0)
{
    include_once "class/xthlister.class.b.php";
    $inqMhswPage = GetSetVar('inqMhswPage');
    $arrKey = array('NIM' => 'MhswID', 'Nama' => 'Nama', 'Semua' => '');
    // filter
    $whr = array();
    if (!empty($arrKey[$_SESSION['crmhswkey']]) && !empty($_SESSION['crmhswval'])) {
        $whr[] = "m." . $arrKey[$_SESSION['crmhswkey']] . " like '%" . $_SESSION['crmhswval'] . "%' ";
    }
    if ($keluar > 0) {
        $whr[] = "sm.Keluar <> 1";
    }
    if ($_SESSION['_LevelID'] > 1) {
        if (empty($_SESSION['_LevelID'])) {
            die(ErrorMsg("Tidak Dapat Akses", "Anda tidak memiliki hak akses ke data Mahasiswa."));
        }
        $_ProdiID = trim($_SESSION['_ProdiID'], ',');
        $arrProdi = explode(',', $_ProdiID);
        $_prodi = '';
        for ($i = 0; $i < sizeof($arrProdi); $i++) {
            $_prodi .= ",'" . $arrProdi[$i] . "'";
        }
        $_prodi = trim($_prodi, ',');
        $_prodi = empty($arrProdi) ? '-1' : $_prodi;
        //implode(', ', $arrProdi);
        if ($_SESSION['LevelID'] == 100) {
        } else {
            $whr[] = "m.ProdiID in ({$_prodi})";
        }
    }
    // Satukan filter
    $_whr = implode(' and ', $whr);
    $_whr = empty($_whr) ? '' : "where {$_whr}";
    // Tampilkan daftar
    $lst = new xthlister();
    $lst->page = $_SESSION['inqMhswPage'] + 0;
    $lst->pageactive = "=PAGE=";
    $lst->pages = "<a href='?mnux={$lnk}&inqMhswPage==PAGE='>=PAGE=</a>";
    $lst->tables = "mhsw m\n    left outer join program prg on m.ProgramID=prg.ProgramID\n    left outer join prodi prd on m.ProdiID=prd.ProdiID\n    left outer join statusmhsw sm on m.StatusMhswID=sm.StatusMhswID\n    {$_whr}\n    order by m.MhswID";
    $lst->fields = "m.MhswID, m.Nama, m.ProgramID, m.ProdiID, m.SKKeluar, m.Foto,\n    prg.Nama as PRG, prd.Nama as PRD, sm.Nama as SM, sm.Keluar";
    $lst->detailfmt = "\n  <tr>\n  <td class=inp1>=NOMER=</td>\n    </tr>";
    echo $lst->TampilkanData();
    echo $lst->TampilkanHalaman();
}
开发者ID:johnxth,项目名称:sisfoapp,代码行数:45,代码来源:carimhswx.php

示例9: EdtSet

function EdtSet()
{
    global $mnux, $pref, $arrID;
    $prodi = $_SESSION['prodi'];
    $mkkode = $_SESSION['mkkode_' . $prodi];
    $kurid = $_SESSION['kurid_' . $prodi];
    $kuriset = GetSetVar('kuriset');
    //$mk = GetFields('mk', "KurikulumID='$kurid' and MKKode", $mkkode, '*');
    $mk = GetFields("mk mk left outer join prodi prd on mk.ProdiID=prd.ProdiID\r\n    left outer join kurikulum kur on mk.KurikulumID=kur.KurikulumID\r\n    left outer join dosen d on mk.Penanggungjawab=d.Login", "mk.KurikulumID='{$kurid}' and mk.MKKode", $mkkode, "mk.*, kur.Nama as KUR, prd.Nama as PRD, concat(d.Nama, ', ', d.Gelar) as PJ");
    /*
    $optkurikulum = GetOption2('kurikulum', "concat(KurikulumKode, ' - ', Nama)", 'KurikulumID', $_SESSION['kurid_'], "ProdiID='$_SESSION[prodi]'", 'KurikulumID');  
    $optmk = GetOption2('mk', "concat(MKKode, ' - ', Nama)", 'MKKode', '', 
      "MKKode<>'$mkkode' and KurikulumID=".$_SESSION['kurid_'.$_SESSION['prodi']], 'MKKode'); 
    */
    $optkuri = GetOption2('kurikulum', "concat(KurikulumKode, ' - ', Nama)", 'KurikulumID', $_SESSION['kuriset'], "ProdiID='{$prodi}' and KodeID='" . KodeID . "'", 'KurikulumID');
    $optmk = GetOption2('mk', "concat(MKKode, ' - ', Nama)", 'MKKode', '', "MKKode<>'{$mkkode}' and KurikulumID='" . $kuriset . "'", 'MKKode');
    // Headernya
    TampilkanHeaderMatakuliah($mk);
    $setara = GetMKSetara($mk['MKSetara'], $mkkode);
    echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n  <tr><td class=ul colspan=5><b>Matakuliah Setara</td></tr>\r\n  <form action='?' method=POST>\r\n  <input type=hidden name='mnux' value='{$mnux}'>\r\n  <input type=hidden name='mkkode_{$prodi}' value='{$mkkode}'>\r\n  <input type=hidden name='{$pref}' value='{$_SESSION[$pref]}'>\r\n  <input type=hidden name='sub' value='EdtSetSav'>\r\n  <input type=hidden name='BypassMenu' value='1' />\r\n  \r\n  <tr><td class=inp colspan=2>Kurikulum:</td>\r\n    <td class=ul colspan=3><select name='kuriset' onChange=\"window.location='?mnux={$mnux}&{$pref}={$_SESSION[$pref]}&mkkode_{$_SESSION['prodi']}={$mkkode}&sub=EdtSet&kuriset='+this.value\">{$optkuri}</select>\r\n  <tr><td class=inp colspan=2>Tambahkan:</td>\r\n    <td class=ul colspan=3><select name='mkkode_add'>{$optmk}</select>\r\n  <input type=submit name='Tambahkan' value='Tambahkan'></td></tr>\r\n  </form>\r\n  {$setara}\r\n  </table></p>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:21,代码来源:matakuliah.MKSet.php

示例10: DaftarMhsw

function DaftarMhsw($mnux, $lnk = '', $keluar = 0)
{
    include_once "class/xthlister.class.php";
    $dataMhswPage = GetSetVar('dataMhswPage');
    $arrKey = array('NIM' => 'MhswID');
    // filter
    $whr = array();
    if (!empty($arrKey[$_SESSION['crmhswkeyx']]) && !empty($_SESSION['crmhswvalx'])) {
        $whr[] = "m." . $arrKey[$_SESSION['crmhswkeyx']] . " like '%" . $_SESSION['crmhswvalx'] . "%' ";
    }
    if ($_SESSION['_LevelID'] > 1) {
        if (empty($_SESSION['_LevelID'])) {
            die(ErrorMsg("Tidak Dapat Akses", "Anda tidak memiliki hak akses ke data Mahasiswa."));
        }
        $_ProdiID = trim($_SESSION['_ProdiID'], ',');
        $arrProdi = explode(',', $_ProdiID);
        $_prodi = '';
        for ($i = 0; $i < sizeof($arrProdi); $i++) {
            $_prodi .= ",'" . $arrProdi[$i] . "'";
        }
        $_prodi = trim($_prodi, ',');
        $_prodi = empty($arrProdi) ? '-1' : $_prodi;
        //implode(', ', $arrProdi);
        if ($_SESSION['LevelID'] == 7) {
        } else {
            $whr[] = "m.ProdiID in ({$_prodi})";
        }
    }
    // Satukan filter
    $_whr = implode(' and ', $whr);
    $_whr = empty($_whr) ? '' : "where {$_whr}";
    // Tampilkan daftar
    $lst = new xthlister();
    $lst->tables = "mhsw m\n    left outer join program prg on m.ProgramID=prg.ProgramID\n    left outer join prodi prd on m.ProdiID=prd.ProdiID\n    left outer join statusmhsw sm on m.StatusMhswID=sm.StatusMhswID\n    {$_whr}\n    order by m.MhswID";
    $lst->fields = "m.MhswID,\n    prg.Nama as PRG, prd.Nama as PRD, sm.Nama as SM, sm.Keluar";
    $lst->headerfmt = "<p>\n  <table class=box cellspacing=1 cellpadding=4>\n    <tr bgcolor='#9BBB59'>\n      <th rowspan='2' nowrap='true' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Tahun Akade-mik</span></strong></th>\n      <th rowspan='2' nowrap='true' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Daya Tampung</span></strong></th>\n      <th colspan='2' nowrap='true' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Jumlah Calon<br>Mahasiswa Reguler&nbsp; </span></strong></th>\n      <th colspan='2' nowrap='true' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Jumlah<br>Mahasiswa Baru</span></strong></th>\n      <th colspan='2' nowrap='true' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Jumlah<br>Total Mahasiswa</span></strong></th>\n      <th colspan='2' nowrap='true' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Jumlah Lulusan</span></strong></th>\n      <th colspan='3' nowrap='true' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>IPK<br>Lulusan Reguler</span></strong></th>\n      <th colspan='3' nowrap='true' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Persentase<br>Lulusan Reguler<br>dengan IPK :</span></strong></th>\n    </tr>\n    <tr>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Ikut Seleksi</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Lulus Seleksi</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Reguler</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Transfer</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Reguler</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Transfer</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Reguler </span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Transfer</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Min</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Rat</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>Mak</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>&lt; 2,75</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>2,75-3,50</span></strong></td>\n      <td bgcolor='#9BBB59' class='ttl'><strong><span style='line-height:115%; font-family:'Calibri','sans-serif'; font-size:8.0pt; '>&gt; 3,50</span></strong></td>\n    </tr>\n    <tr bgcolor='#9BBB59'>\n      <td class='cna'>(1)</td>\n      <td class='cna'>(2)</td>\n      <td class='cna'>(3)</td>\n      <td class='cna'>(4)</td>\n      <td class='cna'>(5)</td>\n      <td class='cna'>(6)</td>\n      <td class='cna'>(7)</td>\n      <td class='cna'>(8)</td>\n      <td class='cna'>(9)</td>\n      <td class='cna'>(10)</td>\n      <td class='cna'>(11)</td>\n      <td class='cna'>(12)</td>\n      <td class='cna'>(13)</td>\n      <td class='cna'>(14)</td>\n      <td class='cna'>(15)</td>\n      <td class='cna'>(16)</td>\n    </tr>\n    <tr>\n      <td bgcolor='#9BBB59' class='cna'>TS-4</td>\n      <td bgcolor='#DDD9C3' class='cna'>\n\t  \n\t  \n\t  &nbsp;    </td>\n      <td bgcolor='#8DB3E2' class='cna'>&nbsp;</td>\n      <td bgcolor='#8DB3E2' class='cna'>&nbsp;</td>\n      <td bgcolor='#E5B8B7' class='cna'>&nbsp;</td>\n      <td bgcolor='#E5B8B7' class='cna'>&nbsp;</td>\n      <td bgcolor='#D6E3BC' class='cna'>&nbsp;</td>\n      <td bgcolor='#D6E3BC' class='cna'>&nbsp;</td>\n      <td bgcolor='#B2A1C7' class='cna'>&nbsp;</td>\n      <td bgcolor='#B2A1C7' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n    </tr>\n    <tr>\n      <td bgcolor='#9BBB59' class='cna'>TS-3</td>\n      <td bgcolor='#DDD9C3' class='cna'>&nbsp;</td>\n      <td bgcolor='#8DB3E2' class='cna'>&nbsp;</td>\n      <td bgcolor='#8DB3E2' class='cna'>&nbsp;</td>\n      <td bgcolor='#E5B8B7' class='cna'></td>\n      <td bgcolor='#E5B8B7' class='cna'>&nbsp;</td>\n      <td bgcolor='#D6E3BC' class='cna'>&nbsp;</td>\n      <td bgcolor='#D6E3BC' class='cna'>&nbsp;</td>\n      <td bgcolor='#B2A1C7' class='cna'>&nbsp;</td>\n      <td bgcolor='#B2A1C7' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n    </tr>\n    <tr>\n      <td bgcolor='#9BBB59' class='cna'>TS-2</td>\n      <td bgcolor='#DDD9C3' class='cna'>&nbsp;</td>\n      <td bgcolor='#8DB3E2' class='cna'>&nbsp;</td>\n      <td bgcolor='#8DB3E2' class='cna'>&nbsp;</td>\n      <td bgcolor='#E5B8B7' class='cna'></td>\n      <td bgcolor='#E5B8B7' class='cna'>&nbsp;</td>\n      <td bgcolor='#D6E3BC' class='cna'>&nbsp;</td>\n      <td bgcolor='#D6E3BC' class='cna'>&nbsp;</td>\n      <td bgcolor='#B2A1C7' class='cna'>&nbsp;</td>\n      <td bgcolor='#B2A1C7' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n    </tr>\n    <tr>\n      <td bgcolor='#9BBB59' class='cna'>TS-1</td>\n      <td bgcolor='#DDD9C3' class='cna'>&nbsp;</td>\n      <td bgcolor='#8DB3E2' class='cna'>&nbsp;</td>\n      <td bgcolor='#8DB3E2' class='cna'>&nbsp;</td>\n      <td bgcolor='#E5B8B7' class='cna'></td>\n      <td bgcolor='#E5B8B7' class='cna'>&nbsp;</td>\n      <td bgcolor='#D6E3BC' class='cna'>&nbsp;</td>\n      <td bgcolor='#D6E3BC' class='cna'>&nbsp;</td>\n      <td bgcolor='#B2A1C7' class='cna'>&nbsp;</td>\n      <td bgcolor='#B2A1C7' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n    </tr>\n    <tr>\n      <td bgcolor='#9BBB59' class='cna'>TS</td>\n      <td bgcolor='#DDD9C3' class='cna'><countif></td>\n      <td bgcolor='#8DB3E2' class='cna'>&nbsp;</td>\n      <td bgcolor='#8DB3E2' class='cna'>&nbsp;</td>\n      <td bgcolor='#E5B8B7' class='cna'></td>\n      <td bgcolor='#E5B8B7' class='cna'>&nbsp;</td>\n      <td bgcolor='#D6E3BC' class='cna'>&nbsp;</td>\n      <td bgcolor='#D6E3BC' class='cna'>&nbsp;</td>\n      <td bgcolor='#B2A1C7' class='cna'>&nbsp;</td>\n      <td bgcolor='#B2A1C7' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#FABF8F' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n      <td bgcolor='#BFBFBF' class='cna'>&nbsp;</td>\n    </tr>\n    <tr>\n      <td bgcolor='#9BBB59' class='cna'>Jumlah</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'></td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n      <td bgcolor='#9BBB59' class='cna'>&nbsp;</td>\n    </tr>";
    $lst->footerfmt = "</table></p>";
    echo $lst->TampilkanData();
    echo "Halaman : " . $lst->TampilkanHalaman();
}
开发者ID:johnxth,项目名称:sisfoapp,代码行数:40,代码来源:carimhswx1.php

示例11: DftrPT

function DftrPT()
{
    $CariPerguruanTinggi = GetSetVar('CariPerguruanTinggi', 'Nama Perguruan Tinggi');
    $arrCariPerguruanTinggi = array('Nama Perguruan Tinggi' => 'Nama', 'Kode Perguruan Tinggi' => 'PerguruanTinggiID');
    echo "<table class=box cellspacing=1 cellpadding=4>\r\n  <form action='index.php' method=GET>\r\n  <input type=hidden name='mnux' value='{$_SESSION['mnux']}'>\r\n  <input type=hidden name='gos' value=''>\r\n  <input type=hidden name='md' value='{$md}'>\r\n  <input type=hidden name='SRPT' value='{$_REQUEST['SRPT']}'>\r\n  <tr><td class=inp>Cari Perguruan Tinggi:</td><td class=ul colspan=2><input type=text name='NamaPerguruanTinggi' value='{$_SESSION['NamaPerguruanTinggi']}' size=20 maxlength=20>\r\n    <input type=submit name='CariPerguruanTinggi' value='Nama Perguruan Tinggi'> <input type=submit name='CariPerguruanTinggi' value='Kode Perguruan Tinggi'></td></tr>\r\n  <tr><td class=inp>Filter Kota:</td><td class=ul><input type=text name='KotaPerguruanTinggi' value='{$_SESSION['KotaPerguruanTinggi']}' size=20 maxlength=20></td><td class=ul><input type=submit name='KotaPerguruanTinggiS' value='Filter'> *) kosongkan jika tidak ingin difilter</td>\r\n  </form></table>";
    $whr = array();
    if (!empty($_SESSION['NamaPerguruanTinggi'])) {
        if ($arrCariPerguruanTinggi[$CariPerguruanTinggi] == 'PerguruanTinggiID') {
            $whr[] = $arrCariPerguruanTinggi[$CariPerguruanTinggi] . " like '{$_SESSION['NamaPerguruanTinggi']}%' ";
        } else {
            $whr[] = $arrCariPerguruanTinggi[$CariPerguruanTinggi] . " like '%{$_SESSION['NamaPerguruanTinggi']}%' ";
        }
    }
    if (!empty($_SESSION['KotaPerguruanTinggi'])) {
        $whr[] = "Kota like '%{$_SESSION['KotaPerguruanTinggi']}%' ";
    }
    $_whr = implode(" and ", $whr);
    $_whr = empty($_whr) ? '' : "where {$_whr}";
    include_once "class/dwolister.class.php";
    $pagefmt = "<a href='?mnux={$_SESSION['mnux']}&gos=&_asalPTPage==PAGE='>=PAGE=</a>";
    $pageoff = "<b>=PAGE=</b>";
    $brs = "<hr size=1 color=silver />";
    $gantibrs = "<tr><td bgcolor=silver height=1 colspan=11></td></tr>";
    $lister = new dwolister();
    $lister->tables = "perguruantinggi {$_whr}\r\n    order by " . $arrCariPerguruanTinggi[$CariPerguruanTinggi];
    //echo $lister->tables;
    $lister->fields = "*";
    $lister->startrow = $_SESSION['_asalPTPage'] + 0;
    $lister->maxrow = $_maxbaris;
    $lister->pages = $pagefmt;
    $lister->pageactive = $pageoff;
    $lister->page = $_SESSION['_asalPTPage'] + 0;
    $lister->headerfmt = "<table class=box cellspacing=1 cellpadding=4>\r\n      <tr><td class=ul colspan=8><a href='#' onClick=\"EdtPerguruanTinggi(1, '')\">Tambah Perguruan Tinggi</a></td></tr>\r\n\t  \r\n      <tr>\r\n\t  <th class=ttl>No.</th>\r\n      <th class=ttl>Kode</th>\r\n\t  <th class=ttl>Nama</th>\r\n      <th class=ttl>Jenis</th>\r\n\t  <th class=ttl>Kota</th>\r\n\t  <th class=ttl>Website</th>\r\n\t  <th class=ttl>Telephone</th>\r\n\t  <th class=ttl>NA</th>\r\n      </tr>";
    $lister->detailfmt = "<tr>\r\n\t  <td class=inp width=18 align=right>=NOMER=</td>\r\n      <td class=cna=NA= nowrap><a href='#self' onClick=\"EdtPerguruanTinggi(0, '=PerguruanTinggiID=')\"><img src='img/edit.png' border=0>\r\n      =PerguruanTinggiID=</a></td>\r\n\t  <td class=cna=NA=>=Nama=</a></td>\r\n\t  <td class=cna=NA=>=JenisPerguruanTinggiID=&nbsp;</td>\r\n\t  <td class=cna=NA=>=Kota=&nbsp;</td>\r\n\t  <td class=cna=NA=>=Website=&nbsp;</td>\r\n\t  <td class=cna=NA=>=Telephone=&nbsp;</td>\r\n\t  <td class=cna=NA=><center><img src='img/book=NA=.gif' border=0></td></tr>";
    $lister->footerfmt = "</table>";
    $hal = $lister->TampilkanHalaman($pagefmt, $pageoff);
    $ttl = $lister->MaxRowCount;
    echo $lister->TampilkanData();
    echo "<p align=center>Hal: {$hal} <br />(Tot: {$ttl})</p>\r\n\t\t<script>\r\n\t\t\tfunction EdtPerguruanTinggi(md, PTid)\r\n\t\t\t{\tlnk = '{$_SESSION['mnux']}.edit.php?md='+md+'&PTid='+PTid;\r\n\t\t\t\twin2 = window.open(lnk, '', 'width=620, height=700, scrollbars, status');\r\n\t\t\t\tif (win2.opener == null) childWindow.opener = self;\r\n\t\t\t}\r\n\t\t</script>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:40,代码来源:pmbasalpt.php

示例12: DaftarAntriDosen

function DaftarAntriDosen()
{
    include_once "class/xthlister.class.php";
    $AntrianIDPage = GetSetVar('AntrianIDPage');
    $arrKey = array('NIM' => 'nim', 'Nama' => 'nama', 'Semua' => '');
    // filter
    $whr = array();
    // Satukan filter
    $_whr = implode(' and ', $whr);
    $_whr = empty($_whr) ? '' : "where {$_whr}";
    // Tampilkan daftar
    $lst = new xthlister();
    $lst->page = $_SESSION['AntrianIDPage'] + 0;
    $lst->pageactive = "=PAGE=";
    $lst->pages = "=PAGE=";
    $lst->tables = "antridosenid d\n    left outer join prodi prd on d.ProdiID=prd.ProdiID\n    {$_whr}\n    order by d.Login";
    $lst->fields = "d.Login, d.Nama, d.LevelID, d.KodeID, d.Password, d.ProdiID, d.Foto";
    $lst->headerfmt = "<p><table class=box cellspacing=1 cellpadding=4>\n    <tr><th class=ttl>#</th>\n    <th class=ttl>NIP</th>\n    <th class=ttl>Nama Dosen</th>\n    <th class=ttl>Prodi</th>\n    <th class=ttl>Konfirmasi</th>\n    </tr>";
    $lst->footerfmt = "</table></p>";
    $lst->detailfmt = "<tr><td>=NOMER=</td>\n    <td bgcolor='#9BBB59' class=cna=Keluar=>=Login=</td>\n    <td bgcolor='#8DB3E2' class=cna=Keluar=>=Nama=</td>\n    <td bgcolor='#B2A1C7' class=cna=Keluar=>=ProdiID=</td>\n    <td bgcolor='#BFBFBF' class=cna=Keluar=>\n\t\n\t\t<form action='?' method='post'>\n\t\t<input type=hidden name='mnux' value='modules/antrianid/antrianid.dosen'>\n\t\t  <input type=hidden name='gos' value='UsrSav'>\n\t\t\n\t\t<input type='hidden' name='Login' value='=Login='>\n\t\t<input type='hidden' name='Nama' value='=Nama='>\n\t\t<input type='hidden' name='Password' value='=Password='>\n\t\t<input type='hidden' name='lvlid' value='=LevelID='>\n\t\t<input type='hidden' name='kid' value='=KodeID='>\n\t\t\n\t\t<input type='submit' class='btn light' value='Simpan' name='Salin'>\n\t\t</form>\n\t\t\n\t</td>\n    </tr>";
    echo $lst->TampilkanData();
    echo "Halaman : " . $lst->TampilkanHalaman();
}
开发者ID:johnxth,项目名称:sisfoapp,代码行数:23,代码来源:antrianid.dosen.php

示例13: DaftarAntriMhsw1

function DaftarAntriMhsw1()
{
    include_once "class/xthlister.class.php";
    $AntrianIDPage = GetSetVar('AntrianIDPage');
    $arrKey = array('NIM' => 'nim', 'Nama' => 'nama', 'Semua' => '');
    // filter
    $whr = array();
    // Satukan filter
    $_whr = implode(' and ', $whr);
    $_whr = empty($_whr) ? '' : "where {$_whr}";
    // Tampilkan daftar
    $lst = new xthlister();
    $lst->page = $_SESSION['AntrianIDPage'] + 0;
    $lst->pageactive = "=PAGE=";
    $lst->pages = "=PAGE=";
    $lst->tables = "antrimhswid a\n    left outer join program prg on a.ProgramID=prg.ProgramID\n    left outer join prodi prd on a.ProdiID=prd.ProdiID\n    left outer join statusmhsw sm on a.StatusMhswID=sm.StatusMhswID\n    {$_whr}\n    order by a.MhswID";
    $lst->fields = "a.MhswID, a.Nama, a.LevelID, a.KodeID, a.Password, a.ProgramID, a.ProdiID, a.SKKeluar, a.Foto,\n     sm.Keluar";
    $lst->headerfmt = "<p><table class=box cellspacing=1 cellpadding=4>\n    <tr><th class=ttl>#</th>\n    <th class=ttl>No Mhsw</th>\n    <th class=ttl>Nama Mhsw</th>\n    <th class=ttl>Program</th>\n    <th class=ttl>Prodi</th>\n    </tr>";
    $lst->footerfmt = "</table></p>";
    $lst->detailfmt = "<tr><td>=NOMER=</td>\n    <td bgcolor='#9BBB59' class=cna=Keluar=>=MhswID=</td>\n    <td bgcolor='#8DB3E2' class=cna=Keluar=>=Nama=</td>\n    <td bgcolor='#E5B8B7' class=cna=Keluar=>=ProgramID=</td>\n    <td bgcolor='#B2A1C7' class=cna=Keluar=>=ProdiID=</td>\n\t</form>\n\t\t\n\t</td>\n    </tr>";
    echo $lst->TampilkanData();
    echo "Halaman : " . $lst->TampilkanHalaman();
}
开发者ID:johnxth,项目名称:sisfoapp,代码行数:23,代码来源:antrianid.mhsw.readonly.php

示例14: DaftarAntri

function DaftarAntri()
{
    include_once "class/xthlister.class.php";
    $DaftarAntrianPage = GetSetVar('DaftarAntrianPage');
    $arrKey = array('NIM' => 'nim', 'Nama' => 'nama', 'Semua' => '');
    // filter
    $whr = array();
    // Satukan filter
    $_whr = implode(' and ', $whr);
    $_whr = empty($_whr) ? '' : "where {$_whr}";
    // Tampilkan daftar
    $lst = new xthlister();
    $lst->page = $_SESSION['DaftarAntrianPage'] + 0;
    $lst->pageactive = "=PAGE=";
    $lst->pages = "=PAGE=";
    $lst->tables = "antrian a {$_whr} order by a.lastmodified";
    $lst->fields = "a.nim, a.nama, a.jenis, a.judul, a.kodjenis";
    $lst->headerfmt = "<p><table class=box cellspacing=1 cellpadding=4  width='100%'>\n    <tr>\n\t<th class=ttl>#</th>\n    <th class=ttl>NIM</th>\n    <th class=ttl>Nama Mahasiswa</th>\n    <th class=ttl>Jenis  Surat</th>\n    <th class=ttl>Judul Surat</th>\n    <th class=ttl>Kode Jenis</th>\n    <th class=ttl>Print</th>\n    </tr>";
    $lst->footerfmt = "</table></p>";
    $lst->detailfmt = "<tr>\n\t<td>=NOMER=</td>\n    <td bgcolor='#9BBB59' class=cna=Keluar=>=nim=</td>\n    <td bgcolor='#8DB3E2' class=cna=Keluar=>=nama=</td>\n    <td bgcolor='#E5B8B7' class=cna=Keluar=>=jenis=</td>\n    <td bgcolor='#B2A1C7' class=cna=Keluar=>=judul=</td>\n    <td bgcolor='#FABF8F' class=cna=Keluar=>=kodjenis=</td>\n    <td bgcolor='#BFBFBF' class=cna=Keluar=>\n\t\t<form action='modules/cetak.php' method='post' target='_parent'>\n\t\t<input type='hidden' name='cetak_id' value='nim'>\n\t\t<input type='submit' value='Print'>\n\t\t</form>\n\t</td>\n    </tr>";
    echo $lst->TampilkanData();
    echo "Halaman : " . $lst->TampilkanHalaman();
}
开发者ID:johnxth,项目名称:sisfoapp,代码行数:23,代码来源:daftarantrian.coba.php

示例15: DftrGelombang

function DftrGelombang()
{
    global $_maxbaris;
    include_once "class/lister.class.php";
    GelEdtScript();
    $_gelombangpage = GetSetVar('_gelombangpage', 0);
    $pagefmt = "<a href='?mnux={$_SESSION['mnux']}&gos=gelombang&sub=&_gelombangpage==PAGE='>=PAGE=</a>";
    $pageoff = "<b>=PAGE=</b>";
    $brs = "<hr size=1 color=silver />";
    $gantibrs = "<tr><td bgcolor=silver height=1 colspan=8></td></tr>";
    $lst = new lister();
    $lst->tables = "pmbperiod p where p.KodeID = '" . KodeID . "' order by p.PMBPeriodID desc";
    $lst->fields = "p.PMBPeriodID, p.Nama,\n    p.NA,\n    date_format(p.TglMulai, '%d/%m/%y') as _TglMulai,\n    date_format(p.TglSelesai, '%d/%m/%y') as _TglSelesai,\n    date_format(p.UjianMulai, '%d/%m/%y') as _UjianMulai,\n    date_format(p.UjianSelesai, '%d/%m/%y') as _UjianSelesai,\n    date_format(p.BayarMulai, '%d/%m/%y') as _BayarMulai,\n    date_format(p.BayarSelesai, '%d/%m/%y') as _BayarSelesai,\n\tdate_format(p.WawancaraMulai, '%d/%m/%y') as _WawancaraMulai,\n\tdate_format(p.WawancaraSelesai, '%d/%m/%y') as _WawancaraSelesai";
    $lst->startrow = $_SESSION['_gelombangpage'] + 0;
    $lst->maxrow = $_maxbaris;
    $lst->headerfmt = "<p><table class=box cellspacing=1 align=center width=800>\n    <tr>\n    <td class=ul1 colspan=7>\n      <input type=button name='Tambah' value='Tambah Gelombang'\n        onClick=\"javascript:GelEdt(1, '', '{$_SESSION['mnux']}')\" />\n      <input type=button name='Refresh' value='Refresh'\n        onClick=\"window.location='?mnux={$_SESSION['mnux']}'\" />\n      Catatan: Hanya ada 1 gelombang yang aktif.\n    </td>\n    </tr>\n    \n    <tr>\n    <th class=ttl colspan=2>#</th>\n    <th class=ttl>Gelombang</th>\n    <th class=ttl>Nama Gelombang</th>\n    <th class=ttl>Periode</th>\n    <th class=ttl>Ujian</th>\n    <th class=ttl>Bayar</th>\n    <th class=ttl>NA</th>\n    </tr>";
    $lst->detailfmt = "<tr>\n    <td class=inp width=10>=NOMER=</td>\n    <td class=ul1 width=10>\n      <a href='#' onClick=\"javascript:GelEdt(0, '=PMBPeriodID=', '{$_SESSION['mnux']}')\"><img src='img/edit.png' /></a></td>\n    <td class=cna=NA= width=100>=PMBPeriodID=</td>\n    <td class=cna=NA=>=Nama=</td>\n    <td class=cna=NA= width=80 align=center>=_TglMulai={$brs}=_TglSelesai=</td>\n    <td class=cna=NA= width=80 align=center>=_UjianMulai={$brs}=_UjianSelesai=</td>\n    <td class=cna=NA= width=80 align=center>=_BayarMulai={$brs}=_BayarSelesai=</td>\n    <td class=ul1 width=10 align=center><img src='img/book=NA=.gif' /></td>\n    </tr>" . $gantibrs;
    $lst->footerfmt = "</table>";
    $hal = $lst->WritePages($pagefmt, $pageoff);
    $ttl = $lst->MaxRowCount;
    echo $lst->ListIt();
    echo "<p align=center>Hal: {$hal} <br />(Tot: {$ttl})</p>";
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:23,代码来源:pmbsetup.gelombang.php


注:本文中的GetSetVar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。