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@285 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d60057da37
commit
1011287741
6 changed files with 101 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<module>
|
<module>
|
||||||
<actions>
|
<actions>
|
||||||
|
<action name="dispContent" type="view" admin_index="true" standalone="true" />
|
||||||
|
<action name="dispInsertLayout" type="view" standalone="true" />
|
||||||
|
<action name="dispInsertLayout2" type="view" standalone="true" />
|
||||||
<action name="dispList" type="controller" standalone="true" />
|
<action name="dispList" type="controller" standalone="true" />
|
||||||
</actions>
|
</actions>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,18 @@
|
||||||
function init() {
|
function init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief DB 에 생성된 레이아웃의 목록을 구함
|
||||||
|
**/
|
||||||
|
function getLayoutList() {
|
||||||
|
$oDB = &DB::getInstance();
|
||||||
|
$output = $oDB->executeQuery('layout.getLayoutList');
|
||||||
|
if(!$output->data) return;
|
||||||
|
|
||||||
|
if(is_array($output->data)) return $output->data;
|
||||||
|
return array($output->data);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 레이아웃의 경로를 구함
|
* @brief 레이아웃의 경로를 구함
|
||||||
**/
|
**/
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,36 @@
|
||||||
$this->setTemplatePath($this->module_path.'tpl.admin');
|
$this->setTemplatePath($this->module_path.'tpl.admin');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 레이아웃 관리의 첫 페이지
|
||||||
|
**/
|
||||||
|
function dispContent() {
|
||||||
|
$oLayoutModel = &getModel('layout');
|
||||||
|
$layout_list = $oLayoutModel->getLayoutList();
|
||||||
|
Context::set('layout_list', $layout_list);
|
||||||
|
|
||||||
|
$this->setTemplateFile('index');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 레이아웃 등록 페이지 step 1
|
||||||
|
**/
|
||||||
|
function dispInsertLayout() {
|
||||||
|
// 레이아웃 목록을 세팅
|
||||||
|
$oLayoutModel = &getModel('layout');
|
||||||
|
$layout_list = $oLayoutModel->getDownloadedLayoutList();
|
||||||
|
Context::set('layout_list', $layout_list);
|
||||||
|
|
||||||
|
$this->setTemplateFile('insert_layout');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 레이아웃 등록 페이지 step 2
|
||||||
|
**/
|
||||||
|
function dispInsertLayout() {
|
||||||
|
$this->setTemplateFile('insert_layout2');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 레이아웃 목록을 보여줌
|
* @brief 레이아웃 목록을 보여줌
|
||||||
**/
|
**/
|
||||||
|
|
|
||||||
11
modules/layout/queries/getLayoutList.xml
Normal file
11
modules/layout/queries/getLayoutList.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<query id="getLayoutList" action="select">
|
||||||
|
<tables>
|
||||||
|
<table name="layouts" />
|
||||||
|
</tables>
|
||||||
|
<columns>
|
||||||
|
<column name="*" />
|
||||||
|
</columns>
|
||||||
|
<navigation>
|
||||||
|
<index var="sort_index" default="layout_srl" order="desc" />
|
||||||
|
</navigation>
|
||||||
|
</query>
|
||||||
29
modules/layout/tpl.admin/index.html
Normal file
29
modules/layout/tpl.admin/index.html
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
<div>
|
||||||
|
{$lang->total_count} {number_format(count($layout_list))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 목록 -->
|
||||||
|
<div>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>{$lang->no}</th>
|
||||||
|
<th>{$lang->layout_name}</th>
|
||||||
|
<th>{$lang->regdate}</th>
|
||||||
|
<th>{$lang->cmd_delete}</th>
|
||||||
|
</tr>
|
||||||
|
<!--@foreach($layout_list as $no => $val)-->
|
||||||
|
<tr>
|
||||||
|
<td>{$no}</td>
|
||||||
|
<td><a href="#" onclick="location.href='{getUrl('act','dispInsertLayout','layout_srl',$val->layout_srl)}';return false;">{$val->layout_name}</a></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>
|
||||||
|
</tr>
|
||||||
|
<!--@end-->
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 버튼 -->
|
||||||
|
<div>
|
||||||
|
[<a href="{getUrl('act','dispInsertLayout','layout_srl','')}">{$lang->cmd_make}</a>]
|
||||||
|
</div>
|
||||||
16
modules/layout/tpl.admin/insert_layout.html
Normal file
16
modules/layout/tpl.admin/insert_layout.html
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
<form 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}" />
|
||||||
|
|
||||||
|
<div style="margin-bottom:10px;">
|
||||||
|
{$lang->layout_name}
|
||||||
|
<select name="layout">
|
||||||
|
<!--@foreach($layout_list as $key => $val)-->
|
||||||
|
<option value="{$val->layout}">{$val->title} ({$val->layout})</option>
|
||||||
|
<!--@end-->
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="{$lang->cmd_next}" />
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue