git-svn-id: http://xe-core.googlecode.com/svn/trunk@150 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-02-21 14:10:54 +00:00
parent 907fefc8af
commit c5867a7706
8 changed files with 100 additions and 75 deletions

View file

@ -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');
}
/**

View file

@ -27,6 +27,9 @@
// 스킨 디렉토리 세팅
$skin_path = sprintf("%sskins/%s/",$this->module_path, $this->skin);
$this->setTemplatePath($skin_path);
// 몇가지 템플릿에서 사용할 변수를 Context::set()
if($this->module_srl) Context::set('module_srl',$this->module_srl);
}
/**
@ -371,6 +374,8 @@
function dispAdminBoardInfo() {
if(!Context::get('module_srl')) return $this->dispContent();
$module_info = Context::get('module_info');
// 템플릿 파일 지정
$this->setTemplateFile('info');
}

View file

@ -32,7 +32,7 @@
<a href="{getUrl('act','dispLogin')}">[{$lang->cmd_login}]</a>
<!--@end-->
<!--@if($logged_info->is_admin=='Y')-->
<a href="{getUrl('module','admin','sid',$module,'act','dispModuleInfo','module_srl',$module_srl,'mid','')}" target="_blank">[{$lang->cmd_management}]</a>
<a href="{getUrl('module','admin','sid',$module,'act','dispAdminBoardInfo','module_srl',$module_srl,'mid','')}" target="_blank">[{$lang->cmd_management}]</a>
<!--@end-->
</div>

View file

@ -53,6 +53,7 @@
// 체크 결과를 Context에 저장
Context::set('checklist', $checklist);
Context::set('install_enable', $install_enable);
return $install_enable;
}

View file

@ -1,11 +1,2 @@
<!--%import("css/message.css")-->
<table border="1">
<tr>
<td>error</td>
<td>{$error}</td>
</tr>
<tr>
<td>message</td>
<td>{$message}</td>
</tr>
</table>
{$system_message}