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

This commit is contained in:
zero 2007-04-16 12:25:48 +00:00
parent dbef8482f5
commit 8e669f0a79
4 changed files with 28 additions and 3 deletions

View file

@ -9,8 +9,8 @@
<action name="getMenuAdminTplInfo" type="model" standalone="true" /> <action name="getMenuAdminTplInfo" type="model" standalone="true" />
<action name="procMenuAdminInsert" type="controller" 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="procMenuAdminDelete" type="controller" standalone="true" />
<action name="procMenuAdminInsertItem" type="controller" standalone="true" /> <action name="procMenuAdminInsertItem" type="controller" standalone="true" />
<action name="procMenuAdminDeleteItem" type="controller" standalone="true" /> <action name="procMenuAdminDeleteItem" type="controller" standalone="true" />
<action name="procMenuAdminMakeXmlFile" type="controller" standalone="true" /> <action name="procMenuAdminMakeXmlFile" type="controller" standalone="true" />

View file

@ -29,6 +29,20 @@
$this->setMessage('success_registed'); $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 메뉴 삭제 * @brief 메뉴 삭제
* menu_item과 xml 캐시 파일 모두 삭제 * menu_item과 xml 캐시 파일 모두 삭제
@ -109,6 +123,10 @@
// XML 파일을 갱신하고 위치을 넘겨 받음 // XML 파일을 갱신하고 위치을 넘겨 받음
$xml_file = $this->makeXmlFile($args->menu_srl); $xml_file = $this->makeXmlFile($args->menu_srl);
// url에 mid=? 또는 module=? 가 있을 경우 기록 남김
if(eregi("^(mid|module)", $args->url)) {
}
$this->add('xml_file', $xml_file); $this->add('xml_file', $xml_file);
$this->add('menu_srl', $args->menu_srl); $this->add('menu_srl', $args->menu_srl);
$this->add('menu_item_srl', $args->menu_item_srl); $this->add('menu_item_srl', $args->menu_item_srl);

View file

@ -1,3 +1,4 @@
<!--%import("filter/update_menu_title.xml")-->
<!--%import("filter/insert_menu_item.xml")--> <!--%import("filter/insert_menu_item.xml")-->
<!--%import("filter/delete_menu_item.xml")--> <!--%import("filter/delete_menu_item.xml")-->
<!--%import("filter/move_menu_item.xml")--> <!--%import("filter/move_menu_item.xml")-->
@ -15,7 +16,14 @@
<table border="1" width="100%"> <table border="1" width="100%">
<tr> <tr>
<th>{$lang->title}</th> <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>
<tr> <tr>
<th>{$lang->menu_management}</th> <th>{$lang->menu_management}</th>

View file

@ -2,7 +2,6 @@
<column name="module_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" /> <column name="module_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" />
<column name="module" type="varchar" size="80" notnull="notnull" index="idx_module" /> <column name="module" type="varchar" size="80" notnull="notnull" index="idx_module" />
<column name="module_category_srl" type="number" size="11" default="0" index="idx_module_category" /> <column name="module_category_srl" type="number" size="11" default="0" index="idx_module_category" />
<column name="layout_srl" type="number" size="11" default="0" />
<column name="mid" type="varchar" size="40" notnull="notnull" unique="unique_mid"/> <column name="mid" type="varchar" size="40" notnull="notnull" unique="unique_mid"/>
<column name="skin" type="varchar" size="250" /> <column name="skin" type="varchar" size="250" />
<column name="browser_title" type="varchar" size="250" notnull="notnull"/> <column name="browser_title" type="varchar" size="250" notnull="notnull"/>