Exemplo n.º 1
0
function date_list_assoc($duration, $start = false)
{
    if (!$start) {
        $start = time();
    } elseif (!is_numeric($start)) {
        $start = strtotime($start);
    }
    $end = inc_date($date, $duration);
    $dates[inc_date($start, null, 1)] = custom_date(time(), 'd/m/Y');
    for ($n = 1; $n < $duration; $n++) {
        $stamp = inc_date($start, array('date' => $n), 1);
        $vals[] = $stamp;
        $dates[$stamp] = custom_date($stamp, 'd/m/Y');
    }
    return $dates;
}
			<div id='search-box'>
				<form action="" id="cari" name="cari" method="POST">
				<input id='search-text' name='q' placeholder="Cari" type="text" onkeyup="cari2(this.value)" />
				<input id='search-button' type='button'>
				</form>
			</div>
			
			<hr/>
			
			<!----- Iisisi Disini !-->
			
			<div id="prog_po">
				<div id="tab-container2" class="tab-container2">
					<ul class="etabs">
						<li class="tab"><a href="#tabs-1"><?php 
custom_date();
?>
</a></li>
					</ul>
					<br/><br/>
					<div id="tabs-1">
						<table border="1px" style="border-collapse:collapse">
						<thead>
							<tr height="50px">
								<th width="30px">No</th>
								<th width="70px">No PO</th>
								<th width="150px">Supplier</th>
								<th width="70px">No PPB</th>
								<th width="100px">Kode</th>
								<th width="150px">KodeBB</th>
								<th width="30px">Pack</th>
		<div id="header1">
			<a href="index.php"><img src="../image/logo.png"></a>
		</div>
		<div id="header2">
			<ul>
				
				<li><a href="../index.php"><img src="../image/hoome.png" height="30px"><span>Beranda</span></a></li>
				<li><a href="profile.php"><img src="../image/about.png" height="30px"><span style="display: block; opacity: 1; top: -40px;">Tentang Kami</span></a></li>
				<li><a href="help.php"><img src="../image/help.png" height="30px"><span>Bantuan</span></a></li>
			</ul>
		</div>
	</div>
	<br/><br/><br/>
	<div id="flat">
		<?php 
echo custom_date();
?>
	</div>
	<div id="flat2">
		<?php 
include "gedget/jam.php";
?>
	</div>
	<div id="flat5">

	</div>
	<br/><br/>
	<div id="gambar_overlay_knf"></div>
	<div id="knf_logout">
		<div id="head_knf">
			<h2>Log Out</h2>
Exemplo n.º 4
0
function getTimeFrame($timeFrame, $samedates = '')
{
    $timeFrameArr = array('date_from' => '', 'date_from' => '');
    $curTime = time();
    switch ($timeFrame) {
        case '24':
            $calcTime = $curTime - 86400;
            $timeFrameArr['date_from'] = $calcTime;
            $timeFrameArr['date_to'] = $curTime;
            break;
        case '1':
            $calcTime = custom_date(-1);
            $timeFrameArr['date_from'] = $calcTime;
            $timeFrameArr['date_to'] = $curTime;
            break;
        case '7':
            $calcTime = custom_date(-6);
            $timeFrameArr['date_from'] = $calcTime;
            $timeFrameArr['date_to'] = $curTime;
            break;
        case '30':
            $calcTime = custom_date(-29);
            $timeFrameArr['date_from'] = $calcTime;
            $timeFrameArr['date_to'] = $curTime;
            break;
        case '90':
            $calcTime = custom_date(-90);
            $timeFrameArr['date_from'] = $calcTime;
            $timeFrameArr['date_to'] = $curTime;
            break;
        default:
            $calcTime = custom_date(-365);
            $timeFrameArr['date_from'] = $calcTime;
            $timeFrameArr['date_to'] = $curTime;
            break;
    }
    return $timeFrameArr;
}