本文整理汇总了PHP中dateToIndo函数的典型用法代码示例。如果您正苦于以下问题:PHP dateToIndo函数的具体用法?PHP dateToIndo怎么用?PHP dateToIndo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dateToIndo函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cetak
public function cetak()
{
$this->load->model('penjualan_model');
$mode = $this->input->post('mode');
$data = array('data' => $this->penjualan_model->laporanKeuangan());
$content = array('content' => $this->load->view($this->kelas . '/cetak_' . $mode, $data, true), 'profil' => $this->auth->profil(), 'title' => 'Rekap Transaksi ' . ucwords($mode), 'tanggal' => dateToIndo(date("Y-m-d")));
$this->load->view($this->kelas . '/html_cetak', $content);
}
示例2: foreach
<div class="col-md-3 col-sm-3"> </div>
<div class="col-md-6 col-sm-6">
<table class="table table-condensed">
<thead>
<tr><th>Hasil Pencarian . . .</th></tr>
</thead>
<tbody>
<?php
if (isset($data)) {
foreach ($data as $r) {
if ($r['foto']) {
$img = "<img src='" . base_url('asset/images/blog/' . $r['foto']) . "' class='img-responsive' />";
} else {
$img = '';
}
echo "<tr>\n\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t{$img} <br />\n\t\t\t\t\t\t\t\t\t\t\t<h3 class='panel-title'>" . $r['judul'] . " <small>" . dateToIndo($r['tanggal']) . "</small></h3><br />\n\t\t\t\t\t\t\t\t\t\t\t" . nl2br($r['isi']) . "\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</tr>";
}
}
?>
</tbody>
</table>
</div>
<div class="col-md-3 col-sm-3"> </div>
</div>
</section>
</div>
<footer class="main-footer" style="padding:0">
<div class="col-md-12 col-sm-12" style="background:#eeeddd;padding:10px">
<div class="col-md-1 col-sm-1">
</div>
示例3: dateToIndo
<tr>
<th width="15%">No. Faktur</th>
<td width="2%">:</td>
<td width="33%"><?php
echo $faktur['trbr_faktur'];
?>
</td>
<th width="15%"> </th>
<td width="2%"> </td>
<td width="33%"> </td>
</tr>
<tr>
<th width="15%">Tanggal</th>
<td width="2%">:</td>
<td width="33%"><?php
echo dateToIndo($faktur['trbr_tgl']);
?>
</td>
<th width="15%">Pay Method</th>
<td width="2%">:</td>
<td width="33%"><?php
echo $faktur['trbr_pay_method'];
?>
</td>
</tr>
<tr>
<th width="15%">Kode Supplier</th>
<td width="2%">:</td>
<td width="33%"><?php
echo $faktur['trbr_supid'];
?>
示例4: foreach
<thead>
<tr>
<th>User & Time</th>
<th>Isi</th>
</tr>
</thead>
<tbody>
<?php
$n = 1;
foreach ($data['child'] as $r) {
if ($r['user_id']) {
$user = "<b>Administrator</b>";
} else {
$user = 'Pelanggan';
}
echo "<tr>\n\t\t\t\t\t\t\t\t<td>{$user}<br />" . dateToIndo($r['waktu'], true, true) . "</td>\n\t\t\t\t\t\t\t\t<td>" . nl2br($r['isi']) . "</td>\n\t\t\t\t\t\t\t\t</tr>";
$n++;
}
?>
</tbody>
</table>
<?php
}
?>
</form>
</div>
<?php
if ($data['parent']['pelanggan_id'] > 0) {
?>
<div class="box-footer">
<form class="cmxform form-horizontal tasi-form" role="form" id="myForm">
示例5: function
},
select: function(event, ui) {
$("#prosid").val(ui.item.prosid);
$('.page-content-area').ace_ajax('startLoading');
$.ajax({
url: '<?php
echo site_url('master_sales/getDataProspek');
?>
',
dataType: 'json',
type: 'POST',
data: {param : ui.item.prosid},
success: function(data) {
var tgl = "";
if (data['pros_tgl_lahir'] != "<?php
echo dateToIndo(DEFAULT_TGL);
?>
") {
var date = data['pros_tgl_lahir'].split("-");
tgl = date['2']+"-"+date['1']+"-"+date['0'];
}
$('#kr_kotaid').html('');
$("#pel_alamat").html(data['pros_alamat']);
$("#propinsi").val(data['kota_propid']);
$("#pel_hp").val(data['pros_hp']);
$("#pel_nomor_id").val(data['prop_nomor_id']);
$("#pel_telpon").val(data['pros_telpon']);
$("#pel_fax").val(data['pros_fax']);
$("#pel_email").val(data['pros_email']);
$("#"+data['pros_gender']).checked = true;
$("#"+data['pros_agama']).checked = true;
示例6: dateToIndo
<div class="form-group">
<label class="col-sm-2 control-label no-padding-right" for="form-field-1">Tahun</label>
<div class="col-sm-8">
<input type="text" name="msc_tahun" value="<?php
echo $data['msc_tahun'];
?>
" maxlength="4" id="msc_nomesin" placeholder="Tahun" class="number ace col-xs-10 col-sm-2" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label no-padding-right" for="form-field-1">STNK Expired</label>
<div class="col-sm-8">
<div class="input-group input-group-sm col-sm-3">
<input type="text" name="msc_stnkexp" value="<?php
if (dateToIndo($data['msc_stnkexp']) != defaultTgl()) {
echo dateToIndo($data['msc_stnkexp']);
}
?>
" id="datepicker" class="datepicker form-control" />
<span class="input-group-addon">
<i class="ace-icon fa fa-calendar"></i>
</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label no-padding-right" for="form-field-1">Type Pelanggan</label>
<div class="col-sm-8">
<select name="msc_inextern" required="required" id="msc_inextern" class="ace col-xs-10 col-sm-3">
<option value="">Pilih</option>
<option value="1" <?php
示例7: loadTrans
public function loadTrans()
{
$page = isset($_POST['page']) ? $_POST['page'] : 1;
$limit = isset($_POST['rows']) ? $_POST['rows'] : 10;
$sidx = isset($_POST['sidx']) ? $_POST['sidx'] : 'kstid';
$sord = isset($_POST['sord']) ? $_POST['sord'] : 'DESC';
$start = $limit * $page - $limit;
$start = $start < 0 ? 0 : $start;
$param = array('start' => $start, 'limit' => $limit, 'sidx' => $sidx, 'sord' => $sord, 'kategori' => isset($_POST['kategori']) ? $_POST['kategori'] : '', 'dateFrom' => isset($_POST['dateFrom']) ? dateToIndo($_POST['dateFrom']) : date('Y-01-01'), 'dateTo' => isset($_POST['dateTo']) ? dateToIndo($_POST['dateTo']) : date('Y-m-d'), 'trans' => isset($_POST['trans']) ? $_POST['trans'] : '', 'type' => isset($_POST['type']) ? $_POST['type'] : '', 'subtrans' => isset($_POST['subtrans']) ? $_POST['subtrans'] : '0', 'key' => isset($_POST['key']) ? $_POST['key'] : '');
$query = $this->model_trfinance->loadSubTrans($param);
$count = $query['numrows'];
if ($count > 0) {
$total_pages = ceil($count / $limit);
} else {
$total_pages = 0;
}
if ($page > $total_pages) {
$page = $total_pages;
}
$responce = new stdClass();
$responce->page = $page;
$responce->total = $total_pages;
$responce->records = $count;
$i = 0;
if (count($query['result']) > 0) {
foreach ($query['result'] as $row) {
$nominal = $param['type'] == 'I' ? $row->kst_debit : $row->kst_kredit;
$del = "hapusData('" . $row->kstid . "', '" . $row->kst_nomer . "')";
$pr = "cetakData('" . $row->kstid . "', '" . $row->kst_nomer . "')";
$hapus = '<a href="javascript:void(0);" onclick="' . $del . '" title="Hapus"><i class="ace-icon fa fa-trash-o bigger-120 orange"></i>';
$print = '<a href="javascript:void(0);" onclick="' . $pr . '" title="Cetak"><i class="ace-icon fa fa-print bigger-120 blue"></i>';
$detail = '<a href="#transaksi_finance/detailTrans?id=' . $row->kstid . '" title="Detail"><i class="ace-icon glyphicon glyphicon-list bigger-100"></i>';
$edit = '<a href="#transaksi_finance/editTrans?id=' . $row->kstid . '" title="Edit"><i class="ace-icon glyphicon glyphicon-pencil bigger-100"></i>';
$responce->rows[$i]['id'] = $row->kstid;
$responce->rows[$i]['cell'] = array(dateToIndo($row->kst_tgl), strtoupper($row->kst_nomer), $row->kst_coa, $row->kst_desc, number_format($nominal, 2), $row->kst_status, $edit, $detail, $print, $hapus);
$i++;
}
}
echo json_encode($responce);
}
示例8: showAgendaFaktur
/**
*
* @param type $output
*/
public function showAgendaFaktur($output)
{
$end = dateToIndo($this->input->post('end'));
$start = dateToIndo($this->input->post('start'));
$cabang = ses_cabang;
$this->data['data'] = $this->model_lap_service->getAgendaFakturService($start, $end, $cabang);
$this->data['output'] = $output;
$this->load->view('showAgendaFaktur', $this->data);
}
示例9: dateToIndo
</div>
<div class="form-group">
<label class="col-sm-2 control-label no-padding-right" for="form-field-1">Tempat Lahir</label>
<div class="col-sm-8">
<input type="text" name="kr_tempat_lahir" value="<?php
echo $kar['kr_tempat_lahir'];
?>
" placeholder="Tempat Lahir" class="ace col-xs-10 col-sm-5 upper req" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label no-padding-right" for="form-field-1">Tgl Lahir</label>
<div class="col-sm-8">
<div class="input-group input-group-sm col-sm-2">
<input type="text" name="kr_tgl_lahir" value="<?php
echo dateToIndo($kar['kr_tgl_lahir']);
?>
" id="datepicker" class="form-control" />
<span class="input-group-addon">
<i class="ace-icon fa fa-calendar"></i>
</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label no-padding-right" for="form-field-1">Email</label>
<div class="col-sm-8">
<input type="text" name="kr_email" value="<?php
echo $kar['kr_email'];
?>
" placeholder="Email" class="ace col-xs-10 col-sm-5" />
示例10: dateToIndo
?>
</td>
<td><?php
echo $value['sup_nama'];
?>
</td>
<td><?php
echo $value['sup_alamat'];
?>
</td>
<td><?php
echo $value['bpk_nodo'];
?>
</td>
<td><?php
echo dateToIndo($value['bpk_tgldo']) != DEFAULT_TGL ? dateToIndo($value['bpk_tgldo']) : '';
?>
</td>
<td><?php
echo $value['merk_deskripsi'];
?>
</td>
<td><?php
echo $value['model_deskripsi'];
?>
</td>
<td><?php
echo str_replace(' ', ' ', $value['cty_deskripsi']);
?>
</td>
<td><?php
示例11: foreach
</thead>
<tbody>
<?php
$n = 1;
foreach ($data as $r) {
?>
<tr>
<td><?php
echo $n++;
?>
</td>
<td><?php
echo $r['subject'];
?>
</td>
<td><?php
echo dateToIndo($r['waktu'], true, true);
?>
</td>
<td>
<a href="<?php
echo site_url('shop/detailmessage/' . $r['id']);
?>
" class="btn btn-xs btn-info"><i class="fa fa-search"></i> View</a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例12: dateToIndo
?>
<tr>
<td><?php
echo $no;
?>
</td>
<td><?php
echo " " . $value['spk_no'];
?>
</td>
<td><?php
echo $value['spk_nokontrak'];
?>
</td>
<td><?php
echo dateToIndo($value['spk_tgl']);
?>
</td>
<td><?php
echo str_replace(' ', ' ', $value['kr_nama']);
?>
</td>
<td><?php
echo str_replace(' ', ' ', $value['pel_nama']);
?>
</td>
<td><?php
echo str_replace(' ', ' ', $value['pel_alamat']);
?>
</td>
<td><?php
示例13: loadDataFpt
public function loadDataFpt()
{
$page = isset($_POST['page']) ? $_POST['page'] : 1;
$limit = isset($_POST['rows']) ? $_POST['rows'] : 10;
$sidx = isset($_POST['sidx']) ? $_POST['sidx'] : 'prosid';
$status = isset($_POST['status']) ? $_POST['status'] : '1';
$sord = isset($_POST['sord']) ? $_POST['sord'] : 'DESC';
$start = $limit * $page - $limit;
$start = $start < 0 ? 0 : $start;
$where = "";
// log_message('error', 'AAAA '.$status);
$searchField = isset($_POST['searchField']) ? $_POST['searchField'] : false;
$searchOper = isset($_POST['searchOper']) ? $_POST['searchOper'] : false;
$searchString = isset($_POST['searchString']) ? $_POST['searchString'] : false;
if ($_POST['_search'] == 'true') {
if ($searchField == 'fpt_approve') {
if (strtoupper($searchString) == 'PROSES') {
$searchString = '1';
} else {
if (strtoupper($searchString) == 'SETUJU') {
$searchString = '2';
} else {
if (strtoupper($searchString) == 'DEAL') {
$searchString = '3';
} else {
if (strtoupper($searchString) == 'TOLAK') {
$searchString = '4';
}
}
}
}
}
$ops = array('eq' => '=', 'ne' => '<>', 'lt' => '<', 'le' => '<=', 'gt' => '>', 'ge' => '>=', 'bw' => 'LIKE', 'bn' => 'NOT LIKE', 'in' => 'LIKE', 'ni' => 'NOT LIKE', 'ew' => 'LIKE', 'en' => 'NOT LIKE', 'cn' => 'LIKE', 'nc' => 'NOT LIKE');
foreach ($ops as $key => $value) {
if ($searchOper == $key) {
$ops = $value;
}
}
if ($searchOper == 'eq') {
$searchString = $searchString;
}
if ($searchOper == 'bw' || $searchOper == 'bn') {
$searchString .= '%';
}
if ($searchOper == 'ew' || $searchOper == 'en') {
$searchString = '%' . $searchString;
}
if ($searchOper == 'cn' || $searchOper == 'nc' || $searchOper == 'in' || $searchOper == 'ni') {
$searchString = '%' . $searchString . '%';
}
$where = "{$searchField} {$ops} '{$searchString}' ";
}
if ($where != '') {
$where .= " AND ";
}
if ($status != '0') {
$where .= " fpt_approve = {$status}";
}
$count = $this->model_prospect->getTotalFpt($where);
if ($count > 0) {
$total_pages = ceil($count / $limit);
} else {
$total_pages = 0;
}
if ($page > $total_pages) {
$page = $total_pages;
}
$query = $this->model_prospect->getDataFpt($start, $limit, $sidx, $sord, $where);
$responce = new stdClass();
$responce->page = $page;
$responce->total = $total_pages;
$responce->records = $count;
$i = 0;
if (count($query) > 0) {
foreach ($query as $row) {
$validasi = "-";
if ($row->kr_atasan == ses_krid && $row->fpt_approve == 1) {
$val = "validasiData('" . $row->fptid . "','" . $row->pros_nama . "')";
$validasi = '<a href="javascript:void(0);" onclick="' . $val . '" title="Validasi"><i class="ace-icon glyphicon glyphicon-check bigger-110 green"></i>';
}
$edit = '<a href="#transaksi_prospect/editFpt?id=' . $row->fptid . '" title="Edit"><i class="ace-icon glyphicon glyphicon-pencil bigger-110 orange"></i>';
$detail = '<a href="#transaksi_prospect/detailFpt?id=' . $row->fptid . '" title="Detail"><i class="ace-icon glyphicon glyphicon-list bigger-110"></i>';
$print = '<a href="javascript:;" onclick="print(\'' . $row->fptid . '\')" title="Print"><i class="ace-icon glyphicon glyphicon-print bigger-120"></i>';
$responce->rows[$i]['id'] = $row->fptid;
$responce->rows[$i]['cell'] = array($row->fpt_kode, $row->pros_nama, $row->pros_alamat, $row->fpt_status, $row->kr_nama, dateToIndo($row->fpt_tgl), $validasi, $edit, $print, $detail);
$i++;
}
}
echo json_encode($responce);
}
示例14: saveSubTrans
public function saveSubTrans()
{
$main = array('kst_trans' => $this->input->post('trans_trans', TRUE), 'kst_type' => $this->input->post('trans_type', TRUE), 'kst_nomer' => strtoupper($this->input->post('trans_docno', TRUE)), 'kst_noreff' => $this->input->post('trans_noreff', TRUE), 'kst_tgl' => dateToIndo($this->input->post('trans_tgl', TRUE)), 'kst_coa' => $this->input->post('trans_coa', TRUE), 'kst_desc' => strtoupper($this->input->post('trans_desc', TRUE)), 'kst_debit' => numeric($this->input->post('totalTrans', TRUE)), 'kst_kredit' => numeric($this->input->post('totalTrans', TRUE)), 'kst_createon' => date('Y-m-d H:i:s'), 'kst_sub_trans' => $this->input->post('trans_subtrans', TRUE), 'kst_createby' => ses_krid, 'kst_cbid' => ses_cabang);
$detail = array('coa' => $this->input->post('dtrans_coa', TRUE), 'desc' => $this->input->post('trans_desc', TRUE), 'nota' => $this->input->post('dtrans_nota', TRUE), 'pelid' => $this->input->post('dtrans_pelid', TRUE), 'supid' => $this->input->post('dtrans_supid', TRUE), 'ccid' => $this->input->post('dtrans_ccid', TRUE), 'nominal' => $this->input->post('dtrans_nominal', TRUE));
$bank = array('bank' => $this->input->post('dbnk_bankid', TRUE), 'norek' => $this->input->post('dbnk_norek', TRUE), 'nocek' => $this->input->post('dbnk_nocek', TRUE), 'jtempo' => $this->input->post('dbnk_jtempo', TRUE), 'kota' => $this->input->post('dbnk_kotaid', TRUE), 'nominal' => $this->input->post('dbnk_nominal', TRUE));
$etc = array('purpose' => $this->input->post('trans_purpose', TRUE), 'kstid' => $this->input->post('trans_kstid', TRUE));
$save = $this->model_trfinance->addSubTrans($etc, $main, $detail, $bank);
if ($save['status'] == TRUE) {
$result = array('status' => TRUE, 'msg' => $this->sukses($save['msg']));
} else {
$result = array('status' => FALSE, 'msg' => $this->error($save['msg']));
}
echo json_encode($result);
}
示例15: foreach
<table id="tb" class="table">
<thead>
<tr>
<th>No</th>
<th>Tanggal</th>
<th>No Invoice</th>
<th>Total</th>
<th>Penerima</th>
<th>Status</th>
<th>Detail</th>
</tr>
</thead>
<tbody>
<?php
$n = 1;
foreach ($data->result_array() as $r) {
echo "<tr>\n\t\t<td>{$n}</td>\n\t\t<td>" . dateToIndo($r['tanggal']) . "</td>\n\t\t<td>{$r['no_invoice']}</td>\n\t\t<td>" . numIndo($r['total'], 0) . "</td>\n\t\t<td>{$r['nama']}</td>\n\t\t<td>" . statusOrder($r['status_order']) . "</td>\n\t\t<td><a href='" . site_url('product/invoice') . "/{$r['id']}' class='btn btn-xs btn-info'><i class='fa fa-search'></i> Detail</a></td>\n\t\t</tr>";
$n++;
}
?>
</tbody>
</table>
<script type="text/javascript">
</script>