mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 11:22:34 +09:00
referer module (#279)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3106 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
74ad4fc4a7
commit
ae357bceb0
18 changed files with 384 additions and 0 deletions
51
modules/referer/referer.admin.view.php
Normal file
51
modules/referer/referer.admin.view.php
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
/**
|
||||
* @class refererAdminView
|
||||
* @author haneul (haneul0318@gmail.com)
|
||||
* @brief referer 모듈의 Admin view class
|
||||
**/
|
||||
|
||||
class refererAdminView extends referer {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
// 템플릿 경로 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 관리자 페이지 초기화면
|
||||
**/
|
||||
function dispRefererAdminIndex() {
|
||||
$this->dispRefererAdminList();
|
||||
}
|
||||
|
||||
function dispRefererAdminList() {
|
||||
|
||||
// 목록을 구하기 위한 옵션
|
||||
$args->page = Context::get('page'); ///< 페이지
|
||||
|
||||
$args->sort_index = 'regdate'; ///< 소팅 값
|
||||
|
||||
$oRefererModel = &getModel('referer');
|
||||
$output = $oRefererModel->getLogList($args);
|
||||
|
||||
Context::set('total_count', $output->total_count);
|
||||
Context::set('total_page', $output->total_page);
|
||||
Context::set('page', $output->page);
|
||||
Context::set('referer_list', $output->data);
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
|
||||
$args2->sort_index = 'count';
|
||||
$output2 = $oRefererModel->getRefererStatus($args2);
|
||||
Context::set('referer_status', $output2->data);
|
||||
// 템플릿 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('referer_list');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue