mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 22:02:13 +09:00
spammer manage
mod spammer popup view page mod some code
This commit is contained in:
parent
de30ecfb39
commit
3bedab7e95
15 changed files with 531 additions and 4 deletions
|
|
@ -1491,6 +1491,42 @@ class documentModel extends document
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the total number of Document in corresponding with member_srl.
|
||||
* @param int $member_srl
|
||||
* @return int
|
||||
*/
|
||||
function getDocumentCountByMemberSrl($member_srl)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$output = executeQuery('document.getDocumentCountByMemberSrl', $args);
|
||||
return (int) $output->data->count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get document list of the doc in corresponding woth member_srl.
|
||||
* @param int $member_srl
|
||||
* @param array $columnList
|
||||
* @param int $page
|
||||
* @param bool $is_admin
|
||||
* @param int $count
|
||||
* @return object
|
||||
*/
|
||||
function getDocumentListByMemberSrl($member_srl, $columnList = array(), $page = 0, $is_admin = FALSE, $count = 0 )
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $member_srl;
|
||||
$args->list_count = $count;
|
||||
$output = executeQuery('document.getDocumentListByMemberSrl', $args, $columnList);
|
||||
$document_list = $output->data;
|
||||
|
||||
if(!$document_list) return array();
|
||||
if(!is_array($document_list)) $document_list = array($document_list);
|
||||
|
||||
return $document_list;
|
||||
}
|
||||
}
|
||||
/* End of file document.model.php */
|
||||
/* Location: ./modules/document/document.model.php */
|
||||
|
|
|
|||
|
|
@ -176,6 +176,7 @@ class documentView extends document
|
|||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('saved_list_popup');
|
||||
}
|
||||
|
||||
}
|
||||
/* End of file document.view.php */
|
||||
/* Location: ./modules/document/document.view.php */
|
||||
|
|
|
|||
11
modules/document/queries/getDocumentCountByMemberSrl.xml
Normal file
11
modules/document/queries/getDocumentCountByMemberSrl.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getDocumentCountByMemberSrl" action="select">
|
||||
<tables>
|
||||
<table name="documents" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
17
modules/document/queries/getDocumentListByMemberSrl.xml
Normal file
17
modules/document/queries/getDocumentListByMemberSrl.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<query id="getDocumentList" action="select">
|
||||
<tables>
|
||||
<table name="documents" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="member_srl" var="member_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="list_order" default="list_order" order="asc" />
|
||||
<list_count var="list_count" default="20" />
|
||||
<page_count var="page_count" default="10" />
|
||||
<page var="page" default="1" />
|
||||
</navigation>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue