mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 22:29:55 +09:00
게시판 정보 보기를 수정하는 페이지로 대체
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4774 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9b3a48f06f
commit
3b214f9602
2 changed files with 1 additions and 154 deletions
|
|
@ -78,29 +78,7 @@
|
|||
**/
|
||||
function dispBoardAdminBoardInfo() {
|
||||
|
||||
// module_srl 값이 없다면 그냥 index 페이지를 보여줌
|
||||
if(!Context::get('module_srl')) return $this->dispBoardAdminContent();
|
||||
if(!in_array($this->module_info->module, array('admin', 'board','blog','guestbook'))) {
|
||||
return $this->alertMessage('msg_invalid_request');
|
||||
}
|
||||
|
||||
// 레이아웃이 정해져 있다면 레이아웃 정보를 추가해줌(layout_title, layout)
|
||||
if($this->module_info->layout_srl) {
|
||||
$oLayoutModel = &getModel('layout');
|
||||
$layout_info = $oLayoutModel->getLayout($this->module_info->layout_srl);
|
||||
$this->module_info->layout = $layout_info->layout;
|
||||
$this->module_info->layout_title = $layout_info->layout_title;
|
||||
}
|
||||
|
||||
// 정해진 스킨이 있으면 해당 스킨의 정보를 구함
|
||||
if($this->module_info->skin) {
|
||||
$oModuleModel = &getModel('module');
|
||||
$skin_info = $oModuleModel->loadSkinInfo($this->module_path, $this->module_info->skin);
|
||||
$this->module_info->skin_title = $skin_info->title;
|
||||
}
|
||||
|
||||
// 템플릿 파일 지정
|
||||
$this->setTemplateFile('board_info');
|
||||
$this->dispBoardAdminInsertBoard();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,131 +0,0 @@
|
|||
<!--#include("header.html")-->
|
||||
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->module_category}</div></th>
|
||||
<td>
|
||||
<!--@if(!$module_info->module_category_srl)-->
|
||||
{$lang->not_exists}
|
||||
<!--@else-->
|
||||
{$module_category[$module_info->module_category_srl]->title}
|
||||
<!--@end-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->layout}</div></th>
|
||||
<td>
|
||||
<!--@if($module_info->layout_srl)-->
|
||||
{$module_info->layout_title} ({$module_info->layout})
|
||||
<!--@else-->
|
||||
{$lang->not_exists}
|
||||
<!--@end-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->skin}</div></th>
|
||||
<td>{$module_info->skin_title} ({$module_info->skin})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->browser_title}</div></th>
|
||||
<td>{htmlspecialchars($module_info->browser_title)}</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->use_category}</div></th>
|
||||
<td><!--@if($module_info->use_category=='Y')-->{$lang->use}<!--@else-->{$lang->notuse}<!--@end--></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->order_target}</div></th>
|
||||
<td>{$order_target[$module_info->order_target]}</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->order_type}</div></th>
|
||||
<td><!--@if($module_info->order_type=='asc')-->{$lang->order_asc}<!--@else-->{$lang->order_desc}<!--@end--></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->list_count}</div></th>
|
||||
<td>{$module_info->list_count?$module_info->list_count:20}</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->search_list_count}</div></th>
|
||||
<td>{$module_info->search_list_count?$module_info->search_list_count:20}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->page_count}</div></th>
|
||||
<td>{$module_info->page_count?$module_info->page_count:10}</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->except_notice}</div></th>
|
||||
<td>{$module_info->except_notice=='N'?$lang->notuse:$lang->use}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->consultation}</div></th>
|
||||
<td>{$module_info->consultation=='Y'?$lang->use:$lang->notuse}</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->admin_mail}</div></th>
|
||||
<td>{$module_info->admin_mail} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->description}</div></th>
|
||||
<td>{nl2br(htmlspecialchars($module_info->description))} </td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->header_text}</div></th>
|
||||
<td>{htmlspecialchars($module_info->header_text)} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->footer_text}</div></th>
|
||||
<td>{htmlspecialchars($module_info->footer_text)} </td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->admin_id}</div></th>
|
||||
<td>{implode(",",$module_info->admin_id)} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="right">
|
||||
<a href="{getUrl('act','dispBoardAdminInsertBoard')}" class="button"><span>{$lang->cmd_modify}</span></a>
|
||||
<!--@if($module=="admin")-->
|
||||
<a href="{getUrl('act','dispBoardAdminContent','module_srl','')}" class="button"><span>{$lang->cmd_board_list}</span></a>
|
||||
<!--@end-->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!--@for($i=1;$i<=20;$i++)-->
|
||||
<!--@if($module_info->extra_vars[$i])-->
|
||||
{@ $extra_vars_name = $module_info->extra_vars[$i]->name}
|
||||
{@ $extra_vars_type = $module_info->extra_vars[$i]->type}
|
||||
{@ $extra_vars_is_required = $module_info->extra_vars[$i]->is_required=='Y'?'Y':'N'}
|
||||
{@ $extra_vars_default_value = $module_info->extra_vars[$i]->default?$module_info->extra_vars[$i]->default:' '}
|
||||
{@ $extra_vars_desc = $module_info->extra_vars[$i]->desc?$module_info->extra_vars[$i]->desc:' '}
|
||||
{@ $extra_vars_search = $module_info->extra_vars[$i]->search=='Y'?'Y':'N'}
|
||||
|
||||
<table cellspacing="0" class="adminTable topGap">
|
||||
<caption>{$lang->extra_vars} {$i}</caption>
|
||||
<tr class="row2">
|
||||
<th><div>{$lang->column_name}</div></th>
|
||||
<td>{$extra_vars_name}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><div>{$lang->column_type}</div></th>
|
||||
<td>{$extra_vars_type}</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th><div>{$lang->is_required}</div></th>
|
||||
<td>{$extra_vars_is_required}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><div>{$lang->default_value}</div></th>
|
||||
<td>{$extra_vars_default_value}</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th><div>{$lang->description}</div></th>
|
||||
<td>{$extra_vars_desc}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><div>{$lang->cmd_search}</div></th>
|
||||
<td>{$extra_vars_search}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
Loading…
Add table
Add a link
Reference in a new issue