织梦5.7登陆注册实现
程序员文章站
2024-01-21 11:12:40
...
正常注册登陆的会员中心
如果提示禁用,必须点击开启会员功能
验证码不显示:
禁用php删除即可
改完之后效果如下:
源码如下:亲测,正确 注意验证吗不能输入大写值,小写才可以登录
在templets/muban下面新建login.htm
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>login</title>
<style>
html {
height: 100%;
width: 100%;
overflow: hidden;
margin: 0;
padding: 0;
background: url(background.jpg);
background-repeat: no-repeat;
background-size: 100% 100%;
-moz-background-size: 100% 100%;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
#userlogin {
width: 700px;
height: 400px !important;
display: flex;
justify-content: center;
align-items: center;
height: 300px;
background-color: chocolate;
box-shadow: 7px 7px 17px rgba(52, 56, 66, 0.5);
border-radius: 5px;
}
#name_trip {
margin-left: 50px;
color: red;
}
p {
margin-top: 30px;
margin-left: 20px;
color: azure;
}
input {
margin-left: 15px;
border-radius: 5px;
border-style: hidden;
height: 30px;
width: 140px;
background-color: rgba(216, 191, 216, 0.5);
outline: none;
color: #f0edf3;
padding-left: 10px;
}
.inputSub {
border-color: cornsilk;
background-color: rgba(100, 149, 237, .7);
color: aliceblue;
border-style: hidden;
border-radius: 5px;
width: 100px;
height: 31px;
font-size: 16px;
}
</style>
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
$(function () {
$("a[_for]").mouseover(function () {
$(this).parents().children("a[_for]").removeClass("thisclass").parents().children("dd").hide();
$(this).addClass("thisclass").blur();
$("#" + $(this).attr("_for")).show();
});
$("a[_for=uc_member]").mouseover();
$("a[_for=flink_1]").mouseover();
});
function CheckLogin() {
var taget_obj = document.getElementById('_userlogin');
myajax = new DedeAjax(taget_obj, false, false, '', '', '');
myajax.SendGet2("{dede:global.cfg_cmspath/}/member/ajax_loginsta.php");
DedeXHTTP = null;
}
</script>
</head>
<body>
<div id='_userlogin'>
<div id="userlogin" class="userlogin">
<form id="form" name=login method=post action="{dede:global.cfg_memberurl/}/index_do.php">
<input type="hidden" name="fmdo" value="login" />
<input type="hidden" name="dopost" value="login" />
<input type="hidden" name="keeptime" value="604800" />
<h1 style="text-align: center;color: aliceblue;">登录界面</h1>
<p>用户名: <input id="userNname" name="userid" type="text" class="inputText"
size="12"><label id="name_trip"></label></p>
<p>密 码 : <input id="password" name="pwd" type="password"
class="inputText" size="12">
<label id="password_trip"></label></p>
<!-- 这代表空格,调整登录注册之间的位置,使其对齐 -->
{dede:php}
if(preg_match("#2#", $safe_gdopen))
{
echo '
<p> 验证码:<input name="vdcode" type="text" class="inputText" size="4">
<img id="vdimgck" align="absmiddle" onClick="this.src=this.src+\'?\'"
style="cursor:pointer;margin-left:0px;text-transform:uppercase;" alt="看不清?点击更换"
src="'.$cfg_cmspath.'/include/vdimgck.php" align="absbottom"></p>
';
}
{/dede:php}
<div style="text-align: center;margin-top: 30px;">
<input type="submit" name="Submit" value="登录" class="inputSub" />
<input type="button" name="Submit2" value="注册" class="inputSub"
onclick="window.open('{dede:global.cfg_memberurl/}/index_do.php?fmdo=user&dopost=regnew');" />
</div>
</form>
</div>
</div>
</body>
<script language="javascript" type="text/javascript">CheckLogin();</script>
</html>
登录之后跳转页面,以及出错时跳转页面更改:ShowMsg展示的页面
/member/index_do.php
<?php
/**
* @version $Id: index_do.php 1 8:24 2010年7月9日Z tianya $
* @package DedeCMS.Member
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__)."/config.php");
if(empty($dopost)) $dopost = '';
if(empty($fmdo)) $fmdo = '';
/*********************
function check_email()
*******************/
if($fmdo=='sendMail')
{
if(!CheckEmail($cfg_ml->fields['email']) )
{
ShowMsg('你的邮箱格式有错误!', '-1');
exit();
}
if($cfg_ml->fields['spacesta'] != -10)
{
ShowMsg('你的帐号不在邮件验证状态,本操作无效!', '-1');
exit();
}
$userhash = md5($cfg_cookie_encode.'--'.$cfg_ml->fields['mid'].'--'.$cfg_ml->fields['email']);
$url = $cfg_basehost.(empty($cfg_cmspath) ? '/' : $cfg_cmspath)."/member/index_do.php?fmdo=checkMail&mid={$cfg_ml->fields['mid']}&userhash={$userhash}&do=1";
$url = preg_replace("#http:\/\/#i", '', $url);
$url = 'http://'.preg_replace("#\/\/#i", '/', $url);
$mailtitle = "{$cfg_webname}--会员邮件验证通知";
$mailbody = '';
$mailbody .= "尊敬的用户[{$cfg_ml->fields['uname']}],您好:\r\n";
$mailbody .= "欢迎注册成为[{$cfg_webname}]的会员。\r\n";
$mailbody .= "要通过注册,还必须进行最后一步操作,请点击或复制下面链接到地址栏访问这地址:\r\n\r\n";
$mailbody .= "{$url}\r\n\r\n";
$mailbody .= "Power by http://www.dedecms.com 织梦内容管理系统!\r\n";
$headers = "From: ".$cfg_adminemail."\r\nReply-To: ".$cfg_adminemail;
if($cfg_sendmail_bysmtp == 'Y' && !empty($cfg_smtp_server))
{
$mailtype = 'TXT';
require_once(DEDEINC.'/mail.class.php');
$smtp = new smtp($cfg_smtp_server,$cfg_smtp_port,true,$cfg_smtp_usermail,$cfg_smtp_password);
$smtp->debug = false;
$smtp->sendmail($cfg_ml->fields['email'],$cfg_webname ,$cfg_smtp_usermail, $mailtitle, $mailbody, $mailtype);
}
else
{
@mail($cfg_ml->fields['email'], $mailtitle, $mailbody, $headers);
}
ShowMsg('成功发送邮件,请稍后登录你的邮箱进行接收!', '/member');
exit();
}
else if($fmdo=='checkMail')
{
$mid = intval($mid);
if(empty($mid))
{
ShowMsg('你的效验串不合法!', '-1');
exit();
}
$row = $dsql->GetOne("SELECT * FROM `#@__member` WHERE mid='{$mid}' ");
$needUserhash = md5($cfg_cookie_encode.'--'.$mid.'--'.$row['email']);
if($needUserhash != $userhash)
{
ShowMsg('你的效验串不合法!', '-1');
exit();
}
if($row['spacesta'] != -10)
{
ShowMsg('你的帐号不在邮件验证状态,本操作无效!', '-1');
exit();
}
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET spacesta=0 WHERE mid='{$mid}' ");
// 清除会员缓存
$cfg_ml->DelCache($mid);
ShowMsg('操作成功,请重新登录系统!', 'login.php');
exit();
}
/*********************
function Case_user()
*******************/
else if($fmdo=='user')
{
//检查用户名是否存在
if($dopost=="checkuser")
{
AjaxHead();
$msg = '';
$uid = trim($uid);
if($cktype==0)
{
$msgtitle='用户笔名';
}
else
{
#api{{
if(defined('UC_API') && @include_once DEDEROOT.'/uc_client/client.php')
{
$ucresult = uc_user_checkname($uid);
if($ucresult > 0)
{
echo "<font color='#4E7504'><b>√用户名可用</b></font>";
}
elseif($ucresult == -1)
{
echo "<font color='red'><b>×用户名不合法</b></font>";
}
elseif($ucresult == -2)
{
echo "<font color='red'><b>×包含要允许注册的词语</b></font>";
}
elseif($ucresult == -3)
{
echo "<font color='red'><b>×用户名已经存在</b></font>";
}
exit();
}
#/aip}}
$msgtitle='用户名';
}
if($cktype!=0 || $cfg_mb_wnameone=='N') {
$msg = CheckUserID($uid, $msgtitle);
}
else {
$msg = CheckUserID($uid, $msgtitle, false);
}
if($msg=='ok')
{
$msg = "<font color='#4E7504'><b>√{$msgtitle}可以使用</b></font>";
}
else
{
$msg = "<font color='red'><b>×{$msg}</b></font>";
}
echo $msg;
exit();
}
//检查email是否存在
else if($dopost=="checkmail")
{
AjaxHead();
#api{{
if(defined('UC_API') && @include_once DEDEROOT.'/uc_client/client.php')
{
$ucresult = uc_user_checkemail($email);
if($ucresult > 0) {
echo "<font color='#4E7504'><b>√可以使用</b></font>";
} elseif($ucresult == -4) {
echo "<font color='red'><b>×Email 格式有误!</b></font>";
} elseif($ucresult == -5) {
echo "<font color='red'><b>×Email 不允许注册!</b></font>";
} elseif($ucresult == -6) {
echo "<font color='red'><b>×该 Email 已经被注册!</b></font>";
}
exit();
}
#/aip}}
if($cfg_md_mailtest=='N')
{
$msg = "<font color='#4E7504'><b>√可以使用</b></font>";
}
else
{
if(!CheckEmail($email))
{
$msg = "<font color='#4E7504'><b>×Email格式有误</b></font>";
}
else
{
$row = $dsql->GetOne("SELECT mid FROM `#@__member` WHERE email LIKE '$email' LIMIT 1");
if(!is_array($row)) {
$msg = "<font color='#4E7504'><b>√可以使用</b></font>";
}
else {
$msg = "<font color='red'><b>×Email已经被另一个帐号占用!</b></font>";
}
}
}
echo $msg;
exit();
}
//引入注册页面
else if($dopost=="regnew")
{
$step = empty($step)? 1 : intval(preg_replace("/[^\d]/",'', $step));
require_once(dirname(__FILE__)."/reg_new.php");
exit();
}
/***************************
//积分换金币
function money2s() { }
***************************/
else if($dopost=="money2s")
{
CheckRank(0,0);
if($cfg_money_scores==0)
{
ShowMsg('系统禁用了积分与金币兑换功能!', '-1');
exit();
}
$money = empty($money) ? "" : abs(intval($money));
if(empty($money))
{
ShowMsg('您没指定要兑换多少金币!', '-1');
exit();
}
$needscores = $money * $cfg_money_scores;
if($cfg_ml->fields['scores'] < $needscores )
{
ShowMsg('您积分不足,不能换取这么多的金币!', '-1');
exit();
}
$litmitscores = $cfg_ml->fields['scores'] - $needscores;
//保存记录
$mtime = time();
$inquery = "INSERT INTO `#@__member_operation`(`buyid` , `pname` , `product` , `money` , `mtime` , `pid` , `mid` , `sta` ,`oldinfo`)
VALUES ('ScoresToMoney', '积分换金币操作', 'stc' , '0' , '$mtime' , '0' , '{$cfg_ml->M_ID}' , '0' , '用 {$needscores} 积分兑了换金币:{$money} 个'); ";
$dsql->ExecuteNoneQuery($inquery);
//修改积分与金币值
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET `scores`=$litmitscores, money= money + $money WHERE mid='".$cfg_ml->M_ID."' ");
// 清除会员缓存
$cfg_ml->DelCache($cfg_ml->M_ID);
ShowMsg('成功兑换指定量的金币!', 'operation.php');
exit();
}
}
/*********************
function login()
*******************/
else if($fmdo=='login')
{
//用户登录
if($dopost=="login")
{
if(!isset($vdcode))
{
$vdcode = '';
}
$svali = GetCkVdValue();
if(preg_match("/2/",$safe_gdopen)){
if(strtolower($vdcode)!=$svali || $svali=='')
{
ResetVdValue();
//ShowMsg('验证码错误!', 'index.php');
ShowMsg('验证码错误!', '../');
exit();
}
}
if(CheckUserID($userid,'',false)!='ok')
{
ResetVdValue();
//ShowMsg("你输入的用户名 {$userid} 不合法!","index.php");
ShowMsg("你输入的用户名 {$userid} 不合法!","../");
exit();
}
if($pwd=='')
{
ResetVdValue();
ShowMsg("密码不能为空!","-1",0,2000);
exit();
}
//检查帐号
$rs = $cfg_ml->CheckUser($userid,$pwd);
#api{{
if(defined('UC_API') && @include_once DEDEROOT.'/uc_client/client.php')
{
//检查帐号
list($uid, $username, $password, $email) = uc_user_login($userid, $pwd);
if($uid > 0) {
$password = md5($password);
//当UC存在用户,而CMS不存在时,就注册一个
if(!$rs) {
//会员的默认金币
$row = $dsql->GetOne("SELECT `money`,`scores` FROM `#@__arcrank` WHERE `rank`='10' ");
$scores = is_array($row) ? $row['scores'] : 0;
$money = is_array($row) ? $row['money'] : 0;
$logintime = $jointime = time();
$loginip = $joinip = GetIP();
$res = $dsql->ExecuteNoneQuery("INSERT INTO #@__member SET `mtype`='个人',`userid`='$username',`pwd`='$password',`uname`='$username',`sex`='男' ,`rank`='10',`money`='$money', `email`='$email', `scores`='$scores', `matt`='0', `face`='',`safequestion`='0',`safeanswer`='', `jointime`='$jointime',`joinip`='$joinip',`logintime`='$logintime',`loginip`='$loginip';");
if($res) {
$mid = $dsql->GetLastID();
$data = array
(
0 => "INSERT INTO `#@__member_person` SET `mid`='$mid', `onlynet`='1', `sex`='男', `uname`='$username', `qq`='', `msn`='', `tel`='', `mobile`='', `place`='', `oldplace`='0' ,
`birthday`='1980-01-01', `star`='1', `income`='0', `education`='0', `height`='160', `bodytype`='0', `blood`='0', `vocation`='0', `smoke`='0', `marital`='0', `house`='0',
`drink`='0', `datingtype`='0', `language`='', `nature`='', `lovemsg`='', `address`='',`uptime`='0';",
1 => "INSERT INTO `#@__member_tj` SET `mid`='$mid',`article`='0',`album`='0',`archives`='0',`homecount`='0',`pagecount`='0',`feedback`='0',`friend`='0',`stow`='0';",
2 => "INSERT INTO `#@__member_space` SET `mid`='$mid',`pagesize`='10',`matt`='0',`spacename`='{$uname}的空间',`spacelogo`='',`spacestyle`='person', `sign`='',`spacenews`='';",
3 => "INSERT INTO `#@__member_flink` SET `mid`='$mid', `title`='织梦内容管理系统', `url`='http://www.dedecms.com';"
);
foreach($data as $val) $dsql->ExecuteNoneQuery($val);
}
}
$rs = 1;
$row = $dsql->GetOne("SELECT `mid`, `pwd` FROM #@__member WHERE `userid`='$username'");
if(isset($row['mid']))
{
$cfg_ml->PutLoginInfo($row['mid']);
if($password!=$row['pwd']) $dsql->ExecuteNoneQuery("UPDATE #@__member SET `pwd`='$password' WHERE mid='$row[mid]'");
}
//生成同步登录的代码
$ucsynlogin = uc_user_synlogin($uid);
} else if($uid == -1) {
//当UC不存在该用而CMS存在,就注册一个.
if($rs) {
$row = $dsql->GetOne("SELECT `email` FROM #@__member WHERE userid='$userid'");
$uid = uc_user_register($userid, $pwd, $row['email']);
if($uid > 0) $ucsynlogin = uc_user_synlogin($uid);
} else {
$rs = -1;
}
} else {
$rs = -1;
}
}
#/aip}}
if($rs==0)
{
ResetVdValue();
//ShowMsg("用户名不存在!", "index.php", 0, 2000);
ShowMsg("用户名不存在!", "../", 0, 2000);
exit();
}
else if($rs==-1) {
ResetVdValue();
//ShowMsg("密码错误!", "index.php", 0, 2000);
ShowMsg("密码错误!", "../", 0, 2000);/* 修改跳转页面 */
exit();
}
else if($rs==-2) {
ResetVdValue();
//ShowMsg("管理员帐号不允许从前台登录!", "index.php", 0, 2000);
ShowMsg("管理员帐号不允许从前台登录!", "../index.php", 0, 2000);
exit();
}
else
{
// 清除会员缓存
$cfg_ml->DelCache($cfg_ml->M_ID);
if(empty($gourl) || preg_match("#action|_do#i", $gourl))
{
//ShowMsg("成功登录,5秒钟后转向系统主页...","index.php",0,2000);/* 登陆之后跳转的页面 这里是关键*/
ShowMsg("成功登录...","../index.php",0,2000);
}
else
{
$gourl = str_replace('^','&',$gourl);
ShowMsg("成功登录,现在转向指定页面...",$gourl,0,2000);
}
exit();
}
}
//退出登录
else if($dopost=="exit")
{
$cfg_ml->ExitCookie();
#api{{
if(defined('UC_API') && @include_once DEDEROOT.'/uc_client/client.php')
{
$ucsynlogin = uc_user_synlogout();
}
#/aip}}
//ShowMsg("成功退出登录!","index.php",0,2000);
ShowMsg("成功退出登录!","../index.php",0,2000);
exit();
}
}
/*********************
function moodmsg()
*******************/
else if($fmdo=='moodmsg')
{
//用户登录
if($dopost=="sendmsg")
{
if(!empty($content))
{
$ip = GetIP();
$dtime = time();
$ischeck = ($cfg_mb_msgischeck == 'Y')? 0 : 1;
if($cfg_soft_lang == 'gb2312')
{
$content = utf82gb(nl2br($content));
}
$content = cn_substrR(HtmlReplace($content,1),360);
//对表情进行解析
$content = addslashes(preg_replace("/\[face:(\d{1,2})\]/is","<img src='".$cfg_memberurl."/templets/images/smiley/\\1.gif' style='cursor: pointer; position: relative;'>",$content));
$content = RemoveXSS($content);
$inquery = "INSERT INTO `#@__member_msg`(`mid`,`userid`,`ip`,`ischeck`,`dtime`, `msg`)
VALUES ('{$cfg_ml->M_ID}','{$cfg_ml->M_LoginID}','$ip','$ischeck','$dtime', '$content'); ";
$rs = $dsql->ExecuteNoneQuery($inquery);
if(!$rs)
{
$output['type'] = 'error';
$output['data'] = '更新失败,请重试.';
exit();
}
$output['type'] = 'success';
if($cfg_soft_lang == 'gb2312')
{
$content = utf82gb(nl2br($content));
}
$output['data'] = stripslashes($content);
exit(json_encode($output));
}
}
}
else
{
//ShowMsg("本页面禁止返回!","index.php");
ShowMsg("本页面禁止返回!","../index.php");
}
,至此登录功能修改结束
注册主要涉及文件3个
Member/index_do.php管理登录注册行为
Member/reg_new.php 注册页面详细信息管理
Zhuce.htm:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title>注册</title>
<link href="../member/templets/style/login.css" rel="stylesheet" type="text/css" />
<script src="../member/templets/js/j.js" language="javascript" type="text/javascript"></script>
<script src="../member/templets/js/base.js" language="javascript" type="text/javascript"></script>
<script src='../member/templets/js/CheckPassStrength.js' type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src='../member/templets/js/reg_new.js'></script>
<script type="text/javascript" language="javascript">
function changeAuthCode() {
var num = new Date().getTime();
var rand = Math.round(Math.random() * 10000);
num = num + rand;
$('#ver_code').css('visibility', 'visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
}
return false;
}
function hideVc() {
$('#ver_code').css('visibility', 'hidden');
}
$(document).ready(function () {
$("#passwordLevel").removeClass().addClass("rank r0");
$("#vdcode").focus(function () {
var leftpos = $("#vdcode").position().left;
var toppos = $("#vdcode").position().top - 42;
$('#ver_code').css('left', leftpos + 'px');
$('#ver_code').css('top', toppos + 'px');
$('#ver_code').css('visibility', 'visible');
});
$("input[type='password']").click(function () {
hideVc()
});
$("#txtUsername").click(function () {
hideVc()
});
$("input[type='radio']").focus(function () {
hideVc()
});
/*
$("#vdcode").blur(function(){
$('#ver_code').css('visibility','hidden');
});
*/
})
</script>
<style>
#login{
height: 910px;
}
</style>
</head>
<body>
<div id="login" class="bor">
<div class="<?php echo ($cfg_mb_reginfo == 'Y')? '' : 's';?>tip1"></div>
<div class="theme fLeft">
<form method="post" action="/member/reg_new.php" id="regUser" name="form2">
<input type="hidden" value="regbase" name="dopost" />
<input type="hidden" value="1" name="step" />
<input type="hidden" value="个人" name="mtype" />
<p style="text-align: right;" class="mB10" />
<ul>
<li class="mL68">(带<i class="red"> * </i>号的表示为必填项目,用户名必须大于3位小于20位,密码必须大于3位)</li>
</li>
<li><span>用户名:</span>
<input type="text" class="intxt w200" id="txtUsername" name="userid" />
<i class="red">*</i> <em id="_userid">(可以使用中文,但禁止除[@][.]以外的特殊符号)</em> </li>
<li><span id="uwname">用户昵称:</span>
<input type="text" class="intxt w200" size="20" id="uname" name="uname" />
<i class="red">*</i> <em id="_uname" /> </li>
<li><span>登陆密码:</span>
<input type="password"
onkeyup="setPasswordLevel(this, document.getElementById('passwordLevel'));"
style="font-family: verdana;" class="intxt w200" id="txtPassword" name="userpwd" />
<i class="red">*</i> </li>
<li><span>密码强度:</span>
<input id="passwordLevel" class="rank r2" disabled="disabled" name="Input" />
</li>
<li><span>确认密码:</span>
<input type="password" class="intxt w200" size="20" value="" id="userpwdok" name="userpwdok" />
<i class="red">*</i> <em id="_userpwdok">
<font color="red"><b>×两次输入密码不一致</b></font>
</em> </li>
<li><span>电子邮箱:</span>
<input type="text" class="intxt w200" id="email" name="email" />
<i class="red">*</i> <em id="_email">(每个电子邮邮箱只能注册一个帐号)</em> </li>
<li><span>性别:</span>
<input type="radio" value="男" name="sex" />
男
<input type="radio" value="女" name="sex" />
女
<input type="radio" checked="checked" value="" name="sex" />
保密 </li>
<?php
if(preg_match("/1/",$safe_gdopen)){
?>
<li><span>验证码:</span>
<input type="text" class="intxt w200" style="width: 50px; text-transform: uppercase;"
id="vdcode" name="vdcode" /><img id="vdimgck" align="absmiddle"
onclick="this.src=this.src+'?'" style="cursor: pointer;" alt="看不清?点击更换"
src="../include/vdimgck.php" />
看不清? <a href="javascript:void(0)" onclick="changeAuthCode();">点击更换</a></li>
<?php }?>
</ul>
<div><span style="height: 110px; width: 15%;" class="fLeft">会员注册协议:</span>
<div class="contract">
1、在本站注册的会员,必须遵守《互联网电子公告服务管理规定》,不得在本站发表诽谤他人,侵犯他人隐私,侵犯他人知识产权,传播病毒,政治言论,商业讯息等信息。<br />
2、在所有在本站发表的文章,本站都具有最终编辑权,并且保留用于印刷或向第三方发表的权利,如果你的资料不齐全,我们将有权不作任何通知使用你在本站发布的作品。<br />
3、在登记过程中,您将选择注册名和密码。注册名的选择应遵守法律法规及社会公德。您必须对您的密码保密,您将对您注册名和密码下发生的所有活动承担责任。</div>
</div>
<br />
<ul>
<li><span> </span>
<input type="checkbox" checked="" value="" id="agree" name="agree" />
我已阅读并完全接受服务协议 </li>
<li><span> </span>
<button type="submit" id="btnSignCheck" class="buttonGreen142">注册</button>
</li>
</ul>
</form>
</div>
<br class="clear" />
</div>
</body>
</html>
登录页面注册按钮行为修改
<input type="button" name="Submit2" value="注册" class="inputSub"
onclick="window.open('/templets/muban/zhuce.htm');" /><!-- 这里可以更改为栏目链接 onclick="window.open('{dede:global.cfg_memberurl/}/index_do.php?fmdo=user&dopost=regnew');" -->
上一篇: python实现RFM模型分析
下一篇: 秒杀系统--动静分离