mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1280 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ad2754314c
commit
210ebdbc26
8 changed files with 151 additions and 20 deletions
|
|
@ -27,15 +27,16 @@
|
|||
// counter model 객체 생성
|
||||
$oCounterModel = &getModel('counter');
|
||||
|
||||
// 전체 카운터 현황 가져오기
|
||||
// 전체 카운터 및 지정된 일자의 현황 가져오기
|
||||
$status = $oCounterModel->getStatus(array(0,$selected_date));
|
||||
Context::set('total_counter', $status[0]);
|
||||
Context::set('selected_day_counter', $status[$selected_date]);
|
||||
|
||||
|
||||
// 정해진 일자 현황 가져오기
|
||||
|
||||
// 시간, 일, 월, 년도별로 데이터 가져오기
|
||||
$type = Context::get('type');
|
||||
if(!$type) $type = 'hour';
|
||||
$detail_status = $oCounterModel->getHourlyStatus($type, $selected_date);
|
||||
Context::set('detail_status', $detail_status);
|
||||
|
||||
// 표시
|
||||
$this->setTemplateFile('index');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue