mobile temp

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7673 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2010-09-06 02:36:25 +00:00
parent ceffd850b5
commit 97ca6dfe15
23 changed files with 452 additions and 248 deletions

View file

@ -20,14 +20,14 @@
<date>2007-02-28</date>
<category>system</category>
<author email_address="zero@zeroboard.com" link="http://blog.nzeo.com">
<name xml:lang="ko">zero</name>
<name xml:lang="vi">zero</name>
<name xml:lang="jp">zero</name>
<name xml:lang="zh-CN">zero</name>
<name xml:lang="en">zero</name>
<name xml:lang="es">zero</name>
<name xml:lang="ru">zero</name>
<name xml:lang="zh-TW">zero</name>
<author email_address="developers@xpressengine.com" link="http://xpressengine.com/">
<name xml:lang="ko">NHN</name>
<name xml:lang="vi">NHN</name>
<name xml:lang="jp">NHN</name>
<name xml:lang="zh-CN">NHN</name>
<name xml:lang="en">NHN</name>
<name xml:lang="es">NHN</name>
<name xml:lang="ru">NHN</name>
<name xml:lang="zh-TW">NHN</name>
</author>
</module>

View file

@ -1,7 +1,7 @@
<?php
/**
* @file modules/message/lang/en.lang.php
* @author zero <zero@nzeo.com>
* @author NHN (developers@xpressengine.com)
* @brief English language pack (basic)
**/

View file

@ -1,7 +1,7 @@
<?php
/**
* @archivo modules/message/lang/es.lang.php
* @autor zero <zero@nzeo.com>
* @autor zero (developers@xpressengine.com)
* @sumario Paquete del idioma español (básico)
**/

View file

@ -1,7 +1,7 @@
<?php
/**
* @file modules/message/lang/fr.lang.php
* @author zero <zero@nzeo.com> traduit par Pierre Duvent <PierreDuvent@gamil.com>
* @author NHN (developers@xpressengine.com) traduit par Pierre Duvent <PierreDuvent@gamil.com>
* @brief Paque du langage en français pour le module de Message
**/

View file

@ -1,7 +1,7 @@
<?php
/**
* @file modules/message/lang/jp.lang.php
* @author zero <zero@nzeo.com> 翻訳RisaPapa
* @author NHN (developers@xpressengine.com) 翻訳RisaPapa
* @brief 日本語言語パッページ(基本的な内容のみ)
**/

View file

@ -1,7 +1,7 @@
<?php
/**
* @file modules/message/lang/ko.lang.php
* @author zero <zero@nzeo.com>
* @author NHN (developers@xpressengine.com)
* @brief 한국어 언어팩 (기본적인 내용만 수록)
**/

View file

@ -1,7 +1,7 @@
<?php
/**
* @file ru.lang.php
* @author zero <zero@nzeo.com> | translation by Maslennikov Evgeny aka X-[Vr]bL1s5 | e-mail: x-bliss[a]tut.by; ICQ: 225035467;
* @author NHN (developers@xpressengine.com) | translation by Maslennikov Evgeny aka X-[Vr]bL1s5 | e-mail: x-bliss[a]tut.by; ICQ: 225035467;
* @brief Russian basic language pack
**/

View file

@ -1,7 +1,7 @@
<?php
/* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░ * @File : common/lang/vi.lang.php ░░
░░ * @Author : zero (zero@nzeo.com) ░░
░░ * @Author : zero (developers@xpressengine.com) ░░
░░ * @Trans : Đào Đức Duy (ducduy.dao.vn@vietxe.net) ░░
░░ * @Website: http://vietxe.net ░░
░░ * @Brief : Vietnamese Language Pack (Only basic words are included here) ░░

View file

@ -1,7 +1,7 @@
<?php
/**
* @file modules/message/lang/zh-CN.lang.php
* @author zero <zero@nzeo.com> 翻译guny
* @author NHN (developers@xpressengine.com) 翻译guny
* @brief 错误信息模块简体中文语言包
**/

View file

@ -1,7 +1,7 @@
<?php
/**
* @file modules/message/lang/zh-TW.lang.php
* @author zero <zero@nzeo.com> 翻譯royallin
* @author NHN (developers@xpressengine.com) 翻譯royallin
* @brief 訊息(message)模組正體中文語言
**/

View file

@ -0,0 +1,8 @@
<filter name="message_login" module="member" act="procMemberLogin">
<form>
<node target="user_id" required="true" filter="user_id" />
<node target="password" required="true" />
</form>
<parameter />
<response />
</filter>

View file

@ -0,0 +1,7 @@
<filter name="widget_logout" module="member" act="procMemberLogout">
<form />
<response>
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -0,0 +1,10 @@
<filter name="openid_login" module="member" act="procMemberOpenIDLogin">
<form>
<node target="openid" required="true" />
</form>
<parameter />
<response callback_func="completeMessageOpenIDLogin">
<tag name="error" />
<tag name="message" />
</response>
</filter>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

View file

@ -0,0 +1,39 @@
@charset "utf-8";
/* NHN | dece24@nhncorp.com */
#loginAccess{ position:relative; width:384px; border:2px solid #757575; margin:30px auto; padding:20px 0 0 0; background:#fff; font-size:12px; font-family:Tahoma; line-height:normal;}
#loginAccess form{ margin:0; padding:0;}
#loginAccess fieldset{ border:0; margin:0; padding:0;}
#loginAccess h1{ margin:0 28px 20px 28px; font-size:12px; color:#e77161;}
#loginAccess ul{ margin:0; padding:0; list-style:none;}
#loginAccess .mLogin{ display:none;}
#loginAccess .idpw{ margin:0 28px 20px 28px;}
#loginAccess .oid{ margin:0 28px 20px 28px;}
#loginAccess .idpw li{ margin:0 0 5px 0;}
#loginAccess .inputText{ font-size:12px; height:22px; color:#767676; font-weight:bold; border:1px solid #b7b7b7; border-right-color:#e1e1e1; border-bottom-color:#e1e1e1;}
#loginAccess .idpw .inputText{ width:316px; padding:8px 0 0 10px;}
#loginAccess .oid .inputText{ width:291px; padding:8px 0 0 35px; background:url(./images/openid_login_bg.gif) no-repeat 10px center;}
#loginAccess .inputCheck{ width:13px; height:13px; margin:0; padding:0; vertical-align:middle;}
#loginAccess label{ vertical-align:middle;}
#loginAccess #warning{ display:none; margin:0 0 20px 0;}
#loginAccess #warning.open{ display:block;}
#loginAccess #warning p{ margin:0;}
#loginAccess .buttonArea{ position:relative; margin:0 28px; padding:0; color:#767676; *zoom:1;}
#loginAccess .buttonArea .keeping{ position:relative; margin:0 0 20px 0; height:32px; line-height:32px;}
#loginAccess #gLogin .buttonArea .buttonAccount{ position:absolute; top:0; right:0;}
#loginAccess #oLogin .buttonArea{ text-align:center; margin-bottom:20px;}
#loginAccess .buttonAccount,
#loginAccess .buttonAccount a,
#loginAccess .buttonAccount input{ position:relative; display:inline-block; margin:0; padding:0; overflow:visible; height:32px; line-height:32px; font-size:12px; font-weight:bold; color:#fff; vertical-align:middle; cursor:pointer; border:0; text-decoration:none !important; background:transparent url(./images/buttonAction.gif) no-repeat;}
#loginAccess .buttonAccount{ margin:0 4px 0 0; background-position:left top;}
#loginAccess .buttonAccount a,
#loginAccess .buttonAccount input{ left:4px; background-position:right top; *vertical-align:top; padding:0 24px 0 36px;}
#loginAccess .help{ position:relative; padding:15px 0; background:#fafafa; border-top:1px solid #d9d9d9; text-align:center;}
#loginAccess .help li{ display:inline; border-left:1px solid #c3c3c3; padding:0 0 0 10px; margin:0 6px 0 0; line-height:1;}
#loginAccess .help li.first{ border:0; padding:0;}
#loginAccess .help a{ text-decoration:none; color:#333;}
#loginAccess .help a:hover,
#loginAccess .help a:active,
#loginAccess .help a:focus{ text-decoration:underline;}
#loginAccess .logOut{ text-align:left; margin:0 28px; padding:0 0 20px 0;}
.gLogin #gLogin,
.oLogin #oLogin{ display:block;}

View file

@ -0,0 +1,38 @@
/* 로그인 후 */
function completeMessageLogin(ret_obj, response_tags, params, fo_obj) {
var url = current_url.setQuery('act','');
location.href = url;
}
/* 오픈아이디 로그인 후 */
function completeMessageOpenIDLogin(ret_obj, response_tags) {
var redirect_url = ret_obj['redirect_url'];
location.href = redirect_url;
}
function doLogin(o,filter){
jQuery('input.inputText',o).each(function(){
var t = jQuery(this);
if(t.attr('title').length>0 && t.attr('title') == t.val()) t.val('');
});
procFilter(o,filter);
initLoginTitleMsg();
return false;
}
function initLoginTitleMsg(){
jQuery('.gLogin, .mLogin').find('input.inputText').focus(function(){
var t = jQuery(this);
if(t.attr('title').length>0 && t.attr('title')==t.val()) t.val('');
}).blur(function(){
var t = jQuery(this);
if(t.attr('title').length>0 && t.val()=='') t.val(t.attr('title'));
}).focus().blur();
}
jQuery(function(){
initLoginTitleMsg();
});

View file

@ -0,0 +1,59 @@
<!--%import("message.css")-->
mobile
<div id="loginAccess" class="gLogin">
<h1>{$system_message}</h1>
<!--@if(!$is_logged)-->
<!--%import("./filter/login.xml")-->
<!--%import("./filter/openid_login.xml")-->
<!--%import("./message.js")-->
<div class="mLogin" id="gLogin">
<form action="./" method="post" onsubmit="return doLogin(this, message_login)" id="gForm">
<fieldset>
<ul class="idpw">
<li><input type="text" name="user_id" id="uid" value="" class="inputText" title="{$lang->user_id}" /></li>
<li><input type="password" name="password" id="upw" value="" class="inputText" title="{$lang->password}" /></li>
</ul>
<div class="buttonArea">
<p class="keeping">
<input type="checkbox" name="keep_signed" id="keepid" class="inputCheck" value="Y" onclick="jQuery('#warning')[(jQuery('#keepid:checked').size()>0?'addClass':'removeClass')]('open');" />
<label for="keepid">{$lang->keep_signed}</label>
</p>
<div id="warning" class="">
<p>{$lang->about_keep_warning}</p>
</div>
<span class="buttonAccount"><input type="submit" value="{$lang->cmd_login}" /></span>
</div>
</fieldset>
</form>
<ul class="help">
<li class="first"><a href="{getUrl('','act','dispMemberFindAccount')}"><span>{$lang->cmd_find_member_account}</span></a></li>
<li><a href="{getUrl('','act','dispMemberSignUpForm')}"><span>{$lang->cmd_signup}</span></a></li>
<!--@if($member_config->enable_openid=='Y')-->
<li><a href="#oLogin" onclick="jQuery('#loginAccess').removeClass('gLogin'); jQuery('#loginAccess').addClass('oLogin'); return false;">Open ID</a></li>
<!--@end-->
</ul>
</div>
<!-- OpenID -->
<!--@if($member_config->enable_openid=='Y')-->
<div class="mLogin" id="oLogin">
<form action="{getUrl('module','member','act','procMemberOpenIDLogin')}" method="post" onsubmit="return doLogin(this, openid_login)" id="oForm">
<fieldset>
<div class="oid">
<input type="text" name="openid" class="inputText" title="Open ID" value="" />
</div>
<div class="buttonArea">
<span class="buttonAccount"><input type="submit" value="{$lang->cmd_login}" /></span>
</div>
</fieldset>
</form>
<div class="help"><a href="#gLogin" onclick="jQuery('#loginAccess').removeClass('oLogin'); jQuery('#loginAccess').addClass('gLogin'); return false;">{$lang->cmd_common_id}</a></div>
</div>
<!--@end-->
<!--@end-->
<!--@if($is_logged)-->
<div class="logOut">
<span class="buttonAccount"><a href="{getUrl('act','dispMemberLogout','module','')}">{$lang->cmd_logout}</a></span>
</div>
<!--@end-->
</div>

View file

@ -1,7 +1,7 @@
<?php
/**
* @class messageAdminController
* @author zero (zero@nzeo.com)
* @author NHN (developers@xpressengine.com)
* @brief message module의 admin controller class
**/

View file

@ -1,7 +1,7 @@
<?php
/**
* @class messageAdminView
* @author zero (zero@nzeo.com)
* @author NHN (developers@xpressengine.com)
* @brief message모듈의 admin view class
**/

View file

@ -1,7 +1,7 @@
<?php
/**
* @class message
* @author zero (zero@nzeo.com)
* @author NHN (developers@xpressengine.com)
* @brief message모듈의 high class
**/

View file

@ -0,0 +1,43 @@
<?php
require_once(_XE_PATH_.'modules/message/message.view.php');
class messageMobile extends messageView {
/**
* @brief 초기화
**/
function init() {
}
/**
* @brief 메세지 출력
**/
function dispMessage() {
// 설정 정보를 받아옴 (module model 객체를 이용)
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('message');
if(!$config->skin) $config->skin = 'default';
// 템플릿 경로를 지정
$template_path = sprintf('%sm.skins/%s', $this->module_path, $config->skin);
// 회원 관리 정보를 받음
$oModuleModel = &getModel('module');
$member_config = $oModuleModel->getModuleConfig('member');
Context::set('member_config', $member_config);
// ssl 사용시 현재 https접속상태인지에 대한 flag및 https url 생성
$ssl_mode = false;
if($member_config->enable_ssl == 'Y') {
if(preg_match('/^https:\/\//i',Context::getRequestUri())) $ssl_mode = true;
}
Context::set('ssl_mode',$ssl_mode);
Context::set('system_message', nl2br($this->getMessage()));
$this->setTemplatePath($template_path);
$this->setTemplateFile('system_message');
}
}
?>

View file

@ -1,7 +1,7 @@
<?php
/**
* @class messageView
* @author zero (zero@nzeo.com)
* @author NHN (developers@xpressengine.com)
* @brief message모듈의 view class
**/