mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 12:52:19 +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
|
|
@ -77,5 +77,16 @@
|
|||
return $node;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return document count with date
|
||||
**/
|
||||
function getDocumentCountByDate($date = '') {
|
||||
if($date) $args->regDate = date('Ymd', strtotime($date));
|
||||
|
||||
$output = executeQuery('document.getDocumentCountByDate', $args);
|
||||
if(!$output->toBool()) return 0;
|
||||
|
||||
return $output->data->count;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
11
modules/document/queries/getDocumentCountByDate.xml
Normal file
11
modules/document/queries/getDocumentCountByDate.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getDocumentCountByDate" action="select">
|
||||
<tables>
|
||||
<table name="documents" />
|
||||
</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