• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP fm_date函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: CONVERT

	<th class="w20">NAMA</th>
	<th class="w40">ALAMAT SURAT</th>
	<th class="w10">TELEPON</th>
	<th class="w10">TANGGAL JATUH TEMPO</th>
	<th class="w10">NILAI JATUH TEMPO</th>
	

</tr>

<?php 
if ($total_data > 0) {
    $query = "\n\tSELECT \n\t\tA.KODE_BLOK,A.NAMA_PEMBELI,A.ALAMAT_SURAT,A.TELP_KANTOR,A.TELP_LAIN,A.TELP_RUMAH,B.TANGGAL,B.NILAI\n\tFROM \n\t\tSPP A JOIN RENCANA B ON A.KODE_BLOK = B.KODE_BLOK\n\tWHERE\n\t\tB.TANGGAL = CONVERT(DATETIME,'{$tgl}',105)AND \n\tB.KODE_BLOK NOT IN({$query_blok_lunas})\n\tORDER BY A.KODE_BLOK\n\t";
    $obj = $conn->selectlimit($query, $per_page, $page_start);
    while (!$obj->EOF) {
        $id = $obj->fields['KODE_BLOK'];
        $tanggal_tempo = fm_date(date("Y-m-d", strtotime($obj->fields['TANGGAL'])));
        $TELP_KANTOR = trim($obj->fields["TELP_KANTOR"]) != "" ? trim(strtoupper($obj->fields["TELP_KANTOR"])) : "";
        $TELP_LAIN = trim($obj->fields["TELP_LAIN"]) != "" ? "," . trim(strtoupper($obj->fields["TELP_LAIN"])) : "";
        $TELP_RUMAH = trim($obj->fields["TELP_RUMAH"]) != "" ? "," . trim(strtoupper($obj->fields["TELP_RUMAH"])) : "";
        $TELP = $TELP_KANTOR . $TELP_LAIN . $TELP_RUMAH;
        ?>
		<tr class="onclick" id="<?php 
        echo $id;
        ?>
"> 
			<td width="30" class="notclick text-center"><input type="checkbox" name="cb_data[]" class="cb_data" value="<?php 
        echo $id;
        ?>
"></td>
			<td class="text-center"><?php 
        echo $id;
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:jatuh_tempo_load.php


示例2: isset

$cb_data = isset($_REQUEST['cb_data']) ? $_REQUEST['cb_data'] : '';
$tanggal_tempo = isset($_REQUEST['tanggal_tempo']) ? clean($_REQUEST['tanggal_tempo']) : '';
$tgl_tempo = fm_date(date("Y-m-d", strtotime($tanggal_tempo)));
$array_bulan = array(1 => 'Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember');
if ($act == 'Surat') {
    $act = array();
    foreach ((array) $cb_data as $id) {
        $query = "SELECT *, B.TANGGAL AS TGL_TEMPO FROM SPP A JOIN RENCANA B ON A.KODE_BLOK = B.KODE_BLOK\n\t\t\t\tWHERE A.KODE_BLOK = '{$id}'";
        $obj = $conn->execute($query);
        $nama_pembeli = $obj->fields['NAMA_PEMBELI'];
        $alamat = $obj->fields['ALAMAT_SURAT'];
        $TELP_KANTOR = trim($obj->fields["TELP_KANTOR"]) != "" ? trim(strtoupper($obj->fields["TELP_KANTOR"])) : "";
        $TELP_LAIN = trim($obj->fields["TELP_LAIN"]) != "" ? "," . trim(strtoupper($obj->fields["TELP_LAIN"])) : "";
        $TELP_RUMAH = trim($obj->fields["TELP_RUMAH"]) != "" ? "," . trim(strtoupper($obj->fields["TELP_RUMAH"])) : "";
        $telepon = $TELP_KANTOR . $TELP_LAIN . $TELP_RUMAH;
        $tanggal_spp = fm_date(date("Y-m-d", strtotime($obj->fields['TANGGAL_SPP'])));
        $bulan = $array_bulan[date("n", strtotime($tanggal_tempo))];
        $nomor_spp = $obj->fields['NOMOR_SPP'];
        $nilai = $obj->fields['NILAI'];
        $query = "select STATUS_KOMPENSASI FROM SPP WHERE KODE_BLOK = '{$id}'";
        $obj = $conn->execute($query);
        $status = $obj->fields['STATUS_KOMPENSASI'];
        $query = "select * from CS_REGISTER_CUSTOMER_SERVICE";
        $obj = $conn->execute($query);
        if ($status == 2) {
            $no = 1 + $obj->fields['NOMOR_SURAT_TUNAI'];
            $reg = $obj->fields['REG_SURAT_TUNAI'];
        } else {
            if ($status == 1) {
                $no = 1 + $obj->fields['NOMOR_SURAT_KPR'];
                $reg = $obj->fields['REG_SURAT_KPR'];
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:surat_wanprestasi.php


示例3: fm_date

<form name="form" id="form" method="post">
<table class="t-control2">
    <tr>
      <td style="font-size:20px;text-align:center;font-weight:bold" >Daftar Surat Pemberitahuan Pengurusan Akad </td>
    </tr>
</table>	
<table class="t-control">
	<tr>
      <td>Tanggal</td><td>:</td>
	  <td><?php 
echo fm_date(date("Y-m-d"));
?>
</td>
    </tr>
    <tr>
		<td width="100">Jumlah Baris</td><td width="10">:</td>
		<td>
			<input type="text" name="per_page" size="3" id="per_page" class=" apply text-center" value="20">
			<input type="button" name="apply" id="apply" value=" Apply ">
			<input type="hidden" name="act" id="act" value="Surat">
		</td>
	</tr>
	<tr>
		<td>Total Data</td><td>:</td>
		<td id="total-data"></td>
	</tr>
</table>

<script type="text/javascript">
jQuery(function($) {
	/* -- FILTER -- */
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:pemberitahuan_akad_setup.php


示例4: die_login

<?php

require_once '../../../../../config/config.php';
die_login();
$conn = conn($sess_db);
die_conn($conn);
$namafile = "Daftar Penagihan " . "(" . substr(fm_date(date("Y-m-d")), 3) . ").xls";
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename={$namafile}");
//ganti nama sesuai keperluan
header("Cache-Control:  must-revalidate, post-check=0, pre-check=0");
header("Pragma: no-cache");
header("Expires: 0");
?>

<html>
<body>

<table class="t-data w50">
<tr>
	<th class="w10">KODE BLOK</th>
	<th class="w10">NO PELANGGAN</th>
	<th class="w20">NAMA PELANGGAN</th>
	<th class="w10">TAGIHAN</th>
</tr>

<?php 
$query = "\n\tSELECT a.KODE_BLOK, b.NAMA_PEMBELI, a.NILAI, a.TANGGAL, NOMOR_CUSTOMER = CASE WHEN b.NOMOR_CUSTOMER IS NULL\n\tTHEN '-' ELSE b.NOMOR_CUSTOMER END\n\tfrom RENCANA a LEFT JOIN SPP b\n\tON a.KODE_BLOK = b.KODE_BLOK\n\twhere TANGGAL >= CONVERT(DATETIME,'01-01-2015',105) \n\tAND TANGGAL < CONVERT(DATETIME,'01-02-2015',105)\n\tAND STATUS_WANPRESTASI IS NULL\n\tAND a.KODE_BLOK NOT IN ({$query_blok_lunas})\n\t{$query_search}\n\torder BY a.TANGGAL\n\n\t";
$obj = $conn->execute($query);
while (!$obj->EOF) {
    $id = $obj->fields['KODE_BLOK'];
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:download_tagihan_excel.php


示例5: FROM

    $kemarin_bln = 12;
    $kemarin_thn = $sekarang_thn - 1;
}
$query_blok_lunas_bayar = '';
$query_pemb_jt = '';
$query_tglmerah = '';
$query_libur = '';
$query_blok_lunas_bayar = "SELECT C.KODE_BLOK FROM ( SELECT A.KODE_BLOK,B.SUMOFREALISASI,A.SUMOFPLAN,(B.SUMOFREALISASI-A.SUMOFPLAN) AS REMAIN FROM \n( SELECT SUM (A.NILAI) as SUMOFPLAN, A.KODE_BLOK from ( select A.KODE_BLOK,A.TANGGAL_TANDA_JADI AS TANGGAL,ISNULL(A.TANDA_JADI,0) \nAS NILAI from spp A where A.KODE_BLOK is not null UNION ALL SELECT A.KODE_BLOK,A.TANGGAL,ISNULL(A.NILAI,0) FROM RENCANA A WHERE A.KODE_BLOK IS NOT NULL\n)a GROUP BY a.KODE_BLOK ) A LEFT JOIN (SELECT SUM(A.NILAI) AS SUMOFREALISASI,A.KODE_BLOK FROM REALISASI A GROUP BY  A.KODE_BLOK)B \nON A.KODE_BLOK=B.KODE_BLOK where (B.SUMOFREALISASI-A.SUMOFPLAN)>=0 )C LEFT JOIN SPP D ON C.KODE_BLOK = D.KODE_BLOK\nWHERE C.REMAIN - (ISNULL(D.NILAI_CAIR_KPR,0)) >= 0 UNION ALL SELECT KODE_BLOK FROM KWITANSI WHERE TANGGAL >= CONVERT(DATETIME,'01-{$kemarin_bln}-{$kemarin_thn}',105)\nAND TANGGAL < CONVERT(DATETIME,'01-{$sekarang_bln}-{$sekarang_thn}',105)\n";
$query_pemb_jt .= "(SELECT SOMASI_DUA FROM CS_PARAMETER_COL)";
# Pagination
$query = "\nSELECT \n\tA.KODE_BLOK\n\tFROM \n\t\tSPP A JOIN RENCANA B ON A.KODE_BLOK = B.KODE_BLOK\n\tWHERE\n\t\t(select dbo.tambah_tgl(B.TANGGAL,{$query_pemb_jt})) = CONVERT(DATETIME,'{$tgl}',105)AND \n\tb.KODE_BLOK NOT IN({$query_blok_lunas_bayar})\n\tORDER BY A.KODE_BLOK\n";
$total_data = $conn->execute($query)->recordcount();
$total_page = ceil($total_data / $per_page);
$set_jrp = '
<tr><td colspan="8" class="nb text-center"><b> LAPORAN DAFTAR SURAT SOMASI II </b></td></tr>
<tr><td colspan="8" class="nb text-center"> Tanggal Cetak : ' . fm_date(date("Y-m-d")) . ' </td></tr>
<tr>
	<td colspan="6" class="nb">
	</td>
	<td colspan="2" class="nb">Halaman 
';
$set_th = '
	dari ' . $total_page . '</td>
</tr>
<tr>
	<th class="w5">BLOK / NOMOR </th>
	<th class="w20">NAMA</th>
	<th class="w40">ALAMAT SURAT</th>
	<th class="w10">TELEPON</th>
	<th class="w10">TANGGAL JATUH TEMPO</th>
	<th class="w10">NILAI JATUH TEMPO</th>
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:print_somasi_dua.php


示例6: array

         //ex_ha('', 'D');
         $act = array();
         $cb_data = $_REQUEST['cb_data'];
         ex_empty($cb_data, 'Pilih data yang akan dihapus.');
         foreach ($cb_data as $id_del) {
             $id = $id_del;
             $query = "SELECT *, B.TANGGAL AS TGL_TEMPO FROM SPP A JOIN RENCANA B ON A.KODE_BLOK = B.KODE_BLOK\n\t\t\t\t\t\tWHERE A.KODE_BLOK = '{$id}'";
             $obj = $conn->execute($query);
             $nama = $obj->fields['NAMA_PEMBELI'];
             $alamat_surat = $obj->fields['ALAMAT_SURAT'];
             $TELP_KANTOR = trim($obj->fields["TELP_KANTOR"]) != "" ? trim(strtoupper($obj->fields["TELP_KANTOR"])) : "";
             $TELP_LAIN = trim($obj->fields["TELP_LAIN"]) != "" ? "," . trim(strtoupper($obj->fields["TELP_LAIN"])) : "";
             $TELP_RUMAH = trim($obj->fields["TELP_RUMAH"]) != "" ? "," . trim(strtoupper($obj->fields["TELP_RUMAH"])) : "";
             $telp = $TELP_KANTOR . $TELP_LAIN . $TELP_RUMAH;
             $tanggal_spp = fm_date(date("Y-m-d", strtotime($obj->fields['TANGGAL_SPP'])));
             $tanggal_tempo = fm_date(date("Y-m-d", strtotime($obj->fields['TGL_TEMPO'])));
             $nilai = $obj->fields['NILAI'];
             $query = "select NOMOR_SURAT_PEMBERITAHUAN,REG_SURAT_PEMBERITAHUAN from CS_REGISTER_CUSTOMER_SERVICE";
             $obj = $conn->execute($query);
             $no = $obj->fields['NOMOR_SURAT_PEMBERITAHUAN'];
             $reg = $obj->fields['REG_SURAT_PEMBERITAHUAN'];
         }
     }
 } catch (Exception $e) {
     $msg = $e->getmessage();
     $error = TRUE;
     if ($conn) {
         $conn->rollbacktrans();
     }
 }
 close($conn);
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:pemberian_jatuh_tempo_proses.php


示例7: substr

		<tr> 
			<td class="text-center"><?php 
    echo $va;
    ?>
</td>
			<td></td><td></td><td>IDR</td>
			<td class="text-left"><?php 
    echo $obj->fields['NAMA_PEMBELI'];
    ?>
</td>
			<td class="text-left"><?php 
    echo $obj->fields['KODE_BLOK'];
    ?>
</td>
			<td class="text-left"><?php 
    echo substr(fm_date(date("Y-m-d")), 3);
    ?>
</td>
			
			
			<?php 
    //cek bulan ini merupakan rencana pertama atau bukan
    $query2 = "\n\t\t\tSELECT COUNT(*) AS TOTAL\n\t\t\tFROM RENCANA WHERE KODE_BLOK = '{$id}' \n\t\t\tAND TANGGAL < CONVERT(DATETIME,'01-{$bln}-{$thn}',105)\n\t\t\t";
    $obj2 = $conn->execute($query2);
    $n_rencana = $obj2->fields['TOTAL'];
    //jika bulan ini merupakan rancana pertama
    if ($n_rencana == 0) {
        //tagihan bulan ini
        $rencana_sekarang = 0;
        $query2 = "\n\t\t\t\tSELECT *\n\t\t\t\tFROM RENCANA WHERE KODE_BLOK = '{$id}' \n\t\t\t\tAND TANGGAL >= CONVERT(DATETIME,'01-{$bln}-{$thn}',105)\n\t\t\t\tAND TANGGAL < CONVERT(DATETIME,'01-{$next_bln}-{$next_thn}',105)\n\t\t\t\t";
        $obj2 = $conn->execute($query2);
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:download_tagihan_mandiri_excel.php


示例8: fm_date

        $tanggal = $obj->fields['TANGGAL'];
        ?>
		<tr class="onclick" id="<?php 
        echo $id . ' ' . $tanggal;
        ?>
"> 
			<td><?php 
        echo $id;
        ?>
</td>
			<td><?php 
        echo $obj->fields['NAMA_PEMBELI'];
        ?>
</td>
			<td class="text-center"><?php 
        echo fm_date(date("Y-m-d", strtotime($obj->fields['TANGGAL'])));
        ?>
</td>
			<td class="text-center"><?php 
        echo $obj->fields['NOMOR_CUSTOMER'];
        ?>
</td>
			</tr>
		<?php 
        $obj->movenext();
    }
}
?>
</table>

<table id="pagging-2" class="t-control w60"></table>
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:entry_load.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP fmod函数代码示例发布时间:2022-05-15
下一篇:
PHP flush_rewrite_rules函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap