mallindex.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:34k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.mallindex" %>
  2. <%@ Import namespace="System.Data" %>
  3. <%@ Import namespace="Discuz.Common" %>
  4. <%@ Import namespace="Discuz.Forum" %>
  5. <%@ Import namespace="Discuz.Entity" %>
  6. <script runat="server">
  7. override protected void OnInit(EventArgs e)
  8. {
  9. /* 
  10. This page was created by Discuz!NT Template Engine at 2008/5/26 11:27:27.
  11. 本页面代码由Discuz!NT模板引擎生成于 2008/5/26 11:27:27. 
  12. */
  13. base.OnInit(e);
  14. templateBuilder.Append("<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">rn");
  15. templateBuilder.Append("<html xmlns="http://www.w3.org/1999/xhtml">rn");
  16. templateBuilder.Append("<head>rn");
  17. templateBuilder.Append("<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />rn");
  18. templateBuilder.Append("" + meta.ToString() + "rn");
  19. if (pagetitle=="首页")
  20. {
  21. templateBuilder.Append("<title>" + config.Forumtitle.ToString().Trim() + " - Powered by Discuz!NT</title>rn");
  22. }
  23. else
  24. {
  25. templateBuilder.Append("<title>" + pagetitle.ToString() + " " + config.Seotitle.ToString().Trim() + " - " + config.Forumtitle.ToString().Trim() + " - Powered by Discuz!NT</title>rn");
  26. } //end if
  27. templateBuilder.Append("<link rel="icon" href="favicon.ico" type="image/x-icon" />rn");
  28. templateBuilder.Append("<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />rn");
  29. templateBuilder.Append("<!-- 调用样式表 -->rn");
  30. templateBuilder.Append("<link rel="stylesheet" href="templates/" + templatepath.ToString() + "/mall.css" type="text/css" media="all"  />rn");
  31. templateBuilder.Append("" + link.ToString() + "rn");
  32. templateBuilder.Append("<script type="text/javascript" src="javascript/template_report.js"></" + "script>rn");
  33. templateBuilder.Append("<script type="text/javascript" src="javascript/template_utils.js"></" + "script>rn");
  34. templateBuilder.Append("<script type="text/javascript" src="javascript/common.js"></" + "script>rn");
  35. templateBuilder.Append("<script type="text/javascript" src="javascript/menu.js"></" + "script>rn");
  36. templateBuilder.Append("<script type="text/javascript">rn");
  37. templateBuilder.Append(" var aspxrewrite = " + config.Aspxrewrite.ToString().Trim() + ";rn");
  38. templateBuilder.Append("</" + "script>rn");
  39. templateBuilder.Append("" + script.ToString() + "rn");
  40. templateBuilder.Append("</head>rn");
  41. templateBuilder.Append("<body>rn");
  42. templateBuilder.Append("<div id="wraper">rn");
  43. templateBuilder.Append(" <div id="header">rn");
  44. templateBuilder.Append(" <h2><img src="templates/" + templatepath.ToString() + "/images/logo.gif" alt="商城"/></h2>rn");
  45. templateBuilder.Append(" <p id="topmenu">rn");
  46. templateBuilder.Append("     <a href="" + config.Forumurl.ToString().Trim() + "">论坛</a>rn");
  47. if (config.Enablespace==1)
  48. {
  49. templateBuilder.Append("     <a href="" + config.Spaceurl.ToString().Trim() + "">" + config.Spacename.ToString().Trim() + "</a>rn");
  50. } //end if
  51. if (config.Enablealbum==1)
  52. {
  53. templateBuilder.Append("     <a href="" + config.Albumurl.ToString().Trim() + "">" + config.Albumname.ToString().Trim() + "</a>rn");
  54. } //end if
  55. if (config.Enablemall==2)
  56. {
  57. templateBuilder.Append("     <a href="mallindex" class="reg">商城</a>rn");
  58. } //end if
  59. if (userid==-1)
  60. {
  61. templateBuilder.Append(" <a href="" + forumurl.ToString() + "login.aspx" class="reg">登录</a>rn");
  62. templateBuilder.Append(" <a href="" + forumurl.ToString() + "register.aspx" class="reg">注册</a>rn");
  63. }
  64. else
  65. {
  66. templateBuilder.Append(" 欢迎: " + username.ToString() + "&nbsp;rn");
  67. templateBuilder.Append(" <a href="" + forumurl.ToString() + "logout.aspx?userkey=" + userkey.ToString() + "" class="reg">退出</a>rn");
  68. templateBuilder.Append(" <a href="" + forumurl.ToString() + "usercp.aspx" class="reg">用户中心</a>rn");
  69. if (useradminid==1)
  70. {
  71. templateBuilder.Append(" <a href="" + forumurl.ToString() + "admin/index.aspx" target="_blank"  class="reg">系统设置</a>rn");
  72. } //end if
  73. } //end if
  74. if (usergroupinfo.Allowsearch>0)
  75. {
  76. templateBuilder.Append(" <a href="" + forumurl.ToString() + "search.aspx">搜索</a>rn");
  77. } //end if
  78. templateBuilder.Append("     <a href="" + forumurl.ToString() + "help.aspx" target="_blank">帮助</a> rn");
  79. templateBuilder.Append(" </p>rn");
  80. if (headerad!="")
  81. {
  82. templateBuilder.Append("     <div id="ad">" + headerad.ToString() + "</div>rn");
  83. } //end if
  84. templateBuilder.Append(" </div>rn");
  85. templateBuilder.Append(" <div id="menu">rn");
  86. templateBuilder.Append("     <span>商城</span>rn");
  87. templateBuilder.Append(" <ul>rn");
  88. if (userid!=-1)
  89. {
  90. templateBuilder.Append(" <li><a href="" + forumurl.ToString() + "usercpinbox.aspx">短消息</a></li>rn");
  91. } //end if
  92. templateBuilder.Append(" <li><a href="" + forumurl.ToString() + "showuser.aspx">会员</a></li>rn");
  93. if (userid!=-1)
  94. {
  95. templateBuilder.Append(" <li id="my" onMouseOver="showMenu(this.id);" onMouseOut="showMenu(this.id);"><a href="###" class="mycontent">我的</a></li>rn");
  96. } //end if
  97. templateBuilder.Append(" <li><a href="" + forumurl.ToString() + "tags.aspx">标签</a></li>rn");
  98. templateBuilder.Append(" <li><a href="" + forumurl.ToString() + "showtemplate.aspx">界面</a></li>rn");
  99. templateBuilder.Append(" <li><a href="" + forumurl.ToString() + "archiver/index.aspx">简洁版本</a></li>rn");
  100. templateBuilder.Append(" <li class="noground"><a href="" + forumurl.ToString() + "onlineuser.aspx">在线</a></li>rn");
  101. templateBuilder.Append(" </ul>rn");
  102. templateBuilder.Append(" </div>rn");
  103. templateBuilder.Append(" <div id="search">rn");
  104. templateBuilder.Append(" <form method="post" action="search.aspx">rn");
  105. if (usergroupinfo.Allowsearch>0)
  106. {
  107. templateBuilder.Append(" <form method="post" action="search.aspx" target="_blank" onsubmit="bind_keyword(this);">rn");
  108. templateBuilder.Append(" <input type="hidden" name="poster" />rn");
  109. templateBuilder.Append(" <input type="hidden" name="keyword" />rn");
  110. templateBuilder.Append(" <input type="hidden" name="type" value="" />rn");
  111. templateBuilder.Append(" <input id="keywordtype" type="hidden" name="keywordtype" value="0"/>rn");
  112. templateBuilder.Append(" <div id="searchbar">rn");
  113. templateBuilder.Append(" <dl>rn");
  114. templateBuilder.Append(" <dt id="quicksearch" class="s2" onclick="showMenu(this.id, false);" onmouseover="MouseCursor(this);">帖子标题</dt>rn");
  115. templateBuilder.Append(" <dd class="textinput"><input type="text" name="keywordf" value="" class="text"/></dd>rn");
  116. templateBuilder.Append(" <dd><input name="searchsubmit" type="submit" value="" class="s3"/></dd>rn");
  117. templateBuilder.Append(" </dl>rn");
  118. templateBuilder.Append(" </div>rn");
  119. templateBuilder.Append(" </form>rn");
  120. 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");
  121. } //end if
  122. templateBuilder.Append(" </form>rn");
  123. templateBuilder.Append(" <strong>公告:</strong>rn");
  124. templateBuilder.Append(" <marquee direction="left" scrollamount="2" scrolldelay="1" onmouseover="this.stop();" onmouseout="this.start();">rn");
  125. int announcement__loop__id=0;
  126. foreach(DataRow announcement in announcementlist.Rows)
  127. {
  128. announcement__loop__id++;
  129. templateBuilder.Append(" " + announcement["starttime"].ToString().Trim() + "<a href="announcement.aspx#" + announcement["id"].ToString().Trim() + "">" + announcement["title"].ToString().Trim() + "</a>rn");
  130. } //end loop
  131. templateBuilder.Append(" </marquee>rn");
  132. templateBuilder.Append(" </div>rn");
  133. if (config.Enabletag==1)
  134. {
  135. templateBuilder.Append("<!--tag-->rn");
  136. templateBuilder.Append(" <script type="text/javascript" src="cache/tag/closedtags.txt"></" + "script>rn");
  137. templateBuilder.Append(" <script type="text/javascript" src="cache/tag/colorfultags.txt"></" + "script>rn");
  138. templateBuilder.Append(" <script type="text/javascript" src="javascript/template_tags.js"></" + "script> rn");
  139. templateBuilder.Append(" <script type="text/javascript" src="javascript/ajax.js"></" + "script>rn");
  140. templateBuilder.Append(" <div id="keyword">rn");
  141. templateBuilder.Append(" <div class="keywordbody">rn");
  142. 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");
  143. templateBuilder.Append(" </div>rn");
  144. templateBuilder.Append(" </div>rn");
  145. templateBuilder.Append(" <!--tag end-->rn");
  146. } //end if
  147. if (page_err==0)
  148. {
  149. templateBuilder.Append("<script type="text/javascript">rn");
  150. templateBuilder.Append("var templatepath = "" + templatepath.ToString() + "";rn");
  151. templateBuilder.Append("var forumpath = "" + forumpath.ToString() + "";rn");
  152. templateBuilder.Append("var aspxrewrite = " + config.Aspxrewrite.ToString().Trim() + ";rn");
  153. templateBuilder.Append("</" + "script> rn");
  154. templateBuilder.Append(" <div id="pageinfo">rn");
  155. templateBuilder.Append(" <em>当前位置:</em><strong>商城首页</strong>rn");
  156. templateBuilder.Append(" </div>rn");
  157. templateBuilder.Append(" <div class="mainbox">rn");
  158. templateBuilder.Append(" <div id="contentbox">rn");
  159. templateBuilder.Append(" <div class="box newpro">rn");
  160. templateBuilder.Append(" <span>更多&gt;&gt;</span>rn");
  161. templateBuilder.Append(" <h2><strong>新品集市</strong></h2>rn");
  162. templateBuilder.Append(" <div class="innerbox majorbox">rn");
  163. int new_goodsinfo__loop__id=0;
  164. foreach(Goodsinfo new_goodsinfo in new_goodsinfocoll)
  165. {
  166. new_goodsinfo__loop__id++;
  167. templateBuilder.Append(" <dl>rn");
  168.  aspxrewriteurl = this.ShowGoodsAspxRewrite(new_goodsinfo.Goodsid);
  169. templateBuilder.Append(" <dt><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
  170. if (new_goodsinfo.Goodspic=="")
  171. {
  172. 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");
  173. }
  174. else
  175. {
  176. 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");
  177. } //end if
  178. templateBuilder.Append("</a> rn");
  179. templateBuilder.Append(" </dt>rn");
  180. templateBuilder.Append(" <dd class="title"><a href="" + aspxrewriteurl.ToString() + "" target="_blank">" + new_goodsinfo.Htmltitle.ToString().Trim() + "</a></dd>rn");
  181. templateBuilder.Append(" <dd>商家:rn");
  182.  aspxrewriteurl = this.UserInfoAspxRewrite(new_goodsinfo.Selleruid);
  183. templateBuilder.Append("     <a href="" + aspxrewriteurl.ToString() + "" target="_blank">" + new_goodsinfo.Seller.ToString().Trim() + "</a></dd>rn");
  184. templateBuilder.Append(" <dd>价格:<em>" + new_goodsinfo.Price.ToString().Trim() + "</em>元</dd>rn");
  185. templateBuilder.Append(" </dl>rn");
  186. } //end loop
  187. templateBuilder.Append(" </div>rn");
  188. templateBuilder.Append(" </div>rn");
  189. templateBuilder.Append(" <div class="box showpro">rn");
  190. templateBuilder.Append(" <span>更多&gt;&gt;</span>rn");
  191. templateBuilder.Append(" <h2><strong>二手交易</strong></h2>rn");
  192. templateBuilder.Append(" <div class="innerbox oldpro">rn");
  193. int sec_hand_goodsinfo__loop__id=0;
  194. foreach(Goodsinfo sec_hand_goodsinfo in sec_hand_goodsinfocoll)
  195. {
  196. sec_hand_goodsinfo__loop__id++;
  197.  aspxrewriteurl = this.ShowGoodsAspxRewrite(sec_hand_goodsinfo.Goodsid);
  198. if (sec_hand_goodsinfo__loop__id<=3)
  199. {
  200. templateBuilder.Append(" <dl>rn");
  201. templateBuilder.Append(" <dt><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
  202. if (sec_hand_goodsinfo.Goodspic=="")
  203. {
  204. 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");
  205. }
  206. else
  207. {
  208. 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");
  209. } //end if
  210. templateBuilder.Append("</a>rn");
  211. templateBuilder.Append("                        </dt>rn");
  212. templateBuilder.Append(" <dd class="title"><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
  213. templateBuilder.Append(Utils.GetSubString(sec_hand_goodsinfo.Title,0,22,"..."));
  214. templateBuilder.Append("</a></dd>rn");
  215. templateBuilder.Append(" </dl>rn");
  216. }
  217. else
  218. {
  219. if (sec_hand_goodsinfo__loop__id==4)
  220. {
  221. templateBuilder.Append("         <ul>rn");
  222. } //end if
  223. templateBuilder.Append("         <li><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
  224. templateBuilder.Append(Utils.GetSubString(sec_hand_goodsinfo.Title,0,34,"..."));
  225. templateBuilder.Append("</a></li>rn");
  226. if (sec_hand_goodsinfocoll.Count==sec_hand_goodsinfo__loop__id)
  227. {
  228. templateBuilder.Append("         </ul>rn");
  229. } //end if
  230. } //end if
  231. } //end loop
  232. templateBuilder.Append(" </div>rn");
  233. templateBuilder.Append(" </div>rn");
  234. templateBuilder.Append(" <div class="box showpro">rn");
  235. templateBuilder.Append(" <span>更多&gt;&gt;</span>rn");
  236. templateBuilder.Append(" <h2><strong>一元专区</strong></h2>rn");
  237. templateBuilder.Append(" <div class="innerbox oldpro">rn");
  238. int one_yuan_goodsinfo__loop__id=0;
  239. foreach(Goodsinfo one_yuan_goodsinfo in one_yuan_goodsinfocoll)
  240. {
  241. one_yuan_goodsinfo__loop__id++;
  242.  aspxrewriteurl = this.ShowGoodsAspxRewrite(one_yuan_goodsinfo.Goodsid);
  243. if (one_yuan_goodsinfo__loop__id<=3)
  244. {
  245. templateBuilder.Append(" <dl>rn");
  246. templateBuilder.Append(" <dt><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
  247. if (one_yuan_goodsinfo.Goodspic=="")
  248. {
  249. 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");
  250. }
  251. else
  252. {
  253. 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");
  254. } //end if
  255. templateBuilder.Append("</a>rn");
  256. templateBuilder.Append("                        </dt>rn");
  257. templateBuilder.Append(" <dd class="title"><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
  258. templateBuilder.Append(Utils.GetSubString(one_yuan_goodsinfo.Title,0,22,"..."));
  259. templateBuilder.Append("</a></dd>rn");
  260. templateBuilder.Append(" </dl>rn");
  261. }
  262. else
  263. {
  264. if (one_yuan_goodsinfo__loop__id==4)
  265. {
  266. templateBuilder.Append("         <ul>rn");
  267. } //end if
  268. templateBuilder.Append("         <li><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
  269. templateBuilder.Append(Utils.GetSubString(one_yuan_goodsinfo.Title,0,34,"..."));
  270. templateBuilder.Append("</a></li>rn");
  271. if (one_yuan_goodsinfocoll.Count==one_yuan_goodsinfo__loop__id)
  272. {
  273. templateBuilder.Append("         </ul>rn");
  274. } //end if
  275. } //end if
  276. } //end loop
  277. templateBuilder.Append(" </div>rn");
  278. templateBuilder.Append(" </div>rn");
  279. templateBuilder.Append(" <div style="clear:both;"></div>rn");
  280. templateBuilder.Append(" <div class="box goodsclass">rn");
  281. templateBuilder.Append(" <span>更多&gt;&gt;</span>rn");
  282. templateBuilder.Append(" <h2><strong>商品分类</strong></h2>rn");
  283. templateBuilder.Append(" <div id="categorylist" class="innerbox classlist"></div>rn");
  284. templateBuilder.Append(" <script language="javascript" src="javascript/template_mallindex.js"></" + "script>rn");
  285. templateBuilder.Append("         <script language="javascript">rn");
  286. templateBuilder.Append("         " + goodscategory.ToString() + "rn");
  287. templateBuilder.Append("         loadcategory(" + config.Aspxrewrite.ToString().Trim() + ");rn");
  288. templateBuilder.Append("         </" + "script>rn");
  289. templateBuilder.Append(" </div>rn");
  290. templateBuilder.Append(" <div class="box showpro">rn");
  291. templateBuilder.Append(" <span>更多&gt;&gt;</span>rn");
  292. templateBuilder.Append(" <h2><strong>热门推荐</strong></h2>rn");
  293. templateBuilder.Append(" <div class="innerbox oldpro" style="height:304px;">rn");
  294. int recommend_goodsinfo__loop__id=0;
  295. foreach(Goodsinfo recommend_goodsinfo in recommend_goodsinfocoll)
  296. {
  297. recommend_goodsinfo__loop__id++;
  298.  aspxrewriteurl = this.ShowGoodsAspxRewrite(recommend_goodsinfo.Goodsid);
  299. if (recommend_goodsinfo__loop__id<=6)
  300. {
  301. templateBuilder.Append(" <dl>rn");
  302. templateBuilder.Append(" <dt><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
  303. if (recommend_goodsinfo.Goodspic=="")
  304. {
  305. 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");
  306. }
  307. else
  308. {
  309. 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");
  310. } //end if
  311. templateBuilder.Append("</a>rn");
  312. templateBuilder.Append("                        </dt>rn");
  313. templateBuilder.Append(" <dd class="title"><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
  314. templateBuilder.Append(Utils.GetSubString(recommend_goodsinfo.Title,0,22,"..."));
  315. templateBuilder.Append("</a></dd>rn");
  316. templateBuilder.Append(" </dl>rn");
  317. }
  318. else
  319. {
  320. if (recommend_goodsinfo__loop__id==7)
  321. {
  322. templateBuilder.Append("         <ul>rn");
  323. } //end if
  324. templateBuilder.Append("         <li><a href="" + aspxrewriteurl.ToString() + "" target="_blank">rn");
  325. templateBuilder.Append(Utils.GetSubString(recommend_goodsinfo.Title,0,34,"..."));
  326. templateBuilder.Append("</a></li>rn");
  327. if (recommend_goodsinfocoll.Count==recommend_goodsinfo__loop__id)
  328. {
  329. templateBuilder.Append("         </ul>rn");
  330. } //end if
  331. } //end if
  332. } //end loop
  333. templateBuilder.Append(" </div>rn");
  334. templateBuilder.Append(" </div>rn");
  335. templateBuilder.Append(" </div>rn");
  336. templateBuilder.Append(" <div id="sidebox">rn");
  337. templateBuilder.Append(" <div class="box salebox">rn");
  338. 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");
  339. templateBuilder.Append(" <div id="hotgoods_days" class="innerbox majorbox"></div>rn");
  340. templateBuilder.Append(" </div>rn");
  341. templateBuilder.Append(" <div class="box salebox">rn");
  342. templateBuilder.Append(" <h2 id="hotshop_h2"><strong>热门店铺</strong><a href="javascript:;" onclick="javascript:tabselect('hotshop_h2', 'newshop');ajaxgetshop('hotshop','hotshop_div');">新开店铺</a></h2>rn");
  343. templateBuilder.Append(" <div id="hotshop_div" class="innerbox majorbox"></div>rn");
  344. templateBuilder.Append(" </div>rn");
  345. templateBuilder.Append(" </div>rn");
  346. templateBuilder.Append(" </div>rn");
  347. templateBuilder.Append(" <!--rn");
  348. templateBuilder.Append(" <div class="innerad">rn");
  349. templateBuilder.Append(" <img src="images/mall/ad.gif" alt="广告"/>rn");
  350. templateBuilder.Append(" </div>-->rn");
  351. int root_goodscategory__loop__id=0;
  352. foreach(Goodscategoryinfo root_goodscategory in rootgoodscategoryarray)
  353. {
  354. root_goodscategory__loop__id++;
  355. templateBuilder.Append(" <div class="mainbox">rn");
  356. templateBuilder.Append(" <div id="contentbox">rn");
  357. templateBuilder.Append(" <div class="box proshow">rn");
  358. templateBuilder.Append(" <span id="goodscategory_" + root_goodscategory.Categoryid.ToString().Trim() + ""></span>rn");
  359. templateBuilder.Append(" <script>loadsubcategory(" + root_goodscategory.Categoryid.ToString().Trim() + ");</" + "script>rn");
  360. templateBuilder.Append(" <h2><strong>" + root_goodscategory.Categoryname.ToString().Trim() + "</strong></h2>rn");
  361. templateBuilder.Append(" <div class="innerbox goodsbox">rn");
  362. templateBuilder.Append(" <ul id="goodsinfo_li_" + root_goodscategory.Categoryid.ToString().Trim() + ""></ul>rn");
  363. templateBuilder.Append(" <script>ajaxgetgoodslist(" + root_goodscategory.Categoryid.ToString().Trim() + ");</" + "script>rn");
  364. templateBuilder.Append(" </div>rn");
  365. templateBuilder.Append(" </div>rn");
  366. templateBuilder.Append(" </div>rn");
  367. templateBuilder.Append(" <div id="sidebox">rn");
  368. templateBuilder.Append(" <div class="box salebox">rn");
  369. templateBuilder.Append(" <h2><strong>人气排行</strong></h2> rn");
  370. templateBuilder.Append(" <div class="innerbox rankingbox">rn");
  371. templateBuilder.Append(" <div class="tabsbox">rn");
  372. templateBuilder.Append(" <ul id="tab_goodscategory_" + root_goodscategory.Categoryid.ToString().Trim() + ""></ul>rn");
  373. templateBuilder.Append(" </div>rn");
  374. templateBuilder.Append(" <div class="rankbox">rn");
  375. templateBuilder.Append(" <ul id="hotgoodsinfo_" + root_goodscategory.Categoryid.ToString().Trim() + "">rn");
  376. templateBuilder.Append(" </ul>rn");
  377. templateBuilder.Append(" </div>rn");
  378. templateBuilder.Append(" <script>loadgoodscategorytab(" + root_goodscategory.Categoryid.ToString().Trim() + ", 0);</" + "script>rn");
  379. templateBuilder.Append(" </div>rn");
  380. templateBuilder.Append(" </div>rn");
  381. templateBuilder.Append(" </div>rn");
  382. templateBuilder.Append(" </div> rn");
  383. templateBuilder.Append(" <!--rn");
  384. templateBuilder.Append(" <div class="innerad">rn");
  385. templateBuilder.Append(" <img src="images/mall/ad.gif" alt="广告"/>rn");
  386. templateBuilder.Append(" </div>-->rn");
  387. } //end loop
  388. templateBuilder.Append("</div>rn");
  389. templateBuilder.Append("<script type="text/javascript">init();</" + "script>rn");
  390. }
  391. else
  392. {
  393. templateBuilder.Append("<div class="ntforumbox">rn");
  394. templateBuilder.Append(" <div class="titlebar">rn");
  395. templateBuilder.Append(" <h3>出现了" + page_err.ToString() + "个错误</h3>rn");
  396. templateBuilder.Append(" </div>rn");
  397. templateBuilder.Append(" <div class="forumerror">rn");
  398. templateBuilder.Append(" " + msgbox_text.ToString() + "rn");
  399. templateBuilder.Append(" <p class="errorback">rn");
  400. templateBuilder.Append(" <script language="javascript">rn");
  401. templateBuilder.Append(" if(" + msgbox_showbacklink.ToString() + ")rn");
  402. templateBuilder.Append(" {rn");
  403. templateBuilder.Append(" document.write("<a href=\"" + msgbox_backlink.ToString() + "\">返回上一步</a> &nbsp; &nbsp;|&nbsp; &nbsp  ");rn");
  404. templateBuilder.Append(" }rn");
  405. templateBuilder.Append(" </" + "script>rn");
  406. templateBuilder.Append(" <a href="forumindex.aspx">论坛首页</a>rn");
  407. if (usergroupid==7)
  408. {
  409. templateBuilder.Append("  &nbsp; &nbsp|&nbsp; &nbsp; <a href="register.aspx">注册</a>rn");
  410. } //end if
  411. templateBuilder.Append(" </p>rn");
  412. templateBuilder.Append(" </div>rn");
  413. templateBuilder.Append("</div>rn");
  414. } //end if
  415. if (footerad!="")
  416. {
  417. templateBuilder.Append("<!--底部广告显示-->rn");
  418. templateBuilder.Append("<div id="bottomad">" + footerad.ToString() + "</div>rn");
  419. templateBuilder.Append("<!--底部广告结束-->rn");
  420. } //end if
  421. templateBuilder.Append("<div id="forumfooter">rn");
  422. templateBuilder.Append(" <div class="footercopy">rn");
  423. templateBuilder.Append("   <p>rn");
  424. templateBuilder.Append(" 版权所有 <a href="" + config.Weburl.ToString().Trim() + "" target="_blank">" + config.Webtitle.ToString().Trim() + "</a>&nbsp; " + config.Linktext.ToString().Trim() + "rn");
  425. if (config.Sitemapstatus==1)
  426. {
  427. templateBuilder.Append("&nbsp;<a href="tools/sitemap.aspx" target="_blank" title="百度论坛收录协议">Sitemap</a>rn");
  428. } //end if
  429. templateBuilder.Append(" " + config.Statcode.ToString().Trim() + "rn");
  430. templateBuilder.Append(" </p>rn");
  431. 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>&nbsp;<em>2.5.0 rn");
  432. if (config.Licensed==1)
  433. {
  434. 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");
  435. } //end if
  436. templateBuilder.Append(" &nbsp;&nbsp; " + config.Forumcopyright.ToString().Trim() + "</em>rn");
  437. if (config.Debug!=0)
  438. {
  439. templateBuilder.Append("<br/>rn");
  440. templateBuilder.Append(" Processed in " + this.Processtime.ToString().Trim() + " second(s)rn");
  441. if (isguestcachepage==1)
  442. {
  443. templateBuilder.Append(" (Cached).rn");
  444. }
  445. else if (querycount>1)
  446. {
  447. templateBuilder.Append("         , " + querycount.ToString() + " queries.rn");
  448. }
  449. else
  450. {
  451. templateBuilder.Append("         , " + querycount.ToString() + " query.rn");
  452. } //end if
  453. } //end if
  454. templateBuilder.Append(" " + config.Icp.ToString().Trim() + "rn");
  455. templateBuilder.Append("  </span>rn");
  456. templateBuilder.Append(" </div>rn");
  457. templateBuilder.Append(" <div class="footergoto">rn");
  458. templateBuilder.Append(" <span><img src="templates/" + templatepath.ToString() + "/images/gototop2.gif" alt="返顶部" onclick="window.scrollTo(0,0)" /></span>rn");
  459. if (config.Stylejump==1)
  460. {
  461. if (userid!=-1 || config.Guestcachepagetimeout<=0)
  462. {
  463. templateBuilder.Append(" <select onchange="if(this.options[this.selectedIndex].value != '') {window.location=('showtemplate.aspx?templateid='+this.options[this.selectedIndex].value) }">rn");
  464. templateBuilder.Append(" <option selected>切换界面...</option>rn");
  465. templateBuilder.Append(" " + templatelistboxoptions.ToString() + "rn");
  466. templateBuilder.Append(" </select>rn");
  467. } //end if
  468. } //end if
  469. templateBuilder.Append(" </div>rn");
  470. templateBuilder.Append("</div>rn");
  471. templateBuilder.Append("<div id="my_menu" class="ntdropmenu" style="display: none;">rn");
  472. templateBuilder.Append(" <a href="mytopics.aspx">我的主题</a>rn");
  473. templateBuilder.Append(" <a href="myposts.aspx">我的帖子</a>rn");
  474. templateBuilder.Append(" <a href="search.aspx?posterid=" + userid.ToString() + "&amp;type=digest">我的精华</a>rn");
  475. templateBuilder.Append("        <a href="myattachment.aspx">我的附件</a>rn");
  476. if (config.Enablespace==1)
  477. {
  478. templateBuilder.Append(" <a href="" + spaceurl.ToString() + "space/">我的空间</a>rn");
  479. } //end if
  480. if (config.Enablealbum==1)
  481. {
  482. templateBuilder.Append(" <a href="showalbumlist.aspx?uid=" + userid.ToString() + "">我的相册</a>rn");
  483. } //end if
  484. if (config.Enablemall>=1)
  485. {
  486. templateBuilder.Append(" <a href="usercpmygoods.aspx">我的商品</a>rn");
  487. } //end if
  488. templateBuilder.Append(" <script type="text/javascript" src="javascript/mymenu.js"></" + "script>rn");
  489. templateBuilder.Append("</div>rn");
  490. if (querydetail!="")
  491. {
  492. 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");
  493. templateBuilder.Append("<table width="100%" cellspacing="0" cellpadding="0" align="center">rn");
  494. templateBuilder.Append("<tbody>rn");
  495. templateBuilder.Append("<tr>rn");
  496. templateBuilder.Append("<td colspan="3">rn");
  497. templateBuilder.Append("<span onclick="$('debug_bar').style.display = 'none'" style="cursor: pointer;">[关闭]</span>rn");
  498. templateBuilder.Append("<span onclick="debugdisplay('debugwinquery')" style="cursor: pointer;"> | [查询 " + querycount.ToString() + " 次]</span>rn");
  499. templateBuilder.Append("<!--rn");
  500. templateBuilder.Append("<span onclick="debugdisplay('debugwininclude')" style="cursor: pointer;"> | [引用19 个]</span>rn");
  501. templateBuilder.Append("<span onclick="debugdisplay('debugwindcookie')" style="cursor: pointer;"> | [DCOOKIE]</span>rn");
  502. templateBuilder.Append("<span onclick="debugdisplay('debugwindsession')" style="cursor: pointer;"> | [DSESSION]</span>rn");
  503. templateBuilder.Append("<span onclick="debugdisplay('debugwincache')" style="cursor: pointer;"> | [DCACHE]</span>rn");
  504. templateBuilder.Append("<span onclick="debugdisplay('debugwinplugin')" style="cursor: pointer;"> | [DPLUGIN]</span>rn");
  505. templateBuilder.Append("<span onclick="debugdisplay('debugwinsettings')" style="cursor: pointer;"> | [settings]</span>rn");
  506. templateBuilder.Append("<span onclick="debugdisplay('debugwinenv')" style="cursor: pointer;"> | [环境]</span>rn");
  507. templateBuilder.Append("-->rn");
  508. templateBuilder.Append("</td>rn");
  509. templateBuilder.Append("</tr>rn");
  510. templateBuilder.Append("</tbody>rn");
  511. templateBuilder.Append("</table>rn");
  512. templateBuilder.Append("<div id="debugwinquery" style="display: none;">" + querydetail.ToString() + "</div>rn");
  513. templateBuilder.Append("<script type="text/javascript">rn");
  514. templateBuilder.Append("function debugdisplay(id)rn");
  515. templateBuilder.Append("{rn");
  516. templateBuilder.Append("    if ($(id).style.display == 'none')rn");
  517. templateBuilder.Append("    {rn");
  518. templateBuilder.Append("        $(id).style.display = '';rn");
  519. templateBuilder.Append("    }rn");
  520. templateBuilder.Append("    elsern");
  521. templateBuilder.Append("    {rn");
  522. templateBuilder.Append("        $(id).style.display = 'none';rn");
  523. templateBuilder.Append("    }rn");
  524. templateBuilder.Append("}rn");
  525. templateBuilder.Append("</" + "script>rn");
  526. templateBuilder.Append("</div>rn");
  527. } //end if
  528. if (floatad!="")
  529. {
  530. templateBuilder.Append(" <script type="text/javascript" src="javascript/template_floatadv.js"></" + "script>rn");
  531. templateBuilder.Append(" " + floatad.ToString() + "rn");
  532. templateBuilder.Append(" <script type="text/javascript">theFloaters.play();</" + "script>rn");
  533. }
  534. else if (doublead!="")
  535. {
  536. templateBuilder.Append(" <script type="text/javascript" src="javascript/template_floatadv.js"></" + "script>rn");
  537. templateBuilder.Append(" " + doublead.ToString() + "rn");
  538. templateBuilder.Append(" <script type="text/javascript">theFloaters.play();</" + "script>rn");
  539. } //end if
  540. templateBuilder.Append("" + mediaad.ToString() + "rn");
  541. templateBuilder.Append("" + inforumad.ToString() + "rn");
  542. templateBuilder.Append("<div id="quicksearch_menu" class="searchmenu" style="display: none;">rn");
  543. 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");
  544. 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");
  545. 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");
  546. templateBuilder.Append(" <div onclick="document.getElementById('keywordtype').value='8';document.getElementById('quicksearch').innerHTML='作&nbsp;&nbsp;者';document.getElementById('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">作&nbsp;&nbsp;者</div>rn");
  547. templateBuilder.Append("</div>rn");
  548. templateBuilder.Append("</div>rn");
  549. templateBuilder.Append("</body>rn");
  550. templateBuilder.Append("</html>rn");
  551. Response.Write(templateBuilder.ToString());
  552. }
  553. </script>