function tgl_amerika($tgl) { $tanggal = getTanggal(substr($tgl, 8, 2)); $bulan = getBulan(substr($tgl, 5, 2)); $tahun = substr($tgl, 0, 4); return $bulan . ' ' . $tanggal . ', ' . $tahun; }
public function edit_berita() { $data = array('kdberita' => $this->input->post('kdberita'), 'isiberita' => $this->input->post('isiberita'), 'author' => $this->session->userdata('snp'), 'tglberita' => getTanggal(), 'jamprofilakses' => getJam()); $Q = $this->mprofilakses->edit_berita($data); if ($Q) { $pesan = "<b>Success! </b> Data Berhasil Diupdate!"; $kelas = "alert alert-success"; } else { $pesan = "<b>Fail! </b> Data Gagal Diupdate, Silahkan coba lagi!"; $kelas = "alert alert-danger"; } $this->session->set_flashdata('notifikasi', $pesan); $this->session->set_flashdata('kelas', $kelas); redirect(base_url("setup/cberita/form_berita")); }
function tambah_berita() { $data = array('kdberita' => (int) $this->db->query('select * from tmberita order by cast(kdberita as integer) desc')->row()->kdberita + 1, 'isiberita' => $_POST['isiberita'], 'author' => $this->session->userdata('snp'), 'tglberita' => getTanggal(), 'jamberita' => getJam()); $T = $this->mberita->tambah_berita($data); if ($T) { $pesan = "<b>Success! </b> Data Berhasil Ditambah!"; $kelas = "alert alert-success"; } else { $pesan = "<b>Fail! </b> Data Gagal Ditambah, Silahkan coba lagi!"; $kelas = "alert alert-danger"; } $this->session->set_flashdata('notifikasi', $pesan); $this->session->set_flashdata('kelas', $kelas); redirect(base_url("setup/cberita/form_berita")); }
public function simpan_biaya() { if ($_POST['paket'] == "-") { $data = array('kdbiaya' => $_POST['kdbiaya'], 'biaya' => $_POST['biaya_admin'], 'tgl' => getTanggal()); $Q = $this->msetupbiaya->simpan_biaya($data); } else { $data = array('kdukuran' => $_POST['kdbiaya'], 'harga' => $_POST['biaya_admin']); $Q = $this->msetupbiaya->simpan_biayapaket($data); } if ($Q) { $pesan = "<b>Success! </b> Data Berhasil Terupdate!"; $kelas = "alert alert-success"; } else { $pesan = "<b>Fail! </b> Data Gagal Diupdate, Silahkan coba lagi!"; $kelas = "alert alert-danger"; } $this->session->set_flashdata('notifikasi', $pesan); $this->session->set_flashdata('kelas', $kelas); redirect("setup/csetupbiaya/form_setupbiaya"); }
<div class="col-md-7"> </div> </div> <br> <table style="font-size: 12px" width="100%" id="tabel_setupsr" border="1" class="table table-hover table-striped"> <thead> <tr bgcolor="#66CCFF"> <td>Golongan</td> <td>Total Harga Paket Saluran Rumah</td> <td>Aksi</td> </tr> </thead> </table> <span style="font-style: italic;float: right">Tanggal : <?php echo getTanggal() . " " . getJam(); ?> </span> <div class="modal fade" id="modal_tambah" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true"> <div class="modal-dialog modal-md"> <div class="modal-content"> <form action="tambah_sr" method="post" id="form" class="form-horizontal" role="form"> <div class="modal-header"> <input type="hidden" id="menu_id" name="menu_id"> <h4 class="modal-title" id="myModalLabel">Tambah Paket SR Baru <b id="menunama"></h4> </div> <div class="modal-body"> <div class="form-horizontal" > <div class="form-group"> <label for="inputEmail3" class="col-sm-5 control-label">Kd Golongan</label> <div class="col-sm-6">
?> </td> <td style="border:0px solid black;" align="left"> </td> <td style="border:0px solid black;" align="left"> </td> <td style="border:0px solid black;" align="left"> </td> <td style="border:0px solid black;" align="left"> </td> <td style="border:0px solid black;" align="left"> </td> <td style="border:0px solid black;" align="left"> </td> <td style="border:0px solid black;" align="left"> </td> <td style="border:0px solid black;" align="left"><?php echo strtoupper($this->session->userdata('snama')); ?> </td> <td style="border:0px solid black;" align="left"> </td> </tr> <tr style="border:0px solid black;" align="center"> <td style="border:0px solid black;" colspan="12" align="left"><em>Dicetak : Tanggal <?php echo getTanggal(); ?> Jam <?php echo getJam(); ?> Oleh : <?php echo strtoupper($this->session->userdata('snama')); ?> </em></td> </tr> </table> </div> </body> </html>