showtopic.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:146k
- templateBuilder.Append(post.Ratetimes.ToString().Trim());
- templateBuilder.Append("</a></strong>rn");
- templateBuilder.Append(" <p>评分次数</p>rn");
- templateBuilder.Append(" </dt>rn");
- if (Discuz.Config.GeneralConfigs.GetConfig().DisplayRateCount>0)
- {
- templateBuilder.Append(" <dd>rn");
- templateBuilder.Append(" <ul class="s_clear" id="rate_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append(""></ul>rn");
- templateBuilder.Append(" <script type="text/javascript">_attachEvent(window, "load", function(){ showrate(");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append(",");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(",");
- templateBuilder.Append(post.Ratetimes.ToString().Trim());
- templateBuilder.Append(",");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(",'");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("'); })</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </dd>rn");
- } //end if
- templateBuilder.Append("</dl>rn");
- } //end if
- if (post.Id==1)
- {
- if (topic.Special==3)
- {
- templateBuilder.Append(" <div class="bonusrate">rn");
- templateBuilder.Append(" <p>本帖得分:</p>rn");
- templateBuilder.Append(" <div class="attachmentinfo">rn");
- int bonuslog__loop__id=0;
- foreach(BonusLogInfo bonuslog in bonuslogs)
- {
- bonuslog__loop__id++;
- if (bonuslog.Bonus>0)
- {
- if (bonuslog__loop__id!=1)
- {
- templateBuilder.Append(" ,rn");
- } //end if
- aspxrewriteurl = this.UserInfoAspxRewrite(bonuslog.Answerid);
-
- string unit = scoreunit[ bonuslog.Extid ];
-
- string name = score[ bonuslog.Extid ];
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(bonuslog.Answername.ToString().Trim());
- templateBuilder.Append("</a>(");
- templateBuilder.Append(name.ToString());
- templateBuilder.Append(":");
- templateBuilder.Append(bonuslog.Bonus.ToString().Trim());
- templateBuilder.Append(unit.ToString());
- templateBuilder.Append(")rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- }
- else if (topic.Special==4)
- {
- templateBuilder.Append(" <div class="debate_show">rn");
- templateBuilder.Append(" <div class="squaretitle">rn");
- templateBuilder.Append(" <p>正方观点</p>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(debateexpand.Positiveopinion.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="sidetitle">rn");
- templateBuilder.Append(" <p>反方观点</p>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(debateexpand.Negativeopinion.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <!--投票部分-->rn");
- if (topic.Special==1)
- {
- templateBuilder.Append("<!--投票区开始-->rn");
- templateBuilder.Append("<div class="pollpanel">rn");
- templateBuilder.Append(" <h4>rn");
- templateBuilder.Append(" 投票:<strong>");
- templateBuilder.Append(topic.Title.ToString().Trim());
- templateBuilder.Append("</strong>rn");
- if (pollinfo.Multiple==1)
- {
- templateBuilder.Append(" - 多选(最多可选");
- templateBuilder.Append(pollinfo.Maxchoices.ToString().Trim());
- templateBuilder.Append("项)rn");
- } //end if
- templateBuilder.Append(" - 截止时间:");
- templateBuilder.Append(pollinfo.Expiration.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </h4>rn");
- templateBuilder.Append(" <table border="0" cellpadding="0" cellspacing="0" summary="pollpanel">rn");
- int polloption__loop__id=0;
- foreach(DataRow polloption in Polls.GetPollOptionList(topicid).Rows)
- {
- polloption__loop__id++;
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="selector">rn");
- if (allowvote)
- {
- if (pollinfo.Multiple==1)
- {
- templateBuilder.Append(" <input type="checkbox" name="pollitemid" value="" + polloption["polloptionid"].ToString().Trim() + "" onclick='checkbox(this)'/>rn");
- }
- else
- {
- templateBuilder.Append(" <input type="radio" name="pollitemid" value="" + polloption["polloptionid"].ToString().Trim() + "" />rn");
- } //end if
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td colspan="2">rn");
- templateBuilder.Append(" " + polloption__loop__id.ToString() + ". " + polloption["name"].ToString().Trim() + "rn");
- if (showpollresult)
- {
- if (useradminid==1 && polloption["value"].ToString().Trim()!="0")
- {
- templateBuilder.Append(" ( <a href="javascript:void(0);" onclick="javascript:displayvoter($('voterlist" + polloption["polloptionid"].ToString().Trim() + "'));">该项投票人</a> )rn");
- } //end if
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- if (showpollresult)
- {
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td> </td>rn");
- templateBuilder.Append(" <td class="optionvessel">rn");
- templateBuilder.Append(" <div class="optionbar">rn");
- int styleid = polloption__loop__id % 10;
-
- templateBuilder.Append(" <div class="polloptionbar rn");
- if (polloption["value"].ToString().Trim()!="0")
- {
- templateBuilder.Append("pollcolor");
- templateBuilder.Append(styleid.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("" style="width:" + polloption["percentwidth"].ToString().Trim() + "px"></div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <strong>" + polloption["value"].ToString().Trim() + "</strong>票 / " + polloption["percent"].ToString().Trim() + "rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr id="voterlist" + polloption["polloptionid"].ToString().Trim() + "" style="display:none;">rn");
- templateBuilder.Append(" <td colspan="3">rn");
- if (useradminid==1 && polloption["value"].ToString().Trim()!="0")
- {
- templateBuilder.Append(" " + polloption["votername"].ToString().Trim() + "rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end if
- templateBuilder.Append(" </tbody>rn");
- } //end loop
- templateBuilder.Append(" <script language="javascript">rn");
- templateBuilder.Append(" var max_obj = ");
- templateBuilder.Append(pollinfo.Maxchoices.ToString().Trim());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" var p = 0;rn");
- templateBuilder.Append(" function checkbox(obj) {rn");
- templateBuilder.Append(" if(obj.checked) {rn");
- templateBuilder.Append(" p++;rn");
- templateBuilder.Append(" for (var i = 0; i < $('postsform').elements.length; i++) {rn");
- templateBuilder.Append(" var e = $('postsform').elements[i];rn");
- templateBuilder.Append(" if(p == max_obj) {rn");
- templateBuilder.Append(" if(e.name.match('pollitemid') && !e.checked) {rn");
- templateBuilder.Append(" e.disabled = true;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" p--;rn");
- templateBuilder.Append(" for (var i = 0; i < $('postsform').elements.length; i++) {rn");
- templateBuilder.Append(" var e = $('postsform').elements[i];rn");
- templateBuilder.Append(" if(e.name.match('pollitemid') && e.disabled) {rn");
- templateBuilder.Append(" e.disabled = false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" } rn");
- templateBuilder.Append(" function displayvoter(objid) {rn");
- templateBuilder.Append(" if(objid.style.display == 'block') {rn");
- templateBuilder.Append(" objid.style.display = 'none';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else {rn");
- templateBuilder.Append(" objid.style.display = 'block';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" } rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="2">rn");
- if (usergroupinfo.Allowvote==1)
- {
- if (allowvote)
- {
- templateBuilder.Append(" <button name="Submit" onclick="this.form.action='poll.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("';this.form.submit();" >马上投票</button>rn");
- }
- else
- {
- templateBuilder.Append(" 提示: 您已经投过票或者投票已经过期rn");
- } //end if
- }
- else
- {
- templateBuilder.Append(" 抱歉,您所在的用户组没有参与投票的权限,请注册或登陆!rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- if (showpollresult&&config.Silverlight==1)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="2"><iframe src="silverlight/piechart/index.html?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&bg=FFFFFF" allowtransparency="yes" width="95%" height="425" border="0" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" ></iframe>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- if (useradminid==1 && voters!="")
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="2">rn");
- templateBuilder.Append(" <button type="button" onclick="expandoptions('ticketvoterlist');" />查看投票用户名单>></button>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <tbody id="ticketvoterlist" style="display:none;">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="2">");
- templateBuilder.Append(voters.ToString());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- templateBuilder.Append(" <!--悬赏部分-->rn");
- if (topic.Special==2)
- {
- templateBuilder.Append(" <div class="special_reward">rn");
- templateBuilder.Append(" <p class="reward_price">悬赏金额: <strong>");
- templateBuilder.Append(userextcreditsinfo.Name.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(topic.Price.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(userextcreditsinfo.Unit.ToString().Trim());
- templateBuilder.Append(" </strong></p>rn");
- templateBuilder.Append(" <div class="specialmsg">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>悬赏的问题解决办法</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </div>rn");
- if (post.Id==1)
- {
- if (topic.Moderated>0 && config.Moderactions>0)
- {
- templateBuilder.Append(" <div class="mangeinfo">");
- templateBuilder.Append(TopicAdmins.GetTopicListModeratorLog(topicid).ToString().Trim());
- templateBuilder.Append("</div>rn");
- } //end if
- templateBuilder.Append(" <div class="useraction">rn");
- if (userid!=-1)
- {
- templateBuilder.Append(" <a href="favorites.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&infloat=1" onclick="ajaxmenu(event, this.id, 3000, 0)" id="ajax_favorite">收藏</a>rn");
- if (usergroupinfo.Raterange!="" && post.Posterid!=-1)
- {
- templateBuilder.Append(" <a id="ratelink" href="topicadmin.aspx?action=rate&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&topicid=");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("&operat=rate" onclick="floatwin('open_mods', this.href, 250, 270);return false;">评分</a>rn");
- } //end if
- } //end if
- templateBuilder.Append(" <a onclick="floatwin('open_emailfriend', this.href, 250, 380);return false;" href="misc.aspx?action=emailfriend&tid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" id="share">分享</a>rn");
- if (config.Disableshare==1)
- {
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function openforward()rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" share.floatwin('");
- templateBuilder.Append(config.Sharelist.ToString().Trim());
- templateBuilder.Append("');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <a href="javascript:void(0)" onclick="openforward()" id="forward">转发</a>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- } //end if
- }
- else
- {
- templateBuilder.Append(" <div id="message");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" class="t_msgfont">rn");
- templateBuilder.Append(" <div id="ad_thread3_" + post__loop__id.ToString() + ""></div>rn");
- templateBuilder.Append(" <div class='hintinfo'>提示: 该帖被管理员或版主屏蔽</div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- if (config.Showsignatures==1)
- {
- if (post.Usesig==1)
- {
- if (post.Signature!="")
- {
- templateBuilder.Append(" <!--签名开始-->rn");
- templateBuilder.Append(" <div class="postertext">rn");
- if (config.Maxsigrows>0)
- {
- int ieheight = config.Maxsigrows*19;
-
- float heightem = config.Maxsigrows*1.6f;
-
- templateBuilder.Append(" <div class="signatures" style="max-height:");
- templateBuilder.Append(heightem.ToString());
- templateBuilder.Append("em;maxHeightIE:");
- templateBuilder.Append(ieheight.ToString());
- templateBuilder.Append("px">");
- templateBuilder.Append(post.Signature.ToString().Trim());
- templateBuilder.Append("</div>rn");
- }
- else
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(post.Signature.ToString().Trim());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--签名结束-->rn");
- } //end if
- } //end if
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="postauthor"></td>rn");
- templateBuilder.Append(" <td class="postcontent postactions">rn");
- templateBuilder.Append(" <div id="ad_thread1_" + post__loop__id.ToString() + ""></div>rn");
- templateBuilder.Append(" <em>rn");
- if (canreply)
- {
- if (userid!=-1)
- {
- templateBuilder.Append(" <a href="###" onclick="replyToFloor('");
- templateBuilder.Append(post.Id.ToString().Trim());
- templateBuilder.Append("', '");
- templateBuilder.Append(post.Poster.ToString().Trim());
- templateBuilder.Append("', '");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("')" class="fastreply">回复</a>rn");
- } //end if
- templateBuilder.Append(" <a href="postreply.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append(""e=yes" class="repquote" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');doane(event);">引用</a>rn");
- } //end if
- if (ismoder==1)
- {
- if (topic.Special==4)
- {
- templateBuilder.Append(" <a href="editpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("&pageid=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("&debate=");
- templateBuilder.Append(post.Debateopinion.ToString().Trim());
- templateBuilder.Append("" class="editpost">编辑</a>rn");
- }
- else
- {
- templateBuilder.Append(" <a href="editpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("&pageid=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("" rn");
- if (topic.Special==0)
- {
- templateBuilder.Append("onclick="floatwin('open_edit', this.href, 600, 410, '600,0');doane(event);"rn");
- } //end if
- templateBuilder.Append(" class="editpost">编辑</a>rn");
- } //end if
- }
- else
- {
- if (post.Posterid!=-1 && userid==post.Posterid)
- {
- if (topic.Closed==0)
- {
- if (topic.Special==4)
- {
- templateBuilder.Append(" <a href="editpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("&pageid=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("&debate=");
- templateBuilder.Append(post.Debateopinion.ToString().Trim());
- templateBuilder.Append("" class="editpost">编辑</a>rn");
- }
- else
- {
- templateBuilder.Append(" <a href="editpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("&pageid=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("" rn");
- if (topic.Special==0)
- {
- templateBuilder.Append("onclick="floatwin('open_edit', this.href, 600, 410, '600,0');doane(event);"rn");
- } //end if
- templateBuilder.Append(" class="editpost">编辑</a>rn");
- } //end if
- } //end if
- } //end if
- } //end if
- templateBuilder.Append(" </em>rn");
- templateBuilder.Append(" <a href="#" onclick="window.scrollTo(0,0)">TOP</a>rn");
- if (ismoder==1)
- {
- templateBuilder.Append(" <label for="manage");
- templateBuilder.Append(post.Id.ToString().Trim());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <input type="checkbox" value="");
- templateBuilder.Append(post.Id.ToString().Trim());
- templateBuilder.Append("" onclick="pidchecked(this);modclick(this, ");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append(")" id="manage");
- templateBuilder.Append(post.Id.ToString().Trim());
- templateBuilder.Append(""/>管理rn");
- templateBuilder.Append(" </label>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr class="threadad">rn");
- templateBuilder.Append(" <td class="postauthor"></td>rn");
- templateBuilder.Append(" <td class="adcontent">rn");
- if (post.Id==1 && postleaderboardad!="")
- {
- templateBuilder.Append(" <div id="postleaderboardad">");
- templateBuilder.Append(postleaderboardad.ToString());
- templateBuilder.Append("</div>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- loopi = loopi+1;
-
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <!--ntforumbox end-->rn");
- templateBuilder.Append(" <div class="forumcontrol s_clear">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="narrow">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="modaction">rn");
- if (useradminid>0||usergroupinfo.Raterange!=""||config.Forumjump==1||(topic.Special==2&&topic.Posterid==userid))
- {
- templateBuilder.Append(" <!--forumjumping start-->rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function action_onchange(value,objfrm,postid,banstatus){rn");
- templateBuilder.Append(" if (value != ''){rn");
- templateBuilder.Append(" objfrm.operat.value = value;rn");
- templateBuilder.Append(" objfrm.postid.value = postid;rn");
- templateBuilder.Append(" if (value != "delete")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" objfrm.action = objfrm.action + '&referer=' + escape(window.location);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if (value == 'banpost' && typeof(banstatus) != "undefined")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" objfrm.operat.value = value;rn");
- templateBuilder.Append(" objfrm.action = objfrm.action + "&banstatus=" + banstatus;rn");
- templateBuilder.Append(" objfrm.submit();rn");
- templateBuilder.Append(" return;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(value == 'delposts' || value == 'banpost'){rn");
- templateBuilder.Append(" $('postsform').operat.value = value; rn");
- templateBuilder.Append(" $('postsform').action = $('postsform').action + '&referer=' + escape(window.location);rn");
- templateBuilder.Append(" $('postsform').submit();rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{rn");
- templateBuilder.Append(" objfrm.submit();rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- bool canuseadminfunc = usergroupinfo.Raterange!="" || usergroupinfo.Maxprice>0 || (topic.Special==2&&topic.Posterid==userid);
-
- if (useradminid>0)
- {
- templateBuilder.Append(" <form id="moderate" name="moderate" method="post" action="topicadmin.aspx?action=moderate&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&infloat=1">rn");
- templateBuilder.Append(" <input name="forumid" type="hidden" value="");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input name="topicid" type="hidden" value="");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input name="postid" type="hidden" value="" />rn");
- templateBuilder.Append(" <input name="operat" type="hidden" value="" />rn");
- templateBuilder.Append(" <input type="hidden" name="winheight" />rn");
- templateBuilder.Append(" <input type="hidden" name="optgroup" />rn");
- if (ismoder==1)
- {
- templateBuilder.Append(" <span class="dropmenu" onclick="showMenu(this.id)" id="operatSel">主题管理</span>rn");
- templateBuilder.Append(" <ul style="width: 180px; display: none;" id="operatSel_menu" class="popupmenu_popup headermenu_popup inlinelist">rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'delete');return false;" href="###">删除主题</a></li>rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'bump');return false;" href="###">提沉主题</a></li>rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'close');return false;" href="###">关闭主题</a></li>rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'move');return false;" href="###">移动主题</a></li>rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'copy');return false;" href="###">复制主题</a></li>rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'highlight');return false;" href="###">高亮显示</a></li>rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'digest');return false;" href="###">设置精华</a></li>rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'identify');return false;" href="###">鉴定主题</a></li>rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'displayorder');return false;" href="###">主题置顶</a></li>rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'split');return false;" href="###">分割主题</a></li>rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'merge');return false;" href="###">合并主题</a></li>rn");
- templateBuilder.Append(" <li class="wide"><a onclick="modthreads(1, 'repair');return false;" href="###">修复主题</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- } //end if
- templateBuilder.Append(" </form>rn");
- }
- else if (canuseadminfunc)
- {
- templateBuilder.Append(" <form id="moderate" name="moderate" method="post" action="topicadmin.aspx?action=moderate&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("" class="right">rn");
- templateBuilder.Append(" <input name="forumid" type="hidden" value="");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input name="topicid" type="hidden" value="");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input name="postid" type="hidden" value="" />rn");
- templateBuilder.Append(" <input name="operat" type="hidden" value="" />rn");
- templateBuilder.Append(" </form>rn");
- } //end if
- templateBuilder.Append(" <!--forumjumping end-->rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">rn");
- templateBuilder.Append(" <cite class="pageback">");
- templateBuilder.Append(listlink.ToString());
- templateBuilder.Append("</cite>rn");
- if (pagecount!=1)
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("rn");
- if (pagecount>8)
- {
- templateBuilder.Append(" <kbd><b id="pageidtxt2" title="可以输入页码按回车键自动跳转" onclick="$('pageidtxt2').style.display='none';$('pageidinput2').style.display='';$('pageidinput2').focus();">");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("</b>rn");
- templateBuilder.Append(" <input name="gopage" type="text" class="txt" id="pageidinput2" value="");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("" style="display:none;text-align:center;" onfocus="this.value=this.defaultValue;this.size=this.value.length;this.select();" onblur="$('pageidinput1').style.display='none';$('pageidtxt1').style.display='';" onKeyDown="if(event.keyCode==13) { if(");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(") {window.location='showtopic-");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("-' + (parseInt(this.value) > 0 ? parseInt(this.value) : 1) + '");
- templateBuilder.Append(config.Extname.ToString().Trim());
- templateBuilder.Append("';}else{window.location='showtopic.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&page=' + (parseInt(this.value) > 0 ? parseInt(this.value) : 1);}}if((event.keyCode >= 48 && event.keyCode <= 57) || event.keyCode==8){this.size=this.value.length+1;return true;}else{return false;}" size="");
- templateBuilder.Append(pageid.ToString().Trim().Length.ToString().Trim());
- templateBuilder.Append("" maxlength="9" />/ ");
- templateBuilder.Append(pagecount.ToString());
- templateBuilder.Append("</kbd>rn");
- } //end if
- templateBuilder.Append(" ");
- templateBuilder.Append(nextpage.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="chg_topic"><a href="showtopic.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("&topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&go=prev">上一主题</a> | rn");
- templateBuilder.Append(" <a href="showtopic.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("&topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&go=next">下一主题</a></div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div>rn");
- if (canreply && userid!=-1)
- {
- templateBuilder.Append("<script type="text/javascript" src="javascript/bbcode.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/post.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<form method="post" name="postform" id="quickpostform" action="postreply.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" enctype="multipart/form-data" onsubmit="return validate(this);" >rn");
- templateBuilder.Append("<div id="quickpost" class="mainbox viewthread">rn");
- templateBuilder.Append(" <table summary="快速回复帖子" cellspacing="0" cellpadding="0">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="postauthor">rn");
- templateBuilder.Append(" <div class="avatar"> rn");
- string avatarurl = Avatars.GetAvatarUrl(userid);
-
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(avatarurl.ToString());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/noavatar_medium.gif';" alt="回复者"/>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td class="postcontent">rn");
- if (quickeditorad!="")
- {
- templateBuilder.Append(" <div class="leaderboard">");
- templateBuilder.Append(quickeditorad.ToString());
- templateBuilder.Append("</div>rn");
- } //end if
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="个性设置">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="hidden" id="quickposttitle" name="title" size="84" tabindex="1" value=""/><input type="hidden" id="postid" name="postid" value="-1" />rn");
- templateBuilder.Append(" <span style="display:none">rn");
- templateBuilder.Append(" <input type="checkbox" value="1" name="htmlon" id="htmlon" rn");
- if (usergroupinfo.Allowhtml!=1)
- {
- templateBuilder.Append(" disabledrn");
- } //end if
- templateBuilder.Append("/>rn");
- templateBuilder.Append(" <input type="checkbox" name="parseurloff" id="parseurloff" value="1" rn");
- if (parseurloff==1)
- {
- templateBuilder.Append(" checked rn");
- } //end if
- templateBuilder.Append("/>rn");
- templateBuilder.Append(" <input type="checkbox" name="smileyoff" id="smileyoff" value="1" rn");
- if (smileyoff==1)
- {
- templateBuilder.Append(" checked disabled rn");
- } //end if
- templateBuilder.Append("/>rn");
- templateBuilder.Append(" <input type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1" rn");
- if (bbcodeoff==1)
- {
- templateBuilder.Append(" checked disabled rn");
- } //end if
- templateBuilder.Append("/>rn");
- templateBuilder.Append(" <input type="checkbox" name="usesig" id="usesig" value="1" rn");
- if (usesig==1)
- {
- templateBuilder.Append(" checked rn");
- } //end if
- templateBuilder.Append("/>rn");
- templateBuilder.Append(" <input type="checkbox" name="emailnotify" id="emailnotify" rn");
- if (replyemailstatus==1)
- {
- templateBuilder.Append(" checked rn");
- } //end if
- templateBuilder.Append("/>rn");
- templateBuilder.Append(" <input type="checkbox" name="postreplynotice" id="postreplynotice" rn");
- if (replynotificationstatus==1)
- {
- templateBuilder.Append(" checked rn");
- } //end if
- templateBuilder.Append("/>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var bbinsert = parseInt('1');rn");
- templateBuilder.Append(" var smiliesCount = 24;rn");
- templateBuilder.Append(" var colCount = 8;rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- string seditorid = "quickpost";
-
- char comma = ',';
-
- templateBuilder.Append(" <em id="validatemessage"></em>rn");
- templateBuilder.Append("<link href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/seditor.css" rel="stylesheet" type="text/css" />rn");
- templateBuilder.Append("<div class="editor_tb">rn");
- templateBuilder.Append(" <span class="right">rn");
- if (topicid>0)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("postreply.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("" onclick="floatwin('open_reply', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("postreply.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("', 600, 410, '600,0');doane(event);">高级回复</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- } //end if
- templateBuilder.Append(" <span onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';if($('newspecial_menu').childNodes.length>0) showMenu(this.id);" id="newspecial" class="postbtn"><a href="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("" onclick="floatwin('open_newthread', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("', 600, 410, '600,0');doane(event);">发新主题</a></span>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" <div>rn");
- templateBuilder.Append(" <!--{if in_array('bold', $seditor[1])}-->rn");
- templateBuilder.Append(" <a href="javascript:;" title="粗体" class="tb_bold" onclick="seditor_insertunit('");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("', '[b]', '[/b]')">B</a>rn");
- templateBuilder.Append(" <!--{/if}-->rn");
- templateBuilder.Append(" <!--{if in_array('color', $seditor[1])}-->rn");
- templateBuilder.Append(" <a href="javascript:;" title="颜色" class="tb_color" id="");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("forecolor" onclick="showMenu(this.id, true, 0, 2)">Color</a>rn");
- string coloroptions = "Black,Sienna,DarkOliveGreen,DarkGreen,DarkSlateBlue,Navy,Indigo,DarkSlateGray,DarkRed,DarkOrange,Olive,Green,Teal,Blue,SlateGray,DimGray,Red,SandyBrown,YellowGreen,SeaGreen,MediumTurquoise,RoyalBlue,Purple,Gray,Magenta,Orange,Yellow,Lime,Cyan,DeepSkyBlue,DarkOrchid,Silver,Pink,Wheat,LemonChiffon,PaleGreen,PaleTurquoise,LightBlue,Plum,White";
-
- templateBuilder.Append(" <!--{eval $coloroptions = array('Black', 'Sienna', 'DarkOliveGreen', 'DarkGreen', 'DarkSlateBlue', 'Navy', 'Indigo', 'DarkSlateGray', 'DarkRed', 'DarkOrange', 'Olive', 'Green', 'Teal', 'Blue', 'SlateGray', 'DimGray', 'Red', 'SandyBrown', 'YellowGreen','SeaGreen', 'MediumTurquoise','RoyalBlue', 'Purple', 'Gray', 'Magenta', 'Orange', 'Yellow', 'Lime', 'Cyan', 'DeepSkyBlue', 'DarkOrchid', 'Silver', 'Pink', 'Wheat', 'LemonChiffon', 'PaleGreen', 'PaleTurquoise', 'LightBlue', 'Plum', 'White')}-->rn");
- templateBuilder.Append(" <div class="popupmenu_popup tb_color" id="");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("forecolor_menu" style="display: none">rn");
- int colorname__loop__id=0;
- foreach(string colorname in coloroptions.Split(comma))
- {
- colorname__loop__id++;
- templateBuilder.Append(" <input type="button" style="background-color: ");
- templateBuilder.Append(colorname.ToString());
- templateBuilder.Append("" onclick="seditor_insertunit('");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("', '[color=");
- templateBuilder.Append(colorname.ToString());
- templateBuilder.Append("]', '[/color]')" />rn");
- if (colorname__loop__id%8==0)
- {
- templateBuilder.Append("<br />rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--{/if}-->rn");
- templateBuilder.Append(" <!--{if in_array('img', $seditor[1])}-->rn");
- templateBuilder.Append(" <a href="javascript:;" title="图片" class="tb_img" onclick="seditor_insertunit('");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("', '[img]', '[/img]')">Image</a>rn");
- templateBuilder.Append(" <!--{/if}-->rn");
- templateBuilder.Append(" <!--{if in_array('link', $seditor[1])}-->rn");
- templateBuilder.Append(" <a href="javascript:;" title="链接" class="tb_link" onclick="seditor_insertunit('");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("', '[url]', '[/url]')">Link</a>rn");
- templateBuilder.Append(" <!--{/if}-->rn");
- templateBuilder.Append(" <!--{if in_array('quote', $seditor[1])}-->rn");
- templateBuilder.Append(" <a href="javascript:;" title="引用" class="tb_quote" onclick="seditor_insertunit('");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("', '[quote]', '[/quote]')">Quote</a>rn");
- templateBuilder.Append(" <!--{/if}-->rn");
- templateBuilder.Append(" <!--{if in_array('code', $seditor[1])}-->rn");
- templateBuilder.Append(" <a href="javascript:;" title="代码" class="tb_code" onclick="seditor_insertunit('");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("', '[code]', '[/code]')">Code</a>rn");
- templateBuilder.Append(" <!--{/if}-->rn");
- templateBuilder.Append(" <!--{if in_array('smilies', $seditor[1])}-->rn");
- if (config.Smileyinsert==1)
- {
- templateBuilder.Append(" <a href="javascript:;" class="tb_smilies" id="");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("smilies" onclick="getSmilies(getSmilies_callback);showMenu(this.id, true, 0, 2)">Smilies</a>rn");
- } //end if
- templateBuilder.Append(" <!--{/if}-->rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- if (config.Smileyinsert==1)
- {
- templateBuilder.Append(" <div class="smilies" id="");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("smilies_menu" style="display:none;width:315px;">rn");
- templateBuilder.Append(" <div class="smilieslist">rn");
- string defaulttypname = string.Empty;
-
- templateBuilder.Append(" <div id="smiliesdiv">rn");
- templateBuilder.Append(" <div class="smiliesgroup" style="margin-right: 0pt;">rn");
- templateBuilder.Append(" <ul>rn");
- int stype__loop__id=0;
- foreach(DataRow stype in Caches.GetSmilieTypesCache().Rows)
- {
- stype__loop__id++;
- if (stype__loop__id==1)
- {
- defaulttypname = stype["code"].ToString().Trim();
-
- } //end if
- if (stype__loop__id==1)
- {
- templateBuilder.Append(" <li id="t_s_" + stype__loop__id.ToString() + ""><a id="s_" + stype__loop__id.ToString() + "" hidefocus="true" href="javascript:;" onclick="showsmiles(" + stype__loop__id.ToString() + ", '" + stype["code"].ToString().Trim() + "', 1, '");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("');" class="current">" + stype["code"].ToString().Trim() + "</a></li>rn");
- }
- else
- {
- templateBuilder.Append(" <li id="t_s_" + stype__loop__id.ToString() + ""><a id="s_" + stype__loop__id.ToString() + "" hidefocus="true" href="javascript:;" onclick="showsmiles(" + stype__loop__id.ToString() + ", '" + stype["code"].ToString().Trim() + "', 1, '");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("');">" + stype["code"].ToString().Trim() + "</a></li>rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div style="clear: both;" class="float_typeid" id="showsmilie"></div>rn");
- templateBuilder.Append(" <table class="smilieslist_table" id="s_preview_table" style="display: none"><tr><td class="smilieslist_preview" id="s_preview"></td></tr></table>rn");
- templateBuilder.Append(" <div id="showsmilie_pagenum" class="smilieslist_page"> </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" //var firstpagesmilies_json ={ { Caches.GetSmiliesFirstPageCache() } };rn");
- templateBuilder.Append(" //showFirstPageSmilies(firstpagesmilies_json, '");
- templateBuilder.Append(defaulttypname.ToString());
- templateBuilder.Append("', 16, '");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append(" function getSmilies(func){rn");
- templateBuilder.Append(" if($('showsmilie').innerHTML !='' && $('showsmilie').innerHTML != '正在加载表情...')rn");
- templateBuilder.Append(" return;rn");
- templateBuilder.Append(" var c = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("tools/ajax.aspx?t=smilies";rn");
- templateBuilder.Append(" _sendRequest(c,function(d){var e={};try{e=eval("("+d+")")}catch(f){e={}}var h=e?e:null;func(h);e=null;func=null},false,true);rn");
- templateBuilder.Append(" setTimeout("if($('showsmilie').innerHTML=='')$('showsmilie').innerHTML = '正在加载表情...'", 2000);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function getSmilies_callback(obj) {rn");
- templateBuilder.Append(" smilies_HASH = obj; rn");
- templateBuilder.Append(" showsmiles(1, '");
- templateBuilder.Append(defaulttypname.ToString());
- templateBuilder.Append("', 1, '");
- templateBuilder.Append(seditorid.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <textarea rows="5" cols="80" name="message" id="quickpostmessage" tabindex="2" class="txtarea" style="background:#FFF url(" + quickbgad[1].ToString().Trim() + ") no-repeat 50% 50%;" rn");
- if (quickbgad[0].ToString().Trim()!="")
- {
- templateBuilder.Append(" onfocus="$('adlinkbtn').style.display='';$('closebtn').style.display='';this.onfocus=null;"rn");
- } //end if
- templateBuilder.Append(" onkeydown="ajaxctlent(event, this.form, ");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append(", isendpage, '");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("');"></textarea>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- if (isseccode)
- {
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td><div 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(" </div></td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end if
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- if (topic.Special==4 && isenddebate==false)
- {
- templateBuilder.Append(" <div class="float_typeid left">rn");
- templateBuilder.Append(" <select name="debateopinion" id="debateopinion">rn");
- templateBuilder.Append(" <option value="0" selected>辩论观点</option>rn");
- templateBuilder.Append(" <option value="1">正方</option>rn");
- templateBuilder.Append(" <option value="2">反方</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" <script type="text/javascript">loadselect("debateopinion");</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <button type="button" id="quickpostsubmit" name="replysubmit" tabindex="3" onclick="ajaxreply(this.form, ");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append(", isendpage, '");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("', false);">发表回复</button><span class="grayfont">[Ctrl+Enter快速发布]</span>rn");
- templateBuilder.Append(" <a href="###" id="adlinkbtn" style="display:none;" onclick="window.open('" + quickbgad[0].ToString().Trim() + "','_blank');">查看背景广告</a>rn");
- templateBuilder.Append(" <a href="###" id="closebtn" style="display:none;" onclick="$('quickpostmessage').style.background='';this.style.display='none';$('adlinkbtn').style.display='none';">隐藏</a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var isendpage = (");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("==");
- templateBuilder.Append(pagecount.ToString());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" var textobj = $('quickpostmessage');rn");
- templateBuilder.Append(" var smileyinsert = 1;rn");
- templateBuilder.Append(" var showsmiliestitle = 0;rn");
- templateBuilder.Append(" var smiliesIsCreate = 0; rn");
- templateBuilder.Append(" var smilies_HASH = {};rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_quickreply.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("</form>rn");
- } //end if
- templateBuilder.Append("</div>rn");
- if (userid<0||canposttopic)
- {
- templateBuilder.Append(" <ul class="popupmenu_popup newspecialmenu" id="newspecial_menu" style="display: none">rn");
- if (forum.Allowspecialonly<=0)
- {
- templateBuilder.Append(" <li><a href="posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("" onclick="floatwin('open_newthread', this.href, 600, 410, '600,0');doane(event);">发新主题</a></li>rn");
- } //end if
- int specialpost = forum.Allowpostspecial&1;
-
- if (specialpost==1 && usergroupinfo.Allowpostpoll==1)
- {
- templateBuilder.Append(" <li class="poll"><a href="posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("&type=poll">发布投票</a></li>rn");
- } //end if
- specialpost = forum.Allowpostspecial&4;
-
- if (specialpost==4 && usergroupinfo.Allowbonus==1)
- {
- templateBuilder.Append(" <li class="reward"><a href="posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("&type=bonus">发布悬赏</a></li>rn");
- } //end if
- specialpost = forum.Allowpostspecial&16;
-
- if (specialpost==16 && usergroupinfo.Allowdebate==1)
- {
- templateBuilder.Append(" <li class="debate"><a href="posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(forumpageid.ToString());
- templateBuilder.Append("&type=debate">发起辩论</a></li>rn");
- } //end if
- templateBuilder.Append(" </ul>rn");
- } //end if
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var topictitle = '");
- templateBuilder.Append(topic.Title.ToString().Trim());
- templateBuilder.Append("';rn");
- templateBuilder.Append("var maxpage = parseInt('");
- templateBuilder.Append(pagecount.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append("var pageid = parseInt('");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append("if(maxpage > 1) {rn");
- templateBuilder.Append(" document.onkeyup = function(e){rn");
- templateBuilder.Append(" e = e ? e : window.event;rn");
- templateBuilder.Append(" var tagname = is_ie ? e.srcElement.tagName : e.target.tagName;rn");
- templateBuilder.Append(" if(tagname == 'INPUT' || tagname == 'TEXTAREA') return;rn");
- templateBuilder.Append(" actualCode = e.keyCode ? e.keyCode : e.charCode;rn");
- templateBuilder.Append(" if (pageid < maxpage && actualCode == 39) {rn");
- templateBuilder.Append(" window.location = '");
- templateBuilder.Append(Urls.ShowTopicAspxRewrite(topicid,pageid+1).ToString().Trim());
- templateBuilder.Append("';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if (pageid > 1 && actualCode == 37) {rn");
- templateBuilder.Append(" window.location = '");
- templateBuilder.Append(Urls.ShowTopicAspxRewrite(topicid,pageid-1).ToString().Trim());
- templateBuilder.Append("';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- }
- 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
- {
- templateBuilder.Append(" <div id="nav">rn");
- templateBuilder.Append(" <div class="wrap s_clear"><a id="forumlist" href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("" class="title">");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</a> » <strong>错误提示</strong></div>rn");
- templateBuilder.Append(" </div>rn");
- 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
- templateBuilder.Append(inpostad.ToString());
- templateBuilder.Append("rn");
- if (config.Forumjump==1)
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(navhomemenu.ToString());
- templateBuilder.Append("rn");
- } //end if
- if (showvisitedforumsmenu)
- {
- templateBuilder.Append("<ul class="popupmenu_popup" id="visitedforums_menu" style="display: none">rn");
- int simpforuminfo__loop__id=0;
- foreach(SimpleForumInfo simpforuminfo in visitedforums)
- {
- simpforuminfo__loop__id++;
- if (simpforuminfo.Fid!=forumid)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(simpforuminfo.Url.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(simpforuminfo.Name.ToString().Trim());
- templateBuilder.Append("</a></li>rn");
- } //end if
- } //end loop
- templateBuilder.Append("</ul>rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("getuserips();rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- 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
- if (floatad!="")
- {
- templateBuilder.Append(" <script type="text/javascript" src="javascript/template_floatadv.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(floatad.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" <script type="text/javascript">theFloaters.play();</");
- templateBuilder.Append("script>rn");
- }
- else if (doublead!="")
- {
- templateBuilder.Append(" <script type="text/javascript" src="javascript/template_floatadv.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(doublead.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" <script type="text/javascript">theFloaters.play();</");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append("</body>rn");
- templateBuilder.Append("</html>rn");
- }
- else
- {
- templateBuilder.Append("]]></root>rn");
- } //end if
- Response.Write(templateBuilder.ToString());
- }
- </script>