diff --git a/modules/board/board.controller.php b/modules/board/board.controller.php index 1b328b849..7990d5b44 100644 --- a/modules/board/board.controller.php +++ b/modules/board/board.controller.php @@ -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; + } } ?> diff --git a/modules/board/board.view.php b/modules/board/board.view.php index 7fbdc80e3..09812ab1f 100644 --- a/modules/board/board.view.php +++ b/modules/board/board.view.php @@ -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 선택된 게시판의 정보 출력 **/ diff --git a/modules/board/conf/module.xml b/modules/board/conf/module.xml index bb8620b47..cc153d5de 100644 --- a/modules/board/conf/module.xml +++ b/modules/board/conf/module.xml @@ -53,6 +53,7 @@ + @@ -68,5 +69,6 @@ + diff --git a/modules/board/lang/ko.lang.php b/modules/board/lang/ko.lang.php index a27162960..7eefaef61 100644 --- a/modules/board/lang/ko.lang.php +++ b/modules/board/lang/ko.lang.php @@ -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 = "스킨관리"; diff --git a/modules/board/tpl.admin/board_config.html b/modules/board/tpl.admin/board_config.html new file mode 100644 index 000000000..beeb5bac1 --- /dev/null +++ b/modules/board/tpl.admin/board_config.html @@ -0,0 +1,34 @@ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
{$lang->enable_join}enable_join=='Y')-->checked="true"/>
{$lang->about_enable_join}
{$lang->redirect_url}
{$lang->about_redirect_url}
{$lang->agreement}
{$lang->about_agreement}
+ + +
+
diff --git a/modules/board/tpl.admin/filter/insert_config.xml b/modules/board/tpl.admin/filter/insert_config.xml new file mode 100644 index 000000000..09f5b3cfd --- /dev/null +++ b/modules/board/tpl.admin/filter/insert_config.xml @@ -0,0 +1,7 @@ + +
+ + + + + diff --git a/modules/board/tpl.admin/header.html b/modules/board/tpl.admin/header.html index 10e2a60dd..0b01976c4 100644 --- a/modules/board/tpl.admin/header.html +++ b/modules/board/tpl.admin/header.html @@ -1,11 +1,14 @@
- [{$lang->cmd_list}] + style="font-weight:bold">[{$lang->cmd_list}] + style="font-weight:bold">[{$lang->cmd_module_config}] + style="font-weight:bold">[{$lang->cmd_view_info}] style="font-weight:bold">[{$lang->cmd_manage_category}] style="font-weight:bold">[{$lang->cmd_manage_grant}] style="font-weight:bold">[{$lang->cmd_manage_skin}] +
{$lang->mid} : {$module_info->mid} diff --git a/modules/board/tpl.admin/index.html b/modules/board/tpl.admin/index.html index 53a8aaa90..d73c055e4 100644 --- a/modules/board/tpl.admin/index.html +++ b/modules/board/tpl.admin/index.html @@ -1,5 +1,7 @@ + +
{number_format($total_count)}, diff --git a/modules/member/tpl.admin/header.html b/modules/member/tpl.admin/header.html index 2fca59a60..c88a11d35 100644 --- a/modules/member/tpl.admin/header.html +++ b/modules/member/tpl.admin/header.html @@ -1,7 +1,7 @@
- [{$lang->cmd_member_list}] + style="font-weight:bold">[{$lang->cmd_member_list}] style="font-weight:bold">[{$lang->cmd_module_config}] style="font-weight:bold">[{$lang->cmd_member_group}] style="font-weight:bold">[{$lang->cmd_manage_form}]