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

This commit is contained in:
zero 2007-04-01 02:25:57 +00:00
parent 9344643632
commit a73c9d8bf7
11 changed files with 18 additions and 23 deletions

View file

@ -12,12 +12,8 @@
* before_display_content 에서만 요청이 됩니다.
**/
if($called_position != 'before_display_content') return;
// 현재 애드온의 위치를 구함
$oAddOnModel = &getModel('addon');
$path = $oAddOnModel->getAddonPath('rainbow_link');
if($called_position != 'before_module_init') return;
// Context::addJsFile()을 이용하면 끝
Context::addJsFile($path.'js/rainbow.js');
Context::addJsFile($addon_path.'js/rainbow.js');
?>

View file

@ -2,7 +2,7 @@
<module>
<actions>
<action name="dispLayoutAdminContent" type="view" admin_index="true" standalone="true" />
<action name="dispLayoutAdminInsertLayout" type="view" standalone="true" />
<action name="dispLayoutAdminInsert" type="view" standalone="true" />
<action name="dispLayoutAdminMenu" type="view" standalone="true" />
<action name="dispLayoutAdminDownloadedList" type="view" standalone="true" />
<action name="dispLayoutAdminInfo" type="view" standalone="true" />
@ -12,7 +12,7 @@
<action name="procLayoutAdminInsert" type="controller" standalone="true" />
<action name="procLayoutAdminUpdate" type="controller" standalone="true" />
<action name="procLayoutAdminDelete" type="controller" standalone="true" />
<action name="procLaytouAdminInsertMenu" type="controller" standalone="true" />
<action name="procLayoutAdminInsertMenu" type="controller" standalone="true" />
<action name="procLayoutAdminDeleteMenu" type="controller" standalone="true" />
<action name="procLayoutAdminMakeXmlFile" type="controller" standalone="true" />
<action name="procLayoutAdminMoveMenu" type="controller" standalone="true" />

View file

@ -14,12 +14,11 @@
// action forward에 등록 (관리자 모드에서 사용하기 위함)
$oModuleController = &getController('module');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminContent');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminInsertLayout');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminInsert');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminMenu');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminDownloadedLayoutList');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminAdminInfo');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminDownloadedList');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminInfo');
$oModuleController->insertActionForward('layout', 'model', 'getLayoutAdminMenuSrl');
$oModuleController->insertActionForward('layout', 'model', 'getLayoutAdminMenuTplInfo');
$oModuleController->insertActionForward('layout', 'controller', 'procLayoutAdminInsert');

View file

@ -88,7 +88,7 @@
/**
* @brief 레이아웃에 메뉴 추가
**/
function procLayoutInsertMenu() {
function procLayoutAdminInsertMenu() {
// 입력할 변수 정리
$source_args = Context::getRequestVars();
unset($source_args->module);

View file

@ -18,7 +18,7 @@
* @brief 특정 menu_srl의 정보를 이용하여 템플릿을 구한후 return
* 관리자 페이지에서 특정 메뉴의 정보를 추가하기 위해 서버에서 tpl을 컴파일 한후 컴파일 html을 직접 return
**/
function getLayoutAdminTplInfo() {
function getLayoutAdminMenuTplInfo() {
// 해당 메뉴의 정보를 가져오기 위한 변수 설정
$menu_id = Context::get('menu_id');
$menu_srl = Context::get('menu_srl');
@ -58,7 +58,7 @@
// template 파일을 직접 컴파일한후 tpl변수에 담아서 return한다.
require_once("./classes/template/TemplateHandler.class.php");
$oTemplate = new TemplateHandler();
$tpl = $oTemplate->compile($this->module_path.'tpl.admin', 'layout_menu_info');
$tpl = $oTemplate->compile($this->module_path.'tpl', 'layout_menu_info');
// return 할 변수 설정
$this->add('menu_id', $menu_id);

View file

@ -11,7 +11,7 @@
* @brief 초기화
**/
function init() {
$this->setTemplatePath($this->module_path.'tpl.admin');
$this->setTemplatePath($this->module_path.'tpl');
}
/**

View file

@ -1,7 +1,7 @@
/* 레이아웃 신규 생성시 완료 후 요청하는 함수 */
function completeInsertLayout(ret_obj) {
var layout_srl = ret_obj['layout_srl'];
location.href="./?module=admin&mo=layout&act=dispLayoutAdminMenu&layout_srl="+layout_srl;
location.href="./?module=admin&act=dispLayoutAdminMenu&layout_srl="+layout_srl;
}
/* 레이아웃메뉴 입력후 */
@ -58,7 +58,7 @@ function doGetMenuInfo(menu_id, obj) {
// 서버에 요청하여 해당 노드의 정보를 수정할 수 있도록 한다.
var response_tags = new Array('error','message','menu_id', 'tpl');
exec_xml('layout', 'getMenuTplInfo', params, completeGetMenuInfo, response_tags, params);
exec_xml('layout', 'getLayoutAdminMenuTplInfo', params, completeGetMenuInfo, response_tags, params);
}
/* 메뉴를 드래그하여 이동한 후 실행할 함수 , 이동하는 node_srl과 대상 node_srl을 받음 */
@ -126,5 +126,5 @@ function doReloadTreeMenu(menu_id) {
// 서버에 요청하여 해당 노드의 정보를 수정할 수 있도록 한다.
var response_tags = new Array('error','message','menu_id', 'xml_file', 'menu_title');
exec_xml('layout', 'procMakeXmlFile', params, completeInsertLayoutMenu, response_tags, params);
exec_xml('layout', 'procLayoutAdminMakeXmlFile', params, completeInsertLayoutMenu, response_tags, params);
}

View file

@ -1,6 +1,6 @@
<query id="getActionForward" action="select">
<tables>
<table name="action_foward" />
<table name="action_forward" />
</tables>
<columns>
<column name="*" />

View file

@ -1,6 +1,6 @@
<query id="insertActionFoward" action="insert">
<tables>
<table name="action_foward" />
<table name="action_forward" />
</tables>
<columns>
<column name="act" default="act" notnull="notnull" />

View file

@ -1,4 +1,4 @@
<table name="action_foward">
<table name="action_forward">
<column name="act" type="varchar" size="80" notnull="notnull" unique="idx_foward"/>
<column name="module" type="varchar" size="60" notnull="notnull" />
<column name="type" type="varchar" size="15" notnull="notnull" />

View file

@ -40,7 +40,7 @@ function doDisplaySkinColorset(sel, colorset) {
var response_tags = new Array("error","message","colorset_list");
exec_xml("plugin", "procGetColorsetList", params, completeGetSkinColorset, response_tags, params);
exec_xml("plugin", "procPluginGetColorsetList", params, completeGetSkinColorset, response_tags, params);
}
/* 서버에서 받아온 컬러셋을 표시 */