本文整理汇总了PHP中tgl_indo函数的典型用法代码示例。如果您正苦于以下问题:PHP tgl_indo函数的具体用法?PHP tgl_indo怎么用?PHP tgl_indo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tgl_indo函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: elseif
">
<?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;
开发者ID:anggasap,项目名称:tatamasa2,代码行数:31,代码来源:cetak_cpa_reimpay.php
示例2: mysql_query
<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
开发者ID:sahabatCode,项目名称:siPer,代码行数:31,代码来源:lap_penjualan.php
示例3: block_content
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";
}
开发者ID:nicefirework,项目名称:new_elearning,代码行数:57,代码来源:29d76ff40e0c9207668e96723f2b6971e282fe08a2cc8580b1856b3ba935.php
示例4: update
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);
}
开发者ID:rad4n,项目名称:Inventory-CI,代码行数:15,代码来源:Sales.php
示例5: index
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());
}
}
开发者ID:blankcode403,项目名称:merapiapps,代码行数:16,代码来源:_error_show.php
示例6: __construct
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'));
}
开发者ID:rad4n,项目名称:Inventory-CI,代码行数:19,代码来源:Buys.php
示例7: template_email
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 />
<br />
http://indonesiamendidik.org/volunteer/verified/' . $token . '/
<p>Terimakasih<br />
Administrator Indonesia Mendidik</p>
';
return $hasil;
}
开发者ID:ardiexplaine,项目名称:ina_mendidik,代码行数:20,代码来源:Sim_model.php
示例8: tampilkanmahasiswa
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++;
//
}
}
开发者ID:ahmadisurahman05,项目名称:AKADEMIK,代码行数:23,代码来源:registrasi.php
示例9: date_default_timezone_set
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');
开发者ID:anggasap,项目名称:tatamasa2,代码行数:30,代码来源:cetak_laporan_neraca_t.php
示例10: foreach
</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>
开发者ID:andisiswanto,项目名称:abank,代码行数:31,代码来源:v_outcomeList.php
示例11: mysql_query
$nmpri = mysql_query("select nama from user where id_user='" . $bz["dari"] . "'");
$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='" . $bz["tujuan"] . "'");
$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
开发者ID:ibnoe,项目名称:dinsosnaker2014,代码行数:31,代码来源:lihat.php
示例12: elseif
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>";
开发者ID:r3k4,项目名称:banksoal,代码行数:31,代码来源:materi.php
示例13: getRekening
} 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');
开发者ID:nickohappy7,项目名称:sister,代码行数:31,代码来源:r_ju.php
示例14: tgl_indo
</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>
开发者ID:erxn,项目名称:siemas,代码行数:30,代码来源:input_pembayaran.php
示例15: mysql_query
$_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>";
}
开发者ID:vladmir123,项目名称:kepegawaian,代码行数:31,代码来源:k_jabatan.php
示例16: cuthighlight
</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
开发者ID:arakoswara,项目名称:iris-web,代码行数:31,代码来源:detailpost.php
示例17: Paging9
$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='{$_SESSION['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='{$_SESSION['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":
开发者ID:restiako,项目名称:portal,代码行数:31,代码来源:berita.php
示例18: mysql_query
$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>
开发者ID:aamdsam,项目名称:undangan,代码行数:31,代码来源:gaji_pembimbing.php
示例19: mysql_query
$nmpri = mysql_query("select nama from user where id_user='" . $qz["dari"] . "'");
$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='" . $qz["tujuan"] . "'");
$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
开发者ID:ibnoe,项目名称:dinsosnaker2014,代码行数:31,代码来源:cek_iplk.php
示例20: switch
<?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'
|
请发表评论