mallindex.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:34k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.mallindex" %>
- <%@ 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 2008/5/26 11:27:27.
- 本页面代码由Discuz!NT模板引擎生成于 2008/5/26 11:27:27.
- */
- base.OnInit(e);
- templateBuilder.Append("<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">rn");
- templateBuilder.Append("<html xmlns="http://www.w3.org/1999/xhtml">rn");
- templateBuilder.Append("<head>rn");
- templateBuilder.Append("<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />rn");
- templateBuilder.Append("" + meta.ToString() + "rn");
- if (pagetitle=="首页")
- {
- templateBuilder.Append("<title>" + config.Forumtitle.ToString().Trim() + " - Powered by Discuz!NT</title>rn");
- }
- else
- {
- templateBuilder.Append("<title>" + pagetitle.ToString() + " " + config.Seotitle.ToString().Trim() + " - " + config.Forumtitle.ToString().Trim() + " - Powered by Discuz!NT</title>rn");
- } //end if
- templateBuilder.Append("<link rel="icon" href="favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<!-- 调用样式表 -->rn");
- templateBuilder.Append("<link rel="stylesheet" href="templates/" + templatepath.ToString() + "/mall.css" type="text/css" media="all" />rn");
- templateBuilder.Append("" + link.ToString() + "rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_report.js"></" + "script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_utils.js"></" + "script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/common.js"></" + "script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/menu.js"></" + "script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" var aspxrewrite = " + config.Aspxrewrite.ToString().Trim() + ";rn");
- templateBuilder.Append("</" + "script>rn");
- templateBuilder.Append("" + script.ToString() + "rn");
- templateBuilder.Append("</head>rn");
- templateBuilder.Append("<body>rn");
- templateBuilder.Append("<div id="wraper">rn");
- templateBuilder.Append(" <div id="header">rn");
- templateBuilder.Append(" <h2><img src="templates/" + templatepath.ToString() + "/images/logo.gif" alt="商城"/></h2>rn");
- templateBuilder.Append(" <p id="topmenu">rn");
- templateBuilder.Append(" <a href="" + config.Forumurl.ToString().Trim() + "">论坛</a>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <a href="" + config.Spaceurl.ToString().Trim() + "">" + config.Spacename.ToString().Trim() + "</a>rn");
- } //end if
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" <a href="" + config.Albumurl.ToString().Trim() + "">" + config.Albumname.ToString().Trim() + "</a>rn");
- } //end if
- if (config.Enablemall==2)
- {
- templateBuilder.Append(" <a href="mallindex" class="reg">商城</a>rn");
- } //end if
- if (userid==-1)
- {
- templateBuilder.Append(" <a href="" + forumurl.ToString() + "login.aspx" class="reg">登录</a>rn");
- templateBuilder.Append(" <a href="" + forumurl.ToString() + "register.aspx" class="reg">注册</a>rn");
- }
- else
- {
- templateBuilder.Append(" 欢迎: " + username.ToString() + " rn");
- templateBuilder.Append(" <a href="" + forumurl.ToString() + "logout.aspx?userkey=" + userkey.ToString() + "" class="reg">退出</a>rn");
- templateBuilder.Append(" <a href="" + forumurl.ToString() + "usercp.aspx" class="reg">用户中心</a>rn");
- if (useradminid==1)
- {
- templateBuilder.Append(" <a href="" + forumurl.ToString() + "admin/index.aspx" target="_blank" class="reg">系统设置</a>rn");
- } //end if
- } //end if
- if (usergroupinfo.Allowsearch>0)
- {
- templateBuilder.Append(" <a href="" + forumurl.ToString() + "search.aspx">搜索</a>rn");
- } //end if
- templateBuilder.Append(" <a href="" + forumurl.ToString() + "help.aspx" target="_blank">帮助</a> rn");
- templateBuilder.Append(" </p>rn");
- if (headerad!="")
- {
- templateBuilder.Append(" <div id="ad">" + headerad.ToString() + "</div>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="menu">rn");
- templateBuilder.Append(" <span>商城</span>rn");
- templateBuilder.Append(" <ul>rn");
- if (userid!=-1)
- {
- templateBuilder.Append(" <li><a href="" + forumurl.ToString() + "usercpinbox.aspx">短消息</a></li>rn");
- } //end if
- templateBuilder.Append(" <li><a href="" + forumurl.ToString() + "showuser.aspx">会员</a></li>rn");
- if (userid!=-1)
- {
- templateBuilder.Append(" <li id="my" onMouseOver="showMenu(this.id);" onMouseOut="showMenu(this.id);"><a href="###" class="mycontent">我的</a></li>rn");
- } //end if
- templateBuilder.Append(" <li><a href="" + forumurl.ToString() + "tags.aspx">标签</a></li>rn");
- templateBuilder.Append(" <li><a href="" + forumurl.ToString() + "showtemplate.aspx">界面</a></li>rn");
- templateBuilder.Append(" <li><a href="" + forumurl.ToString() + "archiver/index.aspx">简洁版本</a></li>rn");
- templateBuilder.Append(" <li class="noground"><a href="" + forumurl.ToString() + "onlineuser.aspx">在线</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="search">rn");
- templateBuilder.Append(" <form method="post" action="search.aspx">rn");
- if (usergroupinfo.Allowsearch>0)
- {
- templateBuilder.Append(" <form method="post" action="search.aspx" target="_blank" onsubmit="bind_keyword(this);">rn");
- templateBuilder.Append(" <input type="hidden" name="poster" />rn");
- templateBuilder.Append(" <input type="hidden" name="keyword" />rn");
- templateBuilder.Append(" <input type="hidden" name="type" value="" />rn");
- templateBuilder.Append(" <input id="keywordtype" type="hidden" name="keywordtype" value="0"/>rn");
- templateBuilder.Append(" <div id="searchbar">rn");
- templateBuilder.Append(" <dl>rn");
- templateBuilder.Append(" <dt id="quicksearch" class="s2" onclick="showMenu(this.id, false);" onmouseover="MouseCursor(this);">帖子标题</dt>rn");
- templateBuilder.Append(" <dd class="textinput"><input type="text" name="keywordf" value="" class="text"/></dd>rn");
- templateBuilder.Append(" <dd><input name="searchsubmit" type="submit" value="" class="s3"/></dd>rn");
- templateBuilder.Append(" </dl>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <script type="text/javascript">function bind_keyword(form){if(form.keywordtype.value=='8'){form.keyword.value='';form.poster.value=form.keywordf.value; } else { form.poster.value=''; form.keyword.value=form.keywordf.value;if(form.keywordtype.value == '2')form.type.value = 'spacepost';if(form.keywordtype.value == '3')form.type.value = 'album';}}</" + "script>rn");
- } //end if
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <strong>公告:</strong>rn");
- templateBuilder.Append(" <marquee direction="left" scrollamount="2" scrolldelay="1" onmouseover="this.stop();" onmouseout="this.start();">rn");
- int announcement__loop__id=0;
- foreach(DataRow announcement in announcementlist.Rows)
- {
- announcement__loop__id++;
- templateBuilder.Append(" " + announcement["starttime"].ToString().Trim() + "<a href="announcement.aspx#" + announcement["id"].ToString().Trim() + "">" + announcement["title"].ToString().Trim() + "</a>rn");
- } //end loop
- templateBuilder.Append(" </marquee>rn");
- templateBuilder.Append(" </div>rn");
- if (config.Enabletag==1)
- {
- templateBuilder.Append("<!--tag-->rn");
- templateBuilder.Append(" <script type="text/javascript" src="cache/tag/closedtags.txt"></" + "script>rn");
- templateBuilder.Append(" <script type="text/javascript" src="cache/tag/colorfultags.txt"></" + "script>rn");
- templateBuilder.Append(" <script type="text/javascript" src="javascript/template_tags.js"></" + "script> rn");
- templateBuilder.Append(" <script type="text/javascript" src="javascript/ajax.js"></" + "script>rn");
- templateBuilder.Append(" <div id="keyword">rn");
- templateBuilder.Append(" <div class="keywordbody">rn");
- templateBuilder.Append(" <cite>热门标签:</cite><ul id="mallhottags"><script type="text/javascript" src="cache/hottags_mall_cache_jsonp.txt" onerror="this.onerror=null;getajaxmallhottags();"></" + "script></ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--tag end-->rn");
- } //end if
- if (page_err==0)
- {
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var templatepath = "" + templatepath.ToString() + "";rn");
- templateBuilder.Append("var forumpath = "" + forumpath.ToString() + "";rn");
- templateBuilder.Append("var aspxrewrite = " + config.Aspxrewrite.ToString().Trim() + ";rn");
- templateBuilder.Append("</" + "script> rn");
- templateBuilder.Append(" <div id="pageinfo">rn");
- templateBuilder.Append(" <em>当前位置:</em><strong>商城首页</strong>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="mainbox">rn");
- templateBuilder.Append(" <div id="contentbox">rn");
- templateBuilder.Append(" <div class="box newpro">rn");
- templateBuilder.Append(" <span>更多>></span>rn");
- templateBuilder.Append(" <h2><strong>新品集市</strong></h2>rn");
- templateBuilder.Append(" <div class="innerbox majorbox">rn");
- int new_goodsinfo__loop__id=0;
- foreach(Goodsinfo new_goodsinfo in new_goodsinfocoll)
- {
- new_goodsinfo__loop__id++;
- templateBuilder.Append(" <dl>rn");
- aspxrewriteurl = this.ShowGoodsAspxRewrite(new_goodsinfo.Goodsid);
-
- templateBuilder.Append(" <dt><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
- if (new_goodsinfo.Goodspic=="")
- {
- templateBuilder.Append(" <img width="49" height="49" src="templates/" + templatepath.ToString() + "/images/NoPhoto.jpg" onerror="this.onerror=null;this.src='" + new_goodsinfo.Goodspic.ToString().Trim() + "';" title="" + new_goodsinfo.Title.ToString().Trim() + "">rn");
- }
- else
- {
- templateBuilder.Append(" <img width="49" height="49" src="upload/" + new_goodsinfo.Goodspic.ToString().Trim() + "" onerror="this.onerror=null;this.src='" + new_goodsinfo.Goodspic.ToString().Trim() + "';" title="" + new_goodsinfo.Title.ToString().Trim() + "">rn");
- } //end if
- templateBuilder.Append("</a> rn");
- templateBuilder.Append(" </dt>rn");
- templateBuilder.Append(" <dd class="title"><a href="" + aspxrewriteurl.ToString() + "" target="_blank">" + new_goodsinfo.Htmltitle.ToString().Trim() + "</a></dd>rn");
- templateBuilder.Append(" <dd>商家:rn");
- aspxrewriteurl = this.UserInfoAspxRewrite(new_goodsinfo.Selleruid);
-
- templateBuilder.Append(" <a href="" + aspxrewriteurl.ToString() + "" target="_blank">" + new_goodsinfo.Seller.ToString().Trim() + "</a></dd>rn");
- templateBuilder.Append(" <dd>价格:<em>" + new_goodsinfo.Price.ToString().Trim() + "</em>元</dd>rn");
- templateBuilder.Append(" </dl>rn");
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="box showpro">rn");
- templateBuilder.Append(" <span>更多>></span>rn");
- templateBuilder.Append(" <h2><strong>二手交易</strong></h2>rn");
- templateBuilder.Append(" <div class="innerbox oldpro">rn");
- int sec_hand_goodsinfo__loop__id=0;
- foreach(Goodsinfo sec_hand_goodsinfo in sec_hand_goodsinfocoll)
- {
- sec_hand_goodsinfo__loop__id++;
- aspxrewriteurl = this.ShowGoodsAspxRewrite(sec_hand_goodsinfo.Goodsid);
-
- if (sec_hand_goodsinfo__loop__id<=3)
- {
- templateBuilder.Append(" <dl>rn");
- templateBuilder.Append(" <dt><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
- if (sec_hand_goodsinfo.Goodspic=="")
- {
- templateBuilder.Append(" <img width="49" height="49" src="templates/" + templatepath.ToString() + "/images/NoPhoto.jpg" onerror="this.onerror=null;this.src='" + sec_hand_goodsinfo.Goodspic.ToString().Trim() + "';" title="" + sec_hand_goodsinfo.Title.ToString().Trim() + "">rn");
- }
- else
- {
- templateBuilder.Append(" <img width="49" height="49" src="upload/" + sec_hand_goodsinfo.Goodspic.ToString().Trim() + "" onerror="this.onerror=null;this.src='" + sec_hand_goodsinfo.Goodspic.ToString().Trim() + "';" title="" + sec_hand_goodsinfo.Title.ToString().Trim() + "">rn");
- } //end if
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </dt>rn");
- templateBuilder.Append(" <dd class="title"><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
- templateBuilder.Append(Utils.GetSubString(sec_hand_goodsinfo.Title,0,22,"..."));
- templateBuilder.Append("</a></dd>rn");
- templateBuilder.Append(" </dl>rn");
- }
- else
- {
- if (sec_hand_goodsinfo__loop__id==4)
- {
- templateBuilder.Append(" <ul>rn");
- } //end if
- templateBuilder.Append(" <li><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
- templateBuilder.Append(Utils.GetSubString(sec_hand_goodsinfo.Title,0,34,"..."));
- templateBuilder.Append("</a></li>rn");
- if (sec_hand_goodsinfocoll.Count==sec_hand_goodsinfo__loop__id)
- {
- templateBuilder.Append(" </ul>rn");
- } //end if
- } //end if
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="box showpro">rn");
- templateBuilder.Append(" <span>更多>></span>rn");
- templateBuilder.Append(" <h2><strong>一元专区</strong></h2>rn");
- templateBuilder.Append(" <div class="innerbox oldpro">rn");
- int one_yuan_goodsinfo__loop__id=0;
- foreach(Goodsinfo one_yuan_goodsinfo in one_yuan_goodsinfocoll)
- {
- one_yuan_goodsinfo__loop__id++;
- aspxrewriteurl = this.ShowGoodsAspxRewrite(one_yuan_goodsinfo.Goodsid);
-
- if (one_yuan_goodsinfo__loop__id<=3)
- {
- templateBuilder.Append(" <dl>rn");
- templateBuilder.Append(" <dt><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
- if (one_yuan_goodsinfo.Goodspic=="")
- {
- templateBuilder.Append(" <img width="49" height="49" src="templates/" + templatepath.ToString() + "/images/NoPhoto.jpg" onerror="this.onerror=null;this.src='" + one_yuan_goodsinfo.Goodspic.ToString().Trim() + "';" title="" + one_yuan_goodsinfo.Title.ToString().Trim() + "">rn");
- }
- else
- {
- templateBuilder.Append(" <img width="49" height="49" src="upload/" + one_yuan_goodsinfo.Goodspic.ToString().Trim() + "" onerror="this.onerror=null;this.src='" + one_yuan_goodsinfo.Goodspic.ToString().Trim() + "';" title="" + one_yuan_goodsinfo.Title.ToString().Trim() + "">rn");
- } //end if
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </dt>rn");
- templateBuilder.Append(" <dd class="title"><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
- templateBuilder.Append(Utils.GetSubString(one_yuan_goodsinfo.Title,0,22,"..."));
- templateBuilder.Append("</a></dd>rn");
- templateBuilder.Append(" </dl>rn");
- }
- else
- {
- if (one_yuan_goodsinfo__loop__id==4)
- {
- templateBuilder.Append(" <ul>rn");
- } //end if
- templateBuilder.Append(" <li><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
- templateBuilder.Append(Utils.GetSubString(one_yuan_goodsinfo.Title,0,34,"..."));
- templateBuilder.Append("</a></li>rn");
- if (one_yuan_goodsinfocoll.Count==one_yuan_goodsinfo__loop__id)
- {
- templateBuilder.Append(" </ul>rn");
- } //end if
- } //end if
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div style="clear:both;"></div>rn");
- templateBuilder.Append(" <div class="box goodsclass">rn");
- templateBuilder.Append(" <span>更多>></span>rn");
- templateBuilder.Append(" <h2><strong>商品分类</strong></h2>rn");
- templateBuilder.Append(" <div id="categorylist" class="innerbox classlist"></div>rn");
- templateBuilder.Append(" <script language="javascript" src="javascript/template_mallindex.js"></" + "script>rn");
- templateBuilder.Append(" <script language="javascript">rn");
- templateBuilder.Append(" " + goodscategory.ToString() + "rn");
- templateBuilder.Append(" loadcategory(" + config.Aspxrewrite.ToString().Trim() + ");rn");
- templateBuilder.Append(" </" + "script>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="box showpro">rn");
- templateBuilder.Append(" <span>更多>></span>rn");
- templateBuilder.Append(" <h2><strong>热门推荐</strong></h2>rn");
- templateBuilder.Append(" <div class="innerbox oldpro" style="height:304px;">rn");
- int recommend_goodsinfo__loop__id=0;
- foreach(Goodsinfo recommend_goodsinfo in recommend_goodsinfocoll)
- {
- recommend_goodsinfo__loop__id++;
- aspxrewriteurl = this.ShowGoodsAspxRewrite(recommend_goodsinfo.Goodsid);
-
- if (recommend_goodsinfo__loop__id<=6)
- {
- templateBuilder.Append(" <dl>rn");
- templateBuilder.Append(" <dt><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
- if (recommend_goodsinfo.Goodspic=="")
- {
- templateBuilder.Append(" <img width="49" height="49" src="templates/" + templatepath.ToString() + "/images/NoPhoto.jpg" onerror="this.onerror=null;this.src='" + recommend_goodsinfo.Goodspic.ToString().Trim() + "';" title="" + recommend_goodsinfo.Title.ToString().Trim() + "">rn");
- }
- else
- {
- templateBuilder.Append(" <img width="49" height="49" src="upload/" + recommend_goodsinfo.Goodspic.ToString().Trim() + "" onerror="this.onerror=null;this.src='" + recommend_goodsinfo.Goodspic.ToString().Trim() + "';" title="" + recommend_goodsinfo.Title.ToString().Trim() + "">rn");
- } //end if
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </dt>rn");
- templateBuilder.Append(" <dd class="title"><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
- templateBuilder.Append(Utils.GetSubString(recommend_goodsinfo.Title,0,22,"..."));
- templateBuilder.Append("</a></dd>rn");
- templateBuilder.Append(" </dl>rn");
- }
- else
- {
- if (recommend_goodsinfo__loop__id==7)
- {
- templateBuilder.Append(" <ul>rn");
- } //end if
- templateBuilder.Append(" <li><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
- templateBuilder.Append(Utils.GetSubString(recommend_goodsinfo.Title,0,34,"..."));
- templateBuilder.Append("</a></li>rn");
- if (recommend_goodsinfocoll.Count==recommend_goodsinfo__loop__id)
- {
- templateBuilder.Append(" </ul>rn");
- } //end if
- } //end if
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="sidebox">rn");
- templateBuilder.Append(" <div class="box salebox">rn");
- templateBuilder.Append(" <h2 id="hotgoods_day_h2"><strong>本月热销</strong><a href="javascript:;" onclick="javascript:tabselect('hotgoods_day_h2', 'oneweek');ajaxgethotgoods(7,0,4,'hotgoods_days');">本周热销</a><!--<a href="#">最新成交</a>--></h2>rn");
- templateBuilder.Append(" <div id="hotgoods_days" class="innerbox majorbox"></div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="box salebox">rn");
- templateBuilder.Append(" <h2 id="hotshop_h2"><strong>热门店铺</strong><a href="javascript:;" onclick="javascript:tabselect('hotshop_h2', 'newshop');ajaxgetshop('hotshop','hotshop_div');">新开店铺</a></h2>rn");
- templateBuilder.Append(" <div id="hotshop_div" class="innerbox majorbox"></div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--rn");
- templateBuilder.Append(" <div class="innerad">rn");
- templateBuilder.Append(" <img src="images/mall/ad.gif" alt="广告"/>rn");
- templateBuilder.Append(" </div>-->rn");
- int root_goodscategory__loop__id=0;
- foreach(Goodscategoryinfo root_goodscategory in rootgoodscategoryarray)
- {
- root_goodscategory__loop__id++;
- templateBuilder.Append(" <div class="mainbox">rn");
- templateBuilder.Append(" <div id="contentbox">rn");
- templateBuilder.Append(" <div class="box proshow">rn");
- templateBuilder.Append(" <span id="goodscategory_" + root_goodscategory.Categoryid.ToString().Trim() + ""></span>rn");
- templateBuilder.Append(" <script>loadsubcategory(" + root_goodscategory.Categoryid.ToString().Trim() + ");</" + "script>rn");
- templateBuilder.Append(" <h2><strong>" + root_goodscategory.Categoryname.ToString().Trim() + "</strong></h2>rn");
- templateBuilder.Append(" <div class="innerbox goodsbox">rn");
- templateBuilder.Append(" <ul id="goodsinfo_li_" + root_goodscategory.Categoryid.ToString().Trim() + ""></ul>rn");
- templateBuilder.Append(" <script>ajaxgetgoodslist(" + root_goodscategory.Categoryid.ToString().Trim() + ");</" + "script>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="sidebox">rn");
- templateBuilder.Append(" <div class="box salebox">rn");
- templateBuilder.Append(" <h2><strong>人气排行</strong></h2> rn");
- templateBuilder.Append(" <div class="innerbox rankingbox">rn");
- templateBuilder.Append(" <div class="tabsbox">rn");
- templateBuilder.Append(" <ul id="tab_goodscategory_" + root_goodscategory.Categoryid.ToString().Trim() + ""></ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="rankbox">rn");
- templateBuilder.Append(" <ul id="hotgoodsinfo_" + root_goodscategory.Categoryid.ToString().Trim() + "">rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script>loadgoodscategorytab(" + root_goodscategory.Categoryid.ToString().Trim() + ", 0);</" + "script>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div> rn");
- templateBuilder.Append(" <!--rn");
- templateBuilder.Append(" <div class="innerad">rn");
- templateBuilder.Append(" <img src="images/mall/ad.gif" alt="广告"/>rn");
- templateBuilder.Append(" </div>-->rn");
- } //end loop
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript">init();</" + "script>rn");
- }
- else
- {
- templateBuilder.Append("<div class="ntforumbox">rn");
- templateBuilder.Append(" <div class="titlebar">rn");
- templateBuilder.Append(" <h3>出现了" + page_err.ToString() + "个错误</h3>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="forumerror">rn");
- templateBuilder.Append(" " + msgbox_text.ToString() + "rn");
- templateBuilder.Append(" <p class="errorback">rn");
- templateBuilder.Append(" <script language="javascript">rn");
- templateBuilder.Append(" if(" + msgbox_showbacklink.ToString() + ")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" document.write("<a href=\"" + msgbox_backlink.ToString() + "\">返回上一步</a> |   ");rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </" + "script>rn");
- templateBuilder.Append(" <a href="forumindex.aspx">论坛首页</a>rn");
- if (usergroupid==7)
- {
- templateBuilder.Append("  | <a href="register.aspx">注册</a>rn");
- } //end if
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- if (footerad!="")
- {
- templateBuilder.Append("<!--底部广告显示-->rn");
- templateBuilder.Append("<div id="bottomad">" + footerad.ToString() + "</div>rn");
- templateBuilder.Append("<!--底部广告结束-->rn");
- } //end if
- templateBuilder.Append("<div id="forumfooter">rn");
- templateBuilder.Append(" <div class="footercopy">rn");
- templateBuilder.Append(" <p>rn");
- templateBuilder.Append(" 版权所有 <a href="" + config.Weburl.ToString().Trim() + "" target="_blank">" + config.Webtitle.ToString().Trim() + "</a> " + config.Linktext.ToString().Trim() + "rn");
- if (config.Sitemapstatus==1)
- {
- templateBuilder.Append(" <a href="tools/sitemap.aspx" target="_blank" title="百度论坛收录协议">Sitemap</a>rn");
- } //end if
- templateBuilder.Append(" " + config.Statcode.ToString().Trim() + "rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <span>Powered by <a href="http://nt.discuz.net" target="_blank" title="Discuz!NT 2.0 (.net Framework 2.x/3.x)"><em>Discuz!NT</em></a> <em>2.5.0 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(" " + config.Forumcopyright.ToString().Trim() + "</em>rn");
- if (config.Debug!=0)
- {
- templateBuilder.Append("<br/>rn");
- templateBuilder.Append(" Processed in " + this.Processtime.ToString().Trim() + " second(s)rn");
- if (isguestcachepage==1)
- {
- templateBuilder.Append(" (Cached).rn");
- }
- else if (querycount>1)
- {
- templateBuilder.Append(" , " + querycount.ToString() + " queries.rn");
- }
- else
- {
- templateBuilder.Append(" , " + querycount.ToString() + " query.rn");
- } //end if
- } //end if
- templateBuilder.Append(" " + config.Icp.ToString().Trim() + "rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="footergoto">rn");
- templateBuilder.Append(" <span><img src="templates/" + templatepath.ToString() + "/images/gototop2.gif" alt="返顶部" onclick="window.scrollTo(0,0)" /></span>rn");
- if (config.Stylejump==1)
- {
- if (userid!=-1 || config.Guestcachepagetimeout<=0)
- {
- templateBuilder.Append(" <select onchange="if(this.options[this.selectedIndex].value != '') {window.location=('showtemplate.aspx?templateid='+this.options[this.selectedIndex].value) }">rn");
- templateBuilder.Append(" <option selected>切换界面...</option>rn");
- templateBuilder.Append(" " + templatelistboxoptions.ToString() + "rn");
- templateBuilder.Append(" </select>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<div id="my_menu" class="ntdropmenu" style="display: none;">rn");
- templateBuilder.Append(" <a href="mytopics.aspx">我的主题</a>rn");
- templateBuilder.Append(" <a href="myposts.aspx">我的帖子</a>rn");
- templateBuilder.Append(" <a href="search.aspx?posterid=" + userid.ToString() + "&type=digest">我的精华</a>rn");
- templateBuilder.Append(" <a href="myattachment.aspx">我的附件</a>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <a href="" + spaceurl.ToString() + "space/">我的空间</a>rn");
- } //end if
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" <a href="showalbumlist.aspx?uid=" + userid.ToString() + "">我的相册</a>rn");
- } //end if
- if (config.Enablemall>=1)
- {
- templateBuilder.Append(" <a href="usercpmygoods.aspx">我的商品</a>rn");
- } //end if
- templateBuilder.Append(" <script type="text/javascript" src="javascript/mymenu.js"></" + "script>rn");
- templateBuilder.Append("</div>rn");
- if (querydetail!="")
- {
- templateBuilder.Append("<div id="debug_bar" style="padding: 0pt 10px; background: rgb(232, 243, 253) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-align: left;">rn");
- templateBuilder.Append("<table width="100%" cellspacing="0" cellpadding="0" align="center">rn");
- templateBuilder.Append("<tbody>rn");
- templateBuilder.Append("<tr>rn");
- templateBuilder.Append("<td colspan="3">rn");
- templateBuilder.Append("<span onclick="$('debug_bar').style.display = 'none'" style="cursor: pointer;">[关闭]</span>rn");
- templateBuilder.Append("<span onclick="debugdisplay('debugwinquery')" style="cursor: pointer;"> | [查询 " + querycount.ToString() + " 次]</span>rn");
- templateBuilder.Append("<!--rn");
- templateBuilder.Append("<span onclick="debugdisplay('debugwininclude')" style="cursor: pointer;"> | [引用19 个]</span>rn");
- templateBuilder.Append("<span onclick="debugdisplay('debugwindcookie')" style="cursor: pointer;"> | [DCOOKIE]</span>rn");
- templateBuilder.Append("<span onclick="debugdisplay('debugwindsession')" style="cursor: pointer;"> | [DSESSION]</span>rn");
- templateBuilder.Append("<span onclick="debugdisplay('debugwincache')" style="cursor: pointer;"> | [DCACHE]</span>rn");
- templateBuilder.Append("<span onclick="debugdisplay('debugwinplugin')" style="cursor: pointer;"> | [DPLUGIN]</span>rn");
- templateBuilder.Append("<span onclick="debugdisplay('debugwinsettings')" style="cursor: pointer;"> | [settings]</span>rn");
- templateBuilder.Append("<span onclick="debugdisplay('debugwinenv')" style="cursor: pointer;"> | [环境]</span>rn");
- templateBuilder.Append("-->rn");
- templateBuilder.Append("</td>rn");
- templateBuilder.Append("</tr>rn");
- templateBuilder.Append("</tbody>rn");
- templateBuilder.Append("</table>rn");
- templateBuilder.Append("<div id="debugwinquery" style="display: none;">" + querydetail.ToString() + "</div>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("function debugdisplay(id)rn");
- templateBuilder.Append("{rn");
- templateBuilder.Append(" if ($(id).style.display == 'none')rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $(id).style.display = '';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $(id).style.display = 'none';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("</" + "script>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- if (floatad!="")
- {
- templateBuilder.Append(" <script type="text/javascript" src="javascript/template_floatadv.js"></" + "script>rn");
- templateBuilder.Append(" " + floatad.ToString() + "rn");
- templateBuilder.Append(" <script type="text/javascript">theFloaters.play();</" + "script>rn");
- }
- else if (doublead!="")
- {
- templateBuilder.Append(" <script type="text/javascript" src="javascript/template_floatadv.js"></" + "script>rn");
- templateBuilder.Append(" " + doublead.ToString() + "rn");
- templateBuilder.Append(" <script type="text/javascript">theFloaters.play();</" + "script>rn");
- } //end if
- templateBuilder.Append("" + mediaad.ToString() + "rn");
- templateBuilder.Append("" + inforumad.ToString() + "rn");
- templateBuilder.Append("<div id="quicksearch_menu" class="searchmenu" style="display: none;">rn");
- templateBuilder.Append(" <div onclick="document.getElementById('keywordtype').value='0';document.getElementById('quicksearch').innerHTML='帖子标题';document.getElementById('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">帖子标题</div>rn");
- templateBuilder.Append(" <div onclick="document.getElementById('keywordtype').value='2';document.getElementById('quicksearch').innerHTML='空间日志';document.getElementById('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">空间日志</div>rn");
- templateBuilder.Append(" <div onclick="document.getElementById('keywordtype').value='3';document.getElementById('quicksearch').innerHTML='相册标题';document.getElementById('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">相册标题</div>rn");
- templateBuilder.Append(" <div onclick="document.getElementById('keywordtype').value='8';document.getElementById('quicksearch').innerHTML='作 者';document.getElementById('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">作 者</div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</body>rn");
- templateBuilder.Append("</html>rn");
- Response.Write(templateBuilder.ToString());
- }
- </script>