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

This commit is contained in:
zero 2007-04-16 09:10:54 +00:00
parent 8b610f5334
commit 6b38f2b8bd
35 changed files with 300 additions and 599 deletions

View file

@ -3,7 +3,9 @@
<actions>
<action name="dispLayoutAdminContent" type="view" admin_index="true" standalone="true" />
<action name="dispLayoutAdminInsert" type="view" standalone="true" />
<action name="dispLayoutAdminModify" type="view" standalone="true" />
<action name="dispLayoutAdminDownloadedList" type="view" standalone="true" />
<action name="dispLayoutAdminInfo" type="view" standalone="true" />
<action name="procLayoutAdminInsert" type="controller" standalone="true" />

View file

@ -15,6 +15,7 @@
$oModuleController = &getController('module');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminContent');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminInsert');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminModify');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminDownloadedList');
$oModuleController->insertActionForward('layout', 'view', 'dispLayoutAdminInfo');

View file

@ -41,7 +41,7 @@
/**
* @brief 레이아웃 세부 정보 입력
**/
function dispLayoutAdminMenu() {
function dispLayoutAdminModify() {
// 선택된 레이아웃의 정보르 구해서 세팅
$layout_srl = Context::get('layout_srl');
@ -54,7 +54,19 @@
Context::set('layout_info', $layout_info);
$this->setTemplateFile('layout_info');
$this->setTemplateFile('layout_modify');
}
/**
* @brief 레이아웃 목록을 보여줌
**/
function dispLayoutAdminDownloadedList() {
// 레이아웃 목록을 세팅
$oLayoutModel = &getModel('layout');
$layout_list = $oLayoutModel->getDownloadedLayoutList();
Context::set('layout_list', $layout_list);
$this->setTemplateFile('downloaded_layout_list');
}
/**
@ -72,17 +84,5 @@
// 템플릿 파일 지정
$this->setTemplateFile('layout_detail_info');
}
/**
* @brief 레이아웃 목록을 보여줌
**/
function dispLayoutAdminDownloadedList() {
// 레이아웃 목록을 세팅
$oLayoutModel = &getModel('layout');
$layout_list = $oLayoutModel->getDownloadedLayoutList();
Context::set('layout_list', $layout_list);
$this->setTemplateFile('downloaded_layout_list');
}
}
?>

View file

@ -26,7 +26,7 @@
<tr>
<td>{$no+1}</td>
<td>{$val->layout}</td>
<td><a href="#" onclick="location.href='{getUrl('act','dispLayoutAdminMenu','layout_srl',$val->layout_srl)}';return false;">{htmlspecialchars($val->title)}</a></td>
<td><a href="#" onclick="location.href='{getUrl('act','dispLayoutAdminModify','layout_srl',$val->layout_srl)}';return false;">{htmlspecialchars($val->title)}</a></td>
<td>{zdate($val->regdate,"Y-m-d")}</td>
<td><a href="#" onclick="doDeleteLayout('{$val->layout_srl}');return false;">{$lang->cmd_delete}</a></td>
</tr>

View file

@ -1,7 +1,7 @@
/* 레이아웃 신규 생성시 완료 후 요청하는 함수 */
function completeInsertLayout(ret_obj) {
var layout_srl = ret_obj['layout_srl'];
var url = location.href.setQuery('act','dispLayoutAdminMenu').setQuery('layout_srl',layout_srl);
var url = location.href.setQuery('act','dispLayoutAdminModify').setQuery('layout_srl',layout_srl);
location.href = url;
}

View file

@ -34,9 +34,12 @@
<col width="140" />
<col width="*" />
<tr>
<th>{$lang->title}</th>
<th rowspan="2">{$lang->title}</th>
<td><input type="text" name="title" value="{htmlspecialchars($layout_info->layout_title)}" /></td>
</tr>
<tr>
<td>{$lang->about_title}</td>
</tr>
<!--@foreach($layout_info->extra_var as $id => $var)-->
<tr>
<th rowspan="2">{$var->name}</th>