mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@163 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ad4cfd30f4
commit
cac2d957b2
6 changed files with 41 additions and 11 deletions
|
|
@ -12,6 +12,15 @@
|
|||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief admin 모듈내에서 다른 모듈을 실행하는 부분
|
||||
**/
|
||||
function procOtherModule($module, $act) {
|
||||
$oModuleHandler = new ModuleHandler($module, $act);
|
||||
$oModule = &$oModuleHandler->procModule();
|
||||
return $oModule;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 로그인 시킴
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -36,7 +36,24 @@
|
|||
* @brief 관리자 메인 페이지 출력
|
||||
**/
|
||||
function dispIndex() {
|
||||
$this->setTemplateFile('index');
|
||||
// mo(module), act 변수값이 넘어오면 해당 모듈을 실행
|
||||
$mo = Context::get('mo');
|
||||
$act = Context::get('act');
|
||||
|
||||
if($mo && $mo != 'admin' && $act) {
|
||||
$oAdminController = &getController('admin');
|
||||
$oModule = &$oAdminController->procOtherModule($mo, $act);
|
||||
}
|
||||
|
||||
// 만약 oModule이 없으면 관리자 초기 페이지 출력
|
||||
if(!$oModule || !is_object($oModule)) {
|
||||
$this->setTemplateFile('index');
|
||||
|
||||
// oModule이 정상이라면 해당 모듈의 template path, file을 가로챔
|
||||
} else {
|
||||
$this->setTemplatePath($oModule->getTemplatePath());
|
||||
$this->setTemplateFile($oModule->getTemplateFile());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<tr>
|
||||
<td rowspan="2">
|
||||
<!--@if($val->admin_index_act)-->
|
||||
<a href="#" onclick="location.href='{getUrl('mo',$val->module,'ac',$val->admin_index_act)}'">{$val->title}</a> <br /> ({$val->module})
|
||||
<a href="#" onclick="location.href='{getUrl('mo',$val->module,'act',$val->admin_index_act)}'">{$val->title}</a> <br /> ({$val->module})
|
||||
<!--@else-->
|
||||
{$val->title} <br />
|
||||
({$val->module})
|
||||
|
|
|
|||
|
|
@ -24,9 +24,13 @@
|
|||
Context::set('editor_path', $editor_path);
|
||||
Context::loadLang($editor_path);
|
||||
|
||||
// 스킨 디렉토리 세팅
|
||||
$skin_path = sprintf("%sskins/%s/",$this->module_path, $this->skin);
|
||||
$this->setTemplatePath($skin_path);
|
||||
// act 값에 dispAdmin이 있으면 tpl.admin 으로 템플릿 경로 지정
|
||||
if(substr($this->act,0,9)=='dispAdmin') {
|
||||
$template_path = sprintf("%stpl.admin/",$this->module_path);
|
||||
} else {
|
||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->skin);
|
||||
}
|
||||
$this->setTemplatePath($template_path);
|
||||
|
||||
// 몇가지 템플릿에서 사용할 변수를 Context::set()
|
||||
if($this->module_srl) Context::set('module_srl',$this->module_srl);
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<!--%import("js/admin.js")-->
|
||||
|
||||
<div style="margin-bottom:20px;">
|
||||
<span>[<a href="{getUrl('act','','module_srl','')}">{$lang->cmd_list}</a>]</span>
|
||||
<span <!--@if($act=='dispInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispInfo')}">{$lang->cmd_view_info}</a>]</span>
|
||||
<span <!--@if($act=='dispCategoryInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispCategoryInfo')}">{$lang->cmd_manage_category}</a>]</span>
|
||||
<span <!--@if($act=='dispGrantInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispGrantInfo')}">{$lang->cmd_manage_grant}</a>]</span>
|
||||
<span <!--@if($act=='dispSkinInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispSkinInfo')}">{$lang->cmd_manage_skin}</a>]</span>
|
||||
<span>[<a href="{getUrl('act','dispAdminContent','module_srl','')}">{$lang->cmd_list}</a>]</span>
|
||||
<span <!--@if($act=='dispAdminInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispAdminInfo')}">{$lang->cmd_view_info}</a>]</span>
|
||||
<span <!--@if($act=='dispAdminCategoryInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispAdminCategoryInfo')}">{$lang->cmd_manage_category}</a>]</span>
|
||||
<span <!--@if($act=='dispAdminGrantInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispAdminGrantInfo')}">{$lang->cmd_manage_grant}</a>]</span>
|
||||
<span <!--@if($act=='dispAdminSkinInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispAdminSkinInfo')}">{$lang->cmd_manage_skin}</a>]</span>
|
||||
</div>
|
||||
<div style="margin-bottom:20px;font-weight:bold;">
|
||||
{$lang->mid} : {$module_info->mid}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
<!--@foreach($board_list as $no => $val)-->
|
||||
<tr>
|
||||
<td>{$no}</td>
|
||||
<td><a href="{getUrl('act','dispInfo','module_srl',$val->module_srl)}">{$val->mid}</a></td>
|
||||
<td><a href="{getUrl('act','dispAdminBoardInfo','module_srl',$val->module_srl)}">{$val->mid}</a></td>
|
||||
<td>{$val->browser_title}</td>
|
||||
<td>{$val->is_default}</td>
|
||||
<td>{$val->skin}</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue