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

This commit is contained in:
zero 2007-03-30 04:23:19 +00:00
parent c0ee42e6d7
commit 9b4f0c3073
6 changed files with 33 additions and 38 deletions

View file

@ -11,44 +11,41 @@
* @brief 초기화
**/
function init() {
$this->setTemplatePath($this->module_path.'tpl.admin');
}
/**
* @brief 애드온 관리 메인 페이지
* @brief 애드온 관리 메인 페이지 (목록 보여줌)
**/
function dispIndex() {
$this->dispAddonList();
}
/**
* @brief 애드온의 상세 정보(conf/info.xml) 팝업 출력
**/
function dispAddonInfo() {
// 모듈 목록을 구해서
$oAddonModel = &getModel('addon');
$addon_info = $oAddonModel->getAddonInfoXml(Context::get('selected_addon'));
Context::set('addon_info', $addon_info);
// 레이아웃을 팝업으로 지정
$this->setLayoutFile('popup_layout');
// 템플릿 파일 지정
$this->setTemplateFile('addon_info');
}
/**
* @brief 애드온 목록을 보여줌
**/
function dispAddonList() {
function dispAddonAdminIndex() {
// 애드온 목록을 세팅
$oAddonModel = &getModel('addon');
$addon_list = $oAddonModel->getAddonList();
Context::set('addon_list', $addon_list);
// 템플릿 패스 및 파일을 지정
$this->setTemplatePath($this->module_path.'tpl.admin');
$this->setTemplateFile('addon_list');
}
/**
* @brief 애드온의 상세 정보(conf/info.xml) 팝업 출력
**/
function dispAddonAdminInfo() {
// 요청된 애드온을 구함
$selected_addon = Context::get('selected_addon');
// 요청된 애드온의 정보를 구함
$oAddonModel = &getModel('addon');
$addon_info = $oAddonModel->getAddonInfoXml($selected_addon);
Context::set('addon_info', $addon_info);
// 레이아웃을 팝업으로 지정
$this->setLayoutFile('popup_layout');
// 템플릿 패스 및 파일을 지정
$this->setTemplatePath($this->module_path.'tpl.admin');
$this->setTemplateFile('addon_info');
}
}
?>