无限星辰工作室-客户无限互联网动力之源
标题:
Discuz! 外部登录代码分享
[打印本页]
作者:
crx349
时间:
2014-4-15 10:06
标题:
Discuz! 外部登录代码分享
看到论坛有很多需要的,发出来,可以自己加个css美化一下。
适用版本:Discuz!x2-x3.1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<A >http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</A>">
<html xmlns="<A >http://www.w3.org/1999/xhtml</A>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无限星辰工作室外部登录</title>
</head>
<body>
<table cellpadding="0" cellspacing="0" class="fwin"><tbody><tr><td class="t_l"></td><td class="t_c" style="cursor:move" onmousedown="dragMenu($$('fwin_login'), event, 1)" ondblclick="hideWindow('login')"></td><td class="t_r"></td></tr><tr><td class="m_l" style="cursor:move" onmousedown="dragMenu($$('fwin_login'), event, 1)" ondblclick="hideWindow('login')" )"=""> </td><td class="m_c" id="fwin_content_login" style="" fwin="login">
<div id="main_messaqge_Lrp14" fwin="login">
<div id="layer_login_Lrp14" fwin="login">
<h3 class="flb" id="fctrl_login" style="cursor: move; ">
<em id="returnmessage_Lrp14" fwin="login">
用户登录</em>
<span><a href="javascript:;" class="flbc" onclick="hideWindow('login', 0, 1);" title="关闭">关闭</a></span>
</h3>
<form method="post" autocomplete="off" name="login" id="loginform_Lrp14" class="cl" onsubmit="pwdclear = 1;ajaxpost('loginform_Lrp14', 'returnmessage_Lrp14', 'returnmessage_Lrp14', 'onerror');return false;" action="<STRONG><FONT color=red>您的论坛网址</FONT></STRONG>/member.php?mod=logging&action=login&loginsubmit=yes&handlekey=login&loginhash=Lrp14" fwin="login">
<div class="c cl">
<input type="hidden" name="formhash" value="0c7d2ed7">
<input type="hidden" name="referer" value="<STRONG><FONT color=red>您的论坛网址</FONT></STRONG>/forum.php">
<div class="rfm">
<table>
<tbody><tr>
<th>
<span class="login_slct">
<select name="loginfield" style="float: left; display: none; " width="45" id="loginfield_Lrp14" fwin="login" selecti="0">
<option value="username"></option></select><a href="javascript:;" id="loginfield_Lrp14_ctrl" style="width:45px" tabindex="1">用户名</a>
</span>
</th>
<td><input type="text" name="username" id="username_Lrp14" autocomplete="off" size="30" class="px p_fre" tabindex="1" value="" fwin="login"></td>
<td class="tipcol"><a href="member.php?mod=register">立即注册</a></td>
</tr>
</tbody></table>
</div>
<div class="rfm">
<table>
<tbody><tr>
<th><label for="password3_Lrp14">密码:</label></th>
<td><input type="password" id="password3_Lrp14" name="password" onfocus="clearpwd()" size="30" class="px p_fre" tabindex="1" fwin="login"></td>
<td class="tipcol"><a href="javascript:;" onclick="display('layer_login_Lrp14');display('layer_lostpw_Lrp14');" title="找回密码">找回密码</a></td>
</tr>
</tbody></table>
</div>
<div class="rfm">
<table>
<tbody><tr>
<th>安全提问:</th>
<td><select id="loginquestionid_Lrp14" width="213" name="questionid" onchange="if($$('loginquestionid_Lrp14').value > 0) {$$('loginanswer_row_Lrp14').style.display='';} else {$$('loginanswer_row_Lrp14').style.display='none';}" fwin="login">
<option value="0">安全提问(未设置请忽略)</option>
<option value="1">母亲的名字</option>
<option value="2">爷爷的名字</option>
<option value="3">父亲出生的城市</option>
<option value="4">您其中一位老师的名字</option>
<option value="5">您个人计算机的型号</option>
<option value="6">您最喜欢的餐馆名称</option>
<option value="7">驾驶执照最后四位数字</option>
</select></td>
</tr>
</tbody></table>
</div>
<div class="rfm" id="loginanswer_row_Lrp14" style="display:none" fwin="login">
<table>
<tbody><tr>
<th>答案:</th>
<td><input type="text" name="answer" id="loginanswer_Lrp14" autocomplete="off" size="30" class="px p_fre" tabindex="1" fwin="login"></td>
</tr>
</tbody></table>
</div>
<div class="rfm bw0">
<table>
<tbody><tr>
<th></th>
<td><label for="cookietime_Lrp14"><input type="checkbox" class="pc" name="cookietime" id="cookietime_Lrp14" tabindex="1" value="2592000" fwin="login">自动登录</label></td>
</tr>
</tbody></table>
</div>
<div class="rfm mbw bw0">
<table width="100%">
<tbody><tr>
<th> </th>
<td>
<button class="pn pnc" type="submit" name="loginsubmit" value="true" tabindex="1"><strong>登录</strong></button>
</td>
<td>
</td>
</tr>
</tbody></table>
</div>
</div>
</form>
</div>
</div>
</td><td class="m_r" style="cursor:move" onmousedown="dragMenu($$('fwin_login'), event, 1)" ondblclick="hideWindow('login')" "=""></td></tr><tr><td class="b_l"></td><td class="b_c" style="cursor:move" onmousedown="dragMenu($$('fwin_login'), event, 1)" ondblclick="hideWindow('login')"></td><td class="b_r"></td></tr></tbody></table>
</body>
</html>
复制代码
欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://xmspace.net/)
Powered by Discuz! X3.4