function getVDate($t) { $date['PROC'] = $t ? getDateCal('YmdHisw', date('YmdHis'), $t) : date('YmdHisw'); $date['totime'] = substr($date['PROC'], 0, 14); $date['year'] = substr($date['PROC'], 0, 4); $date['month'] = substr($date['PROC'], 0, 6); $date['today'] = substr($date['PROC'], 0, 8); $date['tohour'] = substr($date['PROC'], 8, 6); $date['toweek'] = substr($date['PROC'], 14, 1); return $date; }
} ?> </table> </div> <div class="counter"> Total : <?php echo number_format(getDbCnt($table['s_counter'], 'sum(hit)', 'site=' . $s)); ?> <br /> Yesterday : <?php echo number_format(getDbCnt($table['s_counter'], 'sum(hit)', 'site=' . $s . " and date='" . getDateCal('Ymd', $date['totime'], -24) . "'")); ?> <br /> Today : <?php echo number_format(getDbCnt($table['s_counter'], 'sum(hit)', 'site=' . $s . " and date='" . $date['today'] . "'")); ?> <br /> </div> <div class="rss"> <img src="<?php echo $g['img_core']; ?> /_public/btn_rss_gray.gif" alt="rss" /> <a href="<?php