mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@848 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9344643632
commit
a73c9d8bf7
11 changed files with 18 additions and 23 deletions
|
|
@ -12,12 +12,8 @@
|
||||||
* before_display_content 에서만 요청이 됩니다.
|
* before_display_content 에서만 요청이 됩니다.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
if($called_position != 'before_display_content') return;
|
if($called_position != 'before_module_init') return;
|
||||||
|
|
||||||
// 현재 애드온의 위치를 구함
|
|
||||||
$oAddOnModel = &getModel('addon');
|
|
||||||
$path = $oAddOnModel->getAddonPath('rainbow_link');
|
|
||||||
|
|
||||||
// Context::addJsFile()을 이용하면 끝
|
// Context::addJsFile()을 이용하면 끝
|
||||||
Context::addJsFile($path.'js/rainbow.js');
|
Context::addJsFile($addon_path.'js/rainbow.js');
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<module>
|
<module>
|
||||||
<actions>
|
<actions>
|
||||||
<action name="dispLayoutAdminContent" type="view" admin_index="true" standalone="true" />
|
<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="dispLayoutAdminMenu" type="view" standalone="true" />
|
||||||
<action name="dispLayoutAdminDownloadedList" type="view" standalone="true" />
|
<action name="dispLayoutAdminDownloadedList" type="view" standalone="true" />
|
||||||
<action name="dispLayoutAdminInfo" type="view" standalone="true" />
|
<action name="dispLayoutAdminInfo" type="view" standalone="true" />
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
<action name="procLayoutAdminInsert" type="controller" standalone="true" />
|
<action name="procLayoutAdminInsert" type="controller" standalone="true" />
|
||||||
<action name="procLayoutAdminUpdate" type="controller" standalone="true" />
|
<action name="procLayoutAdminUpdate" type="controller" standalone="true" />
|
||||||
<action name="procLayoutAdminDelete" 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="procLayoutAdminDeleteMenu" type="controller" standalone="true" />
|
||||||
<action name="procLayoutAdminMakeXmlFile" type="controller" standalone="true" />
|
<action name="procLayoutAdminMakeXmlFile" type="controller" standalone="true" />
|
||||||
<action name="procLayoutAdminMoveMenu" type="controller" standalone="true" />
|
<action name="procLayoutAdminMoveMenu" type="controller" standalone="true" />
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,11 @@
|
||||||
// action forward에 등록 (관리자 모드에서 사용하기 위함)
|
// action forward에 등록 (관리자 모드에서 사용하기 위함)
|
||||||
$oModuleController = &getController('module');
|
$oModuleController = &getController('module');
|
||||||
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminContent');
|
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminContent');
|
||||||
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminInsertLayout');
|
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminInsert');
|
||||||
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminMenu');
|
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminMenu');
|
||||||
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminDownloadedLayoutList');
|
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminDownloadedList');
|
||||||
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminAdminInfo');
|
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminInfo');
|
||||||
|
|
||||||
$oModuleController->insertActionForward('layout', 'model', 'getLayoutAdminMenuSrl');
|
|
||||||
$oModuleController->insertActionForward('layout', 'model', 'getLayoutAdminMenuTplInfo');
|
$oModuleController->insertActionForward('layout', 'model', 'getLayoutAdminMenuTplInfo');
|
||||||
|
|
||||||
$oModuleController->insertActionForward('layout', 'controller', 'procLayoutAdminInsert');
|
$oModuleController->insertActionForward('layout', 'controller', 'procLayoutAdminInsert');
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief 레이아웃에 메뉴 추가
|
* @brief 레이아웃에 메뉴 추가
|
||||||
**/
|
**/
|
||||||
function procLayoutInsertMenu() {
|
function procLayoutAdminInsertMenu() {
|
||||||
// 입력할 변수 정리
|
// 입력할 변수 정리
|
||||||
$source_args = Context::getRequestVars();
|
$source_args = Context::getRequestVars();
|
||||||
unset($source_args->module);
|
unset($source_args->module);
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
* @brief 특정 menu_srl의 정보를 이용하여 템플릿을 구한후 return
|
* @brief 특정 menu_srl의 정보를 이용하여 템플릿을 구한후 return
|
||||||
* 관리자 페이지에서 특정 메뉴의 정보를 추가하기 위해 서버에서 tpl을 컴파일 한후 컴파일 된 html을 직접 return
|
* 관리자 페이지에서 특정 메뉴의 정보를 추가하기 위해 서버에서 tpl을 컴파일 한후 컴파일 된 html을 직접 return
|
||||||
**/
|
**/
|
||||||
function getLayoutAdminTplInfo() {
|
function getLayoutAdminMenuTplInfo() {
|
||||||
// 해당 메뉴의 정보를 가져오기 위한 변수 설정
|
// 해당 메뉴의 정보를 가져오기 위한 변수 설정
|
||||||
$menu_id = Context::get('menu_id');
|
$menu_id = Context::get('menu_id');
|
||||||
$menu_srl = Context::get('menu_srl');
|
$menu_srl = Context::get('menu_srl');
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
// template 파일을 직접 컴파일한후 tpl변수에 담아서 return한다.
|
// template 파일을 직접 컴파일한후 tpl변수에 담아서 return한다.
|
||||||
require_once("./classes/template/TemplateHandler.class.php");
|
require_once("./classes/template/TemplateHandler.class.php");
|
||||||
$oTemplate = new TemplateHandler();
|
$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 할 변수 설정
|
// return 할 변수 설정
|
||||||
$this->add('menu_id', $menu_id);
|
$this->add('menu_id', $menu_id);
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
* @brief 초기화
|
* @brief 초기화
|
||||||
**/
|
**/
|
||||||
function init() {
|
function init() {
|
||||||
$this->setTemplatePath($this->module_path.'tpl.admin');
|
$this->setTemplatePath($this->module_path.'tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/* 레이아웃 신규 생성시 완료 후 요청하는 함수 */
|
/* 레이아웃 신규 생성시 완료 후 요청하는 함수 */
|
||||||
function completeInsertLayout(ret_obj) {
|
function completeInsertLayout(ret_obj) {
|
||||||
var layout_srl = ret_obj['layout_srl'];
|
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');
|
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을 받음 */
|
/* 메뉴를 드래그하여 이동한 후 실행할 함수 , 이동하는 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');
|
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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<query id="getActionForward" action="select">
|
<query id="getActionForward" action="select">
|
||||||
<tables>
|
<tables>
|
||||||
<table name="action_foward" />
|
<table name="action_forward" />
|
||||||
</tables>
|
</tables>
|
||||||
<columns>
|
<columns>
|
||||||
<column name="*" />
|
<column name="*" />
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<query id="insertActionFoward" action="insert">
|
<query id="insertActionFoward" action="insert">
|
||||||
<tables>
|
<tables>
|
||||||
<table name="action_foward" />
|
<table name="action_forward" />
|
||||||
</tables>
|
</tables>
|
||||||
<columns>
|
<columns>
|
||||||
<column name="act" default="act" notnull="notnull" />
|
<column name="act" default="act" notnull="notnull" />
|
||||||
|
|
|
||||||
|
|
@ -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="act" type="varchar" size="80" notnull="notnull" unique="idx_foward"/>
|
||||||
<column name="module" type="varchar" size="60" notnull="notnull" />
|
<column name="module" type="varchar" size="60" notnull="notnull" />
|
||||||
<column name="type" type="varchar" size="15" notnull="notnull" />
|
<column name="type" type="varchar" size="15" notnull="notnull" />
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ function doDisplaySkinColorset(sel, colorset) {
|
||||||
|
|
||||||
var response_tags = new Array("error","message","colorset_list");
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 서버에서 받아온 컬러셋을 표시 */
|
/* 서버에서 받아온 컬러셋을 표시 */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue