Esempio n. 1
1
">
	 <?php 
} elseif ($a->app_hd_status == 3) {
    ?>
	 <img id="img" height="50%" src="<?php 
    echo base_url('metronic/img/paid.png');
    ?>
">
	 <?php 
} else {
    echo '';
}
?>
	 </td></tr>
	 <tr><td>TGL : <?php 
echo tgl_indo($this->session->userdata('tgl_y'));
?>
</td></tr>
	</table>
  </body>
</html>
<script>
window.print();
</script>
<?php 
function tgl_indo($tgl)
{
    $tanggal = substr($tgl, 8, 2);
    $bulan = getBulan(substr($tgl, 5, 2));
    $tahun = substr($tgl, 0, 4);
    return $tanggal . ' ' . $bulan . ' ' . $tahun;
Esempio n. 2
1
          <th width="75px">tanggal</th>
          <th width="100px">total</th>
          <th width="100px">dibayar</th>
          <th width="100px">kembali</th>
          <th width="100px">kasir</th>
        </tr>
      <?php 
        $no = 1;
        $brg = mysql_query("SELECT penjualan.nota, \r\n\t\t\t\t\t\t \t\t penjualan.tanggal,\r\n\t\t\t\t\t\t\t\t penjualan.total,\r\n\t\t\t\t\t\t\t\t penjualan.dibayar,\r\n\t\t\t\t\t\t\t\t penjualan.kembali,\r\n\t\t\t\t\t\t\t\t user.nama_lengkap\r\n\t\t\t\t\t\t\tFROM penjualan, user \r\n\t\t\t\t\t\t   WHERE penjualan.id_user = user.id_user\r\n\t\t\t\t\t\t     AND penjualan.tanggal >= '{$tgl_awal}'\r\n                             AND penjualan.tanggal <= '{$tgl_akhir}'\r\n\t\t\t\t\t\tORDER BY penjualan.nota DESC");
        $cek_brg = mysql_num_rows($brg);
        if ($cek_brg > 0) {
            while ($y = mysql_fetch_array($brg)) {
                $total = format_number($y['total']);
                $dibayar = format_number($y['dibayar']);
                $kembali = format_number($y['kembali']);
                $tgl = tgl_indo($y['tanggal']);
                ?>
          <tr>
            <td width="25px" align="center"><?php 
                echo $no;
                ?>
</td>
            <td width="50px" align="center"><?php 
                echo $y['nota'];
                ?>
</td>
            <td width="75px"><?php 
                echo $tgl;
                ?>
</td>
            <td width="100px" align="right"><?php 
 public function block_content($context, array $blocks = array())
 {
     // line 8
     echo "<div class=\"panel panel-default\">\n    <div class=\"panel-heading\">\n        <strong>Profil Publik ";
     // line 10
     echo $this->getAttribute(isset($context["pengajar_login"]) ? $context["pengajar_login"] : null, "is_admin") == 1 ? "<label class=\"label label-warning\">Administrator</label>" : "";
     echo "</strong>\n        <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n            ";
     // line 12
     echo anchor("pengajar/edit_profile/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Profil", array("class" => "iframe-7 btn btn-small btn-primary", "title" => "Edit Profil Pengajar"));
     echo "\n            ";
     // line 13
     echo anchor("pengajar/edit_picture/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Foto", array("class" => "iframe-5 btn btn-small btn-primary", "title" => "Edit Foto Pengajar"));
     echo "\n        </div>\n    </div>\n    <div class=\"panel-body\">\n        <table class=\"table\">\n            <tr>\n                <th bgcolor=\"#FBFBFB\" width=\"25%\">NIP</th>\n                <td>";
     // line 20
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nip"), "html", null, true);
     echo "</td>\n                <td rowspan=\"5\" width=\"15%\">\n                    <img style=\"width:113px;\" class=\"img-polaroid\" src=\"";
     // line 22
     echo twig_escape_filter($this->env, get_url_image_pengajar($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "foto"), "medium", $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "jenis_kelamin")), "html", null, true);
     echo "\">\n                </td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Nama</th>\n                <td>";
     // line 27
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "nama"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Jenis Kelamin</th>\n                <td>";
     // line 31
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "jenis_kelamin"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Tempat Lahir</th>\n                <td>";
     // line 35
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tempat_lahir"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Tanggal Lahir</th>\n                <td>";
     // line 39
     echo twig_escape_filter($this->env, !twig_test_empty($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tgl_lahir")) ? tgl_indo($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "tgl_lahir")) : "", "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Alamat</th>\n                <td colspan=\"2\">";
     // line 43
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "alamat"), "html", null, true);
     echo "</td>\n            </tr>\n            <tr>\n                <th bgcolor=\"#FBFBFB\">Status</th>\n                <td colspan=\"2\">\n                    ";
     // line 48
     if ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 0) {
         // line 49
         echo "                        Pending\n                    ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 1) {
         // line 51
         echo "                        Aktif\n                    ";
     } elseif ($this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "status_id") == 2) {
         // line 53
         echo "                        Blocking\n                    ";
     }
     // line 55
     echo "                </td>\n            </tr>\n        </table>\n    </div>\n</div>\n\n<div class=\"row-fluid\">\n    <div class=\"span5\">\n        <div class=\"panel panel-default\" id=\"akun\">\n            <div class=\"panel-heading\">\n                <strong>Akun Login</strong>\n                <div class=\"btn-group pull-right\" style=\"margin-top:-4px;\">\n                    ";
     // line 67
     echo anchor("pengajar/edit_username/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Username", array("class" => "iframe-2 btn btn-small btn-primary", "title" => "Edit Username pengajar"));
     echo "\n                    ";
     // line 68
     echo anchor("pengajar/edit_password/" . (isset($context["status_id"]) ? $context["status_id"] : null) . "/" . $this->getAttribute(isset($context["pengajar"]) ? $context["pengajar"] : null, "id"), "Edit Password", array("class" => "iframe-3 btn btn-small btn-primary", "title" => "Edit Password pengajar"));
     echo "\n                </div>\n            </div>\n            <div class=\"panel-body\">\n                <table class=\"table\">\n                    <tbody>\n                        <tr>\n                            <th width=\"30%\" bgcolor=\"#FBFBFB\">Username</th>\n                            <td>\n                                ";
     // line 77
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pengajar_login"]) ? $context["pengajar_login"] : null, "username"), "html", null, true);
     echo "\n                            </td>\n                        </tr>\n                        <tr>\n                            <th bgcolor=\"#FBFBFB\">Password</th>\n                            <td>\n                                *********\n                            </td>\n                        </tr>\n                    </tbody>\n                </table>\n            </div>\n        </div>\n    </div>\n</div>\n";
 }
Esempio n. 4
0
 public function update($id)
 {
     if ($this->input->post()) {
         $data = $this->input->post();
         $data['user_id'] = $this->data['user_id'];
         $this->Msales->update($data, $id);
         redirect($this->data['module']);
     }
     $update = $this->Msales->get_trx($id);
     $this->data['date'] = tgl_indo(date('Y-m-d'));
     $this->data['dataproduct'] = $update;
     $this->data['trx_id'] = $id;
     $this->data['proses'] = "update";
     $this->load->view('index', $this->data);
 }
Esempio n. 5
0
 public function index()
 {
     $result['data'] = $this->session->flashdata('error');
     $result['data']['success'] = false;
     $dataType = $this->input->get('dataType');
     $this->error->error = $result['data'];
     if ($dataType == 'json') {
         $this->load->view('cpanelx/library/json', $result);
     } else {
         if (!$this->error->isError()) {
             $this->error->error['date'] = nama_hari('Y-m-d') . ', ' . tgl_indo('Y-m-d') . date(' h:i');
             $this->error->set(anchor(base_url(), $this->error_lang['back']));
         }
         show_error($this->error->get_html());
     }
 }
Esempio n. 6
0
 public function __construct()
 {
     parent::__construct();
     $this->data = array();
     $this->data['content'] = "Buys";
     $this->data['module'] = "buys";
     $this->data['username'] = $this->session->userdata('username');
     $this->data['password'] = $this->session->userdata('password');
     $this->data['level'] = $this->session->userdata('level');
     $this->data['user_id'] = $this->session->userdata('user_id');
     $this->data['name'] = $this->session->userdata('name');
     $this->data['photo_ses'] = $this->session->userdata('photo');
     $this->load->model('Mbuys');
     $this->load->model('Msuppliers');
     $this->load->model('Mproducts');
     $this->data['dataproduct'] = $this->Mproducts->get_products();
     $this->data['datasupp'] = $this->Msuppliers->get_suppliers();
     $this->data['date'] = tgl_indo(date('Y-m-d'));
 }
Esempio n. 7
0
    public function template_email($token)
    {
        $hasil = '';
        $hasil = '<p>=======================================================================================<br />
					Email ini dikirimkan dari email address yang tidak dimonitor, mohon tidak melakulan reply.<br />
					========================================================================================</p>

					<p>Haloo, ' . $this->input->post('nama_lengkap') . '</p>

					<p>Anda telah melakukan registrasi pada website Indonesia Mendidik pada tanggal ' . tgl_indo(date('Y-m-d')) . ' <br />
					lakukan verifikasi dengan mengklik link berikut dibawah ini :<br />
					&nbsp;<br />
					http://indonesiamendidik.org/volunteer/verified/' . $token . '/


					<p>Terimakasih<br />
					Administrator Indonesia Mendidik</p>
					';
        return $hasil;
    }
Esempio n. 8
0
 function tampilkanmahasiswa()
 {
     $konsentrasi = $_GET['konsentrasi'];
     $tahun_angkatan = $_GET['tahun_angkatan'];
     $data = $this->db->get_where('student_mahasiswa', array('konsentrasi_id' => $konsentrasi, 'angkatan_id' => $tahun_angkatan))->result();
     echo "<tr><th width='5'>No</th><th width='70'>NIM</th><th>NAMA</th>\n            <th width=100>Tahun AKD</th>\n            <th>Aktif</th>\n            <th>Tanggal Registrasi</th>\n            <th></th></tr>";
     $no = 1;
     foreach ($data as $r) {
         // get last registrasi
         $last_id = $this->db->query("SELECT registrasi_id FROM akademik_registrasi WHERE nim='{$r->nim}' order by registrasi_id desc limit 1")->row_array();
         $gender = $r->gender == 1 ? 'Laki Laki' : 'Perempuan';
         $tahun_akademik_id = get_tahun_ajaran_aktif('tahun_akademik_id');
         $tanggal = status_registrasi($tahun_akademik_id, $r->nim, 'tanggal_registrasi');
         $status = $tanggal == '' ? 'Tidak' : 'Aktif';
         $smt_aktif = getField('student_mahasiswa', 'semester_aktif', 'mahasiswa_id', $r->mahasiswa_id);
         $btnaktf = "<button class='btn btn-primary btn-sm' onclick='registrasi({$r->mahasiswa_id})'>Belum Registrasi</button>";
         $btnnon = anchor('registrasi/delete/' . $last_id['registrasi_id'], 'Batalkan registrasi', array('class' => 'btn btn-success btn-sm'));
         $btn = $tanggal == '' ? $btnaktf : $btnnon;
         echo "<tr id='hide{$r->mahasiswa_id}'>\n                <td>{$no}</td>\n                <td>" . strtoupper($r->nim) . "</td>\n                <td>" . strtoupper($r->nama) . "</td>\n                <td>" . get_tahun_ajaran_aktif('keterangan') . "</td>\n                <td>{$status}</td>\n                <td>" . tgl_indo($tanggal) . "</td>\n                <td>{$btn}</td>\n                </tr>";
         $no++;
         //
     }
 }
date_default_timezone_set('Asia/Jakarta');
$this->fpdf->FPDF("L", "cm", "A4");
$this->fpdf->SetMargins(0.5, 0.5, 0.5);
$this->fpdf->AliasNbPages();
$this->fpdf->AddPage();
$this->fpdf->SetFont('Times', 'B', 14);
$this->fpdf->Cell(29.5, 0.3, $nama, 0, 0, 'C');
$this->fpdf->SetFont('Times', '', 12);
$this->fpdf->Ln();
$this->fpdf->Cell(29.5, 0.8, $tower, 0, 0, 'C');
$this->fpdf->Ln();
$this->fpdf->Cell(29.5, 0.4, $alamat, 0, 0, 'C');
$this->fpdf->Ln();
$this->fpdf->SetFont('Times', '', 12);
$this->fpdf->Cell(29.5, 1.3, $laporan . tgl_indo($tgl), 0, 0, 'C');
$this->fpdf->Ln();
/* Fungsi Line untuk membuat garis */
$this->fpdf->Line(0.5, 3.15, 29.5, 3.15);
$this->fpdf->Line(0.5, 3.2, 29.5, 3.2);
/* ————– Header Halaman selesai ————————————————*/
//$this->fpdf->SetFont('Times','B',12);
//$this->fpdf->Cell(19,1,'Header',0,0,'C');
/* setting header table */
$this->fpdf->SetFont('Times', 'B', 10);
$this->fpdf->Cell(2.5, 0.5, 'Kode', 1, 'LR', 'C');
$this->fpdf->Cell(2.5, 0.5, 'Alternatif', 1, 'LR', 'C');
$this->fpdf->Cell(7, 0.5, 'Nama', 1, 'LR', 'C');
$this->fpdf->Cell(2.5, 0.5, 'Jumlah', 1, 'LR', 'C');
$this->fpdf->Cell(2.5, 0.5, 'Kode', 1, 'LR', 'C');
$this->fpdf->Cell(2.5, 0.5, 'Alternatif', 1, 'LR', 'C');
Esempio n. 10
0
                                </thead>
                                <tbody>
                                    <?php 
foreach ($tabel as $tbl) {
    $kode = $tbl->id_outcome;
    $date = $tbl->date;
    $jumlah = $tbl->amount;
    $description = $tbl->description;
    ?>
                                        <tr>
                                            <td><?php 
    echo $kode;
    ?>
</td>
                                            <td><?php 
    echo tgl_indo($date);
    ?>
</td>
                                            <td align="right"><?php 
    echo "Rp. " . rupiah($jumlah);
    ?>
</td>
                                            <td><?php 
    echo $description;
    ?>
</td>
                                            <td width="15%">
                                                <button class="btn btn-warning" id="edit" onclick="edit('<?php 
    echo $kode;
    ?>
')">EDIT</button>
Esempio n. 11
0
    $nmpri = mysql_query("select nama from user where id_user='******'");
    $rnmpri = mysql_fetch_array($nmpri);
    $dari = $rnmpri["nama"];
    $nmpri = mysql_query("select nama_level from tbl_ket_level where id_level='" . $bz["dari_level"] . "'");
    $rnmpri = mysql_fetch_array($nmpri);
    $dari_level = $rnmpri["nama_level"];
    $nmpri = mysql_query("select nama from user where id_user='******'");
    $rnmpri = mysql_fetch_array($nmpri);
    $tujuan = $rnmpri["nama"];
    $nmpri = mysql_query("select nama_level from tbl_ket_level where id_level='" . $bz["tujuan_level"] . "'");
    $rnmpri = mysql_fetch_array($nmpri);
    $tujuan_level = $rnmpri["nama_level"];
    ?>
    <tr >
        <td><?php 
    echo tgl_indo($bz["tgl"]);
    ?>
</td>
        <td><?php 
    echo $dari;
    ?>
</td>
        <td><?php 
    echo $dari_level;
    ?>
</td>
        <td><?php 
    echo $tujuan;
    ?>
</td>
        <td><?php 
Esempio n. 12
0
                 echo "<td>{$r['pembuat']}</td>";
             }
             echo "<td>{$r['hits']}</td>\n             <td><a href='?module=materi&act=editmateri&id={$r['id_file']}' title='Edit'><img src='images/icons/edit.png' alt='Edit' /></a> |\n                 <a href=javascript:confirmdelete('{$aksi}?module=materi&act=hapus&id={$r['id_file']}') title='Hapus'><img src='images/icons/cross.png' alt='Delete' /></a></td></tr>";
             $no++;
         }
         echo "</table>";
     } else {
         echo "<script>window.alert('Tidak ada materi');\n            window.location=(href='?module=home')</script>";
     }
 } elseif ($_SESSION[leveluser] == 'pengajar') {
     $cek_materi = mysql_query("SELECT * FROM file_materi WHERE pembuat = '{$_SESSION['idpengajar']}'");
     echo "<h2>Daftar Materi Yang Anda Upload</h2><hr>\n          <input class='button blue' type=button value='Tambah Materi' onclick=\"window.location.href='?module=materi&act=tambahmateri';\">";
     echo "<br><br><table id='table1' class='gtable sortable'><thead>\n          <tr><th>No</th><th>Judul</th><th>Kelas</th><th>Pelajaran</th><th>Nama File</th><th>Tgl Upload</th><th>Hits</th><th>Aksi</th></tr></thead>";
     $no = 1;
     while ($r = mysql_fetch_array($cek_materi)) {
         $tgl_posting = tgl_indo($r[tgl_posting]);
         echo "<tr><td>{$no}</td>\n             <td>{$r['judul']}</td>";
         $kelas = mysql_query("SELECT * FROM kelas WHERE id_kelas = '{$r['id_kelas']}'");
         $cek_kelas = mysql_num_rows($kelas);
         if (!empty($cek_kelas)) {
             while ($k = mysql_fetch_array($kelas)) {
                 echo "<td><a href=?module=kelas&act=detailkelas&id={$r['id_kelas']} title='Detail Kelas'>{$k['nama']}</td>";
             }
         } else {
             echo "<td></td>";
         }
         $pelajaran = mysql_query("SELECT * FROM mata_pelajaran WHERE id_matapelajaran = '{$r['id_matapelajaran']}'");
         $cek_pelajaran = mysql_num_rows($pelajaran);
         if (!empty($cek_pelajaran)) {
             while ($p = mysql_fetch_array($pelajaran)) {
                 echo "<td><a href=?module=matapelajaran&act=detailpelajaran&id={$r['id_matapelajaran']} title='Detail pelajaran'>{$p['nama']}</a></td>";
Esempio n. 13
0
                    } else {
                        // in
                        $debit = $r2['rek'] == $r1['rekkas'] ? $r1['nominal'] : 0;
                        $kredit = $r2['rek'] == $r1['rekitem'] ? $r1['nominal'] : 0;
                    }
                }
                $tb2 .= '<tr>
                              <td width="60%" >' . getRekening($r2['rek']) . '</td>
                              <td width="20%" align="right" >Rp. ' . number_format($debit) . ',-</td>
                              <td width="20%" align="right" >Rp. ' . number_format($kredit) . ',-</td>
                            </tr>';
            }
            $tb2 .= '</table>';
        }
        $out .= '<tr>
                      <td>' . tgl_indo($r1['tanggal']) . '</td>
                      <td>' . $r1['nomer'] . '<br>' . getDetJenisTrans2($r1['replid']) . '<br>' . $r1['nobukti'] . '</td>
                      <td>' . $r1['uraian'] . '</td>
                      <td>' . $tb2 . '</td>
                    </tr>';
    }
}
$out .= '</table>';
$out .= '</body>';
echo $out;
#generate html -> PDF ------------
$out2 = ob_get_contents();
ob_end_clean();
$mpdf = new mPDF('c', 'A4', '');
$mpdf->SetDisplayMode('fullpage');
$stylesheet = file_get_contents('../../lib/mpdf/r_cetak.css');
Esempio n. 14
0
</script>

<br/>
<div class="container_12">
    <div>
        <div class="grid_6" style="width: 98%">
            <div class="module">
                <h2><span>PEMBAYARAN</span></h2>
                <div class="module-body">
                    <table class="noborder" style="font-size: 16px">
                        <tr class="odd">
                            <td style="width: 20% ">Tgl Kunjungan</td>
                            <td style="width: 3%">:</td>
                            <td style="width:60% "><?php 
echo tgl_indo($kunjungan[0]['tanggal_kunjungan']);
?>
</td>
                            <td></td>
                        </tr>
                        <tr>
                            <td>Nama Pasien</td>
                            <td>:</td>
                            <td><b><?php 
echo $pasien[0]['nama_pasien'];
?>
</b></td>
                            <td></td>
                        </tr>
                        <tr class="odd">
                            <td>Umur</td>
Esempio n. 15
0
        $_tampil = mysql_query("select p.nip, p.nama, j.n_jab from pegawai p join jabatan j on p.id_jab=j.id_jab where p.nip='{$_GET['id']}'");
        $cr_id = mysql_query("select idh from h_jabatan where nip='{$_GET['id']}' and tgl_kjb='0000-00-00'");
        $tampilJb = mysql_query("select hj.tgl_ajb, hj.tgl_kjb, j.n_jab from h_jabatan hj join jabatan j on \n\t\t\t\t\t\t\thj.jabatan=j.id_jab\twhere hj.nip='{$_GET['id']}' order by hj.idh desc");
        $cr_id_dt = mysql_fetch_array($cr_id);
        echo "<h2 class='head'>DATA PEGAWAI</h2>\n\t\t\t<p class='headings'>Kecamatan sentolo</p>\n\t\t<table class='tabelform'>";
        while ($dt = mysql_fetch_array($tampil)) {
            echo "  <tr>\n\t    \t\t\t<td width='150'>NIP</td>\n\t    \t\t\t<td>{$dt['nip']}</td>\n\t    \t\t</tr>\n\t    \t\t<tr>\n\t\t\t\t\t<td>Nama Pegawai</td>\n\t\t\t\t\t<td>{$dt['nama']}</td>\n\t    \t\t</tr>";
        }
        echo "</table>";
        echo "<h2 class='head'>HISTORY JABATAN PEGAWAI</h2>\n\t\t\t<p class='headings'></p>\n\t\t\t<table class='tabel'>\n\t\t\t<tr>\n\t\t\t\t<td>Jabatan</td>\n\t\t\t\t<td>Tgl Awal Menjabat</td>\n\t\t\t\t<td>Tgl Akhir Menjabat</td>\n\t\t\t</tr>\n\t\t\t";
        while ($dtjb = mysql_fetch_array($tampilJb)) {
            echo "  <tr>\n\t\t\t\t\t<td>{$dtjb['n_jab']}</td>\n\t\t\t\t\t<td>" . tgl_indo($dtjb['tgl_ajb']) . "</td>\n\t\t\t\t\t<td>";
            if ($dtjb['tgl_kjb'] == "0000-00-00") {
                echo "Masih Menjabat";
            } else {
                echo tgl_indo($dtjb['tgl_kjb']);
            }
            echo "</td></tr>";
        }
        echo "</table>";
        echo "<h2 class='head'>UBAH JABATAN PEGAWAI</h2>\n\t\t\t<p class='headings'></p>";
        while ($datanya = mysql_fetch_array($_tampil)) {
            echo "<form action='{$aksi}?module=kjb&act=ubahjb' method='post'>\n\t\t<table class='tabelform tabpad'>\n\t\t\t<tr>\n\t\t\t\t<td width='150'>Jabatan Sekarang</td>\n\t\t\t\t<td><input class='form-controltxt' name='jab' type='text' value='{$datanya['n_jab']}' readonly>\n\t\t\t\t<input class='input' name='idh' type='hidden' value='{$cr_id_dt['idh']}'>\n\t\t\t\t<input class='input' name='user' type='hidden' value='{$_GET['id']}'>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Ubah Jabatan</td>\n\t\t\t\t<td>";
            ?>
					<select name="jbtn" id="jbtn" class='formcontrol-select'>
						<option value='' selected >Pilih Jabatan</option>";
						<?php 
            $jabatan = mysql_query("select * from jabatan");
            while ($data = mysql_fetch_array($jabatan)) {
                echo "<option value='{$data['id_jab']}'>{$data['n_jab']}</option>";
            }
Esempio n. 16
0
                                    </a>
                                    <h5><a href="<?php 
                echo "{$website_url}/detailpost/{$tablerelated->seotitle}";
                ?>
" title="<?php 
                echo $tablerelated->title;
                ?>
"><?php 
                echo cuthighlight('title', $tablerelated->title, '35');
                ?>
</a></h5>
                                    <ul class="post_details simple"><li class="date"><?php 
                echo $tablerelated->time;
                ?>
, <?php 
                echo tgl_indo($tablerelated->date);
                ?>
</li></ul>
                                </li>
                                <?php 
            }
            ?>
                            </ul>
                        </div>
                    </div>
                    <?php 
        }
        ?>
 
                </div>
                <?php 
Esempio n. 17
0
         $linkHalaman = $p->navHalaman($_GET[halaman], $jmlhalaman);
         echo "<div id=paging>{$linkHalaman}</div><br></h6></div>";
         break;
     } else {
         echo "<table class='table table-condensed' width=100%>  \n          <tr><th>No</th><th>Judul</th><th>Tanggal posting</th><th></th></tr>";
         $p = new Paging9();
         $batas = 15;
         $posisi = $p->cariPosisi($batas);
         if ($_SESSION[leveluser] == 'admin') {
             $tampil = mysql_query("SELECT * FROM berita WHERE judul LIKE '%{$_GET['kata']}%' ORDER BY id_berita DESC LIMIT {$posisi},{$batas}");
         } else {
             $tampil = mysql_query("SELECT * FROM berita \n                           WHERE username='******'namauser']}'\n                           AND judul LIKE '%{$_GET['kata']}%'       \n                           ORDER BY id_berita DESC LIMIT {$posisi},{$batas}");
         }
         $no = $posisi + 1;
         while ($r = mysql_fetch_array($tampil)) {
             $tgl_posting = tgl_indo($r[tanggal]);
             echo "<tr><td>{$no}</td>\n                <td width=60%>{$r['judul']}</td>\n                <td>{$tgl_posting}</td>\n\t\t            <td>\n\t\t\t\t<div class='btn-group drodown pull-right'>\n  <button class='btn btn-info'><i class='icon-ok-circle icon-white'></i> Manipulasi Data</button>\n  <button class='btn btn-info dropdown-toggle' data-toggle='dropdown'>\n    <span class='caret'></span>\n  </button>\n  <ul class='dropdown-menu'>\n  \t<li><a href=?module=berita&act=editberita&id={$r['id_berita']}><i class='icon-pencil icon'></i> Edit Data</a></li>\n    <li><a href=\"{$aksi}?module=berita&act=hapus&id={$r['id_berita']}&namafile={$r['gambar']}\" onClick=\"return confirm('Apakah Anda benar-benar mau menghapusnya?')\"><i class='icon-trash icon'></i> Hapus Data</a></li>\n\n  </ul>\n</div></td>\n\t\t        </tr>";
             $no++;
         }
         echo "</table>";
         if ($_SESSION[leveluser] == 'admin') {
             $jmldata = mysql_num_rows(mysql_query("SELECT * FROM berita WHERE judul LIKE '%{$_GET['kata']}%'"));
         } else {
             $jmldata = mysql_num_rows(mysql_query("SELECT * FROM berita WHERE username='******'namauser']}' AND judul LIKE '%{$_GET['kata']}%'"));
         }
         $jmlhalaman = $p->jumlahHalaman($jmldata, $batas);
         $linkHalaman = $p->navHalaman($_GET[halaman], $jmlhalaman);
         echo "<div id=paging>{$linkHalaman}</div><br>";
         break;
     }
 case "tambahberita":
Esempio n. 18
0
    $sql2 = "SELECT * FROM `dokter_pembimbing` where id_dokter_pembimbing='{$_POST['kd_pembimbing']}'";
    $query2 = mysql_query($sql2);
    $d2 = mysql_fetch_array($query2);
    ?>

        <h4>Rincian Honorarium Dokter Pembimbing</h4>   
          <table>
            <tr><td>Nama</td><td>:</td><td><?php 
    echo $d2['nama'];
    ?>
</td></tr>
            <tr><td>Tanggal</td><td>:</td><td>dari <?php 
    echo tgl_indo(__convert_date($_POST['tgl1']));
    ?>
 s.d. <?php 
    echo tgl_indo(__convert_date($_POST['tgl2']));
    ?>
</td></tr>
          </table>
          <br><br>
          <button class=btn id='cetak'> Cetak</button>
          <table class="table table-bordered table-mod-2">
            <thead>
            <tr>
              <th>No</th>
              <th>Kegiatan</th>
              <th>Satuan</th>
              <th>Jumlah</th>
              <th>Jumlah Total</th>
            </tr>
            </thead>
Esempio n. 19
0
    $nmpri = mysql_query("select nama from user where id_user='******'");
    $rnmpri = mysql_fetch_array($nmpri);
    $dari = $rnmpri["nama"];
    $nmpri = mysql_query("select nama_level from tbl_ket_level where id_level='" . $qz["dari_level"] . "'");
    $rnmpri = mysql_fetch_array($nmpri);
    $dari_level = $rnmpri["nama_level"];
    $nmpri = mysql_query("select nama from user where id_user='******'");
    $rnmpri = mysql_fetch_array($nmpri);
    $tujuan = $rnmpri["nama"];
    $nmpri = mysql_query("select nama_level from tbl_ket_level where id_level='" . $qz["tujuan_level"] . "'");
    $rnmpri = mysql_fetch_array($nmpri);
    $tujuan_level = $rnmpri["nama_level"];
    ?>
        <tr>
            <td><?php 
    echo tgl_indo($qz["tgl"]);
    ?>
</td>
            <td><?php 
    echo $dari;
    ?>
</td>
            <td><?php 
    echo $dari_level;
    ?>
</td>
            <td><?php 
    echo $tujuan;
    ?>
</td>
            <td><?php 
<?php

$aksi = "modul/mod_siswa/aksi_mahasiswa.php";
$act = @$_GET['act'];
switch ($act) {
    // Tampil Mahasiswa
    default:
        echo "<h2>Mahasiswa</h2>\n<table>\n<tr>\n\t<th>No.</th>\n\t<th>NIM Mahasiswa</th>\n\t<th>Nama</th>\n\t<th>No. Telpon</th>\n\t<th>Jenis Kelamin</th>\n\t<th>Tempat/Tgl Lahir</th>\n\t<th>Jurusan</th>\n\t<th>Angkatan</th>\n\t<th>Aksi</th>\n</tr>";
        $p = new Paging();
        $batas = 10;
        $posisi = $p->cariposisi($batas);
        $tampil = mysql_query("SELECT * FROM mahasiswa,jurusan WHERE mahasiswa.kdjur=jurusan.kdjur AND mahasiswa.nim='{$_SESSION['namauser']}' ORDER BY nim limit {$posisi},{$batas}");
        $no = $posisi + 1;
        while ($r = mysql_fetch_array($tampil)) {
            $tglhr = tgl_indo($r['tglhr']);
            echo "<tr><td>{$no}</td>\n\t\t\t\t<td>{$r['nim']}</td>\n\t\t\t\t<td>{$r['nama']}</td>\n\t\t\t\t<td>{$r['notelp']}</td>\n\t\t\t\t<td>{$r['jekel']}</td>\n\t\t\t\t<td>{$r['tplhr']}, {$tglhr}</td>\n\t\t\t\t<td>{$r['nmjur']}</td>\n\t\t\t\t<td>{$r['angkatan']}</td>\n\t\t\t\t<td><a href=?module=mahasiswa&act=editmahasiswa&id={$r['nim']}><img src='images/edit-icon.gif' alt='edit' /></a>\n\t\t\t</tr>";
            $no++;
        }
        echo "</table>";
        $tampil2 = mysql_query("SELECT * FROM mahasiswa,jurusan WHERE mahasiswa.kdjur=jurusan.kdjur AND mahasiswa.nim='{$_SESSION['namauser']}' ORDER BY nim");
        $jmldata = mysql_num_rows($tampil2);
        $jmlhalaman = $p->jumlahHalaman($jmldata, $batas);
        $linkHalaman = $p->navHalaman($_GET['halaman'], $jmlhalaman);
        echo "<p>{$linkHalaman}</p>";
        break;
    case "tambahmahasiswa":
        $thn_skrg = date("Y");
        echo "<h2>Tambah Mahasiswa</h2>\n<form method=POST action='{$aksi}?module=mahasiswa&act=input' enctype='multipart/form-data'>\n<table>\n<tr>\n\t<td>NIM Mahasiswa</td>\n\t<td> : <input type=text name=nim size=15 maxlength=15></td>\n</tr>\n<tr>\n\t<td>Password</td>\n\t<td> : <input type=text name=password size=30 maxlength=30></td>\n</tr>\n<tr>\n\t<td>Nama Mahasiswa</td>\n\t<td> : <input type=text name=nama size=40 maxlength=100></td>\n</tr>\n<tr>\n\t\t<td>Jurusan</td>\n\t\t<td> : <select name=kdjur>\n\t\t<option value=0 selected>- Pilih Jurusan -</option>";
        $sql = mysql_query("SELECT * FROM jurusan ORDER BY nmjur");
        while ($data = mysql_fetch_array($sql)) {
            echo "<option value={$data['kdjur']}>{$data['nmjur']}</option>";
Esempio n. 21
0
 Sampai <?php 
echo tgl_indo($this->uri->segment(4));
?>
</td></tr>
</table><hr>
<br><table border="1" cellspacing="0">
	<tr>
		<th>No</th>
		<th>Tanggal</th>
		<th width="60">NIM</th>
		<th width="120">Nama Mahasiswa</th>
		<th width="130">Program Studi</th>
		<th width="120">Jenis Pembayaran</th>
		<th width="90">Total</th>
	</tr>
        <?php 
$no = 1;
$total = 0;
foreach ($transaksi as $r) {
    echo "<tr><td>{$no}</td>\n                <td>" . tgl_indo($r->tanggal) . "</td>\n                <td>" . strtoupper($r->nim) . "</td>\n                <td>" . strtoupper($r->nama) . "</td>\n                <td>" . strtoupper($r->nama_konsentrasi) . "</td>\n                <td>" . strtoupper($r->keterangan) . "</td>\n                <td align='right'>" . rp((int) $r->jumlah) . "</td>\n                </tr>";
    $no++;
    $total = $total + $r->jumlah;
}
?>
	<tr>
	<td align='right' colspan='6'><b>Grand Total</b></td>
	<td align='right'><b><?php 
echo rp($total);
?>
</b></td>
	</tr></table>
Esempio n. 22
0
<?php 
$i = 0;
foreach ($inventaris as $inv) {
    $i++;
    ?>

<tr><td class='tengah'><?php 
    echo $inv->kd_brg;
    ?>
</td>
<td class='tengah'><?php 
    echo $inv->nama_brg;
    ?>
</td>
<td class='tengah'><?php 
    echo tgl_indo($inv->tgl_dapat);
    ?>
</td>
<td><?php 
    echo $inv->letak;
    ?>
</td>
<td class='tengah'><?php 
    echo $inv->penggunaan;
    ?>
</td>
<td><?php 
    echo $inv->asal;
    ?>
</td>
<td><?php 
Esempio n. 23
0
<?php

include "../config/koneksi.php";
include "../config/library.php";
include "../config/fungsi_indotgl.php";
include "../config/fungsi_combobox.php";
include "../config/fungsi_rupiah.php";
// Bagian Home
if ($_GET[module] == 'home') {
    if ($_SESSION['leveluser'] == 'admin') {
        echo "<h2>Selamat Datang</h2>\n          <p>Hai <b>{$_SESSION['namalengkap']}</b>, selamat datang di halaman Administrator Belanjayuk.<br> Silahkan klik menu pilihan yang berada \n          di sebelah kiri untuk mengelola content website. </p>\n          <p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>\n          <p align=right>Login : {$hari_ini}, ";
        echo tgl_indo(date("Y m d"));
        echo " | ";
        echo date("H:i:s", time() + 60 * 60 * 7);
        echo " WIB</p>";
    }
} elseif ($_GET[module] == 'modul') {
    if ($_SESSION['leveluser'] == 'admin') {
        include "modul/mod_modul/modul.php";
    }
} elseif ($_GET[module] == 'laporanpemesanan') {
    if ($_SESSION['leveluser'] == 'admin') {
        include "modul/mod_laporanpemesanan/laporan.php";
    }
} elseif ($_GET[module] == 'kategori') {
    if ($_SESSION['leveluser'] == 'admin') {
        include "modul/mod_kategori/kategori.php";
    }
} elseif ($_GET[module] == 'produk') {
    if ($_SESSION['leveluser'] == 'admin') {
        include "modul/mod_produk/produk.php";
Esempio n. 24
0
 case "edit":
     $ambil = mysql_query("select * from pegawai, mutasi where pegawai.nip=mutasi.nip and pegawai.nip='{$_GET['id']}'");
     $t = mysql_fetch_array($ambil);
     echo "<h2 class='head'>Edit Data Pegawai</h2>\n\t\t  <p class='headings'>Kecamatan sentolo</p>\n\t<form action='{$aksi}?module=mutasi&act=edit' method='post' enctype='multipart/form-data' >\n\t\t<table class='tabelform tabpad' style='text-align:left;'>\n\t\t\t<tr>\n\t\t\t\t<td width='150'>Nip</td>\n\t\t\t\t<td><input type'text' class='form-controltxt' value='{$t['nip']}' readonly></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Nama Pegawai</td>\n\t\t\t\t<td><input type'text' class='form-controltxt' value='{$t['nama']}' readonly></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Tempat Lahir</td>\n\t\t\t\t<td><input type'text' class='form-controltxt' value='{$t['tmpt_lahir']}' readonly></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Tanggal Lahir</td>\n\t\t\t\t<td><input type'text' class='form-controltxt' value=" . tgl_indo($t['tgl_lahir']) . " readonly></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Jenis Kelamin</td>\n\t\t\t\t<td>";
     if ($t['jenis_kelamin'] == 'L') {
         echo "Pria";
     } else {
         if ($t['jenis_kelamin'] == 'P') {
             echo "Wanita ";
         }
     }
     echo "\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Alamat</td>\n\t\t\t\t<td><textarea class='form-controltextarea' readonly>{$t['alamat']}</textarea></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Tanggal Masuk</td>\n\t\t\t\t<td>";
     if ($t['status'] == 'Asli') {
         echo tgl_indo($t['tgl_masuk']);
     } else {
         echo tgl_indo($t['tgl_mutasi_masuk']);
     }
     echo "\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Golongan</td>\n\t\t\t\t<td>";
     $gol = mysql_query("select * from gol_pangkat");
     while ($g = mysql_fetch_array($gol)) {
         if ($t['id_gol'] == $g['id_golongan']) {
             echo "{$g['nama_golongan']}";
         }
     }
     echo " \t\t\t\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Jabatan</td>\n\t\t\t\t<td>";
     $jab = mysql_query("select * from jabatan");
     while ($j = mysql_fetch_array($jab)) {
         if ($t['id_jab'] == $j['id_jab']) {
             echo "{$j['n_jab']}";
         }
     }
Esempio n. 25
0
  <strong> 
             
 <a data-toggle="modal" href="#myModaluservote" data-whatever="<?php 
        echo $row->id_user;
        ?>
"><?php 
        echo $row->nama;
        ?>
</a>   
</strong>

    </li>
 

  <li class="list-space"><?php 
        echo tgl_indo($row->product_date);
        ?>
 </li>
  <li class="list-space"><?php 
        echo $row->time;
        ?>
</li>  
</ul>





<ul class="list-inline product-name-list">
  <li class="list-space"><strong><?php 
        echo $row->name_brand;
Esempio n. 26
0
        echo 'minus ' . Terbilang($ts) . ' rupiah';
    } else {
        echo Terbilang($totalSisa) . ' rupiah';
    }
}
?>
</td></tr>
	</table>
	<br/>
	<table class="tableizer-table4">
	 <tr><td align="center">Mengetahui</td></tr>
	 <tr><td style="border-bottom: 0px;">&nbsp;</td></tr>
	 <tr><td style="border-bottom: 0px;border-top: 0px;">&nbsp;</td></tr>
	 <tr><td style="border-top: 0px;">&nbsp;</td></tr>
	 <tr><td>TGL : <?php 
echo tgl_indo(date('Y-m-d'));
?>
</td></tr>
	</table>
  </body>
</html>
<script>
window.print();
</script>
<?php 
function tgl_indo($tgl)
{
    $tanggal = substr($tgl, 8, 2);
    $bulan = getBulan(substr($tgl, 5, 2));
    $tahun = substr($tgl, 0, 4);
    return $tanggal . ' ' . $bulan . ' ' . $tahun;
Esempio n. 27
0
         if ($c[jml] != 0) {
             $quiz = mysql_query("SELECT * FROM quiz_esay WHERE id_tq = '{$_GET['id']}'");
             $jquiz = mysql_query("SELECT * FROM quiz_esay WHERE id_tq = '{$_GET['id']}'");
             $jq = mysql_fetch_array($jquiz);
             $topik = mysql_query("SELECT * FROM topik_quiz WHERE id_tq = '{$jq['id_tq']}'");
             $t = mysql_fetch_array($topik);
             $kelas = mysql_query("SELECT * FROM kelas WHERE id_kelas = '{$t['id_kelas']}'");
             $k = mysql_fetch_array($kelas);
             $pelajaran = mysql_query("SELECT * FROM mata_pelajaran WHERE id_matapelajaran = '{$t['id_matapelajaran']}'");
             $p = mysql_fetch_array($pelajaran);
             echo "<div class='information msg'><b>Daftar Soal Quiz Esay</b></div>\n              <form><fieldset>\n              <legend>Info Tugas/Quiz</legend>\n              <dl class='inline'>\n              <dt><label>Judul</label></dt>           <dd>: {$t['judul']}</dd>\n              <dt><label>Kelas</label></dt>           <dd>: {$k['nama']}</dd>\n              <dt><label>Mata Pelajaran</label></dt>  <dd>: {$p['nama']}</dd>\n              </dl></fieldset></form>";
             echo "<input class='button blue' type=button value='Tambah Quiz Esay' onclick=\"window.location.href='?module=buatquizesay&act=buatquizesay&id={$jq['id_tq']}';\">\n              <input class='button blue' type=button value=Kembali onclick=\"window.location.href='?module=quiz';\">";
             echo "<br><br><table id='table1' class='gtable sortable'><thead>\n          <tr><th>No</th><th>Pertanyaan</th><th>Gambar</th><th>Tgl Buat</th><th>Aksi</th></tr></thead>";
             $no = 1;
             while ($q = mysql_fetch_array($quiz)) {
                 $tgl_buat = tgl_indo($q[tgl_buat]);
                 echo "<tr><td>{$no}.</td>\n             <td>{$q['pertanyaan']}</td>\n             <td>{$q['gambar']}</td>\n             <td>{$tgl_buat}</td>\n             <td><a href='?module=quiz&act=editquizesay&id={$q['id_quiz']}&id_topik={$q['id_tq']}' title='Edit'><img src='images/icons/edit.png' alt='Edit' /></a> |\n                 <a href=javascript:confirmdelete('{$aksi}?module=quiz&act=hapusquizesay&id={$q['id_quiz']}&id_topik={$q['id_tq']}') title='Hapus' ><img src='images/icons/cross.png' alt='Delete' /></a>\n                 </td></tr>";
                 $no++;
             }
             echo "</table>";
         } else {
             echo "<script>window.alert('Quiz esay masih kosong');\n            window.location=(href='?module=quiz')</script>";
         }
     }
     break;
 case "daftarquizpilganda":
     if ($_SESSION[leveluser] == 'admin') {
         $cek = mysql_query("SELECT COUNT(quiz_pilganda.id_quiz) as jml FROM quiz_pilganda WHERE id_tq = '{$_GET['id']}'");
         $c = mysql_fetch_array($cek);
         if ($c[jml] != 0) {
             $quiz = mysql_query("SELECT * FROM quiz_pilganda WHERE id_tq = '{$_GET['id']}'");
Esempio n. 28
0
			</tr>	
			<tr>
				<td width="5%" align="left"><font size="-3">2.</font></td>
				<td width="95%" align="left"><font size="-3">Setelah menyampaikan laporan sebagaimana yang dimaksud dalam pasal 6 Pengusaha atau pengurus wajib melaporkan setiap tahun secara tertulis mengenai ketenaga kerjaan kepada Menteri atau Pejabat yang ditunjuk Pasal 7 ayat(1) UU No. 7 Thn. 1981.</font></td>
			</tr>	
			<tr>
				<td width="5%" align="left"><font size="-3">3.</font></td>
				<td width="95%" align="left"><font size="-3">Pengusaha atau pengurus wajib melaporkan secara tertulis kepada Menteri atau Pejabat yang ditunjuk selambat-lambatnya dalam jangka waktu 30 (tiga puluh) hari sebelum memindahkan, menghentikan atau membubarkan perusahaan , pasal 8 ayat (1) UU No. 7 Th. 1981.</font></td>
			</tr>	
			<tr>
				<td width="5%" align="left"><font size="-3">4.</font></td>
				<td width="95%" align="left"><font size="-3">Bukti melaporkan ketenaga kerjaan ini beserta lampirannya, harus disimpan baik-baik, dan bila diminta oleh Pegawai Pengawas supaya dapat ditunjukkan.</font></td>
			</tr>	
			<tr>
				<td width="5%" align="left"><font size="-3">5.</font></td>
				<td width="95%" align="left"><font size="-3">Bukti tentang Wajib Lapor Ketenaga Kerjaan di perusahaan ini berlaku untuk 1 (satu) tahun terhitung mulai tanggal ' . tgl_indo($berlaku) . ' sampai tanggal ' . tgl_indo($sampai) . '</font></td>
			</tr>																									
			</table>
			';
$bawah = '
			<table border="0" width="100%" align="center">
			<tr>
				<td width="15%" align="left"></td>
				<td width="30%" align="left"></td>
				<td width="50%" align="center"><font size="-2"><b>KEPALA DINAS SOSIAL DAN TENAGA KERJA<br/>
				KOTA MEDAN</font></b></td>
			</tr>
			<tr>
				<td width="15%" align="left"></td>
				<td width="30%" align="left"></td>
				<td width="50%" align="center"><font size="-4"><br><br></font></td>
                   <form class="form-horizontal">
                      <div class="form-group">
						<div class="col-lg-6">
                        <label for="Kode Pengadaan" class="control-label">Kode</label>
                        
                          <input type="text" disabled="" value="<?php 
echo $data_edit->kode_pengadaan;
?>
" class="form-control">
                        </div>
						
						<div class="col-lg-6">
						 <label for="Tanggal Beli" class="control-label">Tanggal Beli</label>
                        
                          <input type="text" disabled="" value="<?php 
echo tgl_indo($data_edit->tgl_beli);
?>
" class="form-control">
                        </div>
                      </div><!-- /.form-group -->
					  
					  <div class="form-group">
					  <div class="col-lg-6">
                        <label for="Kode Suplier" class="control-label">Kode Suplier</label>
                        
                          <?php 
foreach ($db->fetch_all("as_suplier") as $isi) {
    if ($data_edit->kode_suplier == $isi->kode_suplier) {
        echo "<input disabled class='form-control' type='text' value='{$isi->nm_suplier}'>";
    }
}
Esempio n. 30
-1
        });
      });
</script>
<?php 
$aksi = "modul/mod_buku/aksi_buku.php";
switch ($_GET[act]) {
    // Tampil Buku
    default:
        echo "<h2>Buku</h2>\r\n\t\t\t<input type=button value='Tambah Buku' onclick=\"window.location.href='?module=buku&act=tambahbuku';\">\r\n\t\t\t<table id=tablekonten>\r\n\t\t\t\t<tr><th><div id='konten'>no</div></th><th><div id='konten'>judul</div></th><th><div id='konten'>Penulis</div></th><th><div id='konten'>Aktif</div></th><th><div id='konten'>aksi</div></th></tr>";
        $p = new PagingArtikel();
        $batas = 10;
        $posisi = $p->cariPosisi($batas);
        $tampil = mysql_query("SELECT * FROM tbuku ORDER BY id_buku DESC LIMIT {$posisi},{$batas}");
        $no = $posisi + 1;
        while ($data = mysql_fetch_array($tampil)) {
            $tgl_posting = tgl_indo($data[tgl_posting]);
            echo "<tr><td><div id='kontentd'>{$no}</div></td>\r\n\t\t\t\t<td><div id='kontentd'>{$data['judul']}</div></td>\r\n\t\t\t\t<td><div id='kontentd'>{$data['penulis']}</div></td>\r\n\t\t\t\t<td><div id='kontentd'>{$data['aktif']}</div></td>\r\n\t\t\t\t<td><div id='kontentd'><a href=?module=buku&act=editbuku&id={$data['id_buku']}>Edit</a> | <a href={$aksi}?module=buku&act=hapus&id={$data['id_buku']}>Hapus</a></div></td>\r\n\t\t\t  </tr>";
            $no++;
        }
        echo "</table>";
        $jmldata = mysql_num_rows(mysql_query("SELECT * FROM tbuku"));
        $jmlhalaman = $p->jumlahHalaman($jmldata, $batas);
        $linkHalaman = $p->navHalaman($_GET[halaman], $jmlhalaman);
        echo "<div id='paging'>Hal: {$linkHalaman} </div>";
        break;
    case "tambahbuku":
        echo "<h2>Tambah Buku</h2>\r\n\t<body style='font-size:65%;'>\r\n\t\t  <form method=POST action='{$aksi}?module=buku&act=input' enctype='multipart/form-data'>\r\n\t\t  <table id='tablekonten' width='650'>\r\n\t\t  <tr><td><div id='kontentd'>Kategori</div></td>     <td> :</td><td> <select name='kategoriId'>";
        $sql = mysql_query("SELECT * FROM tkategori WHERE id_grup = '1'");
        while ($data = mysql_fetch_array($sql)) {
            echo "<option value='{$data['id_kategori']}'>{$data['kategori']}</option>";
        }