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


PHP format_tanggal函数代码示例

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


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

示例1: index

 function index()
 {
     $offset = $this->lib_general->value_get('offset', 0);
     $limit = $this->lib_general->value_get('limit', 10);
     $data['title'] = 'ACS - Barang Keluar';
     $data['action'] = site_url('barang_keluar/search' . $this->_filter());
     $data['action_add'] = site_url('barang_keluar/add' . $this->_filter());
     $data['export_btn'] = anchor('barang_keluar/export' . $this->_filter(), '<span class="glyphicon glyphicon-export"></span> Export Excel 2007', array('class' => 'btn btn-primary btn-sm'));
     $this->table->set_template(tbl_tmp());
     $head_data = array('barang_name' => 'Nama Barang', 'tanggal' => 'Tanggal', 'banyak' => 'Banyak', 'retur' => 'Retur', 'vendor_name' => 'Vendor', 'operator' => 'Operator', 'keterangan' => 'Keterangan');
     $heading[] = 'No';
     foreach ($head_data as $r => $value) {
         $heading[] = anchor('barang_keluar' . $this->_filter(array('order_column' => $r, 'order_type' => $this->lib_general->order_type($r))), $value . " " . $this->lib_general->order_icon($r));
     }
     $heading[] = 'Action';
     $this->table->set_heading($heading);
     $result = $this->mdl_barang_keluar->get()->result();
     $i = 1 + $offset;
     foreach ($result as $r) {
         $this->table->add_row($i++, anchor('barang_keluar/edit/' . $r->id . $this->_filter(), $r->barang_name), format_tanggal($r->tanggal), $r->banyak, $r->retur, $r->vendor_name, $r->operator, $r->keterangan, anchor('barang_keluar/edit/' . $r->id . $this->_filter(), '<span class="glyphicon glyphicon-edit"></span> Edit') . "&nbsp;|&nbsp;" . anchor('barang_keluar/delete/' . $r->id . $this->_filter(), '<span class="glyphicon glyphicon-trash"></span> Delete', array('onclick' => "return confirm('Are you sure')")));
     }
     $data['table'] = $this->table->generate();
     $total = $this->mdl_barang_keluar->count_all();
     $config = pag_tmp();
     $config['base_url'] = site_url("barang_keluar" . $this->_filter());
     $config['total_rows'] = $total;
     $config['per_page'] = $limit;
     $this->pagination->initialize($config);
     $data['pagination'] = $this->pagination->create_links();
     $data['total'] = 'Showing ' . ($offset + 1) . ' to ' . ($offset + $limit) . ' of ' . number_format($total) . ' entries';
     $this->template->display('barang_keluar', $data);
 }
开发者ID:adamprasetia,项目名称:acs,代码行数:32,代码来源:barang_keluar.php

示例2: detail_surat_masuk

 function detail_surat_masuk()
 {
     $this->load->model('surat_masuk/surat_masuks');
     if ($this->input->post('nilai')) {
         $data = $this->surat_masuks->get_one($this->input->post('nilai'));
         $disposisi = $this->surat_masuks->get_disposisi_detail($data['disposisi_id']);
         if ($data) {
             $table = '<h4>Surat Masuk</h4><br/>';
             $table .= '<table class="table table-condensed table-striped">';
             $table .= '<tr><td width="200">SKPD Pengirim</td><td>' . $data['skpd_pengirim'] . '</td></tr>';
             $table .= '<tr><td>Tanggal Surat</td><td>' . format_tanggal($data['tanggal_surat']) . '</td></tr>';
             $table .= '<tr><td>Nomor Surat</td><td>' . $data['nomor_surat'] . '</td></tr>';
             $table .= '<tr><td>Perihal</td><td>' . $data['perihal'] . '</td></tr>';
             $table .= '<tr><td>Nomor Agenda</td><td>' . $data['nomor_agenda'] . '</td></tr>';
             $table .= '<tr><td>Tanggal diterima</td><td>' . format_tanggal($data['tanggal_diterima']) . '</td></tr>';
             $table .= '<tr><td>Disposisi</td><td>' . $data['disposisi'] . '</td></tr>';
             if ($disposisi) {
                 $no = 1;
                 foreach ($disposisi as $key => $val) {
                     $table .= '<tr><td></td><td> &nbsp;&nbsp&nbsp;&nbsp;' . $no++ . '. ' . $val['deskripsi'] . '</td></tr>';
                 }
             }
             $file = $data['file_surat'] ? anchor(base_url('file/surat_masuk/' . $data['file_surat']), $data['file_surat'], 'target="_blank"') : '..';
             //$file     = (file_exists($file) ? $file : '..');
             $table .= '<tr><td>Catatan</td><td>' . $data['catatan'] . '</td></tr>';
             $table .= '<tr><td>File Surat</td><td>' . $file . '</td></tr>';
             $table .= '</table>';
             echo $table;
         }
     }
 }
开发者ID:agusnu,项目名称:surat,代码行数:31,代码来源:ajax.php

示例3: index

 function index()
 {
     $offset = $this->lib_general->value_get('offset', 0);
     $limit = $this->lib_general->value_get('limit', 10);
     $data['title'] = 'ACS - Campaign';
     $data['action'] = site_url('campaign/search' . $this->_filter());
     $data['add_btn'] = anchor('campaign/add' . $this->_filter(), '<span class="glyphicon glyphicon-plus"></span> New', array('class' => 'btn btn-primary btn-sm'));
     $this->table->set_template(tbl_tmp());
     $head_data = array('name' => 'Campaign', 'brand' => 'Brand', 'start' => 'Start', 'end' => 'End', 'status' => 'Status');
     $heading[] = 'No';
     foreach ($head_data as $r => $value) {
         $heading[] = anchor('campaign' . $this->_filter(array('order_column' => $r, 'order_type' => $this->lib_general->order_type($r))), $value . " " . $this->lib_general->order_icon($r));
     }
     $heading[] = 'Action';
     $this->table->set_heading($heading);
     $result = $this->mdl_campaign->get()->result();
     $i = 1 + $offset;
     foreach ($result as $r) {
         $this->table->add_row($i++, anchor('campaign/edit/' . $r->id . $this->_filter(), $r->name), $r->brand, format_tanggal($r->start), format_tanggal($r->end), get_campaign_status($r->status), anchor('campaign/edit/' . $r->id . $this->_filter(), '<span class="glyphicon glyphicon-edit"></span> Edit') . "&nbsp;|&nbsp;" . anchor('campaign/delete/' . $r->id . $this->_filter(), '<span class="glyphicon glyphicon-trash"></span> Delete', array('onclick' => "return confirm('Are you sure')")));
     }
     $data['table'] = $this->table->generate();
     $total = $this->mdl_campaign->count_all();
     $config = pag_tmp();
     $config['base_url'] = site_url("campaign" . $this->_filter());
     $config['total_rows'] = $total;
     $config['per_page'] = $limit;
     $this->pagination->initialize($config);
     $data['pagination'] = $this->pagination->create_links();
     $data['total'] = page_total($offset, $limit, $total);
     $this->template->display('campaign', $data);
 }
开发者ID:adamprasetia,项目名称:acs,代码行数:31,代码来源:campaign.php

示例4: day

 function day()
 {
     $this->ci->table->set_template(tbl_tmp());
     $this->ci->table->add_row(array('data' => 'Periode', 'rowspan' => 2, 'class' => 'table-header'), array('data' => 'Jumlah Data Masuk', 'rowspan' => 2, 'class' => 'table-header', 'style' => 'vertical-align:middle'), array('data' => 'Verified Online', 'rowspan' => 2, 'class' => 'table-header'), array('data' => 'Verified Webmail', 'rowspan' => 2, 'class' => 'table-header'), array('data' => 'Unverified', 'colspan' => 5, 'class' => 'table-header'));
     $this->ci->table->add_row(array('data' => 'GIID copy is not legible', 'class' => 'table-header'), array('data' => 'GIID doesn\'t match', 'class' => 'table-header'), array('data' => 'Image is not ID', 'class' => 'table-header'), array('data' => 'Did not attach image', 'class' => 'table-header'), array('data' => 'Jumlah unverified', 'class' => 'table-header'));
     $result = $this->ci->mdl_report_online->day()->result();
     $i = 1;
     $total = array(1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0);
     foreach ($result as $r) {
         $this->ci->table->add_row(format_tanggal($r->entry_date), number_format($r->count), number_format($r->vo), number_format($r->vw), number_format($r->leg), number_format($r->mat), number_format($r->id), number_format($r->img), number_format($r->un));
         $total[1] += $r->count;
         $total[2] += $r->vo;
         $total[3] += $r->vw;
         $total[4] += $r->leg;
         $total[5] += $r->mat;
         $total[6] += $r->id;
         $total[7] += $r->img;
         $total[8] += $r->un;
         $i++;
     }
     $tot[] = array('data' => 'Total', 'class' => 'table-footer');
     for ($i = 1; $i <= 8; $i++) {
         $tot[$i] = array('data' => number_format($total[$i]), 'class' => 'table-footer');
     }
     $this->ci->table->add_row($tot);
     return $this->ci->table->generate();
 }
开发者ID:adamprasetia,项目名称:acs,代码行数:27,代码来源:lib_report_online.php

示例5: format_tanggal

// pr($result);
// exit;
//set gambar untuk laporan
$gambar = $FILE_GAMBAR_KABUPATEN;

if($tglcetak != ''){
	$tanggalCetak = format_tanggal($tglcetak);	
	$thnPejabat =substr($tglcetak,0,4);
}else{
	$tglcetak = date("Y-m-d");
	$tanggalCetak = format_tanggal($tglcetak);
	$thnPejabat =substr($tglcetak,0,4);	
}
if($tglawalperolehan != '' && $tglakhirperolehan){
	$tanggalAwal = format_tanggal($tglawalperolehan);	
	$tanggalAkhir = format_tanggal($tglakhirperolehan);	
}

// pr($result);
// exit;
$html=$REPORT->retrieve_html_laporan_mutasi($result,$skpd_id,$gambar,$tanggalAwal,$tanggalAkhir,$tanggalCetak,$thnPejabat);
/*$count = count($html);

	 for ($i = 0; $i < $count; $i++) {
		 
		 echo $html[$i];     
	}
exit;*/
if($tipe==1){
$REPORT->show_status_download_kib();
$mpdf=new mPDF('','','','',15,15,16,16,9,9,'L');
开发者ID:TrinataBhayanaka,项目名称:simbada-tangsel,代码行数:31,代码来源:report_perolehanaset_cetak_laporan_mutasi.php

示例6: form_label

echo form_label('Start', 'start', array('class' => 'control-label'));
?>
				<?php 
echo form_input(array('name' => 'start', 'class' => 'form-control input-sm tanggal', 'maxlength' => '10', 'autocomplete' => 'off', 'value' => set_value('start', isset($row->start) ? format_tanggal($row->start) : ''), 'required' => 'required'));
?>
				<small><?php 
echo form_error('start');
?>
</small>
			</div>
			<div class="form-group form-inline">
				<?php 
echo form_label('End', 'end', array('class' => 'control-label'));
?>
				<?php 
echo form_input(array('name' => 'end', 'class' => 'form-control input-sm tanggal', 'maxlength' => '10', 'autocomplete' => 'off', 'value' => set_value('end', isset($row->end) ? format_tanggal($row->end) : ''), 'required' => 'required'));
?>
				<small><?php 
echo form_error('end');
?>
</small>
			</div>
			<div class="form-group form-inline">
				<?php 
echo form_label('Status', 'status', array('class' => 'control-label'));
?>
				<?php 
echo form_dropdown('status', campaign_status_dropdown(), set_value('status', isset($row->status) ? $row->status : ''), 'required=required class="form-control input-sm"');
?>
				<small><?php 
echo form_error('status');
开发者ID:adamprasetia,项目名称:acs,代码行数:31,代码来源:campaign_edit.php

示例7: arrayToObject

//mengenerate query
// $result_query=$REPORT->retrieve_query($query);

$table_name = "mesin";
$result_query=$REPORT->QueryKib($query,$table_name);
$result = arrayToObject($result_query);
// pr($result);
// exit;
//set gambar untuk laporan
$gambar = $FILE_GAMBAR_KABUPATEN;
if($tglcetak != ''){
	$tanggalCetak = format_tanggal($tglcetak);	
	$thnPejabat =substr($tglcetak,0,4);
}else{
	$tglcetak = date("Y-m-d");
	$tanggalCetak = format_tanggal($tglcetak);
	$thnPejabat =substr($tglcetak,0,4);	
}
//retrieve html
$html=$REPORT->retrieve_html_kib_b($result, $gambar,$tanggalCetak,$thnPejabat,$tipe);

/*$count = count($html);

	for ($i = 0; $i < $count; $i++) {
		 
		 echo $html[$i];     
}
exit;*/
if($tipe!="2"){
$REPORT->show_status_download_kib();
$mpdf=new mPDF('','','','',15,15,16,16,9,9,'L');
开发者ID:TrinataBhayanaka,项目名称:simbada-tangsel,代码行数:31,代码来源:report_perolehanaset_cetak_kibb.php

示例8: format_tanggal

    background: #FFF none repeat scroll 0% 0%;
    margin-top: 10px;
}
</style>
<div id="slide">
    <div class="container">
      <div class="row">
        <div class="col-sm-12">
            <div class="col-sm-12">
            <?php 
echo "<h3>" . $slide['title_slide'] . "</h3>";
?>
			<div class="row">
				<div class="col-sm-12">
        <?php 
$tgl = format_tanggal($slide['update_at']);
?>
				<?php 
echo " {$tgl}  WIB";
?>
				</div>
			</div>
			<br>
				<img class="img-thumbnail" src="<?php 
echo base_url('assets/img/slide/' . $slide['image']);
?>
" height="350px" width="700px">
			<?php 
echo "<p>" . $slide['article_slide'] . "</p>";
?>
            </div>
开发者ID:savefaaizuun,项目名称:binamarga,代码行数:31,代码来源:detail_slide.php

示例9: form_label

echo form_label('Entry Date', 'entry_date', array('class' => 'control-label'));
?>
						<?php 
echo form_input(array('name' => 'entry_date', 'class' => 'form-control input-sm tanggal', 'maxlength' => '10', 'size' => '40', 'autocomplete' => 'off', 'value' => set_value('entry_date', isset($row->entry_date) ? format_tanggal($row->entry_date) : '')));
?>
						<small><?php 
echo form_error('entry_date');
?>
</small>
					</div>
					<div class="form-group form-inline">
						<?php 
echo form_label('Verification Date', 'verifikasi_date', array('class' => 'control-label'));
?>
						<?php 
echo form_input(array('name' => 'verifikasi_date', 'class' => 'form-control input-sm tanggal', 'maxlength' => '10', 'size' => '40', 'autocomplete' => 'off', 'value' => set_value('verifikasi_date', isset($row->verifikasi_date) ? format_tanggal($row->verifikasi_date) : '')));
?>
						<small><?php 
echo form_error('verifikasi_date');
?>
</small>
					</div>
					<div class="form-group form-inline">
						<?php 
echo form_label('Referred by', 'referred', array('class' => 'control-label'));
?>
						<?php 
echo form_input(array('name' => 'referred', 'class' => 'form-control input-sm', 'maxlength' => '50', 'size' => '40', 'autocomplete' => 'off', 'value' => set_value('referred', isset($row->referred) ? $row->referred : '')));
?>
						<small><?php 
echo form_error('referred');
开发者ID:adamprasetia,项目名称:acs,代码行数:31,代码来源:individual_edit.php

示例10:

	$view = new Peminjaman;
	$view->connect();
	
	$view->get_pembayaran_detil($idBn);

	$row=0;
	while($result=$view->get_array()){
		$number=$row+1;
		if ($number % 2 ==0){
			$class_name='table-common-even';
		}else{
			$class_name='';
		}
		
		$disp[$row]=array('NO'=>$number,
								'IDBYR'=>$result['IDBYR'],
								'TANGGAL'=>format_tanggal($result['TANGGAL']),
								'NOMINAL'=>number_format($result['NOMINAL'],2,',','.'), 
								'CLASS_NAME'=>$class_name); 
		$row++;
	}
	#print_r($disp);
	foreach ($disp as $data){
		$param="module=pengeluaran_bon&file=edit_detil_view&idByr=".$data['IDBYR'];
		$urlEd=$crypt->paramEncrypt($param);
		
		$tmpl->addVars("data", $data);
		$tmpl->addVar("data", "URL_EDIT", "index.php?".$urlEd);
		$tmpl->parseTemplate("data","a");
	}
?>
开发者ID:rischanlab,项目名称:kerjapraktek,代码行数:31,代码来源:detil_bayar_view.php

示例11: retrieve_html_bukubarangpakaihabis


//.........这里部分代码省略.........
																	</tr>
																	<tr>
																		<td style=\"width: 30px; text-align: center; font-weight: bold;\">1</td>
																		<td style=\"width: 60px; text-align: center; font-weight: bold;\">2</td>
																		<td style=\"width: 170px; text-align: center; font-weight: bold;\">3</td>
																		<td style=\"width: 100px; text-align: center; font-weight: bold;\">4</td>
																		<td style=\"width: 83px; text-align: center; font-weight: bold;\">5</td>
																		<td style=\"width: 60px; text-align: center; font-weight: bold;\">6</td>
																		<td style=\"width: 108px; text-align: center; font-weight: bold;\">7</td>
																		<td style=\"width: 80px; text-align: center; font-weight: bold;\">8</td>
																		<td style=\"width: 80px; text-align: center; font-weight: bold;\">9</td>
																		<td style=\"width: 100px; text-align: center; font-weight: bold;\">10</td>
																		<td style=\"width: 85px; text-align: center; font-weight: bold;\">11</td>
																		<td style=\"width: 87px; text-align: center; font-weight: bold;\">12</td>
																		<td style=\"width: 85px; text-align: center; font-weight: bold;\">13</td>
																		<td style=\"width: 87px; text-align: center; font-weight: bold;\">14</td>
																</tr>	
																</thead>
																	";
                                                 //udah dites disini footer 
                                                    
                                                  
												$skpdeh = $row->NamaSatker;
												$status_print++;

                                             }
                                             //udah dites
														$jumlahTotal = $jumlahTotal + $row->Kuantitas;
														$satuanTotal = $satuanTotal + $row->Kuantitas;
														$kuantitas = $row->Kuantitas;
														$kuantitas_rp = number_format($kuantitas);
														
														$change=$row->TglPenerimaan;
														$change2=format_tanggal($change);
														$change3=$row->TglPemeriksaan;
														$change4=format_tanggal($change3);
														$change5=$row->TglBAST;
														$change6=format_tanggal($change5);
														
														($row->NoBAPemeriksaan == '') ? $NoBA = "-" : $NoBA = $row->NoBAPemeriksaan;
														($row->NoBAST == '') ? $NoBAST = "-" : $NoBAST = $row->NoBAST;
														($row->KeteranganPenerimaan == '') ? $ket = "-" : $ket = $row->KeteranganPenerimaan;
														($row->Merk == '') ? $merk = "-" : $merk = $row->Merk;
														($row->NoKontrak == '') ? $nokontrak = "-" : $nokontrak = $row->NoKontrak;
														
															$body.="
															<tr>
																<td style=\"width: 30px;font-weight: \" align=\"center\">$no</td>
																<td style=\"width: 120px;font-weight: \" align=\"center\">$change2</td>
																<td style=\"width: 100px;font-weight: \">$row->NamaAset</td>
																<td style=\"width: 100px;font-weight: \" align=\"center\">$merk</td>
																<td style=\"width: 100px;font-weight: \" align=\"center\">$row->Tahun</td>
																<td style=\"width: 200px;font-weight: \" align=\"center\">$kuantitas_rp</td>
																<td style=\"width: 100px;font-weight: \" align=\"center\">$nokontrak</td>
																<td style=\"width: 100px;font-weight: \" align=\"center\">$change4</td>
																<td style=\"width: 100px;font-weight: \" align=\"center\">$NoBA</td>
																<td style=\"width: 200px;font-weight: \" align=\"center\">$change6</td>
																<td style=\"width: 100px;font-weight: \" align=\"center\">-</td>
																<td style=\"width: 100px;font-weight: \" align=\"center\">$kuantitas_rp</td>
																<td style=\"width: 200px;font-weight: \" align=\"center\">$change6</td>
																<td style=\"width: 200px;font-weight: \" align=\"center\">$ket</td>
																
															</tr>
															";
															$no++;
                                                            
开发者ID:TrinataBhayanaka,项目名称:simbada-tangsel,代码行数:66,代码来源:report_engine_backup.php

示例12:

	
	$tmpl->addVar("article", "NIS", $siswa['NIS']);
	$tmpl->addVar("article", "NAMA", $siswa['NAMA']);
	$tmpl->addVar("article", "KELAS", $siswa['JENJANG']." - ".$siswa['KELAS']);
	
	$view->get_list_transaksi($nis);
	
	while($result=$view->get_array()){
		$number=$row+1;
		if ($number % 2 ==0){
			$class_name='table-common-even';
		}else{
			$class_name='';
		}		
		$disp[$row]=array('NO_TRANS'=>$number, 
						'TGL_TRANS'=>format_tanggal($result['TANGGAL']),
						'JNS_TRANS'=>$result['TRANSAKSI'],
						'TOTAL_TRANS'=>number_format($result['TOTAL'],2,',','.'),
						'ID_TRANS'=>$result['ID_TRANS'],
						'CLASS_NAME'=>$class_name); 
		$row++;
	}
	#print_r($disp);
	foreach ($disp as $data){
		$param="module=rekap_siswa&file=edit_siswa_view&idTr=".$data[ID_TRANS];
		$urlEd=$crypt->paramEncrypt($param);
		
		$tmpl->addVars("data_trans", $data);
		$tmpl->addVar("data_trans", "URL_EDIT", "index.php?".$urlEd);
		$tmpl->parseTemplate("data_trans","a");
	}
开发者ID:rischanlab,项目名称:kerjapraktek,代码行数:30,代码来源:detil_siswa_view.php

示例13: while

$view->connect();

$view->get_rekap_umum($tanggal_mulai, $tanggal_selesai);
$row=0;
$Acc=0;
while($result=$view->get_array()) {
   $number=$row+1;
		if ($number % 2 ==0){
			$class_name='table-common-even';
		}else{
			$class_name='';
		}
      
      $Acc = $Acc + $result['SALDO'];		
		$disp[$row]=array('NO'=>$number,
						'TANGGAL'=>format_tanggal($result['TANGGAL_TRANSAKSI']), 
						'TOTAL_IURAN'=>number_format($result['TOTAL_IURAN'],2,',','.'),
						'TOTAL_PENGEMBALIAN'=>number_format($result['TOTAL_PENGEMBALIAN'],2,',','.'),
						'TOTAL_SETORAN'=>number_format($result['TOTAL_SETORAN'],2,',','.'),
						'TOTAL_PEMINJAMAN'=>number_format($result['TOTAL_PEMINJAMAN'],2,',','.'),
						'SALDO'=>number_format($Acc,2,',','.'),
						'CLASS_NAME'=>$class_name); 
		$row++;
}

foreach ($disp as $data){
		$param="module=rekap_siswa&file=detil_siswa_view&nis=".$data[TANGGAL];
		$urlDtl=$crypt->paramEncrypt($param);
		
		$tmpl->addVars("data", $data);
		$tmpl->addVar("data", "URL_DETIL", "index.php?".$urlDtl);
开发者ID:rischanlab,项目名称:kerjapraktek,代码行数:31,代码来源:detil_view.php

示例14: while

   $worksheet->merge_cells(6, 4, 6, 4);
   $worksheet->write_string(6, 4, 'Setoran', $h4);
   
   $worksheet->merge_cells(6, 5, 6, 5);
   $worksheet->write_string(6, 5, 'Pinjaman', $h4);
   
   $worksheet->merge_cells(5, 6, 6, 6);
   $worksheet->write_string(5, 6, 'Saldo', $h4);
   
   $view = new rekap_umum;
   $view->connect();
   $view->get_rekap_umum($tanggal_mulai, $tanggal_selesai);
   
   $row=7;
   $Acc=0;
   $number=1;
   while($result=$view->get_array()) {
      $Acc = $Acc + $result['SALDO'];		
   	  
      $worksheet->write_string($row, 0, $number, $content);
      $worksheet->write_string($row, 1, format_tanggal($result['TANGGAL_TRANSAKSI']), $content);
      $worksheet->write_string($row, 2, number_format($result['TOTAL_IURAN'],2,',','.'), $content);
      $worksheet->write_string($row, 3, number_format($result['TOTAL_PENGEMBALIAN'],2,',','.'), $content);
      $worksheet->write_string($row, 4, number_format($result['TOTAL_SETORAN'],2,',','.'), $content);
      $worksheet->write_string($row, 5, number_format($result['TOTAL_PEMINJAMAN'],2,',','.'), $content);
      $worksheet->write_string($row, 6, number_format($Acc,2,',','.'), $content);	
   	$row++;$number++;
   }
   
   $workbook->close();
?>
开发者ID:rischanlab,项目名称:kerjapraktek,代码行数:31,代码来源:cetak_excel_rekap.php

示例15: format_tanggal

					$no = 1;
					foreach($get_data_regrouping as $val){
                                                                           $text_status=array("0"=>"Belum regrouping",
                                                                                                              "1"=>"Sedang regrouping",
                                                                                                              "2"=>"Telah regrouping")
                                                                           
                                                                           
                                                                           
				?>
					<tr class="gradeA">
						<td><?=$no?></td>
						<td><?=$val['satker_lama']?></td>
						<td><?=$val['nama_satker_lama']?></td>
						<td><?=$val['satker_baru']?></td>
                                    <td><?=$val['nama_satker_baru']?></td>
                                    <td><?= format_tanggal($val['tgl_proses'])?></td>
                                    <td><?=$val['informasi']?></td>
                                    <td><?=$text_status[$val['status_proses']]?></td>
                                    <td>
                                         <?php
switch ($val['status_proses']) {
    case 0:
        echo "<a href=\"running_regrouping.php?regrouping={$val['id_regrouping']}\" class=\"btn btn-info\">Lakukan Regrouping</a>";
        echo "<a href=\"proses_regrouping.php?hregrouping={$val['id_regrouping']}\" class=\"btn btn-warning\">Hapus Regrouping</a>";
        break;

default:
     echo "-";
     break;
}
                                         ?>
开发者ID:TrinataBhayanaka,项目名称:simbada-tangsel,代码行数:31,代码来源:index.php


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