mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 12:49:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1178 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dbef8482f5
commit
8e669f0a79
4 changed files with 28 additions and 3 deletions
|
|
@ -9,8 +9,8 @@
|
|||
<action name="getMenuAdminTplInfo" type="model" standalone="true" />
|
||||
|
||||
<action name="procMenuAdminInsert" type="controller" standalone="true" />
|
||||
<action name="procMenuAdminUpdate" type="controller" standalone="true" />
|
||||
<action name="procMenuAdminDelete" type="controller" standalone="true" />
|
||||
|
||||
<action name="procMenuAdminInsertItem" type="controller" standalone="true" />
|
||||
<action name="procMenuAdminDeleteItem" type="controller" standalone="true" />
|
||||
<action name="procMenuAdminMakeXmlFile" type="controller" standalone="true" />
|
||||
|
|
|
|||
|
|
@ -29,6 +29,20 @@
|
|||
$this->setMessage('success_registed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 메뉴 제목 변경
|
||||
**/
|
||||
function procMenuAdminUpdate() {
|
||||
// 입력할 변수 정리
|
||||
$args->title = Context::get('title');
|
||||
$args->menu_srl = Context::get('menu_srl');
|
||||
|
||||
$output = executeQuery('menu.updateMenu', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$this->setMessage('success_registed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 메뉴 삭제
|
||||
* menu_item과 xml 캐시 파일 모두 삭제
|
||||
|
|
@ -109,6 +123,10 @@
|
|||
// XML 파일을 갱신하고 위치을 넘겨 받음
|
||||
$xml_file = $this->makeXmlFile($args->menu_srl);
|
||||
|
||||
// url에 mid=? 또는 module=? 가 있을 경우 기록 남김
|
||||
if(eregi("^(mid|module)", $args->url)) {
|
||||
}
|
||||
|
||||
$this->add('xml_file', $xml_file);
|
||||
$this->add('menu_srl', $args->menu_srl);
|
||||
$this->add('menu_item_srl', $args->menu_item_srl);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<!--%import("filter/update_menu_title.xml")-->
|
||||
<!--%import("filter/insert_menu_item.xml")-->
|
||||
<!--%import("filter/delete_menu_item.xml")-->
|
||||
<!--%import("filter/move_menu_item.xml")-->
|
||||
|
|
@ -15,7 +16,14 @@
|
|||
<table border="1" width="100%">
|
||||
<tr>
|
||||
<th>{$lang->title}</th>
|
||||
<td>{$menu_info->title}</td>
|
||||
<td>
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, update_menu_title)">
|
||||
<input type="hidden" name="menu_srl" value="{$menu_info->menu_srl}" />
|
||||
<input type="text" name="title" value="{htmlspecialchars($menu_info->title)}" />
|
||||
<input type="submit" value="{$lang->cmd_modify}" />
|
||||
<input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','dispMenuAdminContent')}';return false;" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->menu_management}</th>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue