mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@301 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c7d1f1c55e
commit
7407e0e16e
8 changed files with 51 additions and 7 deletions
|
|
@ -8,5 +8,6 @@
|
|||
<action name="dispList" type="controller" standalone="true" />
|
||||
<action name="getLayoutMenuSrl" type="model" standalone="true" />
|
||||
<action name="getMenuInfo" type="model" standalone="true" />
|
||||
<action name="procInsertLayout" type="controller" standalone="true" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -13,5 +13,19 @@
|
|||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 레이아웃 신규 생성
|
||||
**/
|
||||
function procInsertLayout() {
|
||||
$oDB = &DB::getInstance();
|
||||
|
||||
$args->layout_srl = $oDB->getNextSequence();
|
||||
$args->layout = Context::get('layout');
|
||||
$args->title = Context::get('title');
|
||||
|
||||
$oDB->executeQuery("layout.insertLayout", $args);
|
||||
|
||||
$this->add('layout_srl', $args->layout_srl);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
11
modules/layout/queries/insertLayout.xml
Normal file
11
modules/layout/queries/insertLayout.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="insertLayout" action="insert">
|
||||
<tables>
|
||||
<table name="layouts" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="layout_srl" var="layout_srl" filter="number" notnull="notnull" />
|
||||
<column name="layout" var="layout" notnull="notnull" />
|
||||
<column name="title" var="title" notnull="notnull" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
</columns>
|
||||
</query>
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
<table name="layouts">
|
||||
<column name="layout_srl" type="number" size="12" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="layout_name" type="varchar" size="250" />
|
||||
<column name="layout" type="varchar" size="250" />
|
||||
<column name="title" type="varchar" size="250" />
|
||||
<column name="config" type="text" />
|
||||
<column name="regdate" type="date" index="idx_regdate" />
|
||||
</table>
|
||||
|
|
|
|||
14
modules/layout/tpl.admin/filter/insert_layout.xml
Normal file
14
modules/layout/tpl.admin/filter/insert_layout.xml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<filter name="insert_layout" module="layout" act="procInsertLayout" confirm_msg_code="confirm_submit">
|
||||
<form>
|
||||
<node target="title" required="true" />
|
||||
</form>
|
||||
<parameter>
|
||||
<param name="layout" target="layout" />
|
||||
<param name="title" target="title" />
|
||||
</parameter>
|
||||
<response callback_func="completeInsertLayout">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="layout_srl" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -1,9 +1,7 @@
|
|||
<form action="./" method="get">
|
||||
<input type="hidden" name="module" value="admin" />
|
||||
<input type="hidden" name="mo" value="layout" />
|
||||
<input type="hidden" name="act" value="dispInsertLayout2" />
|
||||
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
|
||||
<!--%import("js/admin.js")-->
|
||||
<!--%import("filter/insert_layout.xml")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, insert_layout)">
|
||||
<div style="margin-bottom:10px;">
|
||||
<table border="1" width="100%">
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
/* 레이아웃 신규 생성시 완료 후 요청하는 함수 */
|
||||
function completeInsertLayout(ret_obj) {
|
||||
var layout_srl = ret_obj['layout_srl'];
|
||||
location.href="./module=admin&act=dispInsertLayout2&layout_srl="+layout_srl;
|
||||
}
|
||||
|
||||
/* 레이아웃 메뉴에를 클릭시 적용할 함수 */
|
||||
function doGetMenuInfo(menu_id, obj) {
|
||||
// layout, menu_id, node_srl을 추출
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue