mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 04:39:55 +09:00
* 댓글알리미 module 추가 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4326 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
56f7c52f7d
commit
de2b57c2d2
37 changed files with 1036 additions and 0 deletions
64
modules/tccommentnotify/tccommentnotify.admin.view.php
Normal file
64
modules/tccommentnotify/tccommentnotify.admin.view.php
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<?php
|
||||
/**
|
||||
* @class commentnotifyAdminView
|
||||
* @author haneul (haneul0318@gmail.com)
|
||||
* @brief commentnotify 모듈의 Admin view class
|
||||
**/
|
||||
|
||||
class tccommentnotifyAdminView extends tccommentnotify {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
// 템플릿 경로 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 관리자 페이지 초기화면
|
||||
**/
|
||||
function dispCommentNotifyAdminIndex() {
|
||||
$this->dispCommentNotifyAdminList();
|
||||
}
|
||||
|
||||
function dispCommentNotifyAdminList() {
|
||||
|
||||
// 목록을 구하기 위한 옵션
|
||||
$args->page = Context::get('page'); ///< 페이지
|
||||
|
||||
$args->sort_index = 'list_order'; ///< 소팅 값
|
||||
|
||||
$oCommentNotifyModel = &getModel('tccommentnotify');
|
||||
$output = $oCommentNotifyModel->GetNotifiedList($args);
|
||||
|
||||
Context::set('total_count', $output->total_count);
|
||||
Context::set('total_page', $output->total_page);
|
||||
Context::set('page', $output->page);
|
||||
$notify_list = array();
|
||||
if(!$output->data)
|
||||
{
|
||||
$output->data = array();
|
||||
}
|
||||
foreach($output->data as $notifyparent)
|
||||
{
|
||||
$item = null;
|
||||
$item->parent = $notifyparent;
|
||||
$item->children = $oCommentNotifyModel->GetChildren($notifyparent->notified_srl);
|
||||
$notify_list[] = $item;
|
||||
}
|
||||
Context::set('notify_list', $notify_list);
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
|
||||
// 템플릿 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('commentnotify_list');
|
||||
}
|
||||
|
||||
function dispCommentNotifyAdminDeleteChild()
|
||||
{
|
||||
$notified_srl = Context::get('notified_srl');
|
||||
$this->setTemplateFile('delete_child');
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue