mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
issue 160 when admin menu add, menu group create.
document count without temp status in dashbard git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9188 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
eacdaed16f
commit
e1dd4d6e3f
4 changed files with 11 additions and 5 deletions
|
|
@ -230,8 +230,9 @@
|
|||
|
||||
// Document Status
|
||||
$oDocumentAdminModel = &getAdminModel('document');
|
||||
$status->document->todayCount = $oDocumentAdminModel->getDocumentCountByDate($today);
|
||||
$status->document->totalCount = $oDocumentAdminModel->getDocumentCountByDate();
|
||||
$statusList = array('PUBLIC', 'SECRET');
|
||||
$status->document->todayCount = $oDocumentAdminModel->getDocumentCountByDate($today, array(), $statusList);
|
||||
$status->document->totalCount = $oDocumentAdminModel->getDocumentCountByDate('', array(), $statusList);
|
||||
|
||||
// Comment Status
|
||||
$oCommentModel = &getModel('comment');
|
||||
|
|
|
|||
|
|
@ -17,17 +17,20 @@ jQuery(function($){
|
|||
|
||||
function completeGetActList(obj)
|
||||
{
|
||||
var $optgroup;
|
||||
|
||||
moduleList = obj.menuList;
|
||||
console.log(moduleList);
|
||||
if(moduleList)
|
||||
{
|
||||
var menuNameList = $('#menuNameList');
|
||||
for(var x in moduleList)
|
||||
{
|
||||
var menuList = moduleList[x];
|
||||
$optgroup = $('<optgroup label="'+x+'" />').appendTo(menuNameList);
|
||||
for(var y in menuList)
|
||||
{
|
||||
var menu = menuList[y];
|
||||
menuNameList.append('<option value="'+x+':'+y+'">'+menu.title+'</option>');
|
||||
$optgroup.append('<option value="'+x+':'+y+'">'+menuList[y].title+'</option>');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,9 +80,10 @@
|
|||
/**
|
||||
* @brief Return document count with date
|
||||
**/
|
||||
function getDocumentCountByDate($date = '', $moduleSrlList = array()) {
|
||||
function getDocumentCountByDate($date = '', $moduleSrlList = array(), $statusList = array()) {
|
||||
if($date) $args->regDate = date('Ymd', strtotime($date));
|
||||
if(count($moduleSrlList)>0) $args->moduleSrlList = $moduleSrlList;
|
||||
if(count($statusList)>0) $args->statusList = $statusList;
|
||||
|
||||
$output = executeQuery('document.getDocumentCountByDate', $args);
|
||||
if(!$output->toBool()) return 0;
|
||||
|
|
|
|||
|
|
@ -8,5 +8,6 @@
|
|||
<conditions>
|
||||
<condition operation="in" column="module_srl" var="moduleSrlList" />
|
||||
<condition operation="like_prefix" column="regdate" var="regDate" pipe="and" />
|
||||
<condition operation="in" column="status" var="statusList" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue