git-svn-id: http://xe-core.googlecode.com/svn/trunk@1213 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-18 05:37:23 +00:00
parent 713bbfe3d2
commit 7ae6882c5c
16 changed files with 109 additions and 254 deletions

View file

@ -26,7 +26,7 @@
* @brief 오늘자 카운터 현황 row 있는지 체크
**/
function isInsertedTodayStatus() {
$args->regdate = date("Ymd000000");
$args->regdate = date("Ymd");
$output = executeQuery('counter.getTodayStatus', $args);
return $output->data->count?true:false;
}
@ -38,18 +38,26 @@
// 여러개의 날자 로그를 가져올 경우
if(is_array($regdate)) {
$date_count = count($regdate);
for($i=0;$i<$date_count;$i++) {
if(strlen($regdate[$i])==8) $regdate[$i] = $regdate[$i].'000000';
$args->regdate = "'".implode("','",$regdate)."'";
}
$args->regdate = implode(',',$regdate);
// 단일 날자의 로그를 가져올 경우
} else {
if(strlen($regdate)==8) $regdate = $regdate.'000000';
if(strlen($regdate)==8) $regdate = $regdate;
$args->regdate = $regdate;
}
$output = executeQuery('counter.getCounterStatus', $args);
return $output->data;
$status = $output->data;
if(!is_array($regdate)) return $status;
if(!is_array($status)) $status = array($status);
unset($output);
foreach($status as $key => $val) {
$output[substr($val->regdate,0,8)] = $val;
}
return $output;
}
}