issue 70 trash link modify in document, comment admin

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8866 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-08-24 08:57:45 +00:00
parent 670b327bc2
commit 0f1ffbb83c
6 changed files with 41 additions and 24 deletions

View file

@ -20,26 +20,38 @@ 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);
// get Status name list
$oDocumentModel = &getModel('document');
$statusNameList = $oDocumentModel->getStatusNameList();
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);
}
Context::set('trash_list', $output->data);
Context::set('total_count', $output->total_count);
Context::set('total_page', $output->total_page);
Context::set('page', $output->page);
Context::set('page_navigation', $output->page_navigation);
Context::set('status_name_list', $statusNameList);
// 템플릿 파일 지정
$this->setTemplateFile('trash_list');