mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 23:31:44 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1243 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
61aa6c309f
commit
c3f7830e36
7 changed files with 16 additions and 13 deletions
|
|
@ -54,11 +54,6 @@ function loadTreeMenu(url, menu_id, zone_id, title, callback_func, manual_select
|
|||
|
||||
if(typeof(title)=='undefined') title = '';
|
||||
|
||||
// xml_handler를 이용해서 직접 메뉴 xml파일(layout module에서 생성)을 읽음
|
||||
var oXml = new xml_handler();
|
||||
oXml.reset();
|
||||
oXml.xml_path = url;
|
||||
|
||||
// 사용자 정의 함수가 없다면 moveTreeMenu()라는 기본적인 동작을 하는 함수를 대입
|
||||
if(typeof(callback_func)=='undefined') {
|
||||
callback_func = moveTreeMenu;
|
||||
|
|
@ -75,6 +70,13 @@ function loadTreeMenu(url, menu_id, zone_id, title, callback_func, manual_select
|
|||
// 직접 선택시키려는 메뉴 인자값이 없으면 초기화
|
||||
if(typeof(manual_select_node_srl)=='undefined') manual_select_node_srl = '';
|
||||
|
||||
// xml_handler를 이용해서 직접 메뉴 xml파일(layout module에서 생성)을 읽음
|
||||
if(!url) return;
|
||||
|
||||
var oXml = new xml_handler();
|
||||
oXml.reset();
|
||||
oXml.xml_path = url;
|
||||
|
||||
// menu_id, zone_id는 계속 달고 다녀야함
|
||||
var param = {menu_id:menu_id, zone_id:zone_id, title:title, manual_select_node_srl:manual_select_node_srl}
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
* @brief 특정 카테고리의 정보를 이용하여 템플릿을 구한후 return
|
||||
* 관리자 페이지에서 특정 메뉴의 정보를 추가하기 위해 서버에서 tpl을 컴파일 한후 컴파일 된 html을 직접 return
|
||||
**/
|
||||
function getCategoryAdminTplInfo() {
|
||||
function getBlogAdminCategoryTplInfo() {
|
||||
// 해당 메뉴의 정보를 가져오기 위한 변수 설정
|
||||
$category_srl = Context::get('category_srl');
|
||||
$parent_srl = Context::get('parent_srl');
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@
|
|||
<action name="procBlogUploadFile" type="controller" />
|
||||
<action name="procBlogDownloadFile" type="controller" />
|
||||
|
||||
<action name="getBlogAdminCategoryTplInfo" type="model" standalone="true" />
|
||||
|
||||
<action name="dispBlogAdminContent" type="view" standalone="true" admin_index="true" />
|
||||
<action name="dispBlogAdminBlogInfo" type="view" standalone="true" />
|
||||
<action name="dispBlogAdminInsertBlog" type="view" standalone="true" />
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
$lang->about_category_name = '카테고리 이름을 입력해주세요';
|
||||
$lang->about_expand = '선택하시면 늘 펼쳐진 상태로 있게 합니다';
|
||||
$lang->category_group_srls = '선택하신 그룹만 현재 카테고리가 보이게 됩니다. (xml파일을 직접 열람하면 노출이 됩니다)';
|
||||
$lang->about_category_group_srls = '선택하신 그룹만 현재 카테고리가 보이게 됩니다. (xml파일을 직접 열람하면 노출이 됩니다)';
|
||||
|
||||
$lang->msg_new_module = '모듈 생성';
|
||||
$lang->msg_update_module = '모듈 수정';
|
||||
|
|
|
|||
|
|
@ -27,10 +27,10 @@
|
|||
<input type="checkbox" id="category_enable_move" /> <label for="category_enable_move">{$lang->cmd_enable_move_category}</label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="button" value="{$lang->cmd_insert}" onclick="doInsertMenuItem(0);return false;" />
|
||||
<input type="button" value="{$lang->cmd_insert}" onclick="doInsertCategory(0);return false;" />
|
||||
<input type="button" value="{$lang->cmd_open_all}" onclick="openAllTreeMenu('category');return false;" />
|
||||
<input type="button" value="{$lang->cmd_close_all}" onclick="closeAllTreeMenu('category');return false;" />
|
||||
<input type="button" value="{$lang->cmd_remake_cache}" onclick="doReloadTreeMenu('{$category_info->category_srl}');return false;" />
|
||||
<input type="button" value="{$lang->cmd_remake_cache}" onclick="doReloadTreeCategory('{$category_info->category_srl}');return false;" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
|
@ -42,6 +42,6 @@
|
|||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
loadTreeMenu("{$category_info->xml_file}", "category", "category_zone_category", "{$lang->category}", doGetMenuItemInfo, 0, doMoveTree);
|
||||
loadTreeMenu("{$category_info->xml_file}", "category", "category_zone_category", "{$lang->category}", doGetCategoryInfo, 0, doMoveTree);
|
||||
</script>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
$oModuleController->insertActionForward('menu', 'view', 'dispMenuAdminInsert');
|
||||
$oModuleController->insertActionForward('menu', 'view', 'dispMenuAdminManagement');
|
||||
|
||||
// 레이아웃에서 사용할 디렉토리 생성
|
||||
// 메뉴 사용할 디렉토리 생성
|
||||
FileHandler::makeDir('./files/cache/menu');
|
||||
|
||||
return new Object();
|
||||
|
|
|
|||
|
|
@ -65,8 +65,7 @@
|
|||
// 메뉴의 정보를 가져옴
|
||||
$oMenuModel = &getModel('menu');
|
||||
$menu_info = $oMenuModel->getMenu($menu_srl);
|
||||
if($menu_info->menu_srl == $menu_srl) Context::set('menu_info', $menu_info);
|
||||
else return $this->dispMenuAdminContent();
|
||||
if($menu_info->menu_srl != $menu_srl) return $this->dispMenuAdminContent();
|
||||
|
||||
Context::set('menu_info', $menu_info);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue