mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 01:42:14 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@379 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6a494850da
commit
af7dc3565d
15 changed files with 204 additions and 12 deletions
|
|
@ -36,5 +36,33 @@
|
|||
$this->setTemplateFile('module_list');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 모듈 카테고리 목록
|
||||
**/
|
||||
function dispCategory() {
|
||||
$module_category_srl = Context::get('module_category_srl');
|
||||
|
||||
// 모듈 목록을 구해서
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
// 선택된 카테고리가 있으면 해당 카테고리의 정보 수정 페이지로
|
||||
if($module_category_srl) {
|
||||
$selected_category = $oModuleModel->getModuleCategory($module_category_srl);
|
||||
Context::set('selected_category', $selected_category);
|
||||
|
||||
// 템플릿 파일 지정
|
||||
$this->setTemplateFile('category_update_form');
|
||||
debugPrint($selected_category);
|
||||
|
||||
// 아니면 전체 목록
|
||||
} else {
|
||||
$category_list = $oModuleModel->getModuleCategories();
|
||||
Context::set('category_list', $category_list);
|
||||
|
||||
// 템플릿 파일 지정
|
||||
$this->setTemplateFile('category_list');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue