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@385 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4eb91bd1fa
commit
b313d5b5c4
4 changed files with 40 additions and 7 deletions
|
|
@ -4,5 +4,6 @@
|
|||
<actions>
|
||||
<action name="dispMessage" type="view" standalone="true" index="true"/>
|
||||
<action name="dispConfig" type="view" standalone="true" admin_index="true"/>
|
||||
<action name="procInsertConfig" type="controller" standalone="true" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
29
modules/message/message.controller.php
Normal file
29
modules/message/message.controller.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
/**
|
||||
* @class messageController
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief message module의 view class
|
||||
**/
|
||||
|
||||
class messageController extends message {
|
||||
|
||||
/**
|
||||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설정
|
||||
**/
|
||||
function procInsertConfig() {
|
||||
// 기본 정보를 받음
|
||||
$args->skin = Context::get('skin');
|
||||
|
||||
// module Controller 객체 생성하여 입력
|
||||
$oModuleController = &getController('module');
|
||||
$output = $oModuleController->insertModuleConfig('message',$args);
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -11,7 +11,14 @@
|
|||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('rss');
|
||||
if(!$config->skin) $config->skin = 'default';
|
||||
Context::set('skin',$config->skin);
|
||||
|
||||
// 템플릿 경로를 지정
|
||||
$template_path = sprintf('%sskins/%s', $this->module_path, $config->skin);
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
}
|
||||
|
||||
|
|
@ -27,12 +34,8 @@
|
|||
* @brief 설정
|
||||
**/
|
||||
function dispConfig() {
|
||||
// 설정 정보를 받아옴 (module model 객체를 이용)
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('rss');
|
||||
Context::set('skin',$config);
|
||||
|
||||
// 스킨 목록을 구해옴
|
||||
$oModuleModel = &getModel('module');
|
||||
$skin_list = $oModuleModel->getskins($this->module_path);
|
||||
Context::set('skin_list', $skin_list);
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
<th rowspan="2">{$lang->skin}</th>
|
||||
<td>
|
||||
<select name="skin">
|
||||
<!--@foreach($skin_list as $key => $val)-->
|
||||
<option value="{$key}" <!--@if($key==$config->skin)-->selected="true"<!--@end-->>{$val}</option>
|
||||
<!--@foreach($skin_list as $val)-->
|
||||
<option value="{$val}" <!--@if($val==$config->skin)-->selected="true"<!--@end-->>{$val}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue