git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2327 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-12 03:59:52 +00:00
commit 8326004cb2
2773 changed files with 91485 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<module version="0.1">
<title xml:lang="ko">오류 표시</title>
<title xml:lang="jp">エラー表示</title>
<title xml:lang="zh-CN">错误信息</title>
<title xml:lang="en">Display Errors</title>
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
<name xml:lang="ko">제로</name>
<name xml:lang="jp">Zero</name>
<name xml:lang="zh-CN">zero</name>
<name xml:lang="en">zero</name>
<description xml:lang="ko">오류 및 각종 시스템 메세지 관리 모듈</description>
<description xml:lang="jp">エラー及びシステムメッセージ管理モジュール</description>
<description xml:lang="zh-CN">管理错误信息及各种系统信息的模块。</description>
<description xml:lang="en">This module managers erros and system messages</description>
</author>
</module>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<module>
<grants />
<actions>
<action name="dispMessage" type="view" standalone="true" index="true"/>
<action name="dispMessageAdminConfig" type="view" standalone="true" admin_index="true"/>
<action name="procMessageAdminInsertConfig" type="controller" standalone="true" />
</actions>
</module>

View file

@ -0,0 +1,10 @@
<?php
/**
* @file modules/message/lang/en.lang.php
* @author zero <zero@nzeo.com>
* @brief English language pack (basic)
**/
$lang->message = 'Show error';
$lang->about_skin = "You can select skins of error messages";
?>

View file

@ -0,0 +1,10 @@
<?php
/**
* @file modules/message/lang/jp.lang.php
* @author zero <zero@nzeo.com> 翻訳RisaPapa
* @brief 日本語言語パッページ(基本的な内容のみ)
**/
$lang->message = 'エラー表示';
$lang->about_skin = "メッセージを表示する際のスキンが指定できます。";
?>

View file

@ -0,0 +1,10 @@
<?php
/**
* @file modules/message/lang/ko.lang.php
* @author zero <zero@nzeo.com>
* @brief 한국어 언어팩 (기본적인 내용만 수록)
**/
$lang->message = '오류 표시';
$lang->about_skin = "메세지 출력시 스킨을 지정하실 수 있습니다.";
?>

View file

@ -0,0 +1,10 @@
<?php
/**
* @file modules/message/lang/zh-CN.lang.php
* @author zero <zero@nzeo.com>
* @brief 简体中文语言包(只收录基本内容)
**/
$lang->message = '错误提示';
$lang->about_skin = "提示信息时,可以指定皮肤。";
?>

View file

@ -0,0 +1,29 @@
<?php
/**
* @class messageAdminController
* @author zero (zero@nzeo.com)
* @brief message module의 admin controller class
**/
class messageAdminController extends message {
/**
* @brief 초기화
**/
function init() {
}
/**
* @brief 설정
**/
function procMessageAdminInsertConfig() {
// 기본 정보를 받음
$args->skin = Context::get('skin');
// module Controller 객체 생성하여 입력
$oModuleController = &getController('module');
$output = $oModuleController->insertModuleConfig('message',$args);
return $output;
}
}
?>

View file

@ -0,0 +1,31 @@
<?php
/**
* @class messageAdminView
* @author zero (zero@nzeo.com)
* @brief message모듈의 admin view class
**/
class messageAdminView extends message {
/**
* @brief 초기화
**/
function init() {
}
/**
* @brief 설정
**/
function dispMessageAdminConfig() {
// 스킨 목록을 구해옴
$oModuleModel = &getModel('module');
$skin_list = $oModuleModel->getskins($this->module_path);
Context::set('skin_list', $skin_list);
// 템플릿 파일 지정
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('config');
}
}
?>

View file

@ -0,0 +1,37 @@
<?php
/**
* @class message
* @author zero (zero@nzeo.com)
* @brief message모듈의 high class
**/
class message extends ModuleObject {
/**
* @brief 설치시 추가 작업이 필요할시 구현
**/
function moduleInstall() {
// action forward에 등록 (관리자 모드에서 사용하기 위함)
$oModuleController = &getController('module');
$oModuleController->insertActionForward('message', 'view', 'dispMessage');
$oModuleController->insertActionForward('message', 'view', 'dispMessageAdminConfig');
return new Object();
}
/**
* @brief 설치가 이상이 없는지 체크하는 method
**/
function checkUpdate() {
return false;
}
/**
* @brief 업데이트 실행
**/
function moduleUpdate() {
return new Object();
}
}
?>

View file

@ -0,0 +1,35 @@
<?php
/**
* @class messageView
* @author zero (zero@nzeo.com)
* @brief message모듈의 view class
**/
class messageView extends message {
/**
* @brief 초기화
**/
function init() {
}
/**
* @brief 메세지 출력
**/
function dispMessage() {
// 설정 정보를 받아옴 (module model 객체를 이용)
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('rss');
if(!$config->skin) $config->skin = 'default';
// 템플릿 경로를 지정
$template_path = sprintf('%sskins/%s', $this->module_path, $config->skin);
Context::set('system_message', $this->getMessage());
$this->setTemplatePath($template_path);
$this->setTemplateFile('system_message');
}
}
?>

View file

@ -0,0 +1,16 @@
@charset "utf-8";
.system_message {
color:#666666;
text-align:center;
padding:1em 0 1em 0;
}
.system_button {
margin-top:1em;
}
.system_message a {
margin-top:1em;
}

View file

@ -0,0 +1,12 @@
<!--%import("css/message.css")-->
<div class="system_message">
{$system_message}
<div class="system_button">
<a href="#" onclick="history.back(); return false;" class="button"><span>{$lang->cmd_back}</span></a>
<!--@if(!$is_logged)-->
| <a href="{getUrl('','act','dispMemberLoginForm')}" class="button"><span>{$lang->cmd_login}</span></a>
<!--@end-->
</div>
</div>

View file

@ -0,0 +1,24 @@
<!--%import("filter/insert_config.xml")-->
<h3>{$lang->message} <span class="gray">{$lang->cmd_management}</span></h3>
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
<table cellspacing="0" class="tableType2 gap1">
<tr>
<th scope="col">{$lang->skin}</th>
<td>
<select name="skin">
<!--@foreach($skin_list as $key => $val)-->
<option value="{$key}" <!--@if($key==$config->skin)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
</select>
<p>{$lang->about_skin}</p>
</td>
</tr>
</table>
<!-- 버튼 -->
<div class="tRight gap1">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
</div>
</form>

View file

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