override protected void OnLoad(EventArgs e) { /* * This page was created by Discuz!NT Template Engine at 2008/10/13 15:55:41. * 本页面代码由Discuz!NT模板引擎生成于 2008/10/13 15:55:41. */ base.OnLoad(e); templateBuilder.Append("<div id=\"foruminfo\">\r\n"); templateBuilder.Append(" <div id=\"nav\">\r\n"); templateBuilder.Append(" <a href=\""+ config.Forumurl.ToString().Trim() + "\" class=\"home\">" + config.Forumtitle.ToString().Trim() + "</a> » <a href=\"usercp.aspx\">用户中心</a> » <strong>撰写短消息</strong>\r\n"); templateBuilder.Append(" </div>\r\n"); templateBuilder.Append(" <div id=\"headsearch\">\r\n"); templateBuilder.Append(" <div id=\"search\">\r\n"); templateBuilder.Append(" <form method=\"post\" action=\"search.aspx\" target=\"_blank\" onsubmit=\"bind_keyword(this);\">\r\n"); templateBuilder.Append(" <input type=\"hidden\" name=\"poster\" />\r\n"); templateBuilder.Append(" <input type=\"hidden\" name=\"keyword\" />\r\n"); templateBuilder.Append(" <input type=\"hidden\" name=\"type\" value=\"\" />\r\n"); templateBuilder.Append(" <input id=\"keywordtype\" type=\"hidden\" name=\"keywordtype\" value=\"0\"/>\r\n"); templateBuilder.Append(" <div id=\"searchbar\">\r\n"); templateBuilder.Append(" <dl>\r\n"); templateBuilder.Append(" <dt id=\"quicksearch\" class=\"s2\" onclick=\"showMenu(this.id, false);\" onmouseover=\"MouseCursor(this);\">帖子标题</dt>\r\n"); templateBuilder.Append(" <dd class=\"textinput\"><input type=\"text\" name=\"keywordf\" value=\"\" class=\"text\"/></dd>\r\n"); templateBuilder.Append(" <dd><input name=\"searchsubmit\" type=\"submit\" value=\"\" class=\"s3\"/></dd>\r\n"); templateBuilder.Append(" </dl>\r\n"); templateBuilder.Append(" </div>\r\n"); templateBuilder.Append(" </form>\r\n"); templateBuilder.Append(" <script type=\"text/javascript\">function bind_keyword(form){if(form.keywordtype.value=='8'){form.keyword.value='';form.poster.value=form.keywordf.value; } else { form.poster.value=''; form.keyword.value=form.keywordf.value;if(form.keywordtype.value == '2')form.type.value = 'spacepost';if(form.keywordtype.value == '3')form.type.value = 'album';}}</"+ "script>\r\n"); templateBuilder.Append(" </div>\r\n"); templateBuilder.Append(" </div>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("<!--主体-->\r\n"); templateBuilder.Append("<div class=\"controlpannel\">\r\n"); templateBuilder.Append("<div class=\"pannelmenu\">\r\n"); if (userid > 0) { if (pagename == "usercptopic.aspx" || pagename == "usercppost.aspx" || pagename == "usercpdigest.aspx" || pagename == "usercpprofile.aspx" || pagename == "usercpnewpassword.aspx" || pagename == "usercppreference.aspx") { templateBuilder.Append(" <a href=\"usercpprofile.aspx\" class=\"current\"><span>个人设置</span></a>\r\n"); } else { templateBuilder.Append(" <a href=\"usercpprofile.aspx\">个人设置</a>\r\n"); } //end if if (pagename == "usercpinbox.aspx" || pagename == "usercpsentbox.aspx" || pagename == "usercpdraftbox.aspx" || pagename == "usercppostpm.aspx" || pagename == "usercpshowpm.aspx" || pagename == "usercppmset.aspx") { templateBuilder.Append(" <a href=\"usercpinbox.aspx\" class=\"current\"><span>短消息</span></a>\r\n"); } else { templateBuilder.Append(" <a href=\"usercpinbox.aspx\">短消息</a>\r\n"); } //end if if (pagename == "usercpsubscribe.aspx") { templateBuilder.Append(" <a href=\"usercpsubscribe.aspx\" class=\"current\"><span>收藏夹</span></a>\r\n"); } else { templateBuilder.Append(" <a href=\"usercpsubscribe.aspx\">收藏夹</a>\r\n"); } //end if if (pagename == "usercpcreditspay.aspx" || pagename == "usercpcreditstransfer.aspx" || pagename == "usercpcreditspayoutlog.aspx" || pagename == "usercpcreditspayinlog.aspx" || pagename == "usercpcreaditstransferlog.aspx") { templateBuilder.Append(" <a href=\"usercpcreditspay.aspx\" class=\"current\"><span>金币交易</span></a>\r\n"); } else { templateBuilder.Append(" <a href=\"usercpcreditspay.aspx\">金币交易</a>\r\n"); } //end if if (pagename == "usercpforumsetting.aspx") { templateBuilder.Append(" <a href=\"usercpforumsetting.aspx\" class=\"current\"><span>论坛设置</span></a>\r\n"); } else { templateBuilder.Append(" <a href=\"usercpforumsetting.aspx\">论坛设置</a>\r\n"); } //end if } //end if templateBuilder.Append(" </div>\r\n"); templateBuilder.Append(" <div class=\"pannelcontent\">\r\n"); templateBuilder.Append(" <div class=\"pcontent\">\r\n"); templateBuilder.Append(" <div class=\"panneldetail\">\r\n"); templateBuilder.Append(" <div class=\"panneltabs\">\r\n"); if (userid > 0) { templateBuilder.Append(" <a href=\"usercpinbox.aspx\"\r\n"); if (pagename == "usercpinbox.aspx") { templateBuilder.Append(" class=\"current\"\r\n"); } //end if templateBuilder.Append(">收件箱</a>\r\n"); templateBuilder.Append(" <a href=\"usercpsentbox.aspx\"\r\n"); if (pagename == "usercpsentbox.aspx") { templateBuilder.Append(" class=\"current\"\r\n"); } //end if templateBuilder.Append(">发件箱</a>\r\n"); templateBuilder.Append(" <a href=\"usercpdraftbox.aspx\"\r\n"); if (pagename == "usercpdraftbox.aspx") { templateBuilder.Append(" class=\"current\"\r\n"); } //end if templateBuilder.Append(">草稿箱</a>\r\n"); templateBuilder.Append(" <a href=\"usercppmset.aspx\"\r\n"); if (pagename == "usercppmset.aspx") { templateBuilder.Append(" class=\"current\"\r\n"); } //end if templateBuilder.Append(">选项</a>\r\n"); templateBuilder.Append(" <a href=\"usercppostpm.aspx\"\r\n"); if (pagename == "usercppostpm.aspx") { templateBuilder.Append(" class=\"current addbutton\"\r\n"); } else { templateBuilder.Append(" class=\"addbutton\"\r\n"); } //end if templateBuilder.Append(">写新消息</a>\r\n"); } //end if templateBuilder.Append(" </div> \r\n"); templateBuilder.Append(" <div class=\"pannelbody\">\r\n"); templateBuilder.Append(" <div class=\"pannellist\">\r\n"); if (page_err == 0) { if (ispost) { templateBuilder.Append("<div class=\"box message\">\r\n"); templateBuilder.Append(" <h1>彩友提示信息</h1>\r\n"); templateBuilder.Append(" <p>"+ msgbox_text.ToString() + "</p>\r\n"); if (msgbox_url != "") { templateBuilder.Append(" <p><a href=\""+ msgbox_url.ToString() + "\">如果浏览器没有转向, 请点击这里.</a></p>\r\n"); } //end if templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</div>\r\n"); } else { templateBuilder.Append(" <form id=\"postpm\" name=\"postpm\" method=\"post\" action=\"\">\r\n"); templateBuilder.Append(" <label for=\"user\" class=\"labelshort\">收件人:</label>\r\n"); templateBuilder.Append(" <input name=\"msgto\" type=\"text\" id=\"msgto\" value=\""+ msgto.ToString() + "\" size=\"20\" /><br />\r\n"); templateBuilder.Append(" <label for=\"email\" class=\"labelshort\">标题:</label>\r\n"); templateBuilder.Append(" <input name=\"subject\" type=\"text\"id=\"subject\" value=\""+ subject.ToString() + "\" size=\"40\" /><br />\r\n"); templateBuilder.Append(" <label for=\"comment\" class=\"labelshort\">内容:</label>\r\n"); templateBuilder.Append(" <textarea name=\"message\" cols=\"80\" rows=\"20\" id=\"message\" onkeydown=\"if((event.ctrlKey && event.keyCode == 13) || (event.altKey && event.keyCode == 83)) document.getElementById('postpm').submit();\" style=\"width:80%;\">"+ message.ToString() + "</textarea><br/>\r\n"); templateBuilder.Append(" <label for=\"savetosentbox\" class=\"labelshort\"> </label>\r\n"); templateBuilder.Append(" <input name=\"savetosentbox\" type=\"checkbox\" id=\"Checkbox1\" value=\"1\" style=\"border:0;\" />发送的同时保存到发件箱 \r\n"); templateBuilder.Append(" <input type=\"checkbox\" name=\"emailnotify\" id=\"emailnotify\" />邮件通知<br />\r\n"); if (isseccode) { templateBuilder.Append(" <label for=\"savetosentbox\" class=\"labelshort\">验证码</label>\r\n"); templateBuilder.Append("<!-- onkeydown=\"return (event.keyCode ? event.keyCode : event.which ? event.which : event.charCode) != 13\"-->\r\n"); templateBuilder.Append("<input size=\"10\" style=\"width:50px;\" class=\"colorblue\" onfocus=\"this.className='colorfocus';\" onblur=\"this.className='colorblue';\" onkeyup=\"changevcode(this.form, this.value);\" />\r\n"); templateBuilder.Append(" \r\n"); templateBuilder.Append("<img src=\"tools/VerifyImagePage.aspx?time=" + Processtime.ToString() + "\" class=\"cursor\" id=\"vcodeimg\" onclick=\"this.src='tools/VerifyImagePage.aspx?id=" + olid.ToString() + "&time=' + Math.random();\" />\r\n"); templateBuilder.Append("<input name=\"reloadvcade\" type=\"button\" class=\"colorblue\" id=\"reloadvcade\" value=\"刷新验证码\" onclick=\"document.getElementById('vcodeimg').src='tools/VerifyImagePage.aspx?time=' + Math.random();\" tabindex=\"-1\" style=\"color:#99cc00; width:75px;\" />\r\n"); templateBuilder.Append("<script type=\"text/javascript\">\r\n"); templateBuilder.Append(" $('vcodeimg').src='tools/VerifyImagePage.aspx?bgcolor=F5FAFE&time=' + Math.random();\r\n"); templateBuilder.Append(" //document.getElementById('vcode').value = \"\";\r\n"); templateBuilder.Append(" function changevcode(form, value)\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" if (!$('vcode'))\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" var vcode = document.createElement('input');\r\n"); templateBuilder.Append(" vcode.id = 'vcode';\r\n"); templateBuilder.Append(" vcode.name = 'vcode';\r\n"); templateBuilder.Append(" vcode.type = 'hidden';\r\n"); templateBuilder.Append(" vcode.value = value;\r\n"); templateBuilder.Append(" form.appendChild(vcode);\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append(" else\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" $('vcode').value = value;\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append("</" + "script>\r\n"); templateBuilder.Append("<br />\r\n"); } //end if templateBuilder.Append(" <label for=\"savetosentbox\" class=\"labelshort\"> </label>\r\n"); templateBuilder.Append(" <input name=\"sendmsg\" type=\"submit\" id=\"sendmsg\" value=\"立即发送\"/>\r\n"); templateBuilder.Append(" <input name=\"savetousercpdraftbox\" type=\"submit\" id=\"savetousercpdraftbox\" value=\"存为草稿\"/>\r\n"); templateBuilder.Append(" [完成后可按Ctrl+Enter提交]\r\n"); templateBuilder.Append(" </form>\r\n"); } //end if templateBuilder.Append(" </div>\r\n"); } else { templateBuilder.Append("<div class=\"box message\">\r\n"); templateBuilder.Append(" <h1>错误显示</h1>\r\n"); templateBuilder.Append(" <p>"+ msgbox_text.ToString() + "</p>\r\n"); templateBuilder.Append(" <p class=\"errorback\">\r\n"); templateBuilder.Append(" <script type=\"text/javascript\">\r\n"); templateBuilder.Append(" if("+ msgbox_showbacklink.ToString() + ")\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" document.write(\"<a href=\\\""+ msgbox_backlink.ToString() + "\\\">返回上一步</a> | \");\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append(" </"+ "script>\r\n"); templateBuilder.Append(" <a href=\"forumindex.aspx\">论坛首页</a>\r\n"); if (usergroupid == 7) { templateBuilder.Append(" | <a href=\"register.aspx\">注册</a>\r\n"); } //end if templateBuilder.Append(" </p>\r\n"); templateBuilder.Append("</div>\r\n"); } //end if templateBuilder.Append(" </div>\r\n"); templateBuilder.Append(" </div>\r\n"); templateBuilder.Append(" </div>\r\n"); templateBuilder.Append(" </div>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("<!--主体-->\r\n"); if (footerad != "") { templateBuilder.Append("<!--底部广告显示-->\r\n"); templateBuilder.Append("<div id=\"ad_footerbanner\">" + footerad.ToString() + "</div>\r\n"); templateBuilder.Append("<!--底部广告结束-->\r\n"); } //end if templateBuilder.Append(Discuz.Web.UI.PageElement.Bottom); templateBuilder.Append("<ul class=\"popupmenu_popup headermenu_popup\" id=\"stats_menu\" style=\"display: none\">\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx\">基本状况</a></li>\r\n"); if (config.Statstatus == 1) { templateBuilder.Append(" <li><a href=\"stats.aspx?type=views\">流量统计</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=client\">客户软件</a></li>\r\n"); } //end if templateBuilder.Append(" <li><a href=\"stats.aspx?type=posts\">发帖量记录</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=forumsrank\">版块排行</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=topicsrank\">主题排行</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=postsrank\">发帖排行</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=creditsrank\">金币排行</a></li>\r\n"); if (config.Oltimespan > 0) { templateBuilder.Append(" <li><a href=\"stats.aspx?type=onlinetime\">在线时间</a></li>\r\n"); } //end if templateBuilder.Append("</ul>\r\n"); templateBuilder.Append("<ul class=\"popupmenu_popup headermenu_popup\" id=\"my_menu\" style=\"display: none\">\r\n"); templateBuilder.Append(" <li><a href=\"mytopics.aspx\">我的主题</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"myposts.aspx\">我的帖子</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"search.aspx?posterid="+ userid.ToString() + "&type=digest\">我的精华</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"myattachment.aspx\">我的附件</a></li>\r\n"); if (userid > 0) { templateBuilder.Append(" <li><a href=\"usercpsubscribe.aspx\">我的收藏</a></li>\r\n"); } //end if templateBuilder.Append(" <script type=\"text/javascript\" src=\"javascript/mymenu.js\"></"+ "script>\r\n"); templateBuilder.Append("</ul>\r\n"); templateBuilder.Append("<ul class=\"popupmenu_popup\" id=\"viewpro_menu\" style=\"display: none\">\r\n"); if (useravatar != "") { templateBuilder.Append(" <img src=\""+ useravatar.ToString() + "\"/>\r\n"); } //end if aspxrewriteurl = this.UserInfoAspxRewrite(userid); templateBuilder.Append(" <li class=\"popuser\"><a href=\""+ aspxrewriteurl.ToString() + "\">我的资料</a></li>\r\n"); templateBuilder.Append("</ul>\r\n"); templateBuilder.Append("<div id=\"quicksearch_menu\" class=\"searchmenu\" style=\"display: none;\">\r\n"); templateBuilder.Append(" <div onclick=\"document.getElementById('keywordtype').value='0';document.getElementById('quicksearch').innerHTML='帖子标题';document.getElementById('quicksearch_menu').style.display='none';\" onmouseover=\"MouseCursor(this);\">帖子标题</div>\r\n"); templateBuilder.Append(" <div onclick=\"document.getElementById('keywordtype').value='8';document.getElementById('quicksearch').innerHTML='作 者';document.getElementById('quicksearch_menu').style.display='none';\" onmouseover=\"MouseCursor(this);\">作 者</div>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</body>\r\n"); templateBuilder.Append("</html>\r\n"); Response.Write(templateBuilder.ToString()); }
override protected void OnLoad(EventArgs e) { /* * This page was created by Discuz!NT Template Engine at 2008/10/13 15:55:14. * 本页面代码由Discuz!NT模板引擎生成于 2008/10/13 15:55:14. */ base.OnLoad(e); templateBuilder.Append("<div id=\"foruminfo\">\r\n"); templateBuilder.Append(" <div id=\"nav\"><a href=\""+ config.Forumurl.ToString().Trim() + "\">" + config.Forumtitle.ToString().Trim() + "</a> » 用户登录</div>\r\n"); templateBuilder.Append("</div>\r\n"); if (ispost && !loginsubmit) { if (page_err == 0) { templateBuilder.Append("<div class=\"box message\">\r\n"); templateBuilder.Append(" <h1>彩友提示信息</h1>\r\n"); templateBuilder.Append(" <p>"+ msgbox_text.ToString() + "</p>\r\n"); if (msgbox_url != "") { templateBuilder.Append(" <p><a href=\""+ config.Forumurl.ToString().Trim() + "\">如果浏览器没有转向, 请点击这里.</a></p>\r\n"); } //end if templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</div>\r\n"); } else { templateBuilder.Append("<div class=\"box message\">\r\n"); templateBuilder.Append(" <h1>出现了"+ page_err.ToString() + "个错误</h1>\r\n"); templateBuilder.Append(" <p>"+ msgbox_text.ToString() + "</p>\r\n"); templateBuilder.Append(" <p class=\"errorback\">\r\n"); templateBuilder.Append(" <script type=\"text/javascript\">\r\n"); templateBuilder.Append(" if("+ msgbox_showbacklink.ToString() + ")\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" document.write(\"<a href=\\\""+ msgbox_backlink.ToString() + "\\\">返回上一步</a> |   \");\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append(" </"+ "script>\r\n"); templateBuilder.Append(" <a href=\"forumindex.aspx\">论坛首页</a>\r\n"); if (usergroupid == 7) { templateBuilder.Append("  | <a href=\"register.aspx\">注册</a>\r\n"); } //end if templateBuilder.Append(" </p>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</div>\r\n"); } //end if } else { templateBuilder.Append("<form id=\"form1\" name=\"form1\" method=\"post\" \r\n"); if (loginauth != "") { templateBuilder.Append("action=\"login.aspx?loginauth=" + loginauth.ToString() + "&referer=" + referer.ToString() + "\"\r\n"); } else { templateBuilder.Append("action=\"\"\r\n"); } //end if templateBuilder.Append(">\r\n"); templateBuilder.Append("<div class=\"mainbox formbox\">\r\n"); templateBuilder.Append(" <h1>用户登录</h1>\r\n"); templateBuilder.Append(" <table summary=\"会员登录\" cellspacing=\"0\" cellpadding=\"0\">\r\n"); templateBuilder.Append(" <tbody>\r\n"); templateBuilder.Append(" <tr>\r\n"); templateBuilder.Append(" <th onclick=\"document.login.username.focus();\">\r\n"); templateBuilder.Append(" <label>用户名</label>\r\n"); templateBuilder.Append(" </th>\r\n"); templateBuilder.Append(" <td>\r\n"); templateBuilder.Append(" <input name=\"username\" type=\"text\" id=\"username\" size=\"20\" value=\""+ postusername.ToString() + "\" tabindex=\"4\" /> <a href=\"register.aspx\" tabindex=\"-1\" accesskey=\"r\" title=\"立即注册 (ALT + R)\">立即注册</a>\r\n"); templateBuilder.Append(" </td>\r\n"); templateBuilder.Append(" </tr>\r\n"); templateBuilder.Append(" </tbody>\r\n"); if (loginauth == "") { templateBuilder.Append(" <tbody>\r\n"); templateBuilder.Append(" <tr>\r\n"); templateBuilder.Append(" <th><label for=\"password\">密码</label></th>\r\n"); templateBuilder.Append(" <td> \r\n"); templateBuilder.Append(" <input name=\"password\" type=\"password\" id=\"password\" size=\"20\" tabindex=\"5\" /> <a href=\"getpassword.aspx\" tabindex=\"-1\" accesskey=\"g\" title=\"忘记密码 (ALT + G)\">忘记密码</a>\r\n"); templateBuilder.Append(" </td>\r\n"); templateBuilder.Append(" </tr>\r\n"); templateBuilder.Append(" </tbody>\r\n"); } //end if if (isseccode) { templateBuilder.Append(" <tbody>\r\n"); templateBuilder.Append(" <tr>\r\n"); templateBuilder.Append(" <th><label for=\"formcode\">验证码:</label></th>\r\n"); templateBuilder.Append(" <td>\r\n"); templateBuilder.Append("<!-- onkeydown=\"return (event.keyCode ? event.keyCode : event.which ? event.which : event.charCode) != 13\"-->\r\n"); templateBuilder.Append("<input size=\"10\" style=\"width:50px;\" class=\"colorblue\" onfocus=\"this.className='colorfocus';\" onblur=\"this.className='colorblue';\" onkeyup=\"changevcode(this.form, this.value);\" />\r\n"); templateBuilder.Append(" \r\n"); templateBuilder.Append("<img src=\"tools/VerifyImagePage.aspx?time=" + Processtime.ToString() + "\" class=\"cursor\" id=\"vcodeimg\" onclick=\"this.src='tools/VerifyImagePage.aspx?id=" + olid.ToString() + "&time=' + Math.random();\" />\r\n"); templateBuilder.Append("<input name=\"reloadvcade\" type=\"button\" class=\"colorblue\" id=\"reloadvcade\" value=\"刷新验证码\" onclick=\"document.getElementById('vcodeimg').src='tools/VerifyImagePage.aspx?time=' + Math.random();\" tabindex=\"-1\" style=\"color:#99cc00; width:75px;\" />\r\n"); templateBuilder.Append("<script type=\"text/javascript\">\r\n"); templateBuilder.Append(" $('vcodeimg').src='tools/VerifyImagePage.aspx?bgcolor=F5FAFE&time=' + Math.random();\r\n"); templateBuilder.Append(" //document.getElementById('vcode').value = \"\";\r\n"); templateBuilder.Append(" function changevcode(form, value)\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" if (!$('vcode'))\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" var vcode = document.createElement('input');\r\n"); templateBuilder.Append(" vcode.id = 'vcode';\r\n"); templateBuilder.Append(" vcode.name = 'vcode';\r\n"); templateBuilder.Append(" vcode.type = 'hidden';\r\n"); templateBuilder.Append(" vcode.value = value;\r\n"); templateBuilder.Append(" form.appendChild(vcode);\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append(" else\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" $('vcode').value = value;\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append("</" + "script>\r\n"); templateBuilder.Append(" </td>\r\n"); templateBuilder.Append(" </tr>\r\n"); templateBuilder.Append(" </tbody>\r\n"); } //end if if (config.Secques == 1) { templateBuilder.Append(" <tbody>\r\n"); templateBuilder.Append(" <tr>\r\n"); templateBuilder.Append(" <th><label for=\"question\">安全提问</label></th>\r\n"); templateBuilder.Append(" <td>\r\n"); templateBuilder.Append(" <select name=\"question\" id=\"question\" tabindex=\"6\">\r\n"); templateBuilder.Append(" <option value=\"0\" selected=\"selected\">无</option>\r\n"); templateBuilder.Append(" <option value=\"1\">母亲的名字</option>\r\n"); templateBuilder.Append(" <option value=\"2\">爷爷的名字</option>\r\n"); templateBuilder.Append(" <option value=\"3\">父亲出生的城市</option>\r\n"); templateBuilder.Append(" <option value=\"4\">您其中一位老师的名字</option>\r\n"); templateBuilder.Append(" <option value=\"5\">您个人计算机的型号</option>\r\n"); templateBuilder.Append(" <option value=\"6\">您最喜欢的餐馆名称</option>\r\n"); templateBuilder.Append(" <option value=\"7\">驾驶执照的最后四位数字</option>\r\n"); templateBuilder.Append(" </select>\r\n"); templateBuilder.Append(" </td>\r\n"); templateBuilder.Append(" </tr>\r\n"); templateBuilder.Append(" </tbody>\r\n"); templateBuilder.Append(" <tbody>\r\n"); templateBuilder.Append(" <tr>\r\n"); templateBuilder.Append(" <th><label for=\"question\">答案</label></th>\r\n"); templateBuilder.Append(" <td><input name=\"answer\" type=\"text\" id=\"answer\" size=\"50\" tabindex=\"7\" /><br/>如果您设置了安全提问,请在此输入正确的问题和回答</td>\r\n"); templateBuilder.Append(" </tr>\r\n"); templateBuilder.Append(" </tbody>\r\n"); } //end if //templateBuilder.Append(" <tbody>\r\n"); //templateBuilder.Append(" <tr>\r\n"); //templateBuilder.Append(" <th><label for=\"expires\">有效时间</label></th>\r\n"); //templateBuilder.Append(" <td>\r\n"); //templateBuilder.Append(" <input type=\"radio\" name=\"expires\" value=\"5256000\" tabindex=\"8\" />永久\r\n"); //templateBuilder.Append(" <input name=\"expires\" type=\"radio\" value=\"43200\" checked tabindex=\"9\" />一个月 \r\n"); //templateBuilder.Append(" <input type=\"radio\" name=\"expires\" value=\"1440\" tabindex=\"10\" />一天 \r\n"); //templateBuilder.Append(" <input type=\"radio\" name=\"expires\" value=\"60\" tabindex=\"11\" />一小时 \r\n"); //templateBuilder.Append(" <input type=\"radio\" name=\"expires\" value=\"0\" tabindex=\"12\" />浏览器进程\r\n"); //templateBuilder.Append(" </td>\r\n"); //templateBuilder.Append(" </tr>\r\n"); //templateBuilder.Append(" </tbody>\r\n"); templateBuilder.Append(" <tbody>\r\n"); templateBuilder.Append(" <tr>\r\n"); templateBuilder.Append(" <th><label for=\"templateid\">界面风格</label></th>\r\n"); templateBuilder.Append(" <td class=\"formbody\">\r\n"); templateBuilder.Append(" <select name=\"templateid\" tabindex=\"13\"><option value=\"0\">- 使用默认 -</option>\r\n"); templateBuilder.Append(" "+ templatelistboxoptions.ToString() + "\r\n"); templateBuilder.Append(" </select>\r\n"); templateBuilder.Append(" </td>\r\n"); templateBuilder.Append(" </tr>\r\n"); templateBuilder.Append(" </tbody>\r\n"); templateBuilder.Append(" <tbody>\r\n"); templateBuilder.Append(" <tr>\r\n"); templateBuilder.Append(" <th><label for=\"templateid\"> </label></th>\r\n"); templateBuilder.Append(" <td>\r\n"); templateBuilder.Append(" <input name=\"login\" type=\"submit\" id=\"login\" value=\"登录\" onclick=\"javascript:window.location.replace('?agree=yes')\"/>\r\n"); templateBuilder.Append(" <input name=\"cancel\" type=\"button\" id=\"cancel\" value=\"取消\" onclick=\"javascript:window.location.replace('./index.aspx')\"/>\r\n"); templateBuilder.Append(" </td>\r\n"); templateBuilder.Append(" </tr>\r\n"); templateBuilder.Append(" </tbody>\r\n"); templateBuilder.Append(" </table>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("<script type=\"text/javascript\">\r\n"); templateBuilder.Append(" document.getElementById(\"username\").focus();\r\n"); templateBuilder.Append("</" + "script>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</form>\r\n"); } //end if if (footerad != "") { templateBuilder.Append("<!--底部广告显示-->\r\n"); templateBuilder.Append("<div id=\"ad_footerbanner\">" + footerad.ToString() + "</div>\r\n"); templateBuilder.Append("<!--底部广告结束-->\r\n"); } //end if templateBuilder.Append(Discuz.Web.UI.PageElement.Bottom); templateBuilder.Append("<ul class=\"popupmenu_popup headermenu_popup\" id=\"stats_menu\" style=\"display: none\">\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx\">基本状况</a></li>\r\n"); if (config.Statstatus == 1) { templateBuilder.Append(" <li><a href=\"stats.aspx?type=views\">流量统计</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=client\">客户软件</a></li>\r\n"); } //end if templateBuilder.Append(" <li><a href=\"stats.aspx?type=posts\">发帖量记录</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=forumsrank\">版块排行</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=topicsrank\">主题排行</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=postsrank\">发帖排行</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=creditsrank\">金币排行</a></li>\r\n"); if (config.Oltimespan > 0) { templateBuilder.Append(" <li><a href=\"stats.aspx?type=onlinetime\">在线时间</a></li>\r\n"); } //end if templateBuilder.Append("</ul>\r\n"); templateBuilder.Append("<ul class=\"popupmenu_popup headermenu_popup\" id=\"my_menu\" style=\"display: none\">\r\n"); templateBuilder.Append(" <li><a href=\"mytopics.aspx\">我的主题</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"myposts.aspx\">我的帖子</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"search.aspx?posterid="+ userid.ToString() + "&type=digest\">我的精华</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"myattachment.aspx\">我的附件</a></li>\r\n"); if (userid > 0) { templateBuilder.Append(" <li><a href=\"usercpsubscribe.aspx\">我的收藏</a></li>\r\n"); } //end if templateBuilder.Append(" <li><a href=\""+ spaceurl.ToString() + "space/\">我的空间</a></li>\r\n"); templateBuilder.Append(" <script type=\"text/javascript\" src=\"javascript/mymenu.js\"></"+ "script>\r\n"); templateBuilder.Append("</ul>\r\n"); templateBuilder.Append("<ul class=\"popupmenu_popup\" id=\"viewpro_menu\" style=\"display: none\">\r\n"); if (useravatar != "") { templateBuilder.Append(" <img src=\""+ useravatar.ToString() + "\"/>\r\n"); } //end if aspxrewriteurl = this.UserInfoAspxRewrite(userid); templateBuilder.Append(" <li class=\"popuser\"><a href=\""+ aspxrewriteurl.ToString() + "\">我的资料</a></li>\r\n"); templateBuilder.Append("</ul>\r\n"); templateBuilder.Append("<div id=\"quicksearch_menu\" class=\"searchmenu\" style=\"display: none;\">\r\n"); templateBuilder.Append(" <div onclick=\"document.getElementById('keywordtype').value='0';document.getElementById('quicksearch').innerHTML='帖子标题';document.getElementById('quicksearch_menu').style.display='none';\" onmouseover=\"MouseCursor(this);\">帖子标题</div>\r\n"); templateBuilder.Append(" <div onclick=\"document.getElementById('keywordtype').value='8';document.getElementById('quicksearch').innerHTML='作 者';document.getElementById('quicksearch_menu').style.display='none';\" onmouseover=\"MouseCursor(this);\">作 者</div>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</body>\r\n"); templateBuilder.Append("</html>\r\n"); Response.Write(templateBuilder.ToString()); }
override protected void OnLoad(EventArgs e) { /* * This page was created by Discuz!NT Template Engine at 2008/10/13 15:56:16. * 本页面代码由Discuz!NT模板引擎生成于 2008/10/13 15:56:16. */ base.OnLoad(e); templateBuilder.Append("<div id=\"foruminfo\">\r\n"); templateBuilder.Append(" <div id=\"nav\"><a href=\""+ config.Forumurl.ToString().Trim() + "\" class=\"home\">" + config.Forumtitle.ToString().Trim() + "</a> » 密码重置</div>\r\n"); templateBuilder.Append("</div>\r\n"); if (ispost) { if (page_err == 0) { templateBuilder.Append("<div class=\"box message\">\r\n"); templateBuilder.Append(" <h1>彩友提示信息</h1>\r\n"); templateBuilder.Append(" <p>"+ msgbox_text.ToString() + "</p>\r\n"); if (msgbox_url != "") { templateBuilder.Append(" <p><a href=\""+ msgbox_url.ToString() + "\">如果浏览器没有转向, 请点击这里.</a></p>\r\n"); } //end if templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</div>\r\n"); } else { templateBuilder.Append("<div class=\"box message\">\r\n"); templateBuilder.Append(" <h1>出现了"+ page_err.ToString() + "个错误</h1>\r\n"); templateBuilder.Append(" <p>"+ msgbox_text.ToString() + "</p>\r\n"); templateBuilder.Append(" <p class=\"errorback\">\r\n"); templateBuilder.Append(" <script type=\"text/javascript\">\r\n"); templateBuilder.Append(" if("+ msgbox_showbacklink.ToString() + ")\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" document.write(\"<a href=\\\""+ msgbox_backlink.ToString() + "\\\">返回上一步</a> |   \");\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append(" </"+ "script>\r\n"); templateBuilder.Append(" <a href=\"forumindex.aspx\">论坛首页</a>\r\n"); if (usergroupid == 7) { templateBuilder.Append("  | <a href=\"register.aspx\">注册</a>\r\n"); } //end if templateBuilder.Append(" </p>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</div>\r\n"); } //end if } else { if (page_err == 0) { templateBuilder.Append("<form id=\"form1\" name=\"form1\" method=\"post\" action=\"setnewpassword.aspx#\"> \r\n"); templateBuilder.Append("<div class=\"mainbox\">\r\n"); templateBuilder.Append(" <h3>密码重置</h3>\r\n"); templateBuilder.Append(" <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" summary=\"密码重置\">\r\n"); templateBuilder.Append(" <tbody>\r\n"); templateBuilder.Append(" <tr>\r\n"); templateBuilder.Append(" <th><label for=\"newpassword\">新密码</label></th>\r\n"); templateBuilder.Append(" <td>\r\n"); templateBuilder.Append(" <input name=\"newpassword\" type=\"password\" id=\"newpassword\" size=\"25\" />\r\n"); templateBuilder.Append(" <input name=\"uid\" type=\"hidden\" id=\"uid\" value=\""+ DNTRequest.GetString("uid") + "\" />\r\n"); templateBuilder.Append(" <input name=\"authstr\" type=\"hidden\" id=\"authstr\" value=\""+ DNTRequest.GetString("id") + "\" />\r\n"); templateBuilder.Append(" </td>\r\n"); templateBuilder.Append(" </tr>\r\n"); templateBuilder.Append(" </tbody>\r\n"); templateBuilder.Append(" <tbody>\r\n"); templateBuilder.Append(" <tr>\r\n"); templateBuilder.Append(" <th><label for=\"confirmpassword\">确认密码</label></th>\r\n"); templateBuilder.Append(" <td class=\"formbody\"><input name=\"confirmpassword\" type=\"password\" id=\"confirmpassword\" size=\"25\" >\r\n"); templateBuilder.Append(" </td>\r\n"); templateBuilder.Append(" </tr>\r\n"); templateBuilder.Append(" </tbody>\r\n"); if (isseccode) { templateBuilder.Append(" <tbody>\r\n"); templateBuilder.Append(" <tr>\r\n"); templateBuilder.Append(" <th><label for=\"vcode\">验证码</label></th>\r\n"); templateBuilder.Append(" <td>\r\n"); templateBuilder.Append("<!-- onkeydown=\"return (event.keyCode ? event.keyCode : event.which ? event.which : event.charCode) != 13\"-->\r\n"); templateBuilder.Append("<input size=\"10\" style=\"width:50px;\" class=\"colorblue\" onfocus=\"this.className='colorfocus';\" onblur=\"this.className='colorblue';\" onkeyup=\"changevcode(this.form, this.value);\" />\r\n"); templateBuilder.Append(" \r\n"); templateBuilder.Append("<img src=\"tools/VerifyImagePage.aspx?time=" + Processtime.ToString() + "\" class=\"cursor\" id=\"vcodeimg\" onclick=\"this.src='tools/VerifyImagePage.aspx?id=" + olid.ToString() + "&time=' + Math.random();\" />\r\n"); templateBuilder.Append("<input name=\"reloadvcade\" type=\"button\" class=\"colorblue\" id=\"reloadvcade\" value=\"刷新验证码\" onclick=\"document.getElementById('vcodeimg').src='tools/VerifyImagePage.aspx?time=' + Math.random();\" tabindex=\"-1\" style=\"color:#99cc00; width:75px;\" />\r\n"); templateBuilder.Append("<script type=\"text/javascript\">\r\n"); templateBuilder.Append(" $('vcodeimg').src='tools/VerifyImagePage.aspx?bgcolor=F5FAFE&time=' + Math.random();\r\n"); templateBuilder.Append(" //document.getElementById('vcode').value = \"\";\r\n"); templateBuilder.Append(" function changevcode(form, value)\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" if (!$('vcode'))\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" var vcode = document.createElement('input');\r\n"); templateBuilder.Append(" vcode.id = 'vcode';\r\n"); templateBuilder.Append(" vcode.name = 'vcode';\r\n"); templateBuilder.Append(" vcode.type = 'hidden';\r\n"); templateBuilder.Append(" vcode.value = value;\r\n"); templateBuilder.Append(" form.appendChild(vcode);\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append(" else\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" $('vcode').value = value;\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append("</" + "script>\r\n"); templateBuilder.Append("</td>\r\n"); templateBuilder.Append(" </tr>\r\n"); templateBuilder.Append(" </tbody>\r\n"); } //end if templateBuilder.Append(" <tbody>\r\n"); templateBuilder.Append(" <tr>\r\n"); templateBuilder.Append(" <th> </th>\r\n"); templateBuilder.Append(" <td>\r\n"); templateBuilder.Append(" <input name=\"login\" type=\"submit\" id=\"login\" value=\"确定\" onclick=\"javascript:location.replace('?agree=yes')\" />\r\n"); templateBuilder.Append(" <input name=\"cancel\" type=\"button\" id=\"cancel\" value=\"取消\" onclick=\"javascript:location.replace('/')\" />\r\n"); templateBuilder.Append(" </td>\r\n"); templateBuilder.Append(" </tr>\r\n"); templateBuilder.Append(" </tbody>\r\n"); templateBuilder.Append(" </table>\r\n"); templateBuilder.Append("</div> \r\n"); templateBuilder.Append("</form>\r\n"); templateBuilder.Append("</div>\r\n"); } else { templateBuilder.Append("<div class=\"box message\">\r\n"); templateBuilder.Append(" <h1>出现了"+ page_err.ToString() + "个错误</h1>\r\n"); templateBuilder.Append(" <p>"+ msgbox_text.ToString() + "</p>\r\n"); templateBuilder.Append(" <p class=\"errorback\">\r\n"); templateBuilder.Append(" <script type=\"text/javascript\">\r\n"); templateBuilder.Append(" if("+ msgbox_showbacklink.ToString() + ")\r\n"); templateBuilder.Append(" {\r\n"); templateBuilder.Append(" document.write(\"<a href=\\\""+ msgbox_backlink.ToString() + "\\\">返回上一步</a> |   \");\r\n"); templateBuilder.Append(" }\r\n"); templateBuilder.Append(" </"+ "script>\r\n"); templateBuilder.Append(" <a href=\"forumindex.aspx\">论坛首页</a>\r\n"); if (usergroupid == 7) { templateBuilder.Append("  | <a href=\"register.aspx\">注册</a>\r\n"); } //end if templateBuilder.Append(" </p>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</div>\r\n"); } //end if } //end if if (footerad != "") { templateBuilder.Append("<!--底部广告显示-->\r\n"); templateBuilder.Append("<div id=\"ad_footerbanner\">" + footerad.ToString() + "</div>\r\n"); templateBuilder.Append("<!--底部广告结束-->\r\n"); } //end if templateBuilder.Append(Discuz.Web.UI.PageElement.Bottom); templateBuilder.Append("<ul class=\"popupmenu_popup headermenu_popup\" id=\"stats_menu\" style=\"display: none\">\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx\">基本状况</a></li>\r\n"); if (config.Statstatus == 1) { templateBuilder.Append(" <li><a href=\"stats.aspx?type=views\">流量统计</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=client\">客户软件</a></li>\r\n"); } //end if templateBuilder.Append(" <li><a href=\"stats.aspx?type=posts\">发帖量记录</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=forumsrank\">版块排行</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=topicsrank\">主题排行</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=postsrank\">发帖排行</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"stats.aspx?type=creditsrank\">金币排行</a></li>\r\n"); if (config.Oltimespan > 0) { templateBuilder.Append(" <li><a href=\"stats.aspx?type=onlinetime\">在线时间</a></li>\r\n"); } //end if templateBuilder.Append("</ul>\r\n"); templateBuilder.Append("<ul class=\"popupmenu_popup headermenu_popup\" id=\"my_menu\" style=\"display: none\">\r\n"); templateBuilder.Append(" <li><a href=\"mytopics.aspx\">我的主题</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"myposts.aspx\">我的帖子</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"search.aspx?posterid="+ userid.ToString() + "&type=digest\">我的精华</a></li>\r\n"); templateBuilder.Append(" <li><a href=\"myattachment.aspx\">我的附件</a></li>\r\n"); if (userid > 0) { templateBuilder.Append(" <li><a href=\"usercpsubscribe.aspx\">我的收藏</a></li>\r\n"); } //end if templateBuilder.Append(" <script type=\"text/javascript\" src=\"javascript/mymenu.js\"></"+ "script>\r\n"); templateBuilder.Append("</ul>\r\n"); templateBuilder.Append("<ul class=\"popupmenu_popup\" id=\"viewpro_menu\" style=\"display: none\">\r\n"); if (useravatar != "") { templateBuilder.Append(" <img src=\""+ useravatar.ToString() + "\"/>\r\n"); } //end if aspxrewriteurl = this.UserInfoAspxRewrite(userid); templateBuilder.Append(" <li class=\"popuser\"><a href=\""+ aspxrewriteurl.ToString() + "\">我的资料</a></li>\r\n"); templateBuilder.Append("</ul>\r\n"); templateBuilder.Append("<div id=\"quicksearch_menu\" class=\"searchmenu\" style=\"display: none;\">\r\n"); templateBuilder.Append(" <div onclick=\"document.getElementById('keywordtype').value='0';document.getElementById('quicksearch').innerHTML='帖子标题';document.getElementById('quicksearch_menu').style.display='none';\" onmouseover=\"MouseCursor(this);\">帖子标题</div>\r\n"); templateBuilder.Append(" <div onclick=\"document.getElementById('keywordtype').value='8';document.getElementById('quicksearch').innerHTML='作 者';document.getElementById('quicksearch_menu').style.display='none';\" onmouseover=\"MouseCursor(this);\">作 者</div>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</div>\r\n"); templateBuilder.Append("</body>\r\n"); templateBuilder.Append("</html>\r\n"); Response.Write(templateBuilder.ToString()); }