showgoodslist.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:27k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.showgoodslist" %>
- <%@ Import namespace="System.Data" %>
- <%@ Import namespace="Discuz.Common" %>
- <%@ Import namespace="Discuz.Forum" %>
- <%@ Import namespace="Discuz.Entity" %>
- <script runat="server">
- override protected void OnInit(EventArgs e)
- {
- /*
- This page was created by Discuz!NT Template Engine at 2009-9-22 17:24:56.
- 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:24:56.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- templateBuilder.Append("<script type="text/javascript" src="javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- if (page_err==0)
- {
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var templatepath = "");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append(" var fid = parseInt(");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" var postminchars = parseInt(");
- templateBuilder.Append(config.Minpostsize.ToString().Trim());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" var postmaxchars = parseInt(");
- templateBuilder.Append(config.Maxpostsize.ToString().Trim());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" var disablepostctrl = parseInt(");
- templateBuilder.Append(disablepostctrl.ToString());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript" src="javascript/locations.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_showgoodslist.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<div id="foruminfo">rn");
- templateBuilder.Append(" <div id="headsearch">rn");
- templateBuilder.Append(" <div id="search">rn");
- if (usergroupinfo.Allowsearch>0)
- {
- } //end if
- templateBuilder.Append(" </div>rn");
- if (page_err==0)
- {
- templateBuilder.Append(" <p>rn");
- templateBuilder.Append(" <a href="showtopiclist.aspx?type=digest&forums=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("">精华帖区</a>rn");
- if (forumallowrss!=0)
- {
- aspxrewriteurl = this.RssAspxRewrite(forum.Fid);
-
- templateBuilder.Append(" <a href="tools/");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/rss.gif" alt="Rss"/></a>rn");
- } //end if
- templateBuilder.Append(" </p>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="nav">rn");
- templateBuilder.Append(" <div class="userinfolist">rn");
- if (page_err==0)
- {
- templateBuilder.Append(" <p><a id="forumlist" href="");
- templateBuilder.Append(config.Forumurl.ToString().Trim());
- templateBuilder.Append("" rn");
- if (config.Forumjump==1)
- {
- templateBuilder.Append(" onmouseover="showMenu(this.id);" onmouseout="showMenu(this.id);"rn");
- } //end if
- templateBuilder.Append(" >");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</a> » ");
- templateBuilder.Append(goodscategoryinfo.Pathlist.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <p> 版主: rn");
- templateBuilder.Append(" <em>rn");
- if (forum.Moderators!="")
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(forum.Moderators.ToString().Trim());
- templateBuilder.Append("rn");
- }
- else
- {
- templateBuilder.Append(" *空缺中*rn");
- } //end if
- templateBuilder.Append(" </em>rn");
- templateBuilder.Append(" </p>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- if (config.Forumjump==1)
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(navhomemenu.ToString());
- templateBuilder.Append("rn");
- } //end if
- if (page_err==0)
- {
- templateBuilder.Append("<table cellspacing="1" cellpadding="0" class="portalbox" summary="HeadBox">rn");
- templateBuilder.Append("<tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <h3>商品分类</h3>rn");
- templateBuilder.Append(" <ul id="categories">rn");
- templateBuilder.Append(" <script language="javascript">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(subcategoriesjson.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" loadcategory(");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append("</tbody> rn");
- templateBuilder.Append("</table>rn");
- if (showforumlogin==1)
- {
- templateBuilder.Append("<div class="mainbox formbox">rn");
- templateBuilder.Append(" <h3>本版块已经被管理员设置了密码</h3>rn");
- templateBuilder.Append(" <form id="forumlogin" name="forumlogin" method="post" action="">rn");
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" border="0">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>请输入密码:</th>rn");
- templateBuilder.Append(" <td><input name="forumpassword" type="password" id="forumpassword" size="20"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- if (isseccode)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>输入验证码:</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <div style="position: relative;">rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="submit" value="确定" class="sbutton"/>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");
- }
- else
- {
- if (forum.Rules!="")
- {
- templateBuilder.Append(" <table class="portalbox" cellspacing="1" cellpadding="0" summary="rules and recommend">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td id="rules">rn");
- templateBuilder.Append(" <span class="headactions recommendrules"><img id="rules_img" title="收起/展开" onclick="$('rules_link').style.display = '';toggle_collapse('rules', 1);" alt="收起/展开" src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/collapsed_no.gif" /></span> <h3>本版规则</h3>");
- templateBuilder.Append(forum.Rules.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- } //end if
- if (forum.Layer!=0)
- {
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">rn");
- templateBuilder.Append(" <em>");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("/");
- templateBuilder.Append(pagecount.ToString());
- templateBuilder.Append("页</em>");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" <kbd>跳转<input name="gopage" type="text" id="Text1" onKeyDown="if(event.keyCode==13) { if(parseInt('");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append("')==1) {window.location='showgoodslist-");
- templateBuilder.Append(categoryid.ToString());
- templateBuilder.Append("-' + (parseInt(this.value) > 0 ? parseInt(this.value) : 1) + '");
- templateBuilder.Append(config.Extname.ToString().Trim());
- templateBuilder.Append("';}else{window.location='showgoodslist.aspx?categoryid=");
- templateBuilder.Append(categoryid.ToString());
- templateBuilder.Append("&page=' + (parseInt(this.value) > 0 ? parseInt(this.value) : 1)}}" size="4" maxlength="9"/>页</kbd>rn");
- templateBuilder.Append(" </div>rn");
- if (canposttopic)
- {
- templateBuilder.Append(" <span class="postbtn"><a href="postgoods.aspx?categoryid=");
- templateBuilder.Append(categoryid.ToString());
- templateBuilder.Append(""><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/postshop.gif" alt="发布商品" /></a></span>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <form id="moderate" name="moderate" method="post" action="goodsadmin.aspx?action=moderate&categoryid=");
- templateBuilder.Append(categoryid.ToString());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <div class="mainbox threadlist shoplist">rn");
- templateBuilder.Append(" <h3>rn");
- aspxrewriteurl = this.ShowGoodsListAspxRewrite(categoryid, 1);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(goodscategoryinfo.Categoryname.ToString().Trim());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" <em>(商品:");
- templateBuilder.Append(goodscount.ToString());
- templateBuilder.Append(")</em>rn");
- templateBuilder.Append(" </h3>rn");
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed;">rn");
- templateBuilder.Append(" <thead class="category">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="folder"> </td>rn");
- templateBuilder.Append(" <td style="width:100px;"> </td>rn");
- templateBuilder.Append(" <th>商品名称/卖家</th>rn");
- templateBuilder.Append(" <td class="nums">数量</td>rn");
- templateBuilder.Append(" <td class="nums">价格</td>rn");
- templateBuilder.Append(" <td class="nums">运费</td>rn");
- templateBuilder.Append(" <td class="nums">所在地</td>rn");
- templateBuilder.Append(" <td class="author" style="text-align:center;">截至日期</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead>rn");
- templateBuilder.Append(" <!--announcement start-->rn");
- int announcement__loop__id=0;
- foreach(DataRow announcement in announcementlist.Rows)
- {
- announcement__loop__id++;
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/announcement.gif" alt="announcement" /></td>rn");
- templateBuilder.Append(" <td> </td>rn");
- templateBuilder.Append(" <th>rn");
- templateBuilder.Append(" <a href="announcement.aspx#" + announcement["id"].ToString().Trim() + "">" + announcement["title"].ToString().Trim() + "</a>rn");
- templateBuilder.Append(" </th>rn");
- templateBuilder.Append(" <td colspan=3>rn");
- if (Utils.StrToInt(announcement["posterid"].ToString().Trim(), 0)==-1)
- {
- templateBuilder.Append(" 游客rn");
- }
- else
- {
- aspxrewriteurl = this.UserInfoAspxRewrite(announcement["posterid"].ToString().Trim());
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">" + announcement["poster"].ToString().Trim() + "</a>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td>-</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end loop
- templateBuilder.Append(" <!--announcement end-->rn");
- templateBuilder.Append(" <!--goodslist start-->rn");
- int goodsinfo__loop__id=0;
- foreach(Goodsinfo goodsinfo in goodslist)
- {
- goodsinfo__loop__id++;
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- aspxrewriteurl = this.ShowGoodsAspxRewrite(goodsinfo.Goodsid);
-
- templateBuilder.Append(" <td><input type="checkbox" name="goodsid" value="");
- templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
- templateBuilder.Append("" /></td>rn");
- templateBuilder.Append(" <td class="shoppicture">rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">rn");
- if (goodsinfo.Goodspic=="")
- {
- templateBuilder.Append(" <img width="80" height="80" src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/mall/nogoods_small.gif" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
- templateBuilder.Append("';" title="");
- templateBuilder.Append(goodsinfo.Title.ToString().Trim());
- templateBuilder.Append("">rn");
- }
- else
- {
- templateBuilder.Append(" <img width="80" height="80" src="upload/");
- templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
- templateBuilder.Append("';" title="");
- templateBuilder.Append(goodsinfo.Title.ToString().Trim());
- templateBuilder.Append("">rn");
- } //end if
- templateBuilder.Append(" </a>rn");
- templateBuilder.Append(" </td> rn");
- templateBuilder.Append(" <th>rn");
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(goodsinfo.Htmltitle.ToString().Trim());
- templateBuilder.Append("</a></p>rn");
- templateBuilder.Append(" <p>卖家:rn");
- aspxrewriteurl = this.UserInfoAspxRewrite(goodsinfo.Selleruid);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(goodsinfo.Seller.ToString().Trim());
- templateBuilder.Append("</a></p>rn");
- templateBuilder.Append(" <p><a class="buybutton" href="usercppostpm.aspx?msgtoid=");
- templateBuilder.Append(goodsinfo.Selleruid.ToString().Trim());
- templateBuilder.Append("" target="_blank">给我留言</a> <a class="buybutton" href="favorites.aspx?goodsid=");
- templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
- templateBuilder.Append("">收藏</a></p>rn");
- templateBuilder.Append(" </th>rn");
- templateBuilder.Append(" <td class="nums">");
- templateBuilder.Append(goodsinfo.Amount.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td class="nums"><p class="price">");
- templateBuilder.Append(goodsinfo.Price.ToString().Trim());
- templateBuilder.Append("</p></td>rn");
- templateBuilder.Append(" <td class="nums">");
- templateBuilder.Append(goodsinfo.Ordinaryfee.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td class="nums">");
- templateBuilder.Append(goodsinfo.Locus.ToString().Trim());
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(goodsinfo.Expiration.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end loop
- templateBuilder.Append(" <!--goodslist end-->rn");
- templateBuilder.Append(" </table>rn");
- if (useradminid>0 && ismoder)
- {
- templateBuilder.Append(" <div class="footoperation"><strong>批量管理选项</strong> rn");
- templateBuilder.Append(" <input class="radio" name="operat" type="hidden" />rn");
- templateBuilder.Append(" <input class="checkbox" name="chkall" onclick="checkall(this.form, 'goodsid')" type="checkbox" />全选rn");
- templateBuilder.Append(" <button onclick="document.moderate.operat.value = 'delete';document.moderate.submit()"/>删除商品</button>rn");
- templateBuilder.Append(" <button onclick="document.moderate.operat.value = 'highlight';document.moderate.submit()" />高亮显示</button>rn");
- templateBuilder.Append(" <button onclick="document.moderate.operat.value = 'close';document.moderate.submit()" />关闭商品</button>rn");
- templateBuilder.Append(" <button onclick="document.moderate.operat.value = 'movecategory';document.moderate.submit()" />移动商品</button>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">rn");
- templateBuilder.Append(" <em>");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("/");
- templateBuilder.Append(pagecount.ToString());
- templateBuilder.Append("页</em>");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" <kbd>跳转<input name="gopage" type="text" id="Text1" onKeyDown="if(event.keyCode==13) { if(parseInt('");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append("')==1) {window.location='showgoodslist-");
- templateBuilder.Append(categoryid.ToString());
- templateBuilder.Append("-' + (parseInt(this.value) > 0 ? parseInt(this.value) : 1) + '");
- templateBuilder.Append(config.Extname.ToString().Trim());
- templateBuilder.Append("';}else{window.location='showgoodslist.aspx?categoryid=");
- templateBuilder.Append(categoryid.ToString());
- templateBuilder.Append("&page=' + (parseInt(this.value) > 0 ? parseInt(this.value) : 1)}}" size="4" maxlength="9"/>页</kbd>rn");
- templateBuilder.Append(" </div>rn");
- if (canposttopic)
- {
- templateBuilder.Append(" <span class="postbtn"><a href="postgoods.aspx?categoryid=");
- templateBuilder.Append(categoryid.ToString());
- templateBuilder.Append(""><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/postshop.gif" alt="发布商品" /></a></span>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="footfilter" class="box">rn");
- templateBuilder.Append(" <form name="LookBySearch" method="post" action="showgoodslist.aspx?search=1&categoryid=");
- templateBuilder.Append(categoryid.ToString());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" 所在地点:<select class="input_gray" style="width: 130px;" id="locus_1" name="locus_1"></select>rn");
- templateBuilder.Append(" 城市:<select class="input_gray" style="width: 90px;" id="locus_2" name="locus_2"></select>rn");
- templateBuilder.Append(" <script language="javascript">var locus = '");
- templateBuilder.Append(locus.ToString());
- templateBuilder.Append("'; initstate();</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" 排序方式:<select name="order" id="order">rn");
- templateBuilder.Append(" <option value="1" rn");
- if (order==1)
- {
- templateBuilder.Append("selected rn");
- } //end if
- templateBuilder.Append(">商品价格</option>rn");
- templateBuilder.Append(" <option value="2" rn");
- if (order==2)
- {
- templateBuilder.Append("selected rn");
- } //end if
- templateBuilder.Append(">截至日期</option>rn");
- templateBuilder.Append(" </select>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(" <button type="submit">提交</button>rn");
- templateBuilder.Append(" </form>rn");
- if (config.Forumjump==1)
- {
- templateBuilder.Append(" <select onchange="if(this.options[this.selectedIndex].value != '') { jumpurl(this.options[this.selectedIndex].value,");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(",'");
- templateBuilder.Append(config.Extname.ToString().Trim());
- templateBuilder.Append("');}">rn");
- templateBuilder.Append(" <option>论坛跳转...</option>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(forumlistboxoptions.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- } //end if
- if (config.Visitedforums>0)
- {
- templateBuilder.Append(" <select name="select2" onchange="if(this.options[this.selectedIndex].value != '') {jumpurl(this.options[this.selectedIndex].value,");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(",'");
- templateBuilder.Append(config.Extname.ToString().Trim());
- templateBuilder.Append("');}">rn");
- templateBuilder.Append(" <option>最近访问...</option>");
- templateBuilder.Append(visitedforumsoptions.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- } //end if
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var categorydata = ");
- templateBuilder.Append(goodscategoryfid.ToString());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" function jumpurl(fid, aspxrewrite, extname) {rn");
- templateBuilder.Append(" for(var i in categorydata) {rn");
- templateBuilder.Append(" if(categorydata[i].fid == fid) {rn");
- templateBuilder.Append(" if(aspxrewrite) {rn");
- templateBuilder.Append(" window.location='showgoodslist-' +categorydata[i].categoryid + extname;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else {rn");
- templateBuilder.Append(" window.location='showgoodslist.aspx?categoryid=' +categorydata[i].categoryid;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" return;rn");
- templateBuilder.Append(" } rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(aspxrewrite) {rn");
- templateBuilder.Append(" window.location='showforum-' + fid + extname;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else {rn");
- templateBuilder.Append(" window.location='showforum.aspx?forumid=' + fid ;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- if (config.Whosonlinestatus!=0 && config.Whosonlinestatus!=1)
- {
- templateBuilder.Append("<div class="box" id="online">rn");
- templateBuilder.Append(" <span class="headactions">rn");
- if (DNTRequest.GetString("showonline")=="no")
- {
- templateBuilder.Append(" <a href="?showonline=yes#online"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/collapsed_yes.gif" alt="展开/收起" />rn");
- }
- else
- {
- templateBuilder.Append(" <a href="?showonline=no#online"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/collapsed_no.gif" alt="展开/收起" />rn");
- } //end if
- templateBuilder.Append(" </a>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" <h4>rn");
- templateBuilder.Append(" <strong>在线用户:");
- templateBuilder.Append(forumtotalonline.ToString());
- templateBuilder.Append("人</strong>rn");
- templateBuilder.Append(" </h4>rn");
- templateBuilder.Append(" <dl id="onlinelist">rn");
- templateBuilder.Append(" <dt>");
- templateBuilder.Append(onlineiconlist.ToString());
- templateBuilder.Append("</dt>rn");
- templateBuilder.Append(" <dd>rn");
- templateBuilder.Append(" <ul id="online">rn");
- if (showforumonline)
- {
- int onlineuser__loop__id=0;
- foreach(OnlineUserInfo onlineuser in onlineuserlist)
- {
- onlineuser__loop__id++;
- if (onlineuser.Invisible==1)
- {
- templateBuilder.Append(" <li>(隐身会员)</li>rn");
- }
- else
- {
- templateBuilder.Append(" <li>");
- templateBuilder.Append(onlineuser.Olimg.ToString().Trim());
- templateBuilder.Append("rn");
- if (onlineuser.Userid==-1)
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(onlineuser.Username.ToString().Trim());
- templateBuilder.Append("rn");
- }
- else
- {
- aspxrewriteurl = this.UserInfoAspxRewrite(onlineuser.Userid);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(onlineuser.Username.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- templateBuilder.Append(" </li>rn");
- } //end if
- } //end loop
- }
- else
- {
- templateBuilder.Append(" <li style="width: auto"><a href="?showonline=yes#online">点击查看在线列表</a></li>rn");
- } //end if
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </dd>rn");
- templateBuilder.Append(" </dl>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- } //end if
- }
- else
- {
- if (needlogin)
- {
- }
- else
- {
- } //end if
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(mediaad.ToString());
- templateBuilder.Append("rn");
- Response.Write(templateBuilder.ToString());
- }
- </script>