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@303 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b22aeaf783
commit
38ccebe5b5
6 changed files with 25 additions and 11 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
<action name="dispContent" type="view" admin_index="true" standalone="true" />
|
<action name="dispContent" type="view" admin_index="true" standalone="true" />
|
||||||
<action name="dispLayoutMenuInfo" type="view" standalone="true" />
|
<action name="dispLayoutMenuInfo" type="view" standalone="true" />
|
||||||
<action name="dispInsertLayout" type="view" standalone="true" />
|
<action name="dispInsertLayout" type="view" standalone="true" />
|
||||||
<action name="dispInsertLayout2" type="view" standalone="true" />
|
<action name="dispLayoutInfo" type="view" standalone="true" />
|
||||||
<action name="dispList" type="controller" standalone="true" />
|
<action name="dispList" type="controller" standalone="true" />
|
||||||
<action name="getLayoutMenuSrl" type="model" standalone="true" />
|
<action name="getLayoutMenuSrl" type="model" standalone="true" />
|
||||||
<action name="getMenuInfo" type="model" standalone="true" />
|
<action name="getMenuInfo" type="model" standalone="true" />
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
/**
|
/**
|
||||||
* @brief 레이아웃 등록 페이지 step 2
|
* @brief 레이아웃 등록 페이지 step 2
|
||||||
**/
|
**/
|
||||||
function dispInsertLayout2() {
|
function dispLayoutInfo() {
|
||||||
// 선택된 레이아웃의 정보르 구해서 세팅
|
// 선택된 레이아웃의 정보르 구해서 세팅
|
||||||
$layout_srl = Context::get('layout_srl');
|
$layout_srl = Context::get('layout_srl');
|
||||||
|
|
||||||
|
|
@ -50,16 +50,18 @@
|
||||||
|
|
||||||
// 등록된 레이아웃이 없으면 오류 표시
|
// 등록된 레이아웃이 없으면 오류 표시
|
||||||
if(!$layout_info) return $this->dispContent();
|
if(!$layout_info) return $this->dispContent();
|
||||||
|
$layout_title = $layout_info->title;
|
||||||
|
|
||||||
// xml 정보를 가져옴
|
// xml 정보를 가져옴
|
||||||
$layout = $layout_info->layout;
|
$layout = $layout_info->layout;
|
||||||
$layout_info = $oLayoutModel->getLayoutInfoXml($layout, $layout_srl);
|
$layout_info = $oLayoutModel->getLayoutInfoXml($layout, $layout_srl);
|
||||||
$layout_info->layout_srl = $layout_srl;
|
$layout_info->layout_srl = $layout_srl;
|
||||||
|
$layout_info->layout_title = $layout_title;
|
||||||
$layout_info->layout = $layout;
|
$layout_info->layout = $layout;
|
||||||
|
|
||||||
Context::set('layout_info', $layout_info);
|
Context::set('layout_info', $layout_info);
|
||||||
|
|
||||||
$this->setTemplateFile('insert_layout2');
|
$this->setTemplateFile('layout_info');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
11
modules/layout/queries/getLayout.xml
Normal file
11
modules/layout/queries/getLayout.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<query id="getLayout" action="select">
|
||||||
|
<tables>
|
||||||
|
<table name="layouts" />
|
||||||
|
</tables>
|
||||||
|
<columns>
|
||||||
|
<column name="*" />
|
||||||
|
</columns>
|
||||||
|
<conditions>
|
||||||
|
<condition operation="equal" column="layout_srl" var="layout_srl" filter="number" notnull="notnull" />
|
||||||
|
</conditions>
|
||||||
|
</query>
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$no+1}</td>
|
<td>{$no+1}</td>
|
||||||
<td>{$val->layout}</td>
|
<td>{$val->layout}</td>
|
||||||
<td><a href="#" onclick="location.href='{getUrl('act','dispInsertLayout2','layout_srl',$val->layout_srl)}';return false;">{$val->title}</a></td>
|
<td><a href="#" onclick="location.href='{getUrl('act','dispLayoutInfo','layout_srl',$val->layout_srl)}';return false;">{$val->title}</a></td>
|
||||||
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
||||||
<td><a href="{getUrl('act','dispAdminDeleteBoard','module_srl', $val->module_srl)}">{$lang->cmd_delete}</a></td>
|
<td><a href="{getUrl('act','dispAdminDeleteBoard','module_srl', $val->module_srl)}">{$lang->cmd_delete}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/* 레이아웃 신규 생성시 완료 후 요청하는 함수 */
|
/* 레이아웃 신규 생성시 완료 후 요청하는 함수 */
|
||||||
function completeInsertLayout(ret_obj) {
|
function completeInsertLayout(ret_obj) {
|
||||||
var layout_srl = ret_obj['layout_srl'];
|
var layout_srl = ret_obj['layout_srl'];
|
||||||
location.href="./?module=admin&mo=layout&act=dispInsertLayout2&layout_srl="+layout_srl;
|
location.href="./?module=admin&mo=layout&act=dispLayoutInfo&layout_srl="+layout_srl;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 레이아웃 메뉴에를 클릭시 적용할 함수 */
|
/* 레이아웃 메뉴에를 클릭시 적용할 함수 */
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,20 @@
|
||||||
<!--%import("js/admin.js")-->
|
<!--%import("js/admin.js")-->
|
||||||
|
|
||||||
<form id="fo_layout" action="./" method="post" enctype="multipart/form-data">
|
<form id="fo_layout" action="./" method="post" enctype="multipart/form-data">
|
||||||
<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}" />
|
<input type="hidden" name="layout_srl" value="{$layout_srl}" />
|
||||||
<input type="hidden" name="layout" value="{$layout}" />
|
<input type="hidden" name="layout" value="{$layout}" />
|
||||||
|
|
||||||
<div style="margin-bottom:10px;">
|
<div style="margin-bottom:10px;">
|
||||||
<table border="1" width="100%">
|
<table border="1" width="100%">
|
||||||
<col width="100" />
|
<col width="140" />
|
||||||
<col width="*" />
|
<col width="*" />
|
||||||
|
<tr>
|
||||||
|
<th>{$lang->title}</th>
|
||||||
|
<td>{$layout_info->layout_title}</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{$lang->layout_name}</th>
|
<th>{$lang->layout_name}</th>
|
||||||
<td>{$layout_info->title} ver {$layout_info->version} ({$layout})</td>
|
<td>{$layout_info->title} ver {$layout_info->version} ({$layout_info->layout})</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{$lang->author}</th>
|
<th>{$lang->author}</th>
|
||||||
|
|
@ -35,7 +36,7 @@
|
||||||
|
|
||||||
<div style="margin-bottom:10px;">
|
<div style="margin-bottom:10px;">
|
||||||
<table border="1" width="100%">
|
<table border="1" width="100%">
|
||||||
<col width="100" />
|
<col width="140" />
|
||||||
<col width="*" />
|
<col width="*" />
|
||||||
<tr>
|
<tr>
|
||||||
<th>{$lang->menu_management}</th>
|
<th>{$lang->menu_management}</th>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue