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

This commit is contained in:
zero 2007-04-17 02:27:15 +00:00
parent 2fc90cfebc
commit 311d0fb0d7
3 changed files with 44 additions and 18 deletions

View file

@ -13,3 +13,14 @@ function doDeleteLayout(layout_srl) {
procFilter(fo_obj, delete_layout); procFilter(fo_obj, delete_layout);
} }
/* 메뉴 관리로 이동 */
function doMenuManagement(menu_id) {
var fo_obj = xGetElementById("fo_layout");
var sel_obj = fo_obj[menu_id];
if(sel_obj.selectedIndex == 0) return;
var menu_srl = sel_obj.options[sel_obj.selectedIndex].value;
var url = location.href.setQuery('act','dispMenuAdminManagement').setQuery('menu_srl',menu_srl);
location.href = url;
}

View file

@ -73,6 +73,7 @@
<option value="{$val->menu_srl}" <!--@if($val->menu_srl == $menu_info->menu_srl)-->selected="true"<!--@end-->>{$val->title}</option> <option value="{$val->menu_srl}" <!--@if($val->menu_srl == $menu_info->menu_srl)-->selected="true"<!--@end-->>{$val->title}</option>
<!--@end--> <!--@end-->
</select> </select>
<input type="button" value="{$lang->cmd_management}" onclick="doMenuManagement('{$menu_id}');return false;"/>
</td> </td>
</tr> </tr>
<!--@end--> <!--@end-->

View file

@ -13,23 +13,37 @@
<div style="margin-bottom:10px;"> <div style="margin-bottom:10px;">
<table border="1" width="100%"> <!--@if($mid == 'admin')-->
<tr> <table border="1" width="100%">
<th>{$lang->title}</th> <tr>
<td> <th>{$lang->title}</th>
<form action="./" method="get" onsubmit="return procFilter(this, update_menu_title)"> <td>
<input type="hidden" name="menu_srl" value="{$menu_info->menu_srl}" /> <form action="./" method="get" onsubmit="return procFilter(this, update_menu_title)">
<input type="text" name="title" value="{htmlspecialchars($menu_info->title)}" /> <input type="hidden" name="menu_srl" value="{$menu_info->menu_srl}" />
<input type="submit" value="{$lang->cmd_modify}" /> <input type="text" name="title" value="{htmlspecialchars($menu_info->title)}" />
<input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','dispMenuAdminContent')}';return false;" /> <input type="submit" value="{$lang->cmd_modify}" />
</form> <input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','dispMenuAdminContent')}';return false;" />
</td> </form>
</tr> </td>
<tr> </tr>
<th>{$lang->menu_management}</th> <tr>
<td>{nl2br($lang->about_menu_management)}</td> <th>{$lang->menu_management}</th>
</tr> <td>{nl2br($lang->about_menu_management)}</td>
</table> </tr>
</table>
<!--@else-->
<table border="1" width="100%">
<tr>
<th>{$lang->title}</th>
<td>{$menu_info->title}</td>
<td><input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','')}';return false;" /></td>
</tr>
<tr>
<th>{$lang->menu_management}</th>
<td colspan="2">{nl2br($lang->about_menu_management)}</td>
</tr>
</table>
<!--@end-->
<form id="fo_menu" action="./" method="get" onsubmit="return procFilter(this, insert_menu_item)"> <form id="fo_menu" action="./" method="get" onsubmit="return procFilter(this, insert_menu_item)">
<input type="hidden" name="title" value="{$menu_info->title}" /> <input type="hidden" name="title" value="{$menu_info->title}" />
@ -38,7 +52,7 @@
<input type="hidden" name="php_file" value="{$menu_info->php_file}" /> <input type="hidden" name="php_file" value="{$menu_info->php_file}" />
<table border="1" width="100%"> <table border="1" width="100%">
<col width="300" /> <col width="320" />
<col width="*" /> <col width="*" />
<tr valign="top"> <tr valign="top">
<td> <td>