register.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:60k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.register" %>
- <%@ Import namespace="System.Data" %>
- <%@ Import namespace="Discuz.Common" %>
- <%@ Import namespace="Discuz.Forum" %>
- <%@ Import namespace="Discuz.Entity" %>
- <script runat="server">
- override protected void OnInit(EventArgs e)
- {
- /*
- This page was created by Discuz!NT Template Engine at 2010/2/8 15:43:58.
- 本页面代码由Discuz!NT模板引擎生成于 2010/2/8 15:43:58.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- if (infloat!=1)
- {
- templateBuilder.Append("<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">rn");
- templateBuilder.Append("<html xmlns="http://www.w3.org/1999/xhtml">rn");
- templateBuilder.Append("<head>rn");
- templateBuilder.Append("<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />rn");
- if (pagetitle=="首页")
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- }
- else
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(pagetitle.ToString());
- templateBuilder.Append(" - ");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- } //end if
- templateBuilder.Append(meta.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<meta name="generator" content="Discuz!NT 3.1.0" />rn");
- templateBuilder.Append("<meta name="author" content="Discuz!NT Team and Comsenz UI Team" />rn");
- templateBuilder.Append("<meta name="copyright" content="2001-2010 Comsenz Inc." />rn");
- templateBuilder.Append("<meta http-equiv="x-ua-compatible" content="ie=7" />rn");
- templateBuilder.Append("<link rel="icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="shortcut icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/dnt.css" type="text/css" media="all" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/float.css" type="text/css" />rn");
- templateBuilder.Append(link.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var creditnotice='");
- templateBuilder.Append(Scoresets.GetValidScoreNameAndId().ToString().Trim());
- templateBuilder.Append("'; rn");
- templateBuilder.Append("var forumpath = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/common.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_report.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_utils.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" var aspxrewrite = ");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" var IMGDIR = '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images'rn");
- templateBuilder.Append(" var allowfloatwin = ");
- templateBuilder.Append(config.Allowfloatwin.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" var rooturl="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(script.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("</head>rn");
- templateBuilder.Append("<body onkeydown="if(event.keyCode==27) return false;">rn");
- templateBuilder.Append("<div id="append_parent"></div><div id="ajaxwaitid"></div>rn");
- templateBuilder.Append("<div id="submenu">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- if (usergroupinfo.Allowsearch>0)
- {
- templateBuilder.Append(" <form method="post" action="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("search.aspx" target="_blank" onsubmit="bind_keyword(this);;" class="right">rn");
- templateBuilder.Append(" <input type="hidden" name="poster" />rn");
- templateBuilder.Append(" <input type="hidden" name="keyword" />rn");
- templateBuilder.Append(" <input type="hidden" name="type" value="" />rn");
- templateBuilder.Append(" <input id="keywordtype" type="hidden" name="keywordtype" value="0" />rn");
- templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="quicksearch" onclick="showMenu(this.id, false);" onmouseover="MouseCursor(this);">快速搜索</a>rn");
- templateBuilder.Append(" <input type="text" name="keywordf" value="输入搜索关键字" onblur="if(this.value=='')this.value=defaultValue" onclick="if(this.value==this.defaultValue)this.value = ''" onkeydown="if(this.value==this.defaultValue)this.value = ''" class="txt"/>rn");
- templateBuilder.Append(" <input name="searchsubmit" type="submit" value="" class="btnsearch"/>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function bind_keyword(form) {rn");
- templateBuilder.Append(" if (form.keywordtype.value == '9') {rn");
- templateBuilder.Append(" form.action = '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("forumsearch.aspx?q=' + escape(form.keywordf.value);rn");
- templateBuilder.Append(" } else if (form.keywordtype.value == '8') {rn");
- templateBuilder.Append(" form.keyword.value = '';rn");
- templateBuilder.Append(" form.poster.value = form.keywordf.value;rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" form.poster.value = '';rn");
- templateBuilder.Append(" form.keyword.value = form.keywordf.value;rn");
- templateBuilder.Append(" if (form.keywordtype.value == '2')rn");
- templateBuilder.Append(" form.type.value = 'spacepost';rn");
- templateBuilder.Append(" if (form.keywordtype.value == '3')rn");
- templateBuilder.Append(" form.type.value = 'album';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" <span class="avataonline right">rn");
- if (userid==-1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("login.aspx" onClick="floatwin('open_login', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("login.aspx', 600, 410);return false;">[登录]</a>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("register.aspx" onClick="floatwin('open_register', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("register.aspx', 600, 410);return false;">[注册]</arn");
- templateBuilder.Append(" >rn");
- }
- else
- {
- templateBuilder.Append(" 欢迎<a class="drop" id="viewpro" onMouseOver="showMenu(this.id)">");
- templateBuilder.Append(username.ToString());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("logout.aspx?userkey=");
- templateBuilder.Append(userkey.ToString());
- templateBuilder.Append("">退出</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- if (userid!=-1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpinbox.aspx" class="inbox" title="");
- templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
- templateBuilder.Append("条新短消息">收件箱</a>rn");
- if (oluserinfo.Newpms>0)
- {
- templateBuilder.Append("<cite>");
- templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
- templateBuilder.Append("</cite>rn");
- } //end if
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpnotice.aspx?filter=all" class="notice">通知</a>rn");
- if (oluserinfo.Newnotices>0)
- {
- templateBuilder.Append("<cite>");
- templateBuilder.Append(oluserinfo.Newnotices.ToString().Trim());
- templateBuilder.Append("</cite>rn");
- } //end if
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercp.aspx" class="usercp">用户中心</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- if (useradminid==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("admin/index.aspx" target="_blank" class="systemmanage">系统设置</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- } //end if
- templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="mymenu" onMouseOver="showMenu(this.id, false);" >我的</a>rn");
- templateBuilder.Append(" <ul class="popupmenu_popup headermenu_popup" id="mymenu_menu" style="display: none">rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("mytopics.aspx">我的主题</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("myposts.aspx">我的帖子</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("search.aspx?posterid=current&type=digest">我的精华</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("myattachment.aspx">我的附件</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpsubscribe.aspx">我的收藏</a></li>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("space/">我的空间</a></li>rn");
- } //end if
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showalbumlist.aspx?uid=");
- templateBuilder.Append(userid.ToString());
- templateBuilder.Append("">我的相册</a></li>rn");
- } //end if
- if (config.Enablemall==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpmygoods.aspx">我的商品</a></li>rn");
- } //end if
- templateBuilder.Append(" </ul>rn");
- } //end if
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<div id="header">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- templateBuilder.Append(" <h2><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("index.aspx" title="Discuz!NT|BBS|论坛"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/logo.gif" alt="Discuz!NT|BBS|论坛"/></a></h2>rn");
- if (headerad!="")
- {
- templateBuilder.Append(" <div id="ad_headerbanner"></div>rn");
- } //end if
- templateBuilder.Append(" <ul id="menu">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(mainnavigation.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- Response.Clear();
- Response.ContentType = "Text/XML";
- Response.Expires = 0;
- Response.Cache.SetNoStore();
-
- templateBuilder.Append("<?xml version="1.0" encoding="utf-8"?><root><![CDATA[rn");
- } //end if
- if (infloat!=1)
- {
- templateBuilder.Append("<div id="nav">rn");
- templateBuilder.Append(" <div class="wrap s_clear"><a href="");
- templateBuilder.Append(config.Forumurl.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</a> » <strong>用户注册</strong></div>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- if (agree=="" && infloat!=1)
- {
- if (page_err==0)
- {
- if (config.Rules==1)
- {
- templateBuilder.Append("<div class="wrap s_clear">rn");
- templateBuilder.Append("<div class="main">rn");
- templateBuilder.Append("<h1>用户注册协议</h1>rn");
- templateBuilder.Append("<form id="form1" name="form1" method="post" action="" style="margin-left:80px;">rn");
- templateBuilder.Append("<table cellspacing="0" cellpadding="0" width="100%" align="center" class="formtable">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <textarea name="textarea" cols="" rows="" readonly="readonly" style="width:600px;height:320px;margin:10px 0;">");
- templateBuilder.Append(config.Rulestxt.ToString().Trim());
- templateBuilder.Append("</textarea>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input name="agree" type="hidden" value="true" />rn");
- templateBuilder.Append(" <input disabled="disabled" type="submit" id="btnagree" value="我同意" />rn");
- templateBuilder.Append(" <input name="cancel" type="button" id="cancel" value="不同意" onClick="javascript:location.replace('index.aspx')" /> rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var secs = 5;rn");
- templateBuilder.Append(" var wait = secs * 1000;rn");
- templateBuilder.Append(" $("btnagree").value = "同 意(" + secs + ")";rn");
- templateBuilder.Append(" $("btnagree").disabled = true;rn");
- templateBuilder.Append(" for(i = 1; i <= secs; i++) {rn");
- templateBuilder.Append(" window.setTimeout("update(" + i + ")", i * 1000);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" window.setTimeout("timer()", wait);rn");
- templateBuilder.Append(" function update(num, value) {rn");
- templateBuilder.Append(" if(num == (wait/1000)) {rn");
- templateBuilder.Append(" $("btnagree").value = "同 意";rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" printnr = (wait / 1000) - num;rn");
- templateBuilder.Append(" $("btnagree").value = "同 意(" + printnr + ")";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function timer() {rn");
- templateBuilder.Append(" $("btnagree").disabled = false;rn");
- templateBuilder.Append(" $("btnagree").value = "同 意";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append("</table>rn");
- templateBuilder.Append("</form>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- /*
- <script type="text/javascript">
- location.replace('register.aspx?agree=yes')
- </");
- templateBuilder.Append("script>
- */
-
- } //end if
- }
- else
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main">rn");
- templateBuilder.Append(" <div class="msgbox">rn");
- templateBuilder.Append(" <h1>出现了");
- templateBuilder.Append(page_err.ToString());
- templateBuilder.Append("个错误</h1>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="msg_inner error_msg">rn");
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>rn");
- templateBuilder.Append(" <p class="errorback">rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" if(");
- templateBuilder.Append(msgbox_showbacklink.ToString());
- templateBuilder.Append(")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" document.write("<a href=\"");
- templateBuilder.Append(msgbox_backlink.ToString());
- templateBuilder.Append("\">返回上一步</a> |   ");rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <a href="forumindex.aspx">论坛首页</a>rn");
- if (usergroupid==7)
- {
- templateBuilder.Append(" | <a href="login.aspx">登录</a> | <a href="register.aspx">注册</a>rn");
- } //end if
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- }
- else
- {
- if (createuser=="")
- {
- if (infloat!=1)
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main" style="padding-left:160px">rn");
- } //end if
- templateBuilder.Append("<div class="float" id="floatlayout_register" style="width: 600px; height: 400px;">rn");
- templateBuilder.Append(" <div style="width: 1800px">rn");
- templateBuilder.Append(" <div class="floatbox floatbox1">rn");
- if (infloat==1)
- {
- templateBuilder.Append(" <h3 class="float_ctrl">rn");
- templateBuilder.Append(" <span><a href="javascript:;" class="float_close" onclick="floatwin('close_register')" title="关闭">关闭</a></span>rn");
- templateBuilder.Append(" </h3>rn");
- } //end if
- if (config.Rules==1)
- {
- templateBuilder.Append(" <div class="gateform" id="bbrule" style="display:none">rn");
- templateBuilder.Append(" <h3>网站服务条款</h3>rn");
- templateBuilder.Append(" <div style="margin-bottom:10px">rn");
- templateBuilder.Append(" <textarea name="textarea" cols="" rows="" readonly="readonly" style="height:230px;width:510px;border:0">");
- templateBuilder.Append(config.Rulestxt.ToString().Trim());
- templateBuilder.Append("</textarea>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <input id="btnagree" type="button" value="我同意" onclick="javascript:$('agree').checked=true;$('bbrule').style.display='none';$('bbreg').style.display=''"/>rn");
- templateBuilder.Append(" <input name="cancel" type="button" id="cancel" value="不同意" onClick="floatwin('close_register')" /> rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <div class="gateform" id="bbreg">rn");
- templateBuilder.Append(" <h3 id="returnregmessage">注册</h3>rn");
- if (infloat==1)
- {
- templateBuilder.Append(" <form id="form2" name="form2" method="post" onsubmit="javascript:$('form2').action='");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("register.aspx?infloat=1&createuser=1&';ajaxpost('form2', 'returnregmessage', 'returnregmessage', 'onerror');return false;" action="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("register.aspx?infloat=1&createuser=1&">rn");
- }
- else
- {
- templateBuilder.Append(" <form id="form1" name="form1" method="post" action="?createuser=1">rn");
- } //end if
- templateBuilder.Append(" <div class="loginform regform">rn");
- templateBuilder.Append(" <div style="overflow: hidden;overflow-y:auto" class="regform" id="reginfo_a">rn");
- templateBuilder.Append(" <span id="activation_hidden">rn");
- if (invitecode!=""||config.Regstatus==3)
- {
- templateBuilder.Append(" <label><em>邀请码:</em><input name="invitecode" type="text" id="invitecode" size="20" class="txt" maxlength="7"rn");
- if (invitecode!="")
- {
- templateBuilder.Append(" value="");
- templateBuilder.Append(invitecode.ToString());
- templateBuilder.Append("" readonly="readonly"rn");
- } //end if
- templateBuilder.Append(" /> *</label>rn");
- } //end if
- templateBuilder.Append(" <label><em>用户名:</em><input type="text" class="txt" tabindex="1" value="" maxlength="20" size="25" autocomplete="off" name="username" id="username" onkeyup="checkusername(this.value);"/> *</label>rn");
- templateBuilder.Append(" <label><em>密码:</em><input type="password" class="txt" tabindex="1" id="password" size="25" name="password" onblur="return checkpasswd(this);"/> *</label> rn");
- templateBuilder.Append(" <label id="passwdpower" style="display: none;"><em>密码强度</em><strong id="showmsg"></strong></label>rn");
- templateBuilder.Append(" <label><em>确认密码:</em><input type="password" class="txt" value="" tabindex="1" id="password2" size="25" name="password2" onblur="checkdoublepassword(this.form)"/> *</label>rn");
- templateBuilder.Append(" <label><em>Email:</em><input type="text" class="txt" tabindex="1" id="email" size="25" autocomplete="off" name="email" onblur="checkemail(this.value)"/> *</label>rn");
- if (config.Realnamesystem==1)
- {
- templateBuilder.Append(" <label><em>真实姓名:</em><input name="realname" type="text" id="realname" size="10" class="txt" /> *</label>rn");
- templateBuilder.Append(" <label><em>身份证:</em><input name="idcard" type="text" id="idcard" size="20" class="txt" /> *</label>rn");
- templateBuilder.Append(" <label><em>移动电话:</em><input name="mobile" type="text" id="mobile" size="20" class="txt" /> *</label>rn");
- templateBuilder.Append(" <label><em>固定电话:</em><input name="phone" type="text" id="phone" size="20" class="txt" /> *</label>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- if (isseccode)
- {
- templateBuilder.Append(" <div class="regsec">rn");
- templateBuilder.Append(" <label style="display: inline;"><em>验证: </em><span style="position: relative;">rn");
- templateBuilder.Append("<div id="vcode_temp"></div>rn");
- templateBuilder.Append("<script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" var infloat = ");
- templateBuilder.Append(infloat.ToString());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" if (typeof vcodeimgid == 'undefined'){rn");
- templateBuilder.Append(" var vcodeimgid = 1;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" vcodeimgid++;rn");
- templateBuilder.Append(" $('vcode_temp').parentNode.innerHTML = '<input name="vcodetext" tabindex="1" size="20" onkeyup="changevcode(this.form, this.value);" class="txt" style="width:90px;" id="vcodetext' + vcodeimgid + '" onblur="if(!seccodefocus) {display(this.id + \'_menu\')};" onclick="opensecwin('+vcodeimgid+',1)" value="验证码" autocomplete="off"/>' +rn");
- templateBuilder.Append(" '<div class="seccodecontent" style="display:none;cursor: pointer;width: 124px; height: 44px;top:256px;z-index:10009;padding:0;" id="vcodetext' + vcodeimgid + '_menu" onmouseout="seccodefocus = 0" onmouseover="seccodefocus = 1"><img src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("tools/VerifyImagePage.aspx?time=");
- templateBuilder.Append(Processtime.ToString());
- templateBuilder.Append("" class="cursor" id="vcodeimg' + vcodeimgid + '" onclick="this.src=\'");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("tools/VerifyImagePage.aspx?id=");
- templateBuilder.Append(olid.ToString());
- templateBuilder.Append("&time=\' + Math.random();"/></div>';rn");
- templateBuilder.Append(" function changevcode(form, value){rn");
- templateBuilder.Append(" if (!$('vcode')){rn");
- templateBuilder.Append(" var vcode = document.createElement('input');rn");
- templateBuilder.Append(" vcode.id = 'vcode';rn");
- templateBuilder.Append(" vcode.name = 'vcode';rn");
- templateBuilder.Append(" vcode.type = 'hidden';rn");
- templateBuilder.Append(" vcode.value = value;rn");
- templateBuilder.Append(" form.appendChild(vcode);rn");
- templateBuilder.Append(" }else{rn");
- templateBuilder.Append(" $('vcode').value = value;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var secclick = new Array();rn");
- templateBuilder.Append("var seccodefocus = 0;rn");
- templateBuilder.Append("function opensecwin(id,type) {rn");
- templateBuilder.Append(" if($('vcode')){rn");
- templateBuilder.Append(" $('vcode').parentNode.removeChild($('vcode'));}rn");
- templateBuilder.Append(" if (!secclick['vcodetext' + id]) {rn");
- templateBuilder.Append(" $('vcodetext' + id).value = '';rn");
- templateBuilder.Append(" secclick['vcodetext' + id] = 1;rn");
- templateBuilder.Append(" if(type)rn");
- templateBuilder.Append(" $('vcodetext' + id + '_menu').style.top = parseInt($('vcodetext' + id + '_menu').style.top) - parseInt($('vcodetext' + id + '_menu').style.height) + 'px';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" $('vcodetext' + id + '_menu').style.position = 'absolute';rn");
- templateBuilder.Append(" $('vcodetext' + id + '_menu').style.top = (-parseInt($('vcodetext' + id + '_menu').style.height) - 2) + 'px';rn");
- templateBuilder.Append(" $('vcodetext' + id + '_menu').style.left = '0px';rn");
- templateBuilder.Append(" $('vcodetext' + id + '_menu').style.display = '';rn");
- templateBuilder.Append(" $('vcodetext' + id).focus();rn");
- templateBuilder.Append(" $('vcodetext' + id).unselectable = 'off';rn");
- templateBuilder.Append(" $('vcodeimg' + id).src = '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("tools/VerifyImagePage.aspx?id=");
- templateBuilder.Append(olid.ToString());
- templateBuilder.Append("&time=' + Math.random();rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </span></label>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="logininfo singleinfo">rn");
- templateBuilder.Append(" <h4>已有帐号?<a onclick="floatwin('close_register');floatwin('open_login', this.href, 600, 400, '600,0');return false;" href="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("login.aspx">现在登录</a></h4>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <p class="fsubmit">rn");
- templateBuilder.Append(" <span id="reginfo_b_btn">rn");
- templateBuilder.Append(" <button tabindex="1" value="true" name="regsubmit" type="submit" id="registerformsubmit" class="submit" rn");
- if (config.Rules==1)
- {
- templateBuilder.Append("onclick="return checkagreed();" rn");
- } //end if
- templateBuilder.Append(">创建用户</button>rn");
- if (config.Rules==1)
- {
- templateBuilder.Append(" <input type="checkbox" id="agree" value="true" name="agree" class="checkbox" style="margin-left:5px;"/><label for="agreebbrule">同 意<a onclick="javascript:$('bbrule').style.display='';$('bbreg').style.display='none'" href="javascript:;">网站服务条款</a></label>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" function checkagreed() {rn");
- templateBuilder.Append(" if ($('agree').checked == true) {rn");
- templateBuilder.Append(" return true;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else {rn");
- templateBuilder.Append(" $('returnregmessage').innerHTML = "<img src='templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/check_error.gif'/>请确认《网络服务条款》"; ;rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" var PasswordStrength ={rn");
- templateBuilder.Append(" Level : ["极佳","一般","较弱","太短"],rn");
- templateBuilder.Append(" LevelValue : [15,10,5,0],//强度值rn");
- templateBuilder.Append(" Factor : [1,2,5],//字符加数,分别为字母,数字,其它rn");
- templateBuilder.Append(" KindFactor : [0,0,10,20],//密码含几种组成的加数 rn");
- templateBuilder.Append(" Regex : [/[a-zA-Z]/g,/\d/g,/[^a-zA-Z0-9]/g] //字符正则数字正则其它正则rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" PasswordStrength.StrengthValue = function(pwd)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var strengthValue = 0;rn");
- templateBuilder.Append(" var ComposedKind = 0;rn");
- templateBuilder.Append(" for(var i = 0 ; i < this.Regex.length;i++)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var chars = pwd.match(this.Regex[i]);rn");
- templateBuilder.Append(" if(chars != null)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" strengthValue += chars.length * this.Factor[i];rn");
- templateBuilder.Append(" ComposedKind ++;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" strengthValue += this.KindFactor[ComposedKind];rn");
- templateBuilder.Append(" return strengthValue;rn");
- templateBuilder.Append(" } rn");
- templateBuilder.Append(" PasswordStrength.StrengthLevel = function(pwd)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var value = this.StrengthValue(pwd);rn");
- templateBuilder.Append(" for(var i = 0 ; i < this.LevelValue.length ; i ++)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" if(value >= this.LevelValue[i] )rn");
- templateBuilder.Append(" return this.Level[i];rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function checkpasswd(o)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var pshowmsg;rn");
- templateBuilder.Append(" if(o.value.length<6) {rn");
- templateBuilder.Append(" pshowmsg="<span>不得少于6个字符</span>";rn");
- templateBuilder.Append(" } rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var showmsg=PasswordStrength.StrengthLevel(o.value);rn");
- templateBuilder.Append(" switch(showmsg) {rn");
- templateBuilder.Append(" case "太短": showmsg+=" <img src='images/level/1.gif' width='88' height='11' />";break;rn");
- templateBuilder.Append(" case "较弱": showmsg+=" <img src='images/level/2.gif' width='88' height='11' />";break;rn");
- templateBuilder.Append(" case "一般": showmsg+=" <img src='images/level/3.gif' width='88' height='11' />";break;rn");
- templateBuilder.Append(" case "极佳": showmsg+=" <img src='images/level/4.gif' width='88' height='11' />";break;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" $('passwdpower').style.display='';rn");
- templateBuilder.Append(" $('showmsg').innerHTML = showmsg;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(pshowmsg!='' && pshowmsg!=null && pshowmsg!=undefined)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('returnregmessage').innerHTML=pshowmsg;rn");
- templateBuilder.Append(" $('returnregmessage').className='onerror';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('returnregmessage').className='';rn");
- templateBuilder.Append(" $('returnregmessage').innerHTML='注册';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function checkemail(strMail)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var str;rn");
- templateBuilder.Append(" if(strMail.length==0) return false; rn");
- templateBuilder.Append(" var objReg = new RegExp("[A-Za-z0-9-_]+@[A-Za-z0-9-_]+[\.][A-Za-z0-9-_]") rn");
- templateBuilder.Append(" var IsRightFmt = objReg.test(strMail) rn");
- templateBuilder.Append(" var objRegErrChar = new RegExp("[^a-z0-9-._@]","ig") rn");
- templateBuilder.Append(" var IsRightChar = (strMail.search(objRegErrChar)==-1) rn");
- templateBuilder.Append(" var IsRightLength = strMail.length <= 60 rn");
- templateBuilder.Append(" var IsRightPos = (strMail.indexOf("@",0) != 0 && strMail.indexOf(".",0) != 0 && strMail.lastIndexOf("@")+1 != strMail.length && strMail.lastIndexOf(".")+1 != strMail.length) rn");
- templateBuilder.Append(" var IsNoDupChar = (strMail.indexOf("@",0) == strMail.lastIndexOf("@")) rn");
- templateBuilder.Append(" if(!(IsRightFmt && IsRightChar && IsRightLength && IsRightPos && IsNoDupChar)) rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" str="E-mail 地址无效,请返回重新填写。";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(str!='' && str!=null && str!=undefined)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('returnregmessage').innerHTML=str;rn");
- templateBuilder.Append(" $('returnregmessage').className='onerror';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('returnregmessage').className='';rn");
- templateBuilder.Append(" $('returnregmessage').innerHTML='注册';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function htmlEncode(source, display, tabs)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" function special(source)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var result = '';rn");
- templateBuilder.Append(" for (var i = 0; i < source.length; i++)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var c = source.charAt(i);rn");
- templateBuilder.Append(" if (c < ' ' || c > '~')rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" c = '&#' + c.charCodeAt() + ';';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" result += c;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" return result;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function format(source)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" // Use only integer part of tabs, and default to 4rn");
- templateBuilder.Append(" tabs = (tabs >= 0) ? Math.floor(tabs) : 4;rn");
- templateBuilder.Append(" // split along line breaksrn");
- templateBuilder.Append(" var lines = source.split(/\r\n|\r|\n/);rn");
- templateBuilder.Append(" // expand tabsrn");
- templateBuilder.Append(" for (var i = 0; i < lines.length; i++)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var line = lines[i];rn");
- templateBuilder.Append(" var newLine = '';rn");
- templateBuilder.Append(" for (var p = 0; p < line.length; p++)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var c = line.charAt(p);rn");
- templateBuilder.Append(" if (c === '\t')rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var spaces = tabs - (newLine.length % tabs);rn");
- templateBuilder.Append(" for (var s = 0; s < spaces; s++)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" newLine += ' ';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" newLine += c;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" // If a line starts or ends with a space, it evaporates in htmlrn");
- templateBuilder.Append(" // unless it's an nbsp.rn");
- templateBuilder.Append(" newLine = newLine.replace(/(^ )|( $)/g, ' ');rn");
- templateBuilder.Append(" lines[i] = newLine;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" // re-join linesrn");
- templateBuilder.Append(" var result = lines.join('<br />');rn");
- templateBuilder.Append(" // break up contiguous blocks of spaces with non-breaking spacesrn");
- templateBuilder.Append(" result = result.replace(/ /g, ' ');rn");
- templateBuilder.Append(" // tada!rn");
- templateBuilder.Append(" return result;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" var result = source;rn");
- templateBuilder.Append(" // ampersands (&)rn");
- templateBuilder.Append(" result = result.replace(/\&/g,'&');rn");
- templateBuilder.Append(" // less-thans (<)rn");
- templateBuilder.Append(" result = result.replace(/\</g,'<');rn");
- templateBuilder.Append(" // greater-thans (>)rn");
- templateBuilder.Append(" result = result.replace(/\>/g,'>');rn");
- templateBuilder.Append(" if (display)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" // format for displayrn");
- templateBuilder.Append(" result = format(result);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" // Replace quotes if it isn't for display,rn");
- templateBuilder.Append(" // since it's probably going in an html attribute.rn");
- templateBuilder.Append(" result = result.replace(new RegExp('"','g'), '"');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" // special charactersrn");
- templateBuilder.Append(" result = special(result);rn");
- templateBuilder.Append(" // tada!rn");
- templateBuilder.Append(" return result;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" var profile_username_toolong = '对不起,您的用户名超过 20 个字符,请输入一个较短的用户名。';rn");
- templateBuilder.Append(" var profile_username_tooshort = '对不起,您输入的用户名小于3个字符, 请输入一个较长的用户名。';rn");
- templateBuilder.Append(" var profile_username_pass = "<img src='templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/check_right.gif'/>";rn");
- templateBuilder.Append(" function checkusername(username)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var unlen = username.replace(/[^\x00-\xff]/g, "**").length;rn");
- templateBuilder.Append(" if(unlen < 3 || unlen > 20) {rn");
- templateBuilder.Append(" $("returnregmessage").innerHTML =(unlen < 3 ? profile_username_tooshort : profile_username_toolong);rn");
- templateBuilder.Append(" $('returnregmessage').className='onerror';rn");
- templateBuilder.Append(" return;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" ajaxRead("");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("tools/ajax.aspx?t=checkusername&username=" + escape(username), "showcheckresult(obj,'" + escape(username) + "');");rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function showcheckresult(obj, username)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var res = obj.getElementsByTagName('result');rn");
- templateBuilder.Append(" var result = "";rn");
- templateBuilder.Append(" if (res[0] != null && res[0] != undefined)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" if (res[0].childNodes.length > 1) {rn");
- templateBuilder.Append(" result = res[0].childNodes[1].nodeValue;rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" result = res[0].firstChild.nodeValue; rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if (result == "1")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var tips="对不起,您输入的用户名 \"" + htmlEncode(unescape(username), true, 4) + "\" 已经被他人使用或被禁用。";rn");
- templateBuilder.Append(" $('returnregmessage').innerHTML=tips;rn");
- templateBuilder.Append(" $('returnregmessage').className='onerror';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('returnregmessage').className='';rn");
- templateBuilder.Append(" $('returnregmessage').innerHTML='注册';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function checkdoublepassword(theform)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var pw1 = theform.password.value;rn");
- templateBuilder.Append(" var pw2 = theform.password2.value;rn");
- templateBuilder.Append(" if(pw1=='' && pw2=='')rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" return;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" var str;rn");
- templateBuilder.Append(" if(pw1!=pw2)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" str ="两次输入的密码不一致";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(str!='' && str!=null && str!=undefined)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('returnregmessage').innerHTML=str;rn");
- templateBuilder.Append(" $('returnregmessage').className='onerror';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('returnregmessage').className='';rn");
- templateBuilder.Append(" $('returnregmessage').innerHTML='注册';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <script type="text/javascript" src="javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- }
- else
- {
- if (createuser!="")
- {
- if (infloat==1)
- {
- if (page_err==0)
- {
- templateBuilder.Append(" <script>rn");
- templateBuilder.Append(" $('form2').style.display='none';rn");
- templateBuilder.Append(" $('returnregmessage').className='';rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <div class="msgbox">rn");
- templateBuilder.Append(" <h1>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" 提示信息</h1>rn");
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>rn");
- if (msgbox_url!="")
- {
- templateBuilder.Append(" <h1><a href="javascript:;" onclick="location.reload()">如果长时间没有响应请点击此处</a></h1>rn");
- templateBuilder.Append(" <script>setTimeout('location.reload()', 3000);</");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- }
- else
- {
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>rn");
- } //end if
- }
- else
- {
- if (page_err==0)
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main">rn");
- templateBuilder.Append(" <div class="msgbox">rn");
- templateBuilder.Append(" <h1>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" 提示信息</h1>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="msg_inner">rn");
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>rn");
- if (msgbox_url!="")
- {
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(msgbox_url.ToString());
- templateBuilder.Append("">如果浏览器没有转向, 请点击这里.</a></p>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main">rn");
- templateBuilder.Append(" <div class="msgbox">rn");
- templateBuilder.Append(" <h1>出现了");
- templateBuilder.Append(page_err.ToString());
- templateBuilder.Append("个错误</h1>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="msg_inner error_msg">rn");
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>rn");
- templateBuilder.Append(" <p class="errorback">rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" if(");
- templateBuilder.Append(msgbox_showbacklink.ToString());
- templateBuilder.Append(")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" document.write("<a href=\"");
- templateBuilder.Append(msgbox_backlink.ToString());
- templateBuilder.Append("\">返回上一步</a> |   ");rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <a href="forumindex.aspx">论坛首页</a>rn");
- if (usergroupid==7)
- {
- templateBuilder.Append(" | <a href="login.aspx">登录</a> | <a href="register.aspx">注册</a>rn");
- } //end if
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- } //end if
- } //end if
- } //end if
- } //end if
- if (infloat!=1)
- {
- if (pagename=="website.aspx")
- {
- templateBuilder.Append(" <div id="websitebottomad"></div>rn");
- }
- else if (footerad!="")
- {
- templateBuilder.Append(" <div id="ad_footerbanner">");
- templateBuilder.Append(footerad.ToString());
- templateBuilder.Append("</div> rn");
- } //end if
- if (headerad!="")
- {
- templateBuilder.Append("<div id="ad_headerbanner_nodisplay" style="display:none">");
- templateBuilder.Append(headerad.ToString());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("$('ad_headerbanner').innerHTML = $('ad_headerbanner_nodisplay').innerHTML;rn");
- templateBuilder.Append("$('ad_headerbanner_nodisplay').parentNode.removeChild($('ad_headerbanner_nodisplay'));rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append("<div id="footer">rn");
- templateBuilder.Append(" <div class="wrap">rn");
- templateBuilder.Append(" <div id="footlinks">rn");
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(config.Weburl.ToString().Trim());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(config.Webtitle.ToString().Trim());
- templateBuilder.Append("</a> - ");
- templateBuilder.Append(config.Linktext.ToString().Trim());
- templateBuilder.Append(" - <a target="_blank" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("stats.aspx">统计</a> - rn");
- if (config.Sitemapstatus==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("tools/sitemap.aspx" target="_blank" title="百度论坛收录协议">Sitemap</a>rn");
- } //end if
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Statcode.ToString().Trim());
- templateBuilder.Append(config.Icp.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <div>rn");
- templateBuilder.Append(" <a href="http://www.comsenz.com/" target="_blank">Comsenz Technology Ltd</a>rn");
- templateBuilder.Append(" - <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("archiver/index.aspx" target="_blank">简洁版本</a>rn");
- if (config.Stylejump==1)
- {
- if (userid!=-1 || config.Guestcachepagetimeout<=0)
- {
- templateBuilder.Append(" - <span id="styleswitcher" class="drop" onmouseover="showMenu(this.id)" onclick="window.location.href='");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("showtemplate.aspx'">界面风格</span>rn");
- templateBuilder.Append(" <ul id="styleswitcher_menu" class="popupmenu_popup s_clear" style="display: none;">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(templatelistboxoptions.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </ul>rn");
- } //end if
- } //end if
- templateBuilder.Append(" - <span class="scrolltop" onclick="window.scrollTo(0,0);">TOP</span>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <a title="Powered by Discuz!NT" target="_blank" href="http://nt.discuz.net"><img border="0" alt="Discuz!NT" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/discuznt_logo.gif"/></a>rn");
- templateBuilder.Append(" <p id="copyright">rn");
- templateBuilder.Append(" Powered by <strong><a href="http://nt.discuz.net" target="_blank" title="Discuz!NT 3.1.0 (.NET Framework 2.0/3.x)">Discuz!NT</a></strong> <em class="f_bold">3.1.0</em>rn");
- if (config.Licensed==1)
- {
- templateBuilder.Append(" (<a href="" onclick="this.href='http://nt.discuz.net/certificate/?host='+location.href.substring(0, location.href.lastIndexOf('/'))" target="_blank">Licensed</a>)rn");
- } //end if
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Forumcopyright.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <p id="debuginfo" class="grayfont">rn");
- if (config.Debug!=0)
- {
- templateBuilder.Append(" Processed in ");
- templateBuilder.Append(this.Processtime.ToString().Trim());
- templateBuilder.Append(" second(s)rn");
- if (isguestcachepage==1)
- {
- templateBuilder.Append(" (Cached).rn");
- }
- else if (querycount>1)
- {
- templateBuilder.Append(" , ");
- templateBuilder.Append(querycount.ToString());
- templateBuilder.Append(" queries.rn");
- }
- else
- {
- templateBuilder.Append(" , ");
- templateBuilder.Append(querycount.ToString());
- templateBuilder.Append(" query.rn");
- } //end if
- } //end if
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<ul id="quicksearch_menu" class="popupmenu_popup" style="display: none;">rn");
- templateBuilder.Append(" <li onclick="$('keywordtype').value='0';$('quicksearch').innerHTML='帖子标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">帖子标题</li>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <li onclick="$('keywordtype').value='2';$('quicksearch').innerHTML='空间日志';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">空间日志</li>rn");
- } //end if
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" <li onclick="$('keywordtype').value='3';$('quicksearch').innerHTML='相册标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">相册标题</li>rn");
- } //end if
- templateBuilder.Append(" <li onclick="$('keywordtype').value='8';$('quicksearch').innerHTML='作者';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">作者</li>rn");
- templateBuilder.Append(" <li onclick="$('keywordtype').value='9';$('quicksearch').innerHTML='版块';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">版块</li>rn");
- templateBuilder.Append("</ul>rn");
- templateBuilder.Append("<ul class="popupmenu_popup" id="viewpro_menu" style="display: none">rn");
- templateBuilder.Append(" <li style="text-align:center;"><img src="");
- templateBuilder.Append(useravatar.ToString());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/noavatar_small.gif';" /></li>rn");
- aspxrewriteurl = this.UserInfoAspxRewrite(userid);
-
- templateBuilder.Append(" <li class="popuser"><a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">我的资料</a></li>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <li class="poplink"><a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/">我的空间</a></li>rn");
- } //end if
- templateBuilder.Append("</ul>rn");
- int prentid__loop__id=0;
- foreach(string prentid in mainnavigationhassub)
- {
- prentid__loop__id++;
- templateBuilder.Append("<ul class="popupmenu_popup headermenu_popup" id="menu_");
- templateBuilder.Append(prentid.ToString());
- templateBuilder.Append("_menu" style="display: none">rn");
- int subnav__loop__id=0;
- foreach(DataRow subnav in subnavigation.Rows)
- {
- subnav__loop__id++;
- bool isoutput = false;
-
- if (subnav["parentid"].ToString().Trim()==prentid)
- {
- if (subnav["level"].ToString().Trim()=="0")
- {
- isoutput = true;
-
- }
- else
- {
- if (subnav["level"].ToString().Trim()=="1" && userid!=-1)
- {
- isoutput = true;
-
- }
- else
- {
- bool leveluseradmindi = true;
-
- leveluseradmindi = (useradminid==3 || useradminid==1 || useradminid==2);
-
- if (subnav["level"].ToString().Trim()=="2" && leveluseradmindi)
- {
- isoutput = true;
-
- } //end if
- if (subnav["level"].ToString().Trim()=="3" && useradminid==1)
- {
- isoutput = true;
-
- } //end if
- } //end if
- } //end if
- } //end if
- if (isoutput)
- {
- if (subnav["id"].ToString().Trim()=="11" || subnav["id"].ToString().Trim()=="12")
- {
- if (config.Statstatus==1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="18")
- {
- if (config.Oltimespan>0)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="24")
- {
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="25")
- {
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="26")
- {
- if (config.Enablemall>=1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- } //end if
- } //end loop
- templateBuilder.Append("</ul>rn");
- } //end loop
- templateBuilder.Append("</body>rn");
- templateBuilder.Append("</html>rn");
- }
- else
- {
- templateBuilder.Append("]]></root>rn");
- } //end if
- Response.Write(templateBuilder.ToString());
- }
- </script>