mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
english comments added
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
693e215bc1
commit
4d272994dd
219 changed files with 6407 additions and 8705 deletions
|
|
@ -2,22 +2,22 @@
|
|||
/**
|
||||
* @class pollAdminView
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief poll모듈의 admin view class
|
||||
* @brief The admin view class of the poll module
|
||||
**/
|
||||
|
||||
class pollAdminView extends poll {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
* @brief Initialization
|
||||
**/
|
||||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 관리자 페이지
|
||||
* @brief Administrator's Page
|
||||
**/
|
||||
function dispPollAdminList() {
|
||||
// 검색 옵션 정리
|
||||
// Arrange the search options
|
||||
$search_target = trim(Context::get('search_target'));
|
||||
$search_keyword = trim(Context::get('search_keyword'));
|
||||
|
||||
|
|
@ -35,62 +35,56 @@
|
|||
break;
|
||||
}
|
||||
}
|
||||
// 목록을 구하기 위한 옵션
|
||||
$args->page = Context::get('page'); ///< 페이지
|
||||
$args->list_count = 50; ///< 한페이지에 보여줄 글 수
|
||||
$args->page_count = 10; ///< 페이지 네비게이션에 나타날 페이지의 수
|
||||
// Options to get a list of pages
|
||||
$args->page = Context::get('page');
|
||||
$args->list_count = 50; // The number of posts to show on one page
|
||||
$args->page_count = 10; // The number of pages to display in the page navigation
|
||||
|
||||
$args->sort_index = 'list_order'; ///< 소팅 값
|
||||
$args->sort_index = 'list_order'; // Sorting value
|
||||
|
||||
// 목록 구함
|
||||
// Get the list
|
||||
$oPollAdminModel = &getAdminModel('poll');
|
||||
$output = $oPollAdminModel->getPollList($args);
|
||||
|
||||
// 템플릿 변수 설정
|
||||
// Configure the template variables
|
||||
Context::set('total_count', $output->total_count);
|
||||
Context::set('total_page', $output->total_page);
|
||||
Context::set('page', $output->page);
|
||||
Context::set('poll_list', $output->data);
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
Context::set('module_list', $module_list);
|
||||
|
||||
// 템플릿 지정
|
||||
// Set a template
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('poll_list');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설문조사 스킨, 컬러셋 설정
|
||||
* @brief Confgure the poll skin and colorset
|
||||
**/
|
||||
function dispPollAdminConfig() {
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
// 설정 정보 가져오기
|
||||
// Get the configuration information
|
||||
$config = $oModuleModel->getModuleConfig('poll');
|
||||
Context::set('config', $config);
|
||||
|
||||
// 스킨 정보 가져오기
|
||||
// Get the skin information
|
||||
$skin_list = $oModuleModel->getSkins($this->module_path);
|
||||
Context::set('skin_list', $skin_list);
|
||||
|
||||
if(!$skin_list[$config->skin]) $config->skin = "default";
|
||||
|
||||
// 설정된 스킨의 컬러셋 설정
|
||||
// Set the skin colorset once the configurations is completed
|
||||
Context::set('colorset_list', $skin_list[$config->skin]->colorset);
|
||||
|
||||
// 템플릿 지정
|
||||
// Set a template
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('config');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설문조사 결과
|
||||
* @brief Poll Results
|
||||
**/
|
||||
function dispPollAdminResult() {
|
||||
// 팝업 레이아웃
|
||||
// Popup layout
|
||||
$this->setLayoutFile("popup_layout");
|
||||
|
||||
// 결과 뽑기
|
||||
// Draw results
|
||||
$args->poll_srl = Context::get('poll_srl');
|
||||
$args->poll_index_srl = Context::get('poll_index_srl');
|
||||
|
||||
|
|
@ -114,8 +108,7 @@
|
|||
$poll->poll_srl = $poll_srl;
|
||||
|
||||
Context::set('poll',$poll);
|
||||
|
||||
// 기본 설정의 스킨, 컬러셋 설정
|
||||
// Configure the skin and the colorset for the default configuration
|
||||
$oModuleModel = &getModel('module');
|
||||
$poll_config = $oModuleModel->getModuleConfig('poll');
|
||||
Context::set('poll_config', $poll_config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue