mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 09:24:17 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@150 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
907fefc8af
commit
c5867a7706
8 changed files with 100 additions and 75 deletions
|
|
@ -40,19 +40,21 @@
|
|||
function dispAdminIndex() {
|
||||
// 선택된 모듈이 있는지 확인
|
||||
$sid = Context::get('sid');
|
||||
$act = Context::get('act');
|
||||
|
||||
// 있다면 해당 모듈의 xml_info를 구함
|
||||
if($sid) {
|
||||
$oModuleModel = &getModel('module');
|
||||
$xml_info = $oModuleModel->getModuleXmlInfo($sid);
|
||||
$oModuleHandler = new ModuleHandler($sid, $act);
|
||||
$oModule = &$oModuleHandler->getModule();
|
||||
|
||||
// management_action이 있는지 확인
|
||||
$management_action = $xml_info->management_action;
|
||||
// 내용을 요청받은 모듈의 것으로 변경
|
||||
$this->setTemplatePath($oModule->getTemplatePath());
|
||||
$this->setTemplateFile($oModule->getTemplateFile());
|
||||
|
||||
Context::set('tetete', $management_action);
|
||||
// 없으면 관리자 메인 페이지 출력
|
||||
} else {
|
||||
$this->setTemplateFile('index');
|
||||
}
|
||||
|
||||
$this->setTemplateFile('index');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue