mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
issue 70 site count in dashboard
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8803 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
19e395eb2c
commit
e3bfd18de7
4 changed files with 33 additions and 1 deletions
11
modules/site/queries/getSiteCountByDate.xml
Normal file
11
modules/site/queries/getSiteCountByDate.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getSiteCountByDate" action="select">
|
||||
<tables>
|
||||
<table name="sites" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="like_prefix" column="regdate" var="regDate" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
@ -21,6 +21,9 @@
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return site list
|
||||
**/
|
||||
function getSiteAllList()
|
||||
{
|
||||
if(Context::get('domain')) $args->domain = Context::get('domain');
|
||||
|
|
@ -33,6 +36,19 @@
|
|||
$this->add('site_list', $siteList);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return site count
|
||||
**/
|
||||
function getSiteCountByDate($date = '')
|
||||
{
|
||||
if($date) $args->regDate = date('Ymd', strtotime($date));
|
||||
|
||||
$output = executeQuery('site.getSiteCountByDate', $args);
|
||||
if(!$output->toBool()) return 0;
|
||||
|
||||
return $output->data->count;
|
||||
}
|
||||
|
||||
function makeGnbUrl($member_srl)
|
||||
{
|
||||
global $lang;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue