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


PHP FormatTanggal函数代码示例

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


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

示例1: AmbilDetail

function AmbilDetail($mhsw, $khs)
{
    $s = "select *\r\n    from bayarmhsw bm\r\n    where bm.TahunID='{$khs['TahunID']}' and bm.MhswID='{$mhsw['MhswID']}'\r\n      and bm.TrxID=-1\r\n    order by bm.Tanggal";
    $r = _query($s);
    $str = '';
    if (_num_rows($r) > 0) {
        $n = 0;
        $str = "<table class=bsc cellspacing=1 cellpadding=1>";
        while ($w = _fetch_array($r)) {
            $n++;
            $tgl = FormatTanggal($w['Tanggal']);
            $jml = number_format($w['Jumlah']);
            $proses = $w['Proses'] == 0 ? "<a href='?mnux=mhswkeu.ambil&gos=TrxAmbilPros&khsid={$khs['KHSID']}&bayarmhswid={$w['BayarMhswID']}' title='Proses Pembayaran'><img src='img/gear.gif'> Proses</a>" : "<a href='?mnux=mhswkeu.ambil&gos=TrxAmbilPros&khsid={$khs['KHSID']}&bayarmhswid={$w['BayarMhswID']}&Rep=1' title='Proses Reprint'><img src='img/printer.gif'> Reprint</a>";
            $str .= "<tr><td class=inp>{$n}</td>\r\n        <td class=ul valign=middle>{$proses}</td>\r\n        <td class=ul>{$w['BayarMhswID']}</td>\r\n        <td class=ul>{$tgl}</td>\r\n        <td class=ul>{$jml}</td>\r\n        </tr>";
        }
        $str .= "</table>";
    } else {
        $str = "&nbsp;";
    }
    return $str;
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:21,代码来源:mhswkeu.ambil.php

示例2: TampilkanHeader

function TampilkanHeader()
{
    $ta = GetFields('ta', 'TAID', $_SESSION['TAID'], '*');
    $dsn = GetFields('dosen', "Login = '{$ta['Pembimbing']}' and KodeID", KodeID, "Nama, Gelar");
    $mhsw = GetFields('mhsw', "MhswID = '{$ta['MhswID']}' and KodeID", KodeID, "*");
    $TglMulai = FormatTanggal($ta['TglMulai']);
    $TglSelesai = FormatTanggal($ta['TglSelesai']);
    $b1 = empty($dsn) ? '(Belum diset)' : "{$dsn['Nama']} <sup>{$dsn['Gelar']}</sup>";
    echo <<<ESD
  <table class=box cellspacing=1 width=100%>
  <tr><td class=inp width=100>NIM:</td>
      <td class=ul>{$ta['MhswID']}&nbsp;</td>
      <td class=inp width=100>Nama Mahasiswa:</td>
      <td class=ul>{$mhsw['Nama']}&nbsp;</td>
      </tr>
  <tr><td class=inp>Tahun Akademik:</td>
      <td class=ul>{$ta['TahunID']}&nbsp;</td>
      <td class=inp>Batas Waktu:</td>
      <td class=ul>{$TglMulai} ~ {$TglSelesai}</td>
      </tr>
  <tr><td class=inp>Judul:</td>
      <td class=ul colspan=3>{$ta['Judul']}&nbsp;</td>
      </tr>
  <tr><td class=inp>Deskripsi/Abstrak:</td>
      <td class=ul colspan=3>{$ta['Deskripsi']}&nbsp;</td>
      </tr>
  <tr><td class=inp>Pembimbing Utama:</td>
      <td class=ul colspan=3>{$b1}</td>
      </tr>
  </table>
ESD;
    TampilkanDaftarPembimbing($_SESSION['TAID'], $mhsw);
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:33,代码来源:ta.pembimbing.php

示例3: TampilkanDaftarYudisium

function TampilkanDaftarYudisium()
{
    $optprd = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", "ProdiID", $_SESSION['prodi'], '', "ProdiID");
    $bulan1 = GetMonthOption($_SESSION['bulan1']);
    $bulan2 = GetMonthOption($_SESSION['bulan2']);
    $tahun1 = GetNumberOption(date('Y') - 10, date('Y'), $_SESSION['tahun1']);
    $tahun2 = GetNumberOption(date('Y') - 10, date('Y') + 1, $_SESSION['tahun2']);
    $TglYudisium = GetDateOption($_SESSION['TglYudisium'], 'TglYudisium');
    echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n  <form action='?' method=POST>\r\n  <tr><td class=ul colspan=2><font size=+1>Filter</font></td></tr>\r\n  <tr><td class=inp>Prodi :</td><td class=ul><select name='prodi'>{$optprd}</select> Kosongkan jika ingin melihat semua</td></tr>\r\n  <tr><td class=inp>Lulus bulan :</td><td class=ul>\r\n    <select name='bulan1'>{$bulan1}</select><select name='tahun1'>{$tahun1}</select> s/d\r\n    <select name='bulan2'>{$bulan2}</select><select name='tahun2'>{$tahun2}</select> <input type=submit name='Filter' value='Filter Daftar'></td></tr>\r\n  </form>\r\n  \r\n  <tr><td class=ul colspan=2><font size=+1>SK Yudisium</font></td></tr>\r\n  <tr><td colspan=2>Set mahasiswa yang bertanda centang dalam daftar di bawah ini dengan SK Yudisium berikut ini:</td></tr> \r\n  <form action='?' method=POST>\r\n  <input type=hidden name='mnux' value='skyudisium'>\r\n  <input type=hidden name='gos' value='SKYSAV'>\r\n  <tr><td class=inp>No SK Yudisium :</td><td class=ul><input type=text name='SKYudisium' value='{$_SESSION['SKYudisium']}' size=50 maxlength=100></td></tr>\r\n  <tr><td class=inp>Tanggal Yudisium :</td><td class=ul>{$TglYudisium} <input type=submit name='Simpan' value='Set SK Semua yg Dicentang'></td></tr>\r\n  </table></p>";
    if ($_SESSION['prodi'] != '10') {
        $_whr = "('{$_SESSION['tahun1']}-{$_SESSION['bulan1']}-01' <= ta.TglUjian) \r\n      and (ta.TglUjian <= '{$_SESSION['tahun2']}-{$_SESSION['bulan2']}-31') and ";
    } else {
        $_whr = "";
    }
    $s = "select ta.*, m.Nama\r\n    from ta ta\r\n      left outer join mhsw m on ta.MhswID=m.MhswID\r\n    where ta.Lulus='Y'\r\n      and m.ProdiID = '{$_SESSION['prodi']}'\r\n      \r\n    order by ta.MhswID";
    $r = _query($s);
    $n = 0;
    $TotalSKY = _num_rows($r) + 0;
    echo "<input type=hidden name='TotalSKY' value={$TotalSKY}>\r\n    <p><table class=box cellspacing=1 cellpadding=4>\r\n    <tr><th class=ttl>#</th>\r\n    <th class=ttl>N.P.M</th>\r\n    <th class=ttl>Nama Mahasiswa</th>\r\n    <th class=ttl>Tgl Ujian</th>\r\n    <th class=ttl>Judul</th>\r\n    <th class=ttl>SK Yudisium</th>\r\n    <th class=ttl>Tgl Yudisium</th>\r\n    <th class=ttl>Centang</th>\r\n    </tr>";
    while ($w = _fetch_array($r)) {
        $n++;
        $TglSKYudisium = FormatTanggal($w['TglSKYudisium']);
        echo "<tr><td class=inp>{$n}</td>\r\n    <td class=ul>{$w['MhswID']}</td>\r\n    <td class=ul>{$w['Nama']}</td>\r\n    <td class=ul>{$w['TglUjian']}</td>\r\n    <td class=ul>{$w['Judul']}</td>\r\n    <td class=ul>{$w['SKYudisium']}&nbsp;</td>\r\n    <td class=ul>{$TglSKYudisium}</td>\r\n    <td class=ul><input type=checkbox name='SKY[]' value='{$w['TAID']}'></td>\r\n    </tr>";
    }
    echo "</table></form></p>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:26,代码来源:skyudisium.php

示例4: KalendarAkd

function KalendarAkd()
{
    $t = GetFields('tahun', "ProdiID='{$_SESSION['prodi']}' and ProgramID='{$_SESSION['prid']}' and TahunID", $_SESSION['tahun'], '*');
    if (empty($t)) {
        echo ErrorMsg("Kalendar Akademik Tidak Ada", "Kalendar Akademik <font size=+1>{$_SESSION['tahun']}</font> tidak ada atau\n      belum dibuat.<br />\n      Hubungi MIS/IT untuk informasi lebih lanjut");
    } else {
        $_prd = GetaField('prodi', 'ProdiID', $_SESSION['prodi'], 'Nama');
        $_prg = GetaField('program', 'ProgramID', $_SESSION['prid'], 'Nama');
        $TglKRSMulai = FormatTanggal($t['TglKRSMulai']);
        $TglKRSSelesai = FormatTanggal($t['TglKRSSelesai']);
        $TglUbahKRSMulai = FormatTanggal($t['TglUbahKRSMulai']);
        $TglUbahKRSSelesai = FormatTanggal($t['TglUbahKRSSelesai']);
        $TglCuti = FormatTanggal($t['TglCuti']);
        $TglMundur = FormatTanggal($t['TglMundur']);
        $TglKembaliUangKuliah = FormatTanggal($t['TglKembaliUangKuliah']);
        $TglBayarMulai = FormatTanggal($t['TglBayarMulai']);
        $TglBayarSelesai = FormatTanggal($t['TglBayarSelesai']);
        $TglKuliahMulai = FormatTanggal($t['TglKuliahMulai']);
        $TglKuliahSelesai = FormatTanggal($t['TglKuliahSelesai']);
        $TglUTSMulai = FormatTanggal($t['TglUTSMulai']);
        $TglUTSSelesai = FormatTanggal($t['TglUTSSelesai']);
        $TglUASMulai = FormatTanggal($t['TglUASMulai']);
        $TglUASSelesai = FormatTanggal($t['TglUASSelesai']);
        $TglNilai = FormatTanggal($t['TglNilai']);
        echo "<p><table class=box cellspacing=1>\n    <tr><td class=ul colspan=2><font size=+1>Kalendar Akademik</font></th></tr>\n    <tr><td class=inp>Tahun Akademik</td>\n      <td class=ul>{$t['TahunID']}</td></tr>\n    <tr><td class=inp>Nama Tahun</td>\n      <td class=ul>{$t['Nama']}</td></tr>\n    <tr><td class=inp>Program</td>\n      <td class=ul>{$_prg}</td></tr>\n    <tr><td class=inp>Program Studi</td>\n      <td class=ul>{$_prd}</td></tr>\n    <tr><td class=inp>Tidak Aktif?</td><td class=ul><img src='img/book{$t['NA']}.gif'></td></tr>\n      \n    <tr><td class=ul colspan=2><font size=+1>KRS</font></td></tr>\n    <tr><td class=inp>Mulai KRS</td>\n      <td class=ul>{$TglKRSMulai}</td></tr>\n    <tr><td class=inp>Selesai KRS</td>\n      <td class=ul>{$TglKRSSelesai}</td></tr>\n    <tr><td class=inp>Mulai Ubah KRS</td><td class=ul>{$TglUbahKRSMulai}</td></tr>\n    <tr><td class=inp>Selesai Ubah KRS</td><td class=ul>{$TglUbahKRSSelesai}</td></tr>\n    <tr><td class=inp>Batas Pengajuan Cuti</td><td class=ul>{$TglCuti}</td></tr>\n    <tr><td class=inp>Batas Pengajuan Mundur Kuliah</td><td class=ul>{$TglMundur}</td></tr>\n    <tr><td class=inp>Batas Pengambilan Kelebihan Uang Kuliah</td><td class=ul>{$TglKembaliUangKuliah}</td></tr>\n    \n    <tr><td class=ul colspan=2><font size=+1>Masa Pembayaran</font></td></tr>\n    <tr><td class=inp>Mulai Pembayaran</td><td class=ul>{$TglBayarMulai}</td></tr>\n    <tr><td class=inp>Selesai Pembayaran</td><td class=ul>{$TglBayarSelesai}</td></tr>\n    \n    <tr><td class=ul colspan=2><font size=+1>Periode Perkuliahan</font></td></tr>\n    <tr><td class=inp>Mulai Kuliah</td><td class=ul>{$TglKuliahMulai}</td></tr>\n    <tr><td class=inp>Selesai Kuliah</td><td class=ul>{$TglKuliahSelesai}</td></tr>\n    \n    <tr><td class=ul colspan=2><font size=+1>Periode Ujian Tengah Semester</font></td></tr>\n    <tr><td class=inp>Mulai UTS</td><td class=ul>{$TglUTSMulai}</td></tr>\n    <tr><td class=inp>Selesai UTS</td><td class=ul>{$TglUTSSelesai}</td></tr>\n    \n    <tr><td class=ul colspan=2><font size=+1>Periode Ujian Akhir Semester</font></td></tr>\n    <tr><td class=inp>Mulai UAS</td><td class=ul>{$TglUASMulai}</td></tr>\n    <tr><td class=inp>Selesai UAS</td><td class=ul>{$TglUASSelesai}</td></tr>\n    <tr><td class=inp>Batas Akhir Penilaian</td><td class=ul>{$TglNilai}</td></tr>\n    <tr><td class=inp>Catatan</td>\n      <td class=ul>{$t['Catatan']}&nbsp;</td></tr>\n    \n    </table></p>";
    }
}
开发者ID:johnxth,项目名称:sisfoapp,代码行数:27,代码来源:inq.kalendar.php

示例5: BuatPanitera

function BuatPanitera()
{
    global $prodi_asal, $prodi_panitera;
    $sked = $_REQUEST['sked'];
    $mhsw = GetFields('mhsw', "MhswID", $sked, '*');
    if (!empty($mhsw)) {
        if ($mhsw['ProdiID'] == $prodi_asal) {
            $ada = GetFields('mhsw', "ProdiID='{$prodi_panitera}' and PMBID", $sked, '*');
            if (!empty($ada)) {
                die(ErrorMsg("Mhsw Sudah Terdaftar", "Mahasiswa dengan NPM S.Ked <b>{$sked}</b> telah terdaftar di program Kepaniteraan.\r\n        <hr size=1 color=silver>\r\n\t      Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>"));
            }
            //if ($mhsw['LulusUjian'] == 'N')
            if ($mhsw['StatusMhswID'] != 'L') {
                die(ErrorMsg("Mhsw Belum Lulus", "Mahasiswa dengan NPM S.Ked <b>{$sked}</b> belum lulus S.Ked.\r\n      <hr size=1 color=silver>\r\n\t    Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>"));
            }
            $tgl = FormatTanggal($mhsw['TanggalLulus']);
            CheckFormScript("SKMasuk");
            $TGL = GetDateOption(date('Y-m-d'), 'TGL');
            echo Konfirmasi("Pembuatan NPM Kepaniteraan", "<p><form action='?' method=POST onSubmit=\"return CheckForm(this)\">\r\n      <input type=hidden name='mnux' value='mhsw.panitera.baru'>\r\n      <input type=hidden name='sked' value='{$sked}'>\r\n      <input type=hidden name='gos' value='BuatPanitera1'>\r\n      <table class=bsc>\r\n\t\t  <tr><td class=ul>NPM SKed</td>\r\n\t\t  <td class=ul><b>{$mhsw['MhswID']}</td></tr>\r\n\t\t  <tr><td class=ul>Nama Mhsw</td>\r\n\t\t  <td class=ul><b>{$mhsw['Nama']}</td></tr>\r\n\t\t  <tr><td class=ul>Lulus Tanggal</td>\r\n\t\t  <td class=ul><b>{$tgl}</td></tr>\r\n\t\t  <tr><td class=ul>Nilai Akhir</td>\r\n\t\t  <td class=ul><b>{$mhsw['GradeNilai']} ({$mhsw['NilaiUjian']})</td></tr>\r\n\t\t  <tr><td class=ul>SK Masuk Panitera</td>\r\n\t\t    <td class=ul><input type=text name='SKMasuk' size=30 maxlength=50></td></tr>\r\n\t\t  <tr><td class=ul>Tanggal SK Masuk</td>\r\n\t\t    <td class=ul>{$TGL}</td></tr>\r\n\t\t  </table></p>\r\n\t\t\r\n\t    Pilihan: <input type=submit name='Simpan' value='Simpan'>\r\n\t    <input type=button name='Batal' value='Batalkan Proses' onClick=\"location='?mnux=mhsw.panitera.baru&gos='\">\r\n      </form>");
        } else {
            echo ErrorMsg("Mhsw Bukan Dari Kedokteran", "Mahasiswa dengan Nama <b>{$mhsw['Nama']}</b> (<b>{$sked}</b>) bukan dari Fakultas Kedokteran.<br />\r\n\t  Mahasiswa ini tidak dapat diproses menjadi mahasiswa Kepaniteraan.\r\n\t  <hr size=1 color=silver>\r\n\t  Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>");
        }
    } else {
        echo ErrorMsg("Mhsw Tidak Ditemukan", "Mhsw dengan NPM <b>{$sked}</b> tidak ditemukan, atau bukan dari fakultas Kedokteran.\r\n\t  <hr size=1 color=silver>\r\n\t  Pilihan: <a href='?mnux=mhsw.panitera.baru'>Kembali</a>");
    }
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:26,代码来源:mhsw.panitera.baru.php

示例6: GetHeaderJadwalKlinik

function GetHeaderJadwalKlinik($JdwlID = 0)
{
    $jdwl = GetFields('jadwal j', "j.JadwalID", $JdwlID, "j.*");
    $TM = FormatTanggal($jdwl['TglMulai']);
    $TS = FormatTanggal($jdwl['TglSelesai']);
    echo "<p><table class=box>\r\n  <tr><td class=inp>ID</td>\r\n    <td class=ul>{$jdwl['JadwalID']}</td>\r\n    <td class=inp>RS</td>\r\n    <td class=ul>{$jdwl['RuangID']}</td>\r\n    <td class=inp>Kelas</td>\r\n    <td class=ul>{$jdwl['NamaKelas']}</td>\r\n    <td class=inp>Kapasitas</td>\r\n    <td class=ul>{$jdwl['Kapasitas']}</td>\r\n    </tr>\r\n  <tr><td class=inp>Kode</td>\r\n    <td class=ul>{$jdwl['MKKode']}</td>\r\n    <td class=inp>Matakuliah</td>\r\n    <td class=ul>{$jdwl['Nama']}</td>\r\n    <td class=inp>SKS</td>\r\n    <td class=ul>{$jdwl['SKS']}</td>\r\n    <td class=inp>Periode</td>\r\n    <td class=ul>{$TM} - {$TS}</td>\r\n  </table></p>";
    return $jdwl;
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:8,代码来源:mhsw.klinik.bebas.php

示例7: HeaderAnjunganMhsw

function HeaderAnjunganMhsw($mhsw)
{
    $tglLahir = FormatTanggal($mhsw['TanggalLahir']);
    $foto = $mhsw['Foto'];
    $foto = empty($foto) ? "img/tux001.jpg" : $foto;
    $PA = GetaField('dosen', "Login", $mhsw['PenasehatAkademik'], "concat(Nama, ', ', Gelar)");
    echo "<p><table class=bsc>\r\n  <tr><td class=ttl colspan=4>Data Pribadi</td></tr>\r\n  <tr><td class=inp>Nomer Pokok Mhsw</td>\r\n      <td class=ul>{$mhsw['MhswID']}</td>\r\n      <td class=inp>Program</td>\r\n      <td class=ul>{$mhsw['ProgramID']} - {$mhsw['PRG']}</td>\r\n      <td class=bsc rowspan=8 valign=top><img src='../{$foto}' vspace=10 hspace=10 height=150 width=120></td>\r\n      </tr>\r\n  <tr><td class=inp>Nama Mhsw</td>\r\n      <td class=ul>{$mhsw['Nama']}</td>\r\n      <td class=inp>Program Studi</td>\r\n      <td class=ul>{$mhsw['ProdiID']} - {$mhsw['PRD']}</td>\r\n      </tr>\r\n  <tr><td class=inp>Angkatan</td>\r\n      <td class=ul>{$mhsw['TahunID']}</td>\r\n      <td class=inp>Status Mhsw</td>\r\n      <td class=ul>{$mhsw['STA']} &nbsp;</td>\r\n      </tr>\r\n  <tr><td class=inp>Batas Studi</td>\r\n      <td class=ul>{$mhsw['BatasStudi']} &nbsp;</td>\r\n      <td class=inp>Pembimbing Akademik</td>\r\n      <td class=ul>{$PA} &nbsp;</td>\r\n      </tr>\r\n  <tr><td class=inp>Jenis Kelamin</td>\r\n      <td class=ul>{$mhsw['KEL']} &nbsp;</td>\r\n      <td class=inp>Agama</td>\r\n      <td class=ul>{$mhsw['AGM']} &nbsp;</td>\r\n      </tr>\r\n  <tr><td class=inp>Tempat, Tgl Lahir</td>\r\n      <td class=ul>{$mhsw['TempatLahir']}, {$tglLahir}</td>\r\n      <td class=inp>Status Perkawinan</td>\r\n      <td class=ul>{$mhsw['KWN']} &nbsp;</td>\r\n      </tr>\r\n\t<tr><td class=ttl colspan=4>&nbsp;</td></tr></table></p>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:8,代码来源:dwo.mhsw.php

示例8: DftrUjian

function DftrUjian()
{
    global $arrUjian;
    $_jj = empty($_SESSION['jenjad']) ? '' : "and j.JenisJadwalID='{$_SESSION['jenjad']}' ";
    switch ($_SESSION['ujian']) {
        case 0:
            $ord = "j.HariID, j.JamMulai, j.MKKode, j.NamaKelas";
            break;
        case 1:
            $ord = "j.UTSTanggal, j.UTSJamMulai, j.MKKode, j.NamaKelas";
            break;
        case 2:
            $ord = "j.UASTanggal, j.UASJamMulai, j.MKKode, j.NamaKelas";
            break;
    }
    $s = "select j.*\n    from jadwal j\n    where j.TahunID='{$_SESSION['tahun']}' and j.NamaKelas<>'KLINIK'\n      and INSTR(j.ProgramID, '.{$_SESSION['prid']}.')>0\n      and INSTR(j.ProdiID, '.{$_SESSION['prodi']}.')>0 {$_jj} \n      and j.JadwalSer = 0 \n\t  order by {$ord}";
    $r = _query($s);
    $tgl = '';
    echo "<p><table class=box cellspacing=1>\n    <tr><th class=ttl>Edit</th>\n    <th class=ttl>Tanggal</th>\n    <th class=ttl>Jam</th>\n    <th class=ttl>Ruang</th>\n    <th class=ttl>ID</th>\n    <th class=ttl>Kode</th>\n    <th class=ttl>Matakuliah</th>\n    <th class=ttl>Kelas</th>\n    <th class=ttl>Jenis</th>\n    <th class=ttl>SKS</th>\n    <th class=ttl>Mhsw</th>\n    <th class=ttl title='Minimal Kehadiran Mhsw'>Min</th>\n    <th class=ttl>Dosen</th>\n    <th class=ttl title='Daftar Hadir Ujian'><img src='img/printer.gif'></th>\n    <th class=ttl title='Daftar Mhsw Tidak Boleh Ujian'><img src='img/printer.gif'></th> \n    </tr>";
    $nmujian = $arrUjian[$_SESSION['ujian']];
    while ($w = _fetch_array($r)) {
        if ($tgl != $w[$nmujian . "Tanggal"]) {
            $tgl = $w[$nmujian . "Tanggal"];
            $Tanggal = $tgl == "0000-00-00" ? "-" : FormatTanggal($tgl);
        } else {
            $Tanggal = "\"";
        }
        if ($w[$nmujian . "Tanggal"] == "0000-00-00") {
            $c = "class=nac";
            $Tanggal = "x";
            $dhu = "&nbsp;";
            $JAM = "&nbsp;";
        } else {
            $c = "class=ul";
            $dhu = "<a href='jadwal.cetakdh.php?JadwalID={$w['JadwalID']}&ctk={$_SESSION['ujian']}' title='Daftar Hadir Ujian' target=_blank>DHU</a>";
            $xdhu = $_SESSION['ujian'] == 2 ? "<a href='jadwal.cetakdh.php?JadwalID={$w['JadwalID']}&ctk=2&hak=1' title='Mhsw Tidak Ujian' target=_blank>MTU</a>" : '&nbsp;';
            $JAM = substr($w[$nmujian . "JamMulai"], 0, 5) . "-" . substr($w[$nmujian . "JamSelesai"], 0, 5);
        }
        // Array dosen
        $arrdosen = explode('.', TRIM($w['DosenID'], '.'));
        $strdosen = implode(',', $arrdosen);
        $dosen = empty($strdosen) ? '' : GetArrayTable("select Nama from dosen where Login in ({$strdosen}) order by Nama", "Login", "Nama", '<br />');
        $RuangID = $w[$nmujian . "RuangID"];
        if (empty($RuangID)) {
            $RG = '';
        } else {
            $arrrg = explode(',', $RuangID);
            for ($i = 0; $i < sizeof($arrrg); $i++) {
                $arrrg[$i] = substr($arrrg[$i], 0, strpos($arrrg[$i], ':'));
            }
            $RG = implode(',', $arrrg);
        }
        echo "<tr>\n      <td class=ul><a href='?mnux=jadwal.ujian&gos=JUEdt&JadwalID={$w['JadwalID']}&ujian={$_SESSION['ujian']}'><img src='img/edit.png'></a></td>\n      <td {$c} align=center>{$Tanggal}</td>\n      <td {$c}>{$JAM}</td>\n      <td {$c}>{$RG}&nbsp;</td>\n      <td class=inp>{$w['JadwalID']}</td>\n      <td {$c}>{$w['MKKode']}</td>\n      <td {$c}>{$w['Nama']}</td>\n      <td {$c}>{$w['NamaKelas']}&nbsp;</td>\n      <td {$c}>{$w['JenisJadwalID']}</td>\n      <td {$c} align=right>{$w['SKS']}</td>\n      <td {$c} align=right>{$w['JumlahMhsw']}/{$w['Kapasitas']}</td>\n      <td {$c} align=right title='Min {$w['KehadiranMin']}x dari {$w['Kehadiran']}x tatap muka'>{$w['KehadiranMin']}/{$w['Kehadiran']}</td>\n      <td {$c}>{$dosen}</td>\n      <td {$c}>{$dhu}</td>\n      <td {$c}>{$xdhu}</td>\n      </tr>";
    }
    echo "</table></p>";
}
开发者ID:johnxth,项目名称:sisfoapp,代码行数:56,代码来源:jadwal.ujian.php

示例9: BuatJudulLaporan

function BuatJudulLaporan($_fid, $p)
{
    $lbr = 190;
    $t = 6;
    $Mulai = FormatTanggal($_SESSION['TglMulai']);
    $Selesai = FormatTanggal($_SESSION['TglSelesai']);
    $p->SetFont('Helvetica', 'B', 14);
    $p->Cell($lbr, $t, "Laporan Penjualan Formulir", 0, 1, 'C');
    $p->Cell($lbr, $t, "Periode: {$Mulai} ~ {$Selesai}", 0, 1, 'C');
    $p->Ln(2);
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:11,代码来源:pmblap.jualformulir.php

示例10: TADSN

function TADSN($mhsw, $ta)
{
    $TM = FormatTanggal($ta['TglMulai']);
    $TS = FormatTanggal($ta['TglSelesai']);
    $TU = FormatTanggal($ta['TglUjian']);
    $_TU = $TU == '00/00/0000' ? "&nbsp;" : $TU;
    $pemb = GetaField('dosen', "Login", $ta['Pembimbing'], "concat(Nama, ', ', Gelar)");
    $peng = GetaField('dosen', "Login", $ta['Penguji'], "concat(Nama, ', ', Gelar)");
    //echo "<p><a href='?mnux=ta'>Kembali ke Data Tugas Akhir</a></p>";
    echo "<p><table class=box cellspacing=1 cellpadding=4>\r\n  <tr><td class=inp>Batas Tanggal</td><td class=ul>{$TM} ~ {$TS}</td>\r\n    <td class=inp>Tgl Ujian</td><td class=ul>{$_TU}</td></tr>\r\n  <tr><td class=inp>Pembimbing Utama <a href='?mnux=ta&gos=TAEdt&taid={$ta['TAID']}&md=0'><img src='img/edit.png'></a></td>\r\n    <td class=ul>{$pemb} &nbsp;</td>\r\n    <td class=inp>Penguji Utama <img src='img/edit.png'></td>\r\n    <td class=ul>{$peng} &nbsp;</td></tr>\r\n  <tr><td class=inp>Judul</td>\r\n    <td class=ul colspan=3>{$ta['Judul']}</td></tr>\r\n  <tr><td class=inp>Opsi</td>\r\n    <td class=ul colspan=3><input type=button name='Kembali' value='Kembali ke Data Mhsw' onClick=\"location='?mnux=ta'\"></td></tr>\r\n  </table></p>";
    DaftarPendamping($mhsw, $ta);
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:12,代码来源:ta.dsn.php

示例11: AmbilDetail

function AmbilDetail($f, $mhsw, $w)
{
    global $_lf;
    $s = "select pm.*, jp.Nama, jp.Nilai, p.Tanggal\n    from presensimhsw pm\n      left outer join presensi p on pm.PresensiID=p.PresensiID\n      left outer join jenispresensi jp on pm.JenisPresensiID=jp.JenisPresensiID\n    where pm.MhswID='{$mhsw['MhswID']}' and pm.JadwalID={$w['JadwalID']}\n      and pm.JenisPresensiID <> 'H'\n    order by p.Tanggal";
    $r = _query($s);
    $n = 0;
    while ($w = _fetch_array($r)) {
        $n++;
        $tgl = FormatTanggal($w['Tanggal']);
        fwrite($f, str_pad(' ', 12) . str_pad($n . '.', 4) . str_pad($tgl, 14) . str_pad($w['Nama'], 10) . $_lf);
    }
}
开发者ID:johnxth,项目名称:sisfoapp,代码行数:12,代码来源:lap.hadir.permhsw.php

示例12: TampilkanHeaderMatakuliahKlinik

function TampilkanHeaderMatakuliahKlinik($mhsw, $krs, $mnux = '')
{
    $jdwl = GetFields('jadwal', 'JadwalID', $krs['JadwalID'], '*');
    $mk = GetFields('mk', 'MKID', $krs['MKID'], '*');
    $RS = GetaField('rumahsakit', 'RSID', $jdwl['RuangID'], 'Nama');
    $TM = FormatTanggal($jdwl['TglMulai']);
    $TS = FormatTanggal($jdwl['TglSelesai']);
    $bia = number_format($jdwl['Harga']);
    $byr = number_format($krs['Bayar']);
    $sisa = $jdwl['Harga'] - $krs['Bayar'];
    $ss = number_format($sisa);
    echo "<p><table class=box>\r\n  <tr><td class=inp>Matakuliah</td>\r\n    <td class=ul colspan=3>{$krs['MKKode']} - <b>{$mk['Nama']}</b> ({$mk['Singkatan']})</td>\r\n    <td class=inp>SKS</td>\r\n    <td class=ul>{$mk['SKS']}</td>\r\n  </tr>\r\n  <tr><td class=inp>Rumah Sakit</td>\r\n    <td class=ul>{$jdwl['RuangID']} - <b>{$RS}</b></td>\r\n    <td class=inp>Dari</td>\r\n    <td class=ul>{$TM}</td>\r\n    <td class=inp>Sampai</td>\r\n    <td class=ul>{$TS}</td></tr>\r\n  <tr><td class=inp>Biaya</td>\r\n    <td class=ul>{$bia}</td>\r\n    <td class=inp>Dibayar</td>\r\n    <td class=ul>{$byr}</td>\r\n    <td class=inp>Kekurangan</td>\r\n    <td class=ul><b>{$ss}</b></td>\r\n    </tr>\r\n  <tr><td colspan=3><input type=button name='Kembali' value='Kembali' onClick=\"location='?mnux={$mnux}'\"></td></tr>\r\n  </table></p>";
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:13,代码来源:klinik.biyar.trx.php

示例13: fnKonfirmasi

function fnKonfirmasi($jid)
{
    TampilkanJudul("Jadwalkan {$_SESSION['_jdwlU']}");
    $w = GetFields('jadwal', 'JadwalID', $jid, '*');
    $d = GetFields('dosen', "Login = '{$w['DosenID']}' and KodeID", KodeID, "Nama, Gelar");
    $tgl = FormatTanggal($_SESSION['_jdwlTgl']);
    echo <<<ESD
  <table class=box width=100%>
  <form name='frmUJIAN' action='../{$_SESSION['mnux']}.edit.php' method=POST>
  <input type=hidden name='jid' value='{$jid}' />
  <input type=hidden name='gos' value='fnSimpan' />
  <input type=hidden name='_jdwlRuang' value='{$_SESSION['_jdwlRuang']}' />
  <input type=hidden name='_jdwlTgl' value='{$_SESSION['_jdwlTgl']}' />
  <input type=hidden name='_jdwlU' value='{$_SESSION['_jdwlU']}' />
  
  <tr><td class=inp>Kode:</td>
      <td class=ul>{$w['MKKode']}&nbsp;</td>
      <td class=inp>Matakuliah:</td>
      <td class=ul>{$w['Nama']}&nbsp;</td>
      </tr>
  <tr><td class=inp>SKS:</td>
      <td class=ul>{$w['SKS']} <sup>sks</sup></td>
      <td class=inp>Kelas:</td>
      <td class=ul>{$w['NamaKelas']}&nbsp;</td>
      </tr>
  <tr><td class=inp>Prodi:</td>
      <td class=ul>{$w['ProdiID']} <sup>{$w['ProgramID']}</sup></td>
      <td class=inp>Dosen:</td>
      <td class=ul>{$d['Nama']} <sup>{$d['Gelar']}</sup></td>
      </tr>
  
  <tr><th class=ttl colspan=4>Dijadwalkan Di:</th></tr>
  <tr><td class=inp>Tanggal:</td>
      <td class=ul>{$tgl}</td>
      <td class=inp>Ruang:</td>
      <td class=ul>{$_SESSION['_jdwlRuang']}&nbsp;</td>
      </tr>
  <tr><td class=inp>Jam Mulai:</td>
      <td class=ul><input type=text name='JamMulai' size=5 maxlength=5 /></td>
      <td class=inp>Selesai:</td>
      <td class=ul><input type=text name='JamSelesai' size=5 maxlength=5 /></td>
      </tr>
  <tr><td class=ul colspan=4 align=center>
      <input type=submit name='btnSimpan' value='Jadwalkan' />
      <input type=button name='btnTutup' value='Tutup' 
        onClick="window.close()" />
      </td></tr>
  </form>
  </table>
ESD;
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:51,代码来源:jadwalujian.edit.php

示例14: TampilkanDeposit

function TampilkanDeposit()
{
    global $_lf;
    $mxb = 55;
    $mxc = 112;
    $grs = str_pad('-', $mxc, '-') . $_lf;
    $DariTanggal = FormatTanggal($_SESSION['DTGL']);
    $SampaiTanggal = FormatTanggal($_SESSION['STGL']);
    $hdr = str_pad("Daftar Deposit Mahasiswa", $mxc, ' ', STR_PAD_BOTH) . $_lf . str_pad("Periode: {$DariTanggal} sampai {$SampaiTanggal}", $mxc, ' ', STR_PAD_BOTH) . $_lf . $grs . str_pad('No.', 5) . str_pad('Tanggal', 12) . str_pad('N.P.M', 15) . str_pad('Nama Mahasiswa', 30) . str_pad('Jumlah', 15, ' ', STR_PAD_LEFT) . str_pad('Dipakai', 15, ' ', STR_PAD_LEFT) . str_pad('Sisa', 15, ' ', STR_PAD_LEFT) . $_lf . $grs;
    // Query
    $s = "select dm.DepositMhswID, dm.Tanggal, dm.MhswID,\r\n    dm.Jumlah, dm.Dipakai, (dm.Jumlah - dm.Dipakai) as Sisa, dm.Tutup,\r\n    LEFT(m.Nama, 29) as Nama, m.ProdiID\r\n    from depositmhsw dm\r\n      left outer join mhsw m on dm.MhswID=m.MhswID\r\n    where '{$_SESSION['DTGL']}' <= dm.Tanggal and dm.Tanggal <= '{$_SESSION['STGL']}'\r\n    order by dm.Tanggal";
    $r = _query($s);
    $n = 0;
    $b = 0;
    $nmf = HOME_FOLDER . DS . "tmp/{$_SESSION['_Login']}.dwoprn";
    $f = fopen($nmf, 'w');
    fwrite($f, $hdr);
    $_Jumlah = 0;
    $_Dipakai = 0;
    $_Sisa = 0;
    while ($w = _fetch_array($r)) {
        $n++;
        $b++;
        if ($b >= $mxb) {
            $mxb = 0;
            fwrite($f, $grs . chr(12));
            fwrite($f, $hdr);
        }
        $TGL = FormatTanggal($w['Tanggal']);
        // Jumlahkan
        $_Jumlah += $w['Jumlah'];
        $_Dipakai += $w['Dipakai'];
        $_Sisa += $w['Sisa'];
        // Format tampilan
        $Jumlah = number_format($w['Jumlah']);
        $Dipakai = number_format($w['Dipakai']);
        $Sisa = number_format($w['Sisa']);
        $Tutup = $w['Sisa'] == 0 ? chr(215) : '';
        fwrite($f, str_pad($n, 5) . str_pad($TGL, 12) . str_pad($w['MhswID'], 15) . str_pad($w['Nama'], 30) . str_pad($Jumlah, 15, ' ', STR_PAD_LEFT) . str_pad($Dipakai, 15, ' ', STR_PAD_LEFT) . str_pad($Sisa, 15, ' ', STR_PAD_LEFT) . str_pad($Tutup, 4, ' ', STR_PAD_LEFT) . $_lf);
    }
    $__Jumlah = number_format($_Jumlah);
    $__Dipakai = number_format($_Dipakai);
    $__Sisa = number_format($_Sisa);
    fwrite($f, $grs);
    fwrite($f, str_pad("Jumlah : ", 62, ' ', STR_PAD_LEFT) . str_pad($__Jumlah, 15, ' ', STR_PAD_LEFT) . str_pad($__Dipakai, 15, ' ', STR_PAD_LEFT) . str_pad($__Sisa, 15, ' ', STR_PAD_LEFT) . $_lf);
    fclose($f);
    TampilkanFileDWOPRN($nmf, 'klinik.lap');
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:48,代码来源:klinik.lap.deposit.php

示例15: BuatIsinya

function BuatIsinya($TahunID, $ProdiID, $p)
{
    $s = "select b2.*, bn.Singkatan, bn.Urutan, b.Tanggal\r\n    from bayarmhsw2 b2\r\n      left outer join bayarmhsw b on b2.BayarMhswID = b.BayarMhswID\r\n      left outer join bipotnama bn on b2.BIPOTNamaID = bn.BIPOTNamaID\r\n    where b.KodeID = '" . KodeID . "'\r\n      and b.TahunID = '{$TahunID}'\r\n      and '{$_SESSION['TglMulai']}' <= b.Tanggal\r\n      and b.Tanggal <= '{$_SESSION['TglSelesai']}'\r\n      and b.NA = 'N'\r\n      and b2.NA = 'N'\r\n    order by bn.Urutan";
    $r = _query($s);
    $arrNama = array();
    $arrTGL = array();
    $arrJML = array();
    $arrTTL = array();
    while ($w = _fetch_array($r)) {
        if (array_search($w['Singkatan'], $arrNama) === false) {
            $arrNama[] = $w['Singkatan'];
        }
        if (array_search($w['Tanggal'], $arrTGL) === false) {
            $arrTGL[] = $w['Tanggal'];
        }
        $arrJML[$w['Tanggal']][$w['Singkatan']] += $w['Jumlah'];
        $arrTTL[$w['Singkatan']] += $w['Jumlah'];
    }
    // Tampilkan
    $t = 4;
    $lbr0 = 18;
    $lbr = 20;
    $p->SetFont('Helvetica', 'B', 8);
    $p->Cell($lbr0, $t, 'Tanggal', 1, 0);
    foreach ($arrNama as $Nama) {
        $p->Cell($lbr, $t, $Nama, 1, 0, 'C');
    }
    $p->Ln($t);
    // Data
    $p->SetFont('Helvetica', '', 8);
    foreach ($arrTGL as $tgl) {
        $_tgl = FormatTanggal($tgl);
        $p->Cell($lbr0, $t, $_tgl, 1, 0);
        foreach ($arrNama as $nama) {
            $jml = number_format($arrJML[$tgl][$nama]);
            $p->Cell($lbr, $t, $jml, 1, 0, 'R');
        }
        $p->Ln($t);
    }
    $p->Ln(2);
    // Tampilkan Total
    $p->Cell($lbr0, $t, 'Total:', 1, 0, 'R');
    foreach ($arrNama as $nama) {
        $jml = number_format($arrTTL[$nama]);
        $p->Cell($lbr, $t, $jml, 1, 0, 'R');
    }
    $p->Ln($t);
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:48,代码来源:lapkeu.bayarbulan.php


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