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

This commit is contained in:
zero 2007-04-16 01:26:17 +00:00
parent 897b68879f
commit efbaf45213
7 changed files with 55 additions and 3 deletions

View file

@ -6,6 +6,7 @@
<action name="dispLayoutAdminMenu" type="view" standalone="true" />
<action name="dispLayoutAdminDownloadedList" type="view" standalone="true" />
<action name="dispLayoutAdminInfo" type="view" standalone="true" />
<action name="dispLayoutAdminMidList" type="view" standalone="true" />
<action name="getLayoutAdminMenuTplInfo" type="model" standalone="true" />

View file

@ -33,6 +33,7 @@
$lang->cmd_remake_cache = "캐시파일 재생성";
$lang->cmd_move_to_installed_list = "생성된 목록 보기";
$lang->cmd_enable_move_menu = "메뉴 옮기기";
$lang->cmd_search_mid = "mid 찾기";
$lang->about_downloaded_layouts = "다운로드 되어 있는 레이아웃 목록";
$lang->about_title = '모듈에 연결시 쉽게 구분할 수 있는 제목을 입력해주세요';

View file

@ -230,6 +230,7 @@
$node = $output->data;
if($node->group_srls) $node->group_srls = explode(',',$node->group_srls);
else $node->group_srls = array();
return $node;
}
}

View file

@ -73,6 +73,21 @@
$this->setTemplateFile('layout_detail_info');
}
/**
* @brief 레이아웃에서 선택할 있는 mid목록을 보여줌
**/
function dispLayoutAdminMidList() {
// mid 목록을 구해옴
$oModuleModel = &getModel('module');
$mid_list = $oModuleModel->getMidList();
Context::set('mid_list', $mid_list);
// 레이아웃을 팝업으로 지정
$this->setLayoutFile('popup_layout');
// 템플릿 파일 지정
$this->setTemplateFile('mid_list');
}
/**
* @brief 레이아웃 목록을 보여줌
@ -85,7 +100,5 @@
$this->setTemplateFile('downloaded_layout_list');
}
}
?>

View file

@ -127,3 +127,20 @@ function doReloadTreeMenu(menu_id) {
var response_tags = new Array('error','message','menu_id', 'xml_file', 'menu_title');
exec_xml('layout', 'procLayoutAdminMakeXmlFile', params, completeInsertLayoutMenu, response_tags, params);
}
/* 레이아웃의 메뉴에 mid 추가 */
function doInsertMid(mid, menu_id) {
if(!opener) {
window.close();
return;
}
var fo_obj = opener.xGetElementById("fo_"+menu_id);
if(!fo_obj) {
window.close();
return;
}
fo_obj.menu_url.value = "mid="+mid;
window.close();
}

View file

@ -19,7 +19,7 @@
</tr>
<tr>
<th rowspan="2">{$lang->menu_url}</th>
<td><input type="text" name="menu_url" value="{htmlspecialchars($menu_info->url)}" /></td>
<td><input type="text" name="menu_url" value="{htmlspecialchars($menu_info->url)}" /><input type="button" value="{$lang->cmd_search_mid}" onclick="popopen('{getUrl('module','layout','act','dispLayoutAdminMidList','menu_id', $menu_info->menu_id)}');return false;"/></td>
</tr>
<tr>
<td>{$lang->about_menu_url}</td>

View file

@ -0,0 +1,19 @@
<!--%import("js/layout_admin.js")-->
<div style="width:400px">
<table border="1" width="400">
<tr>
<th>{$lang->mid}</th>
<th>{$lang->title}</th>
<th>{$lang->cmd_select}</th>
</tr>
<tbody>
<!--@foreach($mid_list as $key => $val)-->
<tr>
<td>{$key}</td>
<td>{$val->browser_title}</td>
<td><a href="#" onclick="doInsertMid('{$key}','{$menu_id}'); return false;">{$lang->cmd_select}</a></td>
</tr>
<!--@end-->
</tbody>
</table>
</div>