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@1032 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8ed36ce916
commit
4036d9b704
12 changed files with 255 additions and 0 deletions
9
plugins/poll/conf/info.xml
Normal file
9
plugins/poll/conf/info.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<plugin version="0.1">
|
||||||
|
<title xml:lang="ko">로그인 정보 출력</title>
|
||||||
|
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||||
|
<name xml:lang="ko">제로</name>
|
||||||
|
<description xml:lang="ko">로그인 폼이나 로그인 정보를 출력합니다</description>
|
||||||
|
</author>
|
||||||
|
<extra_vars />
|
||||||
|
</plugin>
|
||||||
36
plugins/poll/login_info.class.php
Normal file
36
plugins/poll/login_info.class.php
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @class
|
||||||
|
* @author zero (zero@nzeo.com)
|
||||||
|
* @version 0.1
|
||||||
|
* @brief 로그인 폼을 출력하는 플러그인
|
||||||
|
*
|
||||||
|
* $logged_info를 이용하며 이는 미리 설정되어 있음
|
||||||
|
**/
|
||||||
|
|
||||||
|
class login_info extends PluginHandler {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 플러그인의 실행 부분
|
||||||
|
* ./plugins/플러그인/conf/info.xml에 선언한 extra_vars를 args로 받는다
|
||||||
|
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||||
|
**/
|
||||||
|
function proc($args) {
|
||||||
|
// 변수 설정
|
||||||
|
Context::set('style', $args->style);
|
||||||
|
|
||||||
|
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
|
||||||
|
$tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin);
|
||||||
|
Context::set('colorset', $args->colorset);
|
||||||
|
|
||||||
|
// 템플릿 파일을 지정
|
||||||
|
$tpl_file = 'login_info';
|
||||||
|
|
||||||
|
// 템플릿 컴파일
|
||||||
|
$oTemplate = new TemplateHandler();
|
||||||
|
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
14
plugins/poll/skins/default/filter/login.xml
Normal file
14
plugins/poll/skins/default/filter/login.xml
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<filter name="plugin_login" module="member" act="procMemberLogin">
|
||||||
|
<form>
|
||||||
|
<node target="user_id" required="true" filter="user_id"/>
|
||||||
|
<node target="password" required="true" />
|
||||||
|
</form>
|
||||||
|
<parameter>
|
||||||
|
<param name="user_id" target="user_id" />
|
||||||
|
<param name="password" target="password" />
|
||||||
|
</parameter>
|
||||||
|
<response>
|
||||||
|
<tag name="error" />
|
||||||
|
<tag name="message" />
|
||||||
|
</response>
|
||||||
|
</filter>
|
||||||
7
plugins/poll/skins/default/filter/logout.xml
Normal file
7
plugins/poll/skins/default/filter/logout.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<filter name="plugin_logout" module="member" act="procMemberLogout">
|
||||||
|
<form />
|
||||||
|
<response>
|
||||||
|
<tag name="error" />
|
||||||
|
<tag name="message" />
|
||||||
|
</response>
|
||||||
|
</filter>
|
||||||
BIN
plugins/poll/skins/default/images/icon_key.gif
Normal file
BIN
plugins/poll/skins/default/images/icon_key.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 505 B |
BIN
plugins/poll/skins/default/images/icon_note.gif
Normal file
BIN
plugins/poll/skins/default/images/icon_note.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 534 B |
BIN
plugins/poll/skins/default/images/icon_profile.gif
Normal file
BIN
plugins/poll/skins/default/images/icon_profile.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 535 B |
67
plugins/poll/skins/default/login_info.html
Normal file
67
plugins/poll/skins/default/login_info.html
Normal file
|
|
@ -0,0 +1,67 @@
|
||||||
|
<!-- colorset의 값에 따라 css 파일을 import 한다 -->
|
||||||
|
<!--@if($colorset=="normal"||!$colorset)-->
|
||||||
|
<!--%import("normal/style.css")-->
|
||||||
|
<!--@end-->
|
||||||
|
|
||||||
|
<!-- 로그인 사용자일 경우 로그인 정보를 출력 -->
|
||||||
|
<!--@if($logged_info)-->
|
||||||
|
|
||||||
|
<!--%import("./filter/logout.xml")-->
|
||||||
|
<div class="login_info_default_{$colorset}">
|
||||||
|
|
||||||
|
<!-- 닉네임 + 로그아웃 -->
|
||||||
|
<div class="top_box">
|
||||||
|
<div class="logout">
|
||||||
|
<a href="#" onclick="location.href='{getUrl('act','dispMemberLogout')}';return false;">{$lang->cmd_logout}</a>
|
||||||
|
</div>
|
||||||
|
<div class="nick_name">
|
||||||
|
<div class="member_{$logged_info->member_srl}">{$logged_info->nick_name}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="info_box">
|
||||||
|
<!-- 정보 수정 링크 -->
|
||||||
|
<div class="modify_info">
|
||||||
|
<a href="#" onclick="location.href='{getUrl('act','dispMemberInfo')}';return false;">{$lang->cmd_view_member_info}</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 최종 록그인 시간 -->
|
||||||
|
<div class="last_login">
|
||||||
|
{$lang->last_login} : {zDate($logged_info->last_login, "Y-m-d H:i")}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 관리자일 경우 관리자 링크 -->
|
||||||
|
<!--@if($logged_info->is_admin=="Y")-->
|
||||||
|
<div class="link_admin">
|
||||||
|
<a href="./?module=admin">{$lang->cmd_management}</a>
|
||||||
|
</div>
|
||||||
|
<!--@end-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- 비로그인 사용자일 경우 로그인 폼을 출력 -->
|
||||||
|
<!--@else-->
|
||||||
|
<!--%import("./filter/login.xml")-->
|
||||||
|
|
||||||
|
<div class="login_info_default_{$colorset}">
|
||||||
|
<form action="./" method="get" onsubmit="return procFilter(this, plugin_login)">
|
||||||
|
<div class="login_box">
|
||||||
|
<div class="header">{$lang->user_id}</div>
|
||||||
|
<div class="body"><input type="text" name="user_id" id="login_form_user_id" /></div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="header">{$lang->password}</div>
|
||||||
|
<div class="body"><input type="password" name="password" /></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="button_area">
|
||||||
|
<input type="submit" value="{$lang->cmd_login}" />
|
||||||
|
<a href="#" onclick="location.href='{getUrl('act','dispMemberSignUpForm')}';return false;">{$lang->cmd_signup}</a>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
xAddEventListener(window, "load", function(){ xGetElementById("login_form_user_id").focus(); });
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
<!--@end-->
|
||||||
BIN
plugins/poll/skins/default/normal/document_bullet.gif
Normal file
BIN
plugins/poll/skins/default/normal/document_bullet.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 282 B |
109
plugins/poll/skins/default/normal/style.css
Normal file
109
plugins/poll/skins/default/normal/style.css
Normal file
|
|
@ -0,0 +1,109 @@
|
||||||
|
.login_info_default_normal {
|
||||||
|
border:3px solid #DDDDDD;
|
||||||
|
padding:6px;
|
||||||
|
width:190px;
|
||||||
|
margin-bottom:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .top_box {
|
||||||
|
height:22px;
|
||||||
|
border-bottom:2px dotted #DDDDDD;
|
||||||
|
overflow:hidden;
|
||||||
|
margin-bottom:5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .top_box .nick_name {
|
||||||
|
font-weight:bold;
|
||||||
|
float:left;
|
||||||
|
color:#555555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .top_box .logout {
|
||||||
|
float:right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .top_box .logout A {
|
||||||
|
font-weight:bold;
|
||||||
|
text-decoration:none;
|
||||||
|
color:#555555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .top_box .logout A:hover {
|
||||||
|
font-weight:bold;
|
||||||
|
text-decoration:underline;
|
||||||
|
color:#555555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .info_box {
|
||||||
|
clear:both;
|
||||||
|
color:#555555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .info_box A {
|
||||||
|
text-decoration:none;
|
||||||
|
color:#555555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .info_box .modify_info {
|
||||||
|
background:url("../images/icon_profile.gif") no-repeat left;
|
||||||
|
padding-left:15px;
|
||||||
|
margin-bottom:4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .info_box .last_login {
|
||||||
|
padding-left:15px;
|
||||||
|
margin-bottom:4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .info_box .link_admin {
|
||||||
|
background:url("../images/icon_key.gif") no-repeat left;
|
||||||
|
padding-left:15px;
|
||||||
|
margin-bottom:4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .info_box .link_admin A {
|
||||||
|
color:#cd0000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .login_box {
|
||||||
|
height:40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .header {
|
||||||
|
float:left;
|
||||||
|
clear:left;
|
||||||
|
width:80px;
|
||||||
|
margin-bottom:5px;
|
||||||
|
font-weight:bold;
|
||||||
|
color:#555555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .body {
|
||||||
|
float:left;
|
||||||
|
width:100px;
|
||||||
|
margin-bottom:5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .body input {
|
||||||
|
width:90px;
|
||||||
|
height:13px;
|
||||||
|
border:1px solid #AAAAAA;
|
||||||
|
color:#555555;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .button_area {
|
||||||
|
clear:both;
|
||||||
|
height:20px;
|
||||||
|
margin-top:5px;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login_info_default_normal .button_area input {
|
||||||
|
width:90px;
|
||||||
|
height:18px;
|
||||||
|
border:1px solid #AAAAAA;
|
||||||
|
background-color:#555555;
|
||||||
|
color:#FFFFFF;
|
||||||
|
font-weight:bold;
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
BIN
plugins/poll/skins/default/normal/title_bullet.gif
Normal file
BIN
plugins/poll/skins/default/normal/title_bullet.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 589 B |
13
plugins/poll/skins/default/skin.xml
Normal file
13
plugins/poll/skins/default/skin.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<skin>
|
||||||
|
<title xml:lang="ko">로그인 정보 출력 기본 스킨 </title>
|
||||||
|
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||||
|
<name xml:lang="ko">제로</name>
|
||||||
|
<description xml:lang="ko">newest_document의 기본 스킨</description>
|
||||||
|
</maker>
|
||||||
|
<colorset>
|
||||||
|
<color name="normal">
|
||||||
|
<title xml:lang="ko">기본</title>
|
||||||
|
</color>
|
||||||
|
</colorset>
|
||||||
|
<skin>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue