showforum.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:139k
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("">");
- templateBuilder.Append(topic.Title.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- if (topic.Folder=="new")
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/posts_new.gif" />rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- }
- else
- {
- if (forum.Applytopictype==1 && forum.Topictypeprefix==1)
- {
- if (forum.Viewbytopictype==1 && topic.Topictypename!="")
- {
- templateBuilder.Append(" <em>[<a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&typeid=");
- templateBuilder.Append(topic.Typeid.ToString().Trim());
- templateBuilder.Append("" >");
- templateBuilder.Append(topic.Topictypename.ToString().Trim());
- templateBuilder.Append("</a>]</em>rn");
- }
- else if (topic.Topictypename!="")
- {
- templateBuilder.Append(" <em>[");
- templateBuilder.Append(topic.Topictypename.ToString().Trim());
- templateBuilder.Append("]</em>rn");
- } //end if
- } //end if
- aspxrewriteurl = this.ShowTopicAspxRewrite(topic.Tid,0);
-
- if (topic.Special==3)
- {
- aspxrewriteurl = this.ShowBonusAspxRewrite(topic.Tid,0);
-
- } //end if
- if (topic.Special==4)
- {
- aspxrewriteurl = this.ShowDebateAspxRewrite(topic.Tid);
-
- } //end if
- int ishtmltitle = Topics.GetMagicValue(topic.Magic, MagicType.HtmlTitle);
-
- if (ishtmltitle==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("rn");
- if (config.Aspxrewrite!=1)
- {
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("">");
- templateBuilder.Append(Topics.GetHtmlTitle(topic.Tid).ToString().Trim());
- templateBuilder.Append("</a>rn");
- }
- else
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("rn");
- if (config.Aspxrewrite!=1)
- {
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("">");
- templateBuilder.Append(topic.Title.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- if (topic.Folder=="new")
- {
- templateBuilder.Append(" <span class="new">NEW</span>rn");
- } //end if
- } //end if
- }
- else
- {
- if (forum.Applytopictype==1 && forum.Topictypeprefix==1)
- {
- if (forum.Viewbytopictype==1 && topic.Topictypename!="")
- {
- templateBuilder.Append(" <em>[<a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&typeid=");
- templateBuilder.Append(topic.Typeid.ToString().Trim());
- templateBuilder.Append("" >");
- templateBuilder.Append(topic.Topictypename.ToString().Trim());
- templateBuilder.Append("</a>]</em>rn");
- }
- else if (topic.Topictypename!="")
- {
- templateBuilder.Append(" <em>[");
- templateBuilder.Append(topic.Topictypename.ToString().Trim());
- templateBuilder.Append("]</em>rn");
- } //end if
- } //end if
- aspxrewriteurl = this.ShowTopicAspxRewrite(topic.Tid,0);
-
- if (topic.Special==3)
- {
- aspxrewriteurl = this.ShowBonusAspxRewrite(topic.Tid,0);
-
- } //end if
- if (topic.Special==4)
- {
- aspxrewriteurl = this.ShowDebateAspxRewrite(topic.Tid);
-
- } //end if
- int ishtmltitle = Topics.GetMagicValue(topic.Magic, MagicType.HtmlTitle);
-
- if (ishtmltitle==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("rn");
- if (config.Aspxrewrite!=1)
- {
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("">");
- templateBuilder.Append(Topics.GetHtmlTitle(topic.Tid).ToString().Trim());
- templateBuilder.Append("</a>rn");
- }
- else
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("rn");
- if (config.Aspxrewrite!=1)
- {
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("">");
- templateBuilder.Append(topic.Title.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- if (topic.Folder=="new")
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/posts_new.gif"/>rn");
- } //end if
- } //end if
- if (topic.Attachment==1)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/attachment.gif" alt="附件"/>rn");
- }
- else if (topic.Attachment==2)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/attachment_image.gif" alt="图片附件"/>rn");
- } //end if
- if (topic.Special==2)
- {
- templateBuilder.Append(" - [悬赏 ");
- templateBuilder.Append(bonusextcreditsinfo.Name.ToString().Trim());
- templateBuilder.Append(" <span class="bold">");
- templateBuilder.Append(topic.Price.ToString().Trim());
- templateBuilder.Append("</span> ");
- templateBuilder.Append(bonusextcreditsinfo.Unit.ToString().Trim());
- templateBuilder.Append("] rn");
- }
- else if (topic.Special==3)
- {
- templateBuilder.Append(" - [悬赏已结束]rn");
- }
- else if (topic.Special==0)
- {
- if (topic.Price>0)
- {
- templateBuilder.Append(" - [售价 ");
- templateBuilder.Append(topicextcreditsinfo.Name.ToString().Trim());
- templateBuilder.Append(" <span class="bold">");
- templateBuilder.Append(topic.Price.ToString().Trim());
- templateBuilder.Append("</span> ");
- templateBuilder.Append(topicextcreditsinfo.Unit.ToString().Trim());
- templateBuilder.Append("] rn");
- } //end if
- } //end if
- if (topic.Readperm>0)
- {
- templateBuilder.Append(" - [阅读权限 <span class="bold">");
- templateBuilder.Append(topic.Readperm.ToString().Trim());
- templateBuilder.Append("</span>] rn");
- } //end if
- if (topic.Replies/ppp>0)
- {
- templateBuilder.Append(" <span class="threadpages"><script type="text/javascript">getpagenumbers("");
- templateBuilder.Append(config.Extname.ToString().Trim());
- templateBuilder.Append("", ");
- templateBuilder.Append(topic.Replies.ToString().Trim());
- templateBuilder.Append(",");
- templateBuilder.Append(ppp.ToString());
- templateBuilder.Append(",0,"",");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(",1, "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("", aspxrewrite);</");
- templateBuilder.Append("script></span>rn");
- } //end if
- templateBuilder.Append(" </th>rn");
- templateBuilder.Append(" <td class="author">rn");
- templateBuilder.Append(" <cite>rn");
- if (topic.Posterid==-1)
- {
- templateBuilder.Append(" 游客rn");
- }
- else
- {
- aspxrewriteurl = this.UserInfoAspxRewrite(topic.Posterid);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(topic.Poster.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- templateBuilder.Append(" </cite>rn");
- templateBuilder.Append(" <em>rn");
- templateBuilder.Append(Convert.ToDateTime(topic.Postdatetime).ToString(" yyyy-MM-dd HH:mm"));
- templateBuilder.Append("</em>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td class="nums"><em>");
- templateBuilder.Append(topic.Replies.ToString().Trim());
- templateBuilder.Append("</em> / ");
- templateBuilder.Append(topic.Views.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td class="lastpost">rn");
- templateBuilder.Append(" <cite>rn");
- if (topic.Lastposterid==-1)
- {
- templateBuilder.Append(" 游客rn");
- }
- else
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(UserInfoAspxRewrite(topic.Lastposterid).ToString().Trim());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(topic.Lastposter.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- templateBuilder.Append(" </cite>rn");
- templateBuilder.Append(" <em><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showtopic.aspx?topicid=");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("rn");
- if (config.Aspxrewrite!=1)
- {
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("&page=end#lastpost">rn");
- templateBuilder.Append(Convert.ToDateTime(topic.Lastpost).ToString(" yyyy-MM-dd HH:mm"));
- templateBuilder.Append("</a></em>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- if (pageid<3 && forum.Allowthumbnail==1)
- {
- if (topic.Attachment==2)
- {
- string timg = Attachments.GetThumbnailByTid(topic.Tid,160,ThumbnailType.Thumbnail);
-
- if (timg!="")
- {
- tdivimg = tdivimg+"<div id='t_thumbnail_" + topic.Tid + "_menu' style='display: none;' class='popupmenu_popup'><img src='" + timg + "' /></div>";
-
- } //end if
- } //end if
- } //end if
- templateBuilder.Append(" </tbody>rn");
- } //end loop
- templateBuilder.Append(" </table>rn");
- if (topiclist.Count<=0)
- {
- templateBuilder.Append(" <div class="zerothreads">当前板块暂无主题</div>rn");
- } //end if
- if (useradminid>0 && ismoder)
- {
- templateBuilder.Append(" <div id="modlayer" style="display: none;position:position">rn");
- templateBuilder.Append(" <input type="hidden" name="optgroup" />rn");
- templateBuilder.Append(" <input type="hidden" name="operat" />rn");
- templateBuilder.Append(" <input type="hidden" name="winheight" />rn");
- templateBuilder.Append(" <a class="collapse" href="javascript:;" onclick="$('modlayer').className='collapsed'"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/collapsed_yes.gif" alt="缩小" title="缩小" /></a>rn");
- templateBuilder.Append(" <label><input class="checkbox" type="checkbox" name="chkall" onclick="if(!($('modcount').innerHTML = modclickcount = checkall(this.form, 'topicid'))) {$('modlayer').style.display = 'none';}" /> 全选</label>rn");
- templateBuilder.Append(" <span>选中</span><strong onmouseover="$('moremodoption').style.display='block'" onclick="$('modlayer').className=''" id="modcount"></strong><span>篇: </span>rn");
- templateBuilder.Append(" <strong><a href="javascript:;" onclick="modthreads(3, 'delete');return false;">删除</a></strong>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <strong><a href="javascript:;" onclick="modthreads(2, 'move');return false;">移动</a></strong>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <strong><a href="javascript:;" onclick="modthreads(2, 'type');return false;">分类</a></strong>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <strong><a href="javascript:;" onclick="modthreads(2, 'identify');return false;">鉴定</a></strong>rn");
- templateBuilder.Append(" <div id="moremodoption">rn");
- templateBuilder.Append(" <hr class="solidline" />rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="modthreads(1, 'displayorder');return false;">置顶</a>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="modthreads(1, 'highlight');return false;">高亮</a>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="modthreads(1, 'digest');return false;">精华</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="modthreads(3, 'bump');return false;">提升下沉</a>rn");
- templateBuilder.Append(" rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="modthreads(4,'close');return false;">关闭打开</a>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <div class="pages_btns" id="footfilter">rn");
- templateBuilder.Append(" <div class="pages">rn");
- templateBuilder.Append(" <cite class="pageback" id="visitedforums"rn");
- if (showvisitedforumsmenu)
- {
- templateBuilder.Append(" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu(this.id)"rn");
- } //end if
- templateBuilder.Append("><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("">返回首页</a></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="$('pageidinput2').style.display='none';$('pageidtxt2').style.display='';" onKeyDown="if(event.keyCode==13) { if(parseInt('");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append("')==1) {window.location='");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum-");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("-' + (parseInt(this.value) > 0 ? parseInt(this.value) : 1) + '");
- templateBuilder.Append(config.Extname.ToString().Trim());
- templateBuilder.Append("';}else{window.location='");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(forumid.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(" <span class="left"><form name="LookBySearch" method="post" action="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?search=1&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&typeid=");
- templateBuilder.Append(topictypeid.ToString());
- templateBuilder.Append("&filter=");
- templateBuilder.Append(filter.ToString());
- templateBuilder.Append("" style="padding-top:4px;">rn");
- if (topictypeid==0)
- {
- templateBuilder.Append(" <div class="float_typeid">rn");
- templateBuilder.Append(" <select name="interval" id="interval">rn");
- templateBuilder.Append(" <option value="0" rn");
- if (interval==0)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">全部主题</option>rn");
- templateBuilder.Append(" <option value="1" rn");
- if (interval==1)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">1 天以来主题</option>rn");
- templateBuilder.Append(" <option value="2" rn");
- if (interval==2)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">2 天以来主题</option>rn");
- templateBuilder.Append(" <option value="7" rn");
- if (interval==7)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">1 周以来主题</option>rn");
- templateBuilder.Append(" <option value="30" rn");
- if (interval==30)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">1 个月以来主题</option>rn");
- templateBuilder.Append(" <option value="90" rn");
- if (interval==90)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">3 个月以来主题</option>rn");
- templateBuilder.Append(" <option value="180" rn");
- if (interval==180)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">6 个月以来主题</option>rn");
- templateBuilder.Append(" <option value="365" rn");
- if (interval==365)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">1 年以来主题</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript">loadselect("interval");</");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" <div class="float_typeid">rn");
- templateBuilder.Append(" <select name="order" id="order">rn");
- templateBuilder.Append(" <option value="1" rn");
- if (order==1)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">最后回复时间</option>rn");
- templateBuilder.Append(" <option value="2" rn");
- if (order==2)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">发布时间</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="float_typeid">rn");
- templateBuilder.Append(" <select name="direct" id="direct">rn");
- templateBuilder.Append(" <option value="0" rn");
- if (direct==0)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">按升序排列</option>rn");
- templateBuilder.Append(" <option value="1" rn");
- if (direct==1)
- {
- templateBuilder.Append("selectedrn");
- } //end if
- templateBuilder.Append(">按降序排列</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <button type="submit">提交</button>rn");
- templateBuilder.Append(" <script type="text/javascript">loadselect("order");loadselect("direct");</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(tdivimg.ToString());
- templateBuilder.Append("rn");
- if (canquickpost)
- {
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/post.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<form method="post" name="postform" id="quickpostform" action="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("posttopic.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("" enctype="multipart/form-data" onsubmit="return fastvalidate(this);">rn");
- templateBuilder.Append("<div id="quickpost">rn");
- templateBuilder.Append(" <table summary="快速发布帖子" cellspacing="0" cellpadding="0">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="quickpostauthor">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" style="padding-top:0;">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(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <em id="validatemessage"></em>rn");
- templateBuilder.Append(" <input type="text" id="title" name="title" size="60" tabindex="1" value="" class="txt left"/>rn");
- if (forum.Applytopictype==1 && topictypeselectoptions!="")
- {
- templateBuilder.Append(" <div class="float_typeid " style="margin-left:10px;">rn");
- templateBuilder.Append(" <select name="typeid" id="typeid">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(topictypeselectoptions.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" <script type="text/javascript">loadselect('typeid', 0);</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td style="padding-top:0;">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" value="1" name="parseurloff" id="parseurloff" rn");
- if (parseurloff==1)
- {
- templateBuilder.Append("checked rn");
- } //end if
- templateBuilder.Append(" />rn");
- templateBuilder.Append(" <input type="checkbox" value="1" name="smileyoff" id="smileyoff" rn");
- if (smileyoff==1)
- {
- templateBuilder.Append(" checked disabled rn");
- } //end if
- templateBuilder.Append(" />rn");
- templateBuilder.Append(" <input type="checkbox" value="1" name="bbcodeoff" id="bbcodeoff" rn");
- if (bbcodeoff==1)
- {
- templateBuilder.Append(" checked disabled rn");
- } //end if
- templateBuilder.Append(" />rn");
- templateBuilder.Append(" <input type="checkbox" value="1" name="usesig" id="usesig"rn");
- if (usesig==1)
- {
- templateBuilder.Append("checkedrn");
- } //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");
- templateBuilder.Append(" <!-- rn");
- templateBuilder.Append(" <span class="right">rn");
- templateBuilder.Append(" <a href="post.php?action=reply&fid=$fid&tid=$tid" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');return false;">{lang post_expert_newreply}</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <span id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu(this.id)"><a href="post.php?action=newthread&fid=$fid" onclick="floatwin('open_newthread', this.href, 600, 410, '600,0');return false;">{lang post_newthread}</a></span>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" {eval $seditor = array('fastpost', array('bold', 'color', 'img', 'link', 'quote', 'code', 'smilies'));}rn");
- templateBuilder.Append(" -->rn");
- string seditorid = "quickpost";
-
- char comma = ',';
-
- 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" onKeyDown="seditor_ctlent(event, 'fastvalidate($(\'quickpostform\'))');" 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("></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");
- templateBuilder.Append(" <button type="submit" id="quickpostsubmit" name="topicsubmit" tabindex="3">发表帖子</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(" <input type="hidden" id="postbytopictype" name="postbytopictype" value="");
- templateBuilder.Append(forum.Postbytopictype.ToString().Trim());
- templateBuilder.Append("" tabindex="3" />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("</div>rn");
- templateBuilder.Append("</form>rn");
- } //end if
- if (config.Whosonlinestatus!=0 && config.Whosonlinestatus!=1)
- {
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="mainbox s_clear" id="online">rn");
- templateBuilder.Append(" <span class="headactions" style="display:none">rn");
- if (DNTRequest.GetString("showonline")=="no")
- {
- templateBuilder.Append(" <a href="showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&showonline=yes#online"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/collapsed_no.gif" alt="收起" />rn");
- }
- else
- {
- templateBuilder.Append(" <a href="showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&showonline=no#online"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/collapsed_yes.gif" alt="展开" />rn");
- } //end if
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" <h4>rn");
- templateBuilder.Append(" <strong>在线用户</strong> - <em id="forumtotalonline">");
- templateBuilder.Append(forumtotalonline.ToString());
- templateBuilder.Append("</em> 人在线<span id="invisible"></span>rn");
- templateBuilder.Append(" </h4>rn");
- templateBuilder.Append(" <dl id="onlinelist">rn");
- templateBuilder.Append(" <dt style="display:none">");
- templateBuilder.Append(onlineiconlist.ToString());
- templateBuilder.Append("</dt>rn");
- if (showforumonline)
- {
- templateBuilder.Append(" <dd>rn");
- templateBuilder.Append(" <ul class="userlist s_clear">rn");
- int invisiblecount = 0;
-
- if (forumtotalonline!=0)
- {
- int onlineuser__loop__id=0;
- foreach(OnlineUserInfo onlineuser in onlineuserlist)
- {
- onlineuser__loop__id++;
- if (onlineuser.Invisible==1)
- {
- invisiblecount = invisiblecount + 1;
-
- templateBuilder.Append(" <li style="overflow:hidden;text-align:center;height:70px;width:80px;line-height:60px">(隐身会员)</li>rn");
- }
- else
- {
- templateBuilder.Append(" <li style="overflow:hidden;text-align:center;height:70px;width:80px">rn");
- string avatarurl = Avatars.GetAvatarUrl(onlineuser.Userid, AvatarSize.Small);
-
- 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_small.gif';" alt="头像" id="memberinfo_" + onlineuser__loop__id.ToString() + "" style="border:1px solid #E8E8E8;padding:1px;" />rn");
- if (onlineuser.Userid==-1)
- {
- templateBuilder.Append(" <p>");
- templateBuilder.Append(onlineuser.Username.ToString().Trim());
- templateBuilder.Append("</p>rn");
- }
- else
- {
- aspxrewriteurl = this.UserInfoAspxRewrite(onlineuser.Userid);
-
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(onlineuser.Username.ToString().Trim());
- templateBuilder.Append("</a></p>rn");
- } //end if
- templateBuilder.Append(" </li>rn");
- } //end if
- } //end loop
- if (invisiblecount>0)
- {
- templateBuilder.Append(" <script type="text/javascript">$('invisible').innerHTML = '(");
- templateBuilder.Append(invisiblecount.ToString());
- templateBuilder.Append("' + " 隐身)";</");
- templateBuilder.Append("script>rn");
- } //end if
- }
- else
- {
- templateBuilder.Append(" <script type="text/javascript">$('forumtotalonline').innerHTML = parseInt($('forumtotalonline').innerHTML)+1;</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <li style="overflow:hidden;text-align:center;height:70px;width:80px">rn");
- string avatarurl = Avatars.GetAvatarUrl(userid, AvatarSize.Small);
-
- 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_small.gif';" alt="头像" " style="border:1px solid #E8E8E8;padding:1px;" />rn");
- if (userid==-1)
- {
- templateBuilder.Append(" <p>");
- templateBuilder.Append(username.ToString());
- templateBuilder.Append("</p>rn");
- }
- else
- {
- aspxrewriteurl = this.UserInfoAspxRewrite(userid);
-
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(username.ToString());
- templateBuilder.Append("</a></p>rn");
- } //end if
- templateBuilder.Append(" </li>rn");
- } //end if
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </dd>rn");
- } //end if
- templateBuilder.Append(" </dl>rn");
- templateBuilder.Append(" </div>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="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(pageid.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(pageid.ToString());
- templateBuilder.Append("', 600, 410, '600,0');doane(event);">发新主题</a></li>rn");
- } //end if
- specialpost = forum.Allowpostspecial&1;
-
- if (specialpost==1 && usergroupinfo.Allowpostpoll==1)
- {
- templateBuilder.Append(" <li class="poll"><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&type=poll&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("">发布投票</a></li>rn");
- } //end if
- specialpost = forum.Allowpostspecial&4;
-
- if (specialpost==4 && usergroupinfo.Allowbonus==1)
- {
- templateBuilder.Append(" <li class="reward"><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&type=bonus&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("">发布悬赏</a></li>rn");
- } //end if
- specialpost = forum.Allowpostspecial&16;
-
- if (specialpost==16 && usergroupinfo.Allowdebate==1)
- {
- templateBuilder.Append(" <li class="debate"><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&type=debate&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("" >发起辩论</a></li>rn");
- } //end if
- templateBuilder.Append(" </ul>rn");
- } //end if
- } //end if
- templateBuilder.Append(" <script type="text/javascript">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(forumpath.ToString());
- templateBuilder.Append(Urls.ShowForumAspxRewrite(forumid,pageid+1,forum.Rewritename).ToString().Trim());
- templateBuilder.Append("';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(pageid > 1 && actualCode == 37) {rn");
- templateBuilder.Append(" window.location = '");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(Urls.ShowForumAspxRewrite(forumid,pageid-1,forum.Rewritename).ToString().Trim());
- templateBuilder.Append("';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append("</div>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 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
- 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(forumpath.ToString());
- 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
- 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(mediaad.ToString());
- templateBuilder.Append("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
- templateBuilder.Append("</body>rn");
- templateBuilder.Append("</html>rn");
- }
- else
- {
- templateBuilder.Append("]]></root>rn");
- } //end if
- Response.Write(templateBuilder.ToString());
- }
- </script>