mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
issue 70 dashboard developement
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8772 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
43bcb6d5b8
commit
2966ddca9a
35 changed files with 245 additions and 321 deletions
|
|
@ -136,5 +136,16 @@
|
|||
$this->add('tpl', $tpl);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return member count with date
|
||||
**/
|
||||
function getMemberCountByDate($date = '') {
|
||||
if($date) $args->regDate = date('Ymd', strtotime($date));
|
||||
|
||||
$output = executeQuery('member.getMemberCountByDate', $args);
|
||||
if(!$output->toBool()) return 0;
|
||||
|
||||
return $output->data->count;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
11
modules/member/queries/getMemberCountByDate.xml
Normal file
11
modules/member/queries/getMemberCountByDate.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getMemberCountByDate" action="select">
|
||||
<tables>
|
||||
<table name="member" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="like_prefix" column="regdate" var="regDate" />
|
||||
</conditions>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue