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

@ -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>