mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 08:09:58 +09:00
자동 로그인 기능 추가. 로그인/로그아웃 후 이동할 url 지정 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3698 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d0cf6957a5
commit
94ff9c8920
27 changed files with 271 additions and 86 deletions
|
|
@ -1,13 +1,8 @@
|
|||
/* 로그인 영역에 포커스 */
|
||||
function doFocusUserId(fo_id) {
|
||||
if(xScrollTop()) return;
|
||||
var fo_obj = xGetElementById(fo_id);
|
||||
if(xGetCookie('user_id')) {
|
||||
fo_obj.user_id.value = xGetCookie('user_id');
|
||||
fo_obj.remember_user_id.checked = true;
|
||||
try{
|
||||
fo_obj.password.focus();
|
||||
} catch(e) {};
|
||||
} else {
|
||||
if(fo_obj.user_id) {
|
||||
try{
|
||||
fo_obj.user_id.focus();
|
||||
} catch(e) {};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,11 @@
|
|||
<!--%import("./filter/openid_login.xml")-->
|
||||
<!--%import("./js/login.js")-->
|
||||
|
||||
<script type="text/javascript">
|
||||
var keep_signed_msg = "{$lang->about_keep_signed}";
|
||||
xAddEventListener(window, "load", function(){ doFocusUserId("fo_login_widget"); });
|
||||
</script>
|
||||
|
||||
<div class="box_login fc_01" id="box_login">
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, widget_login)" id="fo_login_widget">
|
||||
<div class="form_field">
|
||||
|
|
@ -20,8 +25,8 @@
|
|||
|
||||
<div><input type="submit" value=" " class="submit" /></div>
|
||||
<ul class="option">
|
||||
<li><input type="checkbox" name="remember_user_id" id="chk_remember_user_id" value="Y" class="checkbox" /></li>
|
||||
<li><label for="chk_remember_user_id">{$lang->remember_user_id}</label></li>
|
||||
<li><input type="checkbox" name="keep_signed" id="keepid" value="Y" onclick="return confirm(keep_signed_msg);"/></li>
|
||||
<li><label for="keepid">{$lang->keep_signed}</label></li>
|
||||
</ul>
|
||||
<ul class="extra_option">
|
||||
<li><a href="{getUrl('act','dispMemberSignUpForm')}" class="fc_02 btn">{$lang->cmd_signup}</a></li>
|
||||
|
|
@ -29,10 +34,6 @@
|
|||
</ul>
|
||||
</form>
|
||||
<div class="clear"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
xAddEventListener(window, "load", function(){ doFocusUserId("fo_login_widget"); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<!-- OpenID -->
|
||||
|
|
|
|||
|
|
@ -1,17 +1,12 @@
|
|||
/* 로그인 영역에 포커스 */
|
||||
function doFocusUserId(fo_id) {
|
||||
if(xScrollTop()) return;
|
||||
var fo_obj = xGetElementById(fo_id);
|
||||
if(xGetCookie('user_id')) {
|
||||
fo_obj.user_id.value = xGetCookie('user_id');
|
||||
fo_obj.remember_user_id.checked = true;
|
||||
if(fo_obj.user_id) {
|
||||
try{
|
||||
fo_obj.user_id.focus();
|
||||
} catch(e) {};
|
||||
}
|
||||
|
||||
try {
|
||||
if(xScrollTop()) return;
|
||||
|
||||
if(fo_obj.user_id.value) fo_obj.password.focus();
|
||||
else fo_obj.user_id.focus();
|
||||
} catch(e) { }
|
||||
}
|
||||
|
||||
/* 로그인 후 */
|
||||
|
|
|
|||
|
|
@ -11,6 +11,11 @@
|
|||
<!--%import("./filter/openid_login.xml")-->
|
||||
<!--%import("./js/login.js")-->
|
||||
|
||||
<script type="text/javascript">
|
||||
var keep_signed_msg = "{$lang->about_keep_signed}";
|
||||
xAddEventListener(window, "load", function(){ doFocusUserId("fo_login_widget"); });
|
||||
</script>
|
||||
|
||||
<fieldset id="login" class="login_{$colorset}">
|
||||
<legend>{$lang->cmd_login}</legend>
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, widget_login)" id="fo_login_widget">
|
||||
|
|
@ -23,8 +28,9 @@
|
|||
<input type="image" src="./images/{$colorset}/buttonLogin.gif" alt="login" class="login" />
|
||||
</div>
|
||||
<p class="save">
|
||||
<input name="remember_user_id" id="chk_remember_user_id" type="checkbox" value="Y" />
|
||||
<label for="chk_remember_user_id">{$lang->remember_user_id}</label>
|
||||
<input type="checkbox" name="keep_signed" id="keepid" value="Y" onclick="return confirm(keep_signed_msg);"/>
|
||||
<label for="keepid">{$lang->keep_signed}</label>
|
||||
|
||||
|
||||
<!--@if($member_config->enable_openid=='Y')-->
|
||||
<input name="use_open_id" id="use_open_id" type="checkbox" value="Y" onclick="toggleLoginForm(this); return false;"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue