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

This commit is contained in:
zero 2007-03-02 03:35:44 +00:00
parent 2332c8d246
commit f068fb2fe3
9 changed files with 80 additions and 3 deletions

View file

@ -551,5 +551,19 @@
$this->add('module_srl', $module_srl);
$this->setMessage($msg_code);
}
/**
* @brief 게시판 기본 정보의 추가
**/
function procInsertConfig() {
// 기본 정보를 받음
$args = Context::gets('enable_join','redirect_url','agreement');
if($args->enable_join!='Y') $args->enable_join = 'N';
// module Controller 객체 생성하여 입력
$oModuleController = &getController('module');
$output = $oModuleController->insertModuleConfig('member',$args);
return $output;
}
}
?>

View file

@ -387,6 +387,20 @@
$this->setTemplateFile('index');
}
/**
* @brief 게시판에 필요한 기본 설정들
**/
function dispAdminModuleConfig() {
// 설정 정보를 받아옴 (module model 객체를 이용)
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('board');
Context::set('config',$config);
// 템플릿 파일 지정
$this->setTemplateFile('board_config');
}
/**
* @brief 선택된 게시판의 정보 출력
**/

View file

@ -53,6 +53,7 @@
<action name="procClearFile" type="controller" />
<action name="dispAdminContent" type="view" standalone="true" admin_index="true" />
<action name="dispAdminModuleConfig" type="view" standalone="true" />
<action name="dispAdminBoardInfo" type="view" standalone="true" />
<action name="dispAdminInsertBoard" type="view" standalone="true" />
<action name="dispAdminDeleteBoard" type="view" standalone="true" />
@ -68,5 +69,6 @@
<action name="procDeleteBoard" type="controller" standalone="true" />
<action name="procInsertCategory" type="controller" standalone="true" />
<action name="procUpdateCategory" type="controller" standalone="true" />
<action name="procInsertConfig" type="controller" standalone="true" />
</actions>
</module>

View file

@ -6,7 +6,8 @@
**/
// 버튼에 사용되는 언어
$lang->cmd_view_info = "모듈정보";
$lang->cmd_module_config = "게시판 공통 설정";
$lang->cmd_view_info = "게시판 정보";
$lang->cmd_manage_category = "분류관리";
$lang->cmd_manage_grant = "권한관리";
$lang->cmd_manage_skin = "스킨관리";

View file

@ -0,0 +1,34 @@
<!--#include("header.html")-->
<!--%import("filter/insert_config.xml")-->
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
<table border="1">
<tr>
<th rowspan="2">{$lang->enable_join}</th>
<td><input type="checkbox" name="enable_join" value="Y" <!--@if($config->enable_join=='Y')-->checked="true"<!--@end-->/></td>
</tr>
<tr>
<td>{$lang->about_enable_join}</td>
</tr>
<tr>
<th rowspan="2">{$lang->redirect_url}</th>
<td><input type="text" name="redirect_url" value="{$config->redirect_url}" /></td>
</tr>
<tr>
<td>{$lang->about_redirect_url}</td>
</tr>
<tr>
<th rowspan="2">{$lang->agreement}</th>
<td><textarea name="agreement">{$config->agreement}</textarea></td>
</tr>
<tr>
<td>{$lang->about_agreement}</td>
</tr>
<tr>
<td colspan="2">
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{@getUrl('act','')}'" />
<input type="submit" value="{$lang->cmd_registration}" accesskey="s" />
</td>
</tr>
</table>
</form>

View file

@ -0,0 +1,7 @@
<filter name="insert_config" module="board" act="procInsertConfig" confirm_msg_code="confirm_submit">
<form />
<response>
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -1,11 +1,14 @@
<!--%import("js/admin.js")-->
<div style="margin-bottom:20px;">
<span>[<a href="{getUrl('act','dispAdminContent','module_srl','')}">{$lang->cmd_list}</a>]</span>
<span <!--@if($act=='dispAdminContent')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispAdminContent','module_srl','')}">{$lang->cmd_list}</a>]</span>
<span <!--@if($act=='dispAdminModuleConfig')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispAdminModuleConfig','module_srl','')}">{$lang->cmd_module_config}</a>]</span>
<!--@if($module_srl)-->
<span <!--@if($act=='dispAdminBoardInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispAdminBoardInfo')}">{$lang->cmd_view_info}</a>]</span>
<span <!--@if($act=='dispAdminCategoryInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispAdminCategoryInfo')}">{$lang->cmd_manage_category}</a>]</span>
<span <!--@if($act=='dispAdminGrantInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispAdminGrantInfo')}">{$lang->cmd_manage_grant}</a>]</span>
<span <!--@if($act=='dispAdminSkinInfo')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispAdminSkinInfo')}">{$lang->cmd_manage_skin}</a>]</span>
<!--@end-->
</div>
<div style="margin-bottom:20px;font-weight:bold;">
{$lang->mid} : {$module_info->mid}

View file

@ -1,5 +1,7 @@
<!--%import("js/admin.js")-->
<!--#include("header.html")-->
<!-- 게시판 정보 -->
<div>
{number_format($total_count)},

View file

@ -1,7 +1,7 @@
<!--%import("js/admin.js")-->
<div style="margin-bottom:20px;">
<span>[<a href="{getUrl('act','dispMemberList','member_srl','')}">{$lang->cmd_member_list}</a>]</span>
<span <!--@if($act=='dispMemberList')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispMemberList','member_srl','')}">{$lang->cmd_member_list}</a>]</span>
<span <!--@if($act=='dispModuleConfig')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispModuleConfig')}">{$lang->cmd_module_config}</a>]</span>
<span <!--@if($act=='dispGroupList')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispGroupList')}">{$lang->cmd_member_group}</a>]</span>
<span <!--@if($act=='dispJoinFormList')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispJoinFormList')}">{$lang->cmd_manage_form}</a>]</span>