posttopic.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:155k
- else
- {
- templateBuilder.Append("insertAttachTag('" + attachment["aid"].ToString().Trim() + "');rn");
- } //end if
- templateBuilder.Append("" title="点击这里将本附件插入帖子内容中当前光标的位置">插入</a>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">var attachimgurl_" + attachment["aid"].ToString().Trim() + " = ['attachment.aspx?attachmentid=" + attachment["aid"].ToString().Trim() + "', 400];</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <input type="hidden" value="" + attachment["aid"].ToString().Trim() + "" name="attachupdateid" />rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td class="attachname" title="" + attachment["filename"].ToString().Trim() + " " + attachment["postdatetime"].ToString().Trim() + " " + attachment["filesize"].ToString().Trim() + " 字节 下载" + attachment["downloads"].ToString().Trim() + "次">rn");
- templateBuilder.Append(" <a href="javascript:;" class="right" onclick="attachupdate('" + attachment["aid"].ToString().Trim() + "', this)">更新</a>rn");
- templateBuilder.Append(" <div id="attach" + attachment["aid"].ToString().Trim() + "">rn");
- templateBuilder.Append(" <p>rn");
- templateBuilder.Append(" <input type="hidden" name="attachupdatedesc" value="" + attachment["description"].ToString().Trim() + "" />rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="parentNode.innerHTML='<input type=\'text\' name=\'attachupdatedesc\' value=\'" + attachment["description"].ToString().Trim() + "\' size=\'25\' class=\'txt\' />'">描述</a>rn");
- templateBuilder.Append(" <spanrn");
- if (attachment["filetype"].ToString().Trim().IndexOf("image")>-1)
- {
- templateBuilder.Append(" onmouseover="showpreview(this, 'imgpreview_" + attachment["aid"].ToString().Trim() + "');"rn");
- } //end if
- templateBuilder.Append(">" + attachment["attachment"].ToString().Trim() + "</span>rn");
- templateBuilder.Append(" </p>rn");
- if (attachment["filetype"].ToString().Trim().IndexOf("image")>-1)
- {
- templateBuilder.Append(" <div id="imgpreview_" + attachment["aid"].ToString().Trim() + "" style="display: none; "><img id="preview_" + attachment["aid"].ToString().Trim() + "" style=" max-width: 200px; max-height: 200px" src="attachment.aspx?attachmentid=" + attachment["aid"].ToString().Trim() + "" onerror="this.onerror=null;try{ this.src=attachimgurl_" + attachment["aid"].ToString().Trim() + "; } catch(e){}" /></div>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <span id="attachupdate" + attachment["aid"].ToString().Trim() + ""></span>rn");
- templateBuilder.Append(" </td>rn");
- if (userid!=-1 && usergroupinfo.Allowsetattachperm==1)
- {
- templateBuilder.Append("<td class="attachview"><input name="attachupdatereadperm" value="" + attachment["readperm"].ToString().Trim() + "" size="1" class="txt" /></td>rn");
- } //end if
- if (topicattachscorefield>0 && usergroupinfo.Maxprice>0)
- {
- templateBuilder.Append("<td class="attachpr"><input name="attachupdateprice" value="" + attachment["attachprice"].ToString().Trim() + "" size="1" class="txt" /></td>rn");
- } //end if
- templateBuilder.Append(" <td class="attachdel"><input class="checkbox" name="deleteaid" value="" + attachment["aid"].ToString().Trim() + "" type="checkbox">删?</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </table>rn");
- } //end if
- } //end if
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" border="0" width="100%">rn");
- if (pagename.IndexOf("goods")<0 && config.Silverlight==1)
- {
- templateBuilder.Append(" <tbody id="attachuploadedhidden" style="display:none"><tr>rn");
- templateBuilder.Append(" <td class="attachnum"><span id="sl_localno[]"><img src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("images/attachicons/common_new.gif" /></span></td>rn");
- templateBuilder.Append(" <td class="attachctrl"><span id="sl_cpadd[]"></span></td>rn");
- templateBuilder.Append(" <td class="attachname">rn");
- templateBuilder.Append(" <span id="sl_deschidden[]" style="display:none">rn");
- templateBuilder.Append(" <a href="javascript:;" onclick='parentNode.innerHTML="<input type=\"text\" name=\"attachdesc\" size=\"25\" class=\"txt\" />"'>描述</a>rn");
- templateBuilder.Append(" <span id="attachfile[]"></span>rn");
- templateBuilder.Append(" <input type="text" name="sl_attachdesc" style="display:none" />rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" <input type="hidden" name="attachid" />rn");
- templateBuilder.Append(" </td>rn");
- if (userid!=-1 && usergroupinfo.Allowsetattachperm==1)
- {
- templateBuilder.Append("<td class="attachview"><input type="text" name="sl_readperm" value="0"size="1" class="txt" /></td>rn");
- } //end if
- if (topicattachscorefield>0 && usergroupinfo.Maxprice>0)
- {
- templateBuilder.Append("<td class="attachpr"><input type="text" name="sl_attachprice" value="0" size="1" class="txt" /></td>rn");
- } //end if
- if (config.Enablealbum==1 && caninsertalbum)
- {
- templateBuilder.Append(" <td style="vertical-align:top;">rn");
- templateBuilder.Append(" <select name="sl_albums" style="display:none">rn");
- templateBuilder.Append(" <option value="0"></option>rn");
- int album__loop__id=0;
- foreach(DataRow album in albumlist.Rows)
- {
- album__loop__id++;
- templateBuilder.Append(" <option value="" + album["albumid"].ToString().Trim() + "">" + album["title"].ToString().Trim() + "</option>rn");
- } //end loop
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </td>rn");
- } //end if
- templateBuilder.Append(" <td class="attachdel"><span id="sl_cpdel[]"></span></td>rn");
- templateBuilder.Append(" </tr></tbody>rn");
- } //end if
- templateBuilder.Append(" <tbody id="attachbodyhidden" style="display:none"><tr>rn");
- templateBuilder.Append(" <td class="attachnum"><span id="localno[]"><img src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("images/attachicons/common_new.gif" /></span></td>rn");
- templateBuilder.Append(" <td class="attachctrl"><span id="cpadd[]"></span></td>rn");
- templateBuilder.Append(" <td class="attachname">rn");
- templateBuilder.Append(" <span id="deschidden[]" style="display:none">rn");
- templateBuilder.Append(" <a href="javascript:;" onclick='parentNode.innerHTML="<input type=\"text\" name=\"attachdesc\" size=\"25\" class=\"txt\" />"'>描述</a>rn");
- templateBuilder.Append(" <span id="localfile[]"></span>rn");
- templateBuilder.Append(" <input type="text" name="attachdesc" style="display:none" />rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" <input type="hidden" name="localid" />rn");
- templateBuilder.Append(" </td>rn");
- if (userid!=-1 && usergroupinfo.Allowsetattachperm==1)
- {
- templateBuilder.Append("<td class="attachview"><input type="text" name="readperm" value="0"size="1" class="txt" /></td>rn");
- } //end if
- if (topicattachscorefield>0 && usergroupinfo.Maxprice>0)
- {
- templateBuilder.Append("<td class="attachpr"><input type="text" name="attachprice" value="0" size="1" class="txt" /></td>rn");
- } //end if
- if (config.Enablealbum==1 && caninsertalbum)
- {
- templateBuilder.Append(" <td style="vertical-align:top;">rn");
- if (albumlist.Rows.Count!=0)
- {
- templateBuilder.Append(" <select name="albums" style="display:none">rn");
- templateBuilder.Append(" <option value="0"></option>rn");
- int album__loop__id=0;
- foreach(DataRow album in albumlist.Rows)
- {
- album__loop__id++;
- templateBuilder.Append(" <option value="" + album["albumid"].ToString().Trim() + "">" + album["title"].ToString().Trim() + "</option>rn");
- } //end loop
- templateBuilder.Append(" </select>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- } //end if
- templateBuilder.Append(" <td class="attachdel"><span id="cpdel[]"></span></td>rn");
- templateBuilder.Append(" </tr></tbody>rn");
- templateBuilder.Append(" </table>rn");
- if (pagename.IndexOf("goods")<0 && config.Silverlight==1)
- {
- templateBuilder.Append(" <div id="swfattachlist">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" id="attachuploadednote" style="display:none;">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="attachnum"></td>rn");
- templateBuilder.Append(" <td>您有 <span id="attachuploadednotenum"></span> 个已经上传的附件<span id="maxattachnote" style="display: none;">, 只能使用前<span id="num2upload2"><strong>");
- templateBuilder.Append(config.Maxattachments.ToString().Trim());
- templateBuilder.Append("</strong></span>个</span> rn");
- templateBuilder.Append(" <a onclick="addAttachUploaded(attaches);" href="javascript:;">使用</a> <a onclick="attachlist()" href="javascript:;">忽略</a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" summary="post_attachbody" border="0" width="100%"><tbody id="attachuploaded"></tbody><tbody id="attachbody"></tbody></table>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("<div id="img_hidden" alt="1" style="position:absolute;top:-100000px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='image');width:");
- templateBuilder.Append(thumbwidth.ToString());
- templateBuilder.Append("px;height:");
- templateBuilder.Append(thumbheight.ToString());
- templateBuilder.Append("px"></div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript" reload="1">rn");
- templateBuilder.Append("var attaches = ");
- templateBuilder.Append(Discuz.Forum.Attachments.GetNoUsedAttachmentJson(userid).ToString().Trim());
- templateBuilder.Append(";rn");
- templateBuilder.Append("var aid = 1;rn");
- templateBuilder.Append("var auid = 1;rn");
- templateBuilder.Append("var thumbwidth = parseInt('");
- templateBuilder.Append(thumbwidth.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append("var thumbheight = parseInt('");
- templateBuilder.Append(thumbheight.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append("var attachexts = new Array();rn");
- templateBuilder.Append("var attachwh = new Array();rn");
- if (caninsertalbum)
- {
- templateBuilder.Append("var caninsertalbum = true;rn");
- }
- else
- {
- templateBuilder.Append("var caninsertalbum = false;rn");
- } //end if
- templateBuilder.Append("var maxattachments = parseInt('");
- templateBuilder.Append(config.Maxattachments.ToString().Trim());
- templateBuilder.Append("');rn");
- templateBuilder.Append("var num2upload = maxattachments;rn");
- templateBuilder.Append("var exts = '");
- templateBuilder.Append(attachextensionsnosize.ToString());
- templateBuilder.Append("';rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<div id="attachinfo" class="sitenote upfile" style="display:none;">rn");
- templateBuilder.Append(" <div class="cornerlayger">单个附件大小:<strong>");
- templateBuilder.Append(FormatBytes(usergroupinfo.Maxattachsize).ToString().Trim());
- templateBuilder.Append("</strong>, rn");
- templateBuilder.Append("今天可上传大小: <strong>");
- templateBuilder.Append(FormatBytes(attachsize).ToString());
- templateBuilder.Append("</strong> rn");
- templateBuilder.Append("最大附件数: <strong>");
- templateBuilder.Append(config.Maxattachments.ToString().Trim());
- templateBuilder.Append("</strong>, 还可上传 <span id="num2upload"><strong>");
- templateBuilder.Append(config.Maxattachments.ToString().Trim());
- templateBuilder.Append("</strong></span> 个附件 rn");
- templateBuilder.Append("附件类型: <strong>");
- templateBuilder.Append(attachextensionsnosize.ToString());
- templateBuilder.Append("</strong> rn");
- templateBuilder.Append("售价: <strong>最高 ");
- templateBuilder.Append(usergroupinfo.Maxprice.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(Scoresets.GetTopicAttachCreditsTransName().ToString().Trim());
- templateBuilder.Append("</strong>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="minicorner"></div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<div id="swfuploadbox" class="floatbox floatbox1 floatboxswf" style="display: none">rn");
- templateBuilder.Append(" <h3 class="float_ctrl">rn");
- templateBuilder.Append(" <emrn");
- if (infloat==0)
- {
- templateBuilder.Append(" style="display:none"rn");
- } //end if
- templateBuilder.Append("><button type="button" onclick="pagescrolls('swfreturn');return false">返回</button></em>rn");
- if (infloat==0)
- {
- templateBuilder.Append("<em>批量上传</em>rn");
- } //end if
- templateBuilder.Append(" <span id="swfclosebtn" style="display:none">rn");
- templateBuilder.Append(" <a href="javascript:;" class="float_close" onclick="swfuploadwin();" title="关闭">关闭</a>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </h3>rn");
- string authToken=Discuz.Common.DES.Encode(oluserinfo.Olid.ToString() + "," + oluserinfo.Username.ToString(), oluserinfo.Password.Substring(0, 10)).Replace("+", "[");
-
- if (pagename.IndexOf("goods")<0 && config.Silverlight==1)
- {
- templateBuilder.Append(" <script type="text/javascript" src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("silverlight/uploadfile/silverlight.js" reload="1"></");
- templateBuilder.Append("script> rn");
- templateBuilder.Append(" <div id="swfbox" style="display: none"> rn");
- templateBuilder.Append(" <object id="MultiUploadFile" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">rn");
- templateBuilder.Append(" <param name="source" value="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("silverlight/UploadFile/ClientBin/MultiFileUpload.xap"/>rn");
- templateBuilder.Append(" <param name="onError" value="onSilverlightError" />rn");
- templateBuilder.Append(" <param name="onLoad" value="onLoad" />rn");
- templateBuilder.Append(" <param name="background" value="aliceblue" />rn");
- templateBuilder.Append(" <param name="minRuntimeVersion" value="2.0.31005.0" />rn");
- templateBuilder.Append(" <param name="autoUpgrade" value="true" />rn");
- templateBuilder.Append(" <param name="initParams" value="forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append(",authToken=");
- templateBuilder.Append(authToken.ToString());
- templateBuilder.Append(",max=");
- templateBuilder.Append(config.Maxattachments.ToString().Trim());
- templateBuilder.Append("" /> rn");
- templateBuilder.Append(" <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration:none">rn");
- templateBuilder.Append(" <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>rn");
- templateBuilder.Append(" </a>rn");
- templateBuilder.Append(" </object></div>rn");
- } //end if
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("javascript/post_editor.js" reload="1" ></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" reload="1">rn");
- templateBuilder.Append("function addAttach() {rn");
- templateBuilder.Append(" if ($('attachbody').childNodes.length + ($('attachuploaded') ? $('attachuploaded').childNodes.length : 0) > maxattachments - 1){rn");
- templateBuilder.Append(" countNum2Upload();rn");
- templateBuilder.Append(" //num2upload++;rn");
- templateBuilder.Append(" return;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" var id = aid;rn");
- templateBuilder.Append(" var tags, newnode, i;rn");
- templateBuilder.Append(" newnode = $('attachbtnhidden').firstChild.cloneNode(true);rn");
- templateBuilder.Append(" tags = newnode.getElementsByTagName('input');rn");
- templateBuilder.Append(" for(i in tags) {rn");
- templateBuilder.Append(" if(tags[i].name == 'postfile') {rn");
- templateBuilder.Append(" tags[i].id = 'attachnew_' + id;rn");
- templateBuilder.Append(" tags[i].onchange = function() rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" insertAttach(id)rn");
- templateBuilder.Append(" };rn");
- templateBuilder.Append(" tags[i].unselectable = 'on';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" $('attachbtn').appendChild(newnode);rn");
- templateBuilder.Append(" newnode = $('attachbodyhidden').firstChild.cloneNode(true);rn");
- templateBuilder.Append(" tags = newnode.getElementsByTagName('input');rn");
- templateBuilder.Append(" for(i in tags) {rn");
- templateBuilder.Append(" if(tags[i].name == 'localid') {rn");
- templateBuilder.Append(" tags[i].value = id;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" tags = newnode.getElementsByTagName('span');rn");
- templateBuilder.Append(" for(i in tags) {rn");
- templateBuilder.Append(" if(tags[i].id == 'localfile[]') {rn");
- templateBuilder.Append(" tags[i].id = 'localfile_' + id;rn");
- templateBuilder.Append(" } else if(tags[i].id == 'cpadd[]') {rn");
- templateBuilder.Append(" tags[i].id = 'cpadd_' + id;rn");
- templateBuilder.Append(" } else if(tags[i].id == 'cpdel[]') {rn");
- templateBuilder.Append(" tags[i].id = 'cpdel_' + id;rn");
- templateBuilder.Append(" } else if(tags[i].id == 'localno[]') {rn");
- templateBuilder.Append(" tags[i].id = 'localno_' + id;rn");
- templateBuilder.Append(" } else if(tags[i].id == 'deschidden[]') {rn");
- templateBuilder.Append(" tags[i].id = 'deschidden_' + id;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" aid++;rn");
- templateBuilder.Append(" newnode.style.display = 'none';rn");
- templateBuilder.Append(" $('attachbody').appendChild(newnode);rn");
- templateBuilder.Append(" $('uploadlist').scrollTop = 10000;rn");
- templateBuilder.Append(" if (caninsertalbum) {rn");
- templateBuilder.Append(" tags = findtags(newnode, 'select');rn");
- templateBuilder.Append(" for(i in tags) {rn");
- templateBuilder.Append(" if(tags[i].name == 'albums') {rn");
- templateBuilder.Append(" tags[i].id = 'albums' + id;rn");
- templateBuilder.Append(" $('albums' + id).style.display='';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" countNum2Upload();rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("function initAttach() {rn");
- templateBuilder.Append("//_attachEvent(window, "load", function(){ rn");
- templateBuilder.Append(" tryrn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" //aid = 1;rn");
- templateBuilder.Append(" addAttach();rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" catch(e)rn");
- templateBuilder.Append(" {}rn");
- if (pagename.IndexOf("goods")<0 && config.Silverlight==1)
- {
- templateBuilder.Append(" if (attaches != null && attaches.length > 0) {rn");
- templateBuilder.Append(" $("attachuploadednotenum").innerHTML = attaches.length;rn");
- templateBuilder.Append(" $("attachuploadednote").style.display = "";rn");
- templateBuilder.Append(" attachlist();rn");
- templateBuilder.Append(" } rn");
- } //end if
- templateBuilder.Append(" if (attaches.length > maxattachments) { rn");
- templateBuilder.Append(" $("maxattachnote").style.display="";rn");
- templateBuilder.Append(" } rn");
- templateBuilder.Append(" //});rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("//addAttachUploaded(attaches);rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- }
- else
- {
- templateBuilder.Append(" <div class="hintinfo"> rn");
- templateBuilder.Append(" 你没有上传附件的权限.rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- }
- else
- {
- templateBuilder.Append(" <div class="hintinfo">rn");
- if (usergroupinfo.Maxsizeperday>0 && usergroupinfo.Maxattachsize>0)
- {
- templateBuilder.Append(" 你目前可上传的附件大小为 0 字节.rn");
- }
- else
- {
- templateBuilder.Append(" 你没有上传附件的权限.rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- } //end if
- } //end if
- templateBuilder.Append("</div>rn");
- if (infloat==1)
- {
- templateBuilder.Append("<div style="clear:both; width:2500px;overflow-x:hidden;">rn");
- }
- else
- {
- templateBuilder.Append("<div style="clear:both;">rn");
- } //end if
- if (infloat==1)
- {
- templateBuilder.Append("<div class="floatbox floatbox1" id="extcreditbox2"></div>rn");
- } //end if
- templateBuilder.Append(" <div class="floatbox floatbox1">rn");
- if (infloat==0)
- {
- templateBuilder.Append(" <h3 class="float_ctrl" style="display:none">rn");
- }
- else
- {
- templateBuilder.Append(" <h3 class="float_ctrl">rn");
- } //end if
- templateBuilder.Append(" <em><button type="button" onclick="pagescrolls('editorreturn');return false">返回</button></em>rn");
- templateBuilder.Append(" <span>rn");
- if (infloat==1)
- {
- templateBuilder.Append(" <a href="javascript:;" class="float_close" onclick="closeEditorwin();removeElement()" title="关闭">关闭</a>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </h3>rn");
- templateBuilder.Append(" <div class="postbox">rn");
- if (pagename=="posttopic.aspx" || (pagename=="editpost.aspx"&&isfirstpost))
- {
- if (enabletag)
- {
- templateBuilder.Append(" <div class="posttags">rn");
- templateBuilder.Append(" <p><strong>标签(Tags):</strong>(用空格隔开多个标签,最多可填写 5 个)</p>rn");
- templateBuilder.Append(" <p><input type="text" name="tags" id="tags" class="txt" value="");
- templateBuilder.Append(topictags.ToString());
- templateBuilder.Append("" tabindex="1" /><button name="addtags" type="button" onclick="relatekw();return false">+可用标签</button> <span id="tagselect"></span></p>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <div class="columntype">rn");
- if (userid!=-1 && usergroupinfo.Allowsetreadperm==1)
- {
- templateBuilder.Append(" <p><strong>阅读权限:</strong></p>rn");
- templateBuilder.Append(" <p><input type="text" name="topicreadperm" value="");
- templateBuilder.Append(topic.Readperm.ToString().Trim());
- templateBuilder.Append("" class="txt" tabindex="1" /> 0或空为不限制,最大值为 255</p>rn");
- } //end if
- if (special==""&&Scoresets.GetCreditsTrans()!=0 && usergroupinfo.Maxprice>0)
- {
- templateBuilder.Append(" <p><strong>售价</strong>(");
- templateBuilder.Append(userextcreditsinfo.Name.ToString().Trim());
- templateBuilder.Append("):</p>rn");
- templateBuilder.Append(" <p><input type="text" name="topicprice" value="");
- templateBuilder.Append(topic.Price.ToString().Trim());
- templateBuilder.Append("" class="txt" tabindex="1" /> ");
- templateBuilder.Append(userextcreditsinfo.Unit.ToString().Trim());
- templateBuilder.Append(" 最高 ");
- templateBuilder.Append(usergroupinfo.Maxprice.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(userextcreditsinfo.Unit.ToString().Trim());
- templateBuilder.Append(" 售价只允许非负整数, 单个主题最大收入 ");
- templateBuilder.Append(Scoresets.GetMaxIncPerTopic().ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(userextcreditsinfo.Unit.ToString().Trim());
- templateBuilder.Append("</p>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <div class="columntype">rn");
- templateBuilder.Append(" <h4>发帖选项:</h4>rn");
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" border="0">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="firstlist">rn");
- templateBuilder.Append(" <p><input type="checkbox" value="1" name="htmlon" id="htmlon" onclick="alloweditorhtml()" rn");
- if (usergroupinfo.Allowhtml!=1)
- {
- templateBuilder.Append("disabledrn");
- } //end if
- if (htmlon==1)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(" /><label for="htmlon">html 代码</label></p>rn");
- templateBuilder.Append(" <p><input type="checkbox" id="allowimgcode" disabledrn");
- if (allowimg==1)
- {
- templateBuilder.Append(" checked="checked"rn");
- } //end if
- templateBuilder.Append(" /><label for="allowimgcode">[img] 代码</label></p>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <p><input type="checkbox" value="1" name="parseurloff" id="parseurloff" rn");
- if (parseurloff==1)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(" /><label for="parseurloff">禁用 网址自动链接</label></p>rn");
- templateBuilder.Append(" <p><input type="checkbox" value="1" name="smileyoff" id="smileyoff" rn");
- if (smileyoff==1)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- if (forum.Allowsmilies!=1)
- {
- templateBuilder.Append("disabledrn");
- } //end if
- templateBuilder.Append(" /><label for="smileyoff">禁用 表情</label></p>rn");
- templateBuilder.Append(" <p><input type="checkbox" value="1" name="bbcodeoff" id="bbcodeoff" rn");
- if (bbcodeoff==1)
- {
- templateBuilder.Append(" checkedrn");
- } //end if
- if (usergroupinfo.Allowcusbbcode!=1)
- {
- templateBuilder.Append(" disabledrn");
- }
- else if (forum.Allowbbcode!=1)
- {
- templateBuilder.Append(" disabledrn");
- } //end if
- templateBuilder.Append(" /><label for="bbcodeoff">禁用 论坛代码</label></p>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <p><input type="checkbox" value="1" name="usesig" id="usesig" rn");
- if (usesig==1)
- {
- templateBuilder.Append("checkedrn");
- } //end if
- templateBuilder.Append(" /><label for="usesig">使用个人签名</label></p>rn");
- if (pagename=="postreply.aspx")
- {
- templateBuilder.Append(" <p><input type="checkbox" name="emailnotify" id="emailnotify" rn");
- if (config.Replyemailstatus==1)
- {
- templateBuilder.Append(" checkedrn");
- } //end if
- templateBuilder.Append(" /><label for="emailnotify">发送邮件告知楼主</label></p>rn");
- templateBuilder.Append(" <p><input type="checkbox" name="postreplynotice" id="postreplynotice" rn");
- if (config.Replynotificationstatus==1)
- {
- templateBuilder.Append(" checked rn");
- } //end if
- templateBuilder.Append("/><label for="emailnotify">发送论坛通知给楼主</label></p>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table><br />rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="moreinfo"></div>rn");
- templateBuilder.Append(" <div class="moreconf" id="moreconf">rn");
- templateBuilder.Append(" <div class="custominfoarea" id="custominfoarea" style="display: none;"></div>rn");
- if (postinfo.Layer==0 && forum.Applytopictype==1)
- {
- templateBuilder.Append(" <input type="hidden" id="postbytopictype" name="postbytopictype" value="");
- templateBuilder.Append(forum.Postbytopictype.ToString().Trim());
- templateBuilder.Append(""rn");
- templateBuilder.Append(" tabindex="3">rn");
- } //end if
- templateBuilder.Append(" <button type="submit" id="postsubmit" value="true"rn");
- if (pagename=="posttopic.aspx")
- {
- templateBuilder.Append(" name="topicsubmit"rn");
- }
- else if (pagename=="postreply.aspx")
- {
- templateBuilder.Append(" name="replysubmit"rn");
- }
- else if (pagename=="editpost.aspx")
- {
- templateBuilder.Append(" name="editsubmit"rn");
- } //end if
- templateBuilder.Append(" tabindex="1">");
- templateBuilder.Append(actiontitle.ToString());
- templateBuilder.Append("</button>rn");
- templateBuilder.Append(" <span id="more_1" style="display: none">rn");
- if (infloat==1 && special!="")
- {
- templateBuilder.Append(" <a href="javascript:;" onclick="pagescrolls('editor')">添加描述");
- templateBuilder.Append(actiontitle.ToString());
- templateBuilder.Append("</a>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" <span id="more_2">rn");
- if (canpostattach)
- {
- templateBuilder.Append(" <span class="sim_upfile" onmouseover="$('attachinfo').style.display='';" onmouseout="$('attachinfo').style.display='none';">rn");
- templateBuilder.Append(" <span id="attachbtnhidden" style="display:none"><span><input type="file" name="postfile" size="1" /></span></span>rn");
- templateBuilder.Append(" <span id="attachbtn"></span>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="return false;">添加附件</a>rn");
- if (pagename.IndexOf("goods")<0 && config.Silverlight==1)
- {
- templateBuilder.Append(" <a href="javascript:;" onclick="swfuploadwin();">批量上传</a>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="attachlist()">附件列表</a>rn");
- } //end if
- if (infloat==1)
- {
- templateBuilder.Append("<a href="javascript:;" id="morelink" onclick="pagescrolls('more')">更多设定</a>rn");
- } //end if
- if (userinfo.Spaceid>0 && special==""&&action=="newthread"&&config.Enablespace==1)
- {
- templateBuilder.Append("<input type="checkbox" name="addtoblog" /> 添加到个人空间rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- if (isseccode)
- {
- templateBuilder.Append("<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>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" <script reload="1">rn");
- templateBuilder.Append(" openEditor();rn");
- if (canpostattach)
- {
- templateBuilder.Append(" initAttach();rn");
- } //end if
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- if (adveditor)
- {
- templateBuilder.Append(" <div id="specialposttable" style="height:0;line-height:0;"> rn");
- if (type=="bonus")
- {
- templateBuilder.Append(" <div class="specialpost s_clear">rn");
- templateBuilder.Append(" <div class="specialinfo">rn");
- templateBuilder.Append(" <dl>rn");
- templateBuilder.Append(" <dt><label for="rewardprice">悬赏价格:</label></dt>rn");
- templateBuilder.Append(" <dd>rn");
- templateBuilder.Append(" <input name="topicprice" type="text" class="txt" id="topicprice" value="");
- templateBuilder.Append(usergroupinfo.Minbonusprice.ToString().Trim());
- templateBuilder.Append("" size="5" maxlength="5" onkeyup="getrealprice(this.value)"/>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(bonusextcreditsinfo.Unit.ToString().Trim());
- templateBuilder.Append(bonusextcreditsinfo.Name.ToString().Trim());
- templateBuilder.Append(" (只允许正整数)rn");
- templateBuilder.Append(" </dd>rn");
- templateBuilder.Append(" <dd class="tips">rn");
- templateBuilder.Append(" [ 悬赏范围 ");
- templateBuilder.Append(usergroupinfo.Minbonusprice.ToString().Trim());
- templateBuilder.Append(" - ");
- templateBuilder.Append(usergroupinfo.Maxbonusprice.ToString().Trim());
- templateBuilder.Append(" rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(bonusextcreditsinfo.Unit.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(bonusextcreditsinfo.Name.ToString().Trim());
- templateBuilder.Append(", 当前可用 ");
- templateBuilder.Append(mybonustranscredits.ToString());
- templateBuilder.Append(" ");
- templateBuilder.Append(bonusextcreditsinfo.Unit.ToString().Trim());
- templateBuilder.Append(bonusextcreditsinfo.Name.ToString().Trim());
- templateBuilder.Append("]rn");
- templateBuilder.Append(" </dd>rn");
- templateBuilder.Append(" <dd class="tips">rn");
- templateBuilder.Append(" [ 税后支付 <span id="realprice">0</span>]rn");
- templateBuilder.Append(" </dd>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" function getrealprice(price) {rn");
- templateBuilder.Append(" if (!price.search(/^\d+$/)) {rn");
- templateBuilder.Append(" n = Math.ceil(parseInt(price) + price * ");
- templateBuilder.Append(Scoresets.GetCreditsTax().ToString().Trim());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" if (price > 32767) {rn");
- templateBuilder.Append(" $('realprice').innerHTML = '<b>悬赏不能高于 32767</b>';rn");
- templateBuilder.Append(" } else if (price < ");
- templateBuilder.Append(usergroupinfo.Minbonusprice.ToString().Trim());
- templateBuilder.Append(" || (price > ");
- templateBuilder.Append(usergroupinfo.Maxbonusprice.ToString().Trim());
- templateBuilder.Append(")) {rn");
- templateBuilder.Append(" $('realprice').innerHTML = '<b>悬赏超出范围</b>';rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" $('realprice').innerHTML = n;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" $('realprice').innerHTML = '<b>填写无效</b>';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </dl>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- if (usergroupinfo.Allowpostpoll==1&&type=="poll")
- {
- templateBuilder.Append(" <div class="specialpost s_clear">rn");
- templateBuilder.Append(" <p><em>选项:</em>每行填写 1 个选项</p>rn");
- templateBuilder.Append(" <div class="specialinfo sppoll">rn");
- templateBuilder.Append(" <input id="PollItemname" type="hidden" name="PollItemname" value="" />rn");
- templateBuilder.Append(" <input id="PollItemvalue" type="hidden" name="PollItemvalue" value="" />rn");
- templateBuilder.Append(" <div id="polloptions">rn");
- templateBuilder.Append(" <p id="divPollItem"><input type="text" id="pollitemid" name="pollitemid" class="optioninfo txt" tabindex="1"/><a onclick="if(!delObj(document.getElementById('polloptions'),2,this.parentNode)){alert('投票项不能少于2个');}" title="删除投票项" class="deloption" href="javascript:;">del</a></p>rn");
- templateBuilder.Append(" <p><input type="text" id="pollitemid" name="pollitemid" class="optioninfo txt" tabindex="1"/><a onclick="if(!delObj(document.getElementById('polloptions'),2,this.parentNode)){alert('投票项不能少于2个');}" title="删除投票项" class="deloption" href="javascript:;">del</a></p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <p><a onclick="clonePoll('");
- templateBuilder.Append(config.Maxpolloptions.ToString().Trim());
- templateBuilder.Append("')" href="javascript:;">+增加投票项</a> <a onclick="if(!delObj(document.getElementById('polloptions'),2)){alert('投票项不能少于2个');}" href="javascript:;">删除投票项</a> </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="specialaddons">rn");
- templateBuilder.Append(" <p><label for="polldatas">投票结束日期</label>rn");
- templateBuilder.Append(" <input name="enddatetime" type="text" id="enddatetime" size="10" value="");
- templateBuilder.Append(enddatetime.ToString());
- templateBuilder.Append("" style="cursor:default" class="txt" onClick="showcalendar(event, 'enddatetime', 'cal_startdate', 'cal_enddate', '");
- templateBuilder.Append(enddatetime.ToString());
- templateBuilder.Append("');" readonly="readonly" />rn");
- templateBuilder.Append(" <input type="hidden" name="cal_startdate" id="cal_startdate" size="10" value="");
- templateBuilder.Append(enddatetime.ToString());
- templateBuilder.Append(""/>rn");
- templateBuilder.Append(" <input type="hidden" name="cal_enddate" id="cal_enddate" size="10" value=""/>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <p><label for="pollnum">rn");
- templateBuilder.Append(" <input type="checkbox" name="multiple" onclick="this.checked?$('maxchoicescontrol').style.display='':$('maxchoicescontrol').style.display='none';" class="checkinput" />多选投票</label>rn");
- templateBuilder.Append(" <span id="maxchoicescontrol" style="display: none">最多可选项数: <input type="text" tabindex="1" value="" class="spshortinput txt" name="maxchoices"/></span>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <p>rn");
- templateBuilder.Append(" <input name="createpoll" type="hidden" id="createpoll" value="1" />rn");
- templateBuilder.Append(" <input type="checkbox" tabindex="1" value="1" name="visiblepoll"/>提交投票后结果才可见</p>rn");
- templateBuilder.Append(" <p><input type="checkbox" tabindex="1" value="1" name="overt"/>公开投票参与人</p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- if (type=="debate")
- {
- templateBuilder.Append(" <div class="specialpost s_clear">rn");
- templateBuilder.Append(" <div class="specialinfo">rn");
- templateBuilder.Append(" <h4><label for="affirmpoint">正方:</label>(最多 200 字)</h4>rn");
- templateBuilder.Append(" <div><textarea tabindex="1" class="txtarea" id="positiveopinion" name="positiveopinion"></textarea></div>rn");
- templateBuilder.Append(" <h4><label for="negapoint">反方:</label>(最多 200 字)</h4>rn");
- templateBuilder.Append(" <div><textarea tabindex="1" class="txtarea" id="negativeopinion" name="negativeopinion"></textarea></div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="specialaddons">rn");
- templateBuilder.Append(" <label for="endtime">结束时间:</label>rn");
- templateBuilder.Append(" <p>rn");
- templateBuilder.Append(" <input type="text" name="terminaltime" id="terminaltime" style="cursor:default;" class="txt" size="16" value="");
- templateBuilder.Append(enddatetime.ToString());
- templateBuilder.Append("" onclick="showcalendar(event, 'terminaltime', 'cal_startdate', 'cal_enddate', '");
- templateBuilder.Append(enddatetime.ToString());
- templateBuilder.Append("');" readonly />rn");
- templateBuilder.Append(" <input type="hidden" name="cal_startdate" id="cal_startdate" value="");
- templateBuilder.Append(enddatetime.ToString());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <input type="hidden" name="cal_enddate" id="cal_enddate" value="">rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function doadvdebate()rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var adv_open = $('advdebate_open');rn");
- templateBuilder.Append(" var adv_close = $('advdebate_close');rn");
- templateBuilder.Append(" if (adv_open && adv_close)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" if (adv_open.style.display != 'none')rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" adv_open.style.display = 'none';rn");
- templateBuilder.Append(" adv_close.style.display = '';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" adv_open.style.display = '';rn");
- templateBuilder.Append(" adv_close.style.display = 'none';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- if (infloat==0)
- {
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" if (getQueryString('restore') == '1')rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var message;rn");
- templateBuilder.Append(" if (is_ie) {rn");
- templateBuilder.Append(" message = clipboardData.getData('Text');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" var title = getQueryString('t');rn");
- templateBuilder.Append(" $('title').value = unescape(title);rn");
- templateBuilder.Append(" if(typeof wysiwyg == 'undefined' || !wysiwyg) {rn");
- templateBuilder.Append(" textobj.value = html2bbcode(message);rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" editdoc.body.innerHTML = message;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- }
- else
- {
- if (ispost)
- {
- if (needlogin)
- {
- if (infloat!=1)
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main login">rn");
- templateBuilder.Append(" <div class="message">rn");
- templateBuilder.Append(" <h1>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" 提示信息</h1>rn");
- templateBuilder.Append(" <p>您无权进行当前操作,这可能因以下原因之一造成</p>rn");
- templateBuilder.Append(" <p><b>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</b></p>rn");
- templateBuilder.Append(" <p>您还没有登录,请填写下面的登录表单后再尝试访问。</p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="nojs">rn");
- templateBuilder.Append(" <div class="float" id="floatlayout_login" style="width: 600px; height: 300px;">rn");
- templateBuilder.Append(" <form id="formlogin" name="formlogin" method="post" action="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("login.aspx" onsubmit="submitLogin(this);">rn");
- templateBuilder.Append(" <input type="hidden" value="2592000" name="cookietime"/>rn");
- templateBuilder.Append(" <h1 style="margin-bottom:10px;">会员登录</h1>rn");
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" class="formtable">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="username">用户名</label></th>rn");
- templateBuilder.Append(" <td><input type="text" id="username" name="username" size="25" maxlength="40" tabindex="2" class="txt" /> <a href="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("register.aspx" tabindex="-1" accesskey="r" title="立即注册 (ALT + R)" class="lightlink">立即注册</a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="password">密码</label></th>rn");
- templateBuilder.Append(" <td><input type="password" name="password" size="25" tabindex="3" class="txt"/> <a href="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("getpassword.aspx" tabindex="-1" accesskey="g" title="忘记密码 (ALT + G)" class="lightlink">忘记密码</a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- if (config.Secques==1)
- {
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="questionid">安全问题</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <select name="questionid" tabindex="4">rn");
- templateBuilder.Append(" <option value="0"> </option>rn");
- templateBuilder.Append(" <option value="1">母亲的名字</option>rn");
- templateBuilder.Append(" <option value="2">爷爷的名字</option>rn");
- templateBuilder.Append(" <option value="3">父亲出生的城市</option>rn");
- templateBuilder.Append(" <option value="4">您其中一位老师的名字</option>rn");
- templateBuilder.Append(" <option value="5">您个人计算机的型号</option>rn");
- templateBuilder.Append(" <option value="6">您最喜欢的餐馆名称</option>rn");
- templateBuilder.Append(" <option value="7">驾驶执照的最后四位数字</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="answer">答案</label></th>rn");
- templateBuilder.Append(" <td><input type="text" name="answer" size="25" tabindex="5" class="txt" /></td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end if
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <button type="submit" name="loginsubmit" id="loginsubmit" value="true" tabindex="6">会员登录</button>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");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- templateBuilder.Append("<div class="msgbox" style="background:none;text-align:left;">rn");
- templateBuilder.Append(" <div class="msg_inner error_msg">rn");
- templateBuilder.Append(" <p>您无权进行当前操作,这可能因以下原因之一造成</p>rn");
- templateBuilder.Append(" <p><b>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</b></p>rn");
- templateBuilder.Append(" <p>您还没有登录,请的登录后再尝试访问。</p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" setTimeout("floatwin('close_newthread');floatwin('close_reply');floatwin('close_edit');floatwin('open_login', '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("login.aspx', 600, 410)",1000);rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript">rn");
- if (infloat!=1)
- {
- templateBuilder.Append(" document.getElementById("username").focus();rn");
- } //end if
- templateBuilder.Append(" function submitLogin(loginForm)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" loginForm.action = '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("login.aspx?loginsubmit=true&reurl=' + escape(window.location);rn");
- templateBuilder.Append(" loginForm.submit();rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- }
- else
- {
- if (infloat==1)
- {
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>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
- }
- else
- {
- if (needlogin)
- {
- if (infloat!=1)
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main login">rn");
- templateBuilder.Append(" <div class="message">rn");
- templateBuilder.Append(" <h1>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" 提示信息</h1>rn");
- templateBuilder.Append(" <p>您无权进行当前操作,这可能因以下原因之一造成</p>rn");
- templateBuilder.Append(" <p><b>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</b></p>rn");
- templateBuilder.Append(" <p>您还没有登录,请填写下面的登录表单后再尝试访问。</p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="nojs">rn");
- templateBuilder.Append(" <div class="float" id="floatlayout_login" style="width: 600px; height: 300px;">rn");
- templateBuilder.Append(" <form id="formlogin" name="formlogin" method="post" action="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("login.aspx" onsubmit="submitLogin(this);">rn");
- templateBuilder.Append(" <input type="hidden" value="2592000" name="cookietime"/>rn");
- templateBuilder.Append(" <h1 style="margin-bottom:10px;">会员登录</h1>rn");
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" class="formtable">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="username">用户名</label></th>rn");
- templateBuilder.Append(" <td><input type="text" id="username" name="username" size="25" maxlength="40" tabindex="2" class="txt" /> <a href="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("register.aspx" tabindex="-1" accesskey="r" title="立即注册 (ALT + R)" class="lightlink">立即注册</a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="password">密码</label></th>rn");
- templateBuilder.Append(" <td><input type="password" name="password" size="25" tabindex="3" class="txt"/> <a href="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("getpassword.aspx" tabindex="-1" accesskey="g" title="忘记密码 (ALT + G)" class="lightlink">忘记密码</a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- if (config.Secques==1)
- {
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="questionid">安全问题</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <select name="questionid" tabindex="4">rn");
- templateBuilder.Append(" <option value="0"> </option>rn");
- templateBuilder.Append(" <option value="1">母亲的名字</option>rn");
- templateBuilder.Append(" <option value="2">爷爷的名字</option>rn");
- templateBuilder.Append(" <option value="3">父亲出生的城市</option>rn");
- templateBuilder.Append(" <option value="4">您其中一位老师的名字</option>rn");
- templateBuilder.Append(" <option value="5">您个人计算机的型号</option>rn");
- templateBuilder.Append(" <option value="6">您最喜欢的餐馆名称</option>rn");
- templateBuilder.Append(" <option value="7">驾驶执照的最后四位数字</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="answer">答案</label></th>rn");
- templateBuilder.Append(" <td><input type="text" name="answer" size="25" tabindex="5" class="txt" /></td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end if
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <button type="submit" name="loginsubmit" id="loginsubmit" value="true" tabindex="6">会员登录</button>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");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- templateBuilder.Append("<div class="msgbox" style="background:none;text-align:left;">rn");
- templateBuilder.Append(" <div class="msg_inner error_msg">rn");
- templateBuilder.Append(" <p>您无权进行当前操作,这可能因以下原因之一造成</p>rn");
- templateBuilder.Append(" <p><b>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</b></p>rn");
- templateBuilder.Append(" <p>您还没有登录,请的登录后再尝试访问。</p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" setTimeout("floatwin('close_newthread');floatwin('close_reply');floatwin('close_edit');floatwin('open_login', '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("login.aspx', 600, 410)",1000);rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript">rn");
- if (infloat!=1)
- {
- templateBuilder.Append(" document.getElementById("username").focus();rn");
- } //end if
- templateBuilder.Append(" function submitLogin(loginForm)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" loginForm.action = '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("login.aspx?loginsubmit=true&reurl=' + escape(window.location);rn");
- templateBuilder.Append(" loginForm.submit();rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- }
- else
- {
- if (infloat==1)
- {
- templateBuilder.Append(" <div class="floatbox floatbox1">rn");
- templateBuilder.Append(" <h3 class="float_ctrl">rn");
- templateBuilder.Append(" <span>rn");
- templateBuilder.Append(" <a href="javascript:;" class="float_close" onclick="floatwin('close_newthread');" title="关闭">关闭</a>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </h3>rn");
- templateBuilder.Append(" <div class="gateform">rn");
- templateBuilder.Append(" <h3>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</h3>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
- templateBuilder.Append(" </div>rn");
- } //end if
- if (infloat!=1)
- {
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_calendar.js"></");
- templateBuilder.Append("script>rn");
- } //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>