mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
issue 70 admin langauge apply
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9086 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d00f84fe03
commit
56a2ae027c
16 changed files with 75 additions and 103 deletions
|
|
@ -20,32 +20,19 @@ class trashAdminView extends trash {
|
|||
* @brief trash list
|
||||
**/
|
||||
function dispTrashAdminList() {
|
||||
$origin_module = Context::get('origin_module');
|
||||
$args->page = Context::get('page'); // /< Page
|
||||
$args->list_count = 30; // /< the number of posts to display on a single page
|
||||
$args->page_count = 5; // /< the number of pages that appear in the page navigation
|
||||
|
||||
$args->search_target = Context::get('search_target'); // /< search (title, contents ...)
|
||||
$args->search_keyword = Context::get('search_keyword'); // /< keyword to search
|
||||
$args->originModule = Context::get('origin_module');
|
||||
|
||||
$oTrashModel = getModel('trash');
|
||||
$output = $oTrashModel->getTrashList($args);
|
||||
|
||||
if($origin_module == 'document')
|
||||
{
|
||||
// get Status name list
|
||||
$oDocumentModel = &getModel('document');
|
||||
$statusNameList = $oDocumentModel->getStatusNameList();
|
||||
Context::set('status_name_list', $statusNameList);
|
||||
}
|
||||
else if($origin_module == 'comment')
|
||||
{
|
||||
// get a list by using comment->getCommentList.
|
||||
$oCommentModel = &getModel('comment');
|
||||
$secretNameList = $oCommentModel->getSecretNameList();
|
||||
Context::set('secret_name_list', $secretNameList);
|
||||
}
|
||||
// for no text comment language and for document manange language
|
||||
$oCommentModel = &getModel('comment');
|
||||
$oDocumentModel = &getModel('document');
|
||||
|
||||
Context::set('trash_list', $output->data);
|
||||
Context::set('total_count', $output->total_count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue