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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.showgoods" %>
  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 2009-9-22 17:24:55.
  11. 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:24:55. 
  12. */
  13. base.OnInit(e);
  14. templateBuilder.Capacity = 220000;
  15. templateBuilder.Append("<script type="text/javascript">rn");
  16. templateBuilder.Append("var templatepath = "");
  17. templateBuilder.Append(templatepath.ToString());
  18. templateBuilder.Append("";rn");
  19. templateBuilder.Append("var postminchars = 1;rn");
  20. templateBuilder.Append("var postmaxchars = 200;rn");
  21. templateBuilder.Append("var disablepostctrl = parseInt(");
  22. templateBuilder.Append(disablepostctrl.ToString());
  23. templateBuilder.Append(");rn");
  24. templateBuilder.Append("var forumpath = "");
  25. templateBuilder.Append(forumpath.ToString());
  26. templateBuilder.Append("";rn");
  27. templateBuilder.Append("var useradminid = ");
  28. templateBuilder.Append(useradminid.ToString());
  29. templateBuilder.Append(";rn");
  30. templateBuilder.Append("</");
  31. templateBuilder.Append("script>rn");
  32. templateBuilder.Append("<script type="text/javascript" src="javascript/ajax.js"></");
  33. templateBuilder.Append("script>rn");
  34. templateBuilder.Append("<script type="text/javascript" src="javascript/template_showgoods.js"></");
  35. templateBuilder.Append("script>rn");
  36. if (page_err==0)
  37. {
  38. if (ispost || isdeleteop)
  39. {
  40. }
  41. else
  42. {
  43. templateBuilder.Append("<div id="foruminfo">rn");
  44. templateBuilder.Append(" <div id="nav">rn");
  45. templateBuilder.Append(" <a id="A1" href="forumindex.aspx" onmouseover="showMenu(this.id);" onmouseout="showMenu(this.id);">");
  46. templateBuilder.Append(config.Forumtitle.ToString().Trim());
  47. templateBuilder.Append("</a>  &raquo; ");
  48. templateBuilder.Append(goodscategoryinfo.Pathlist.ToString().Trim());
  49. templateBuilder.Append("  &raquo; <strong>");
  50. templateBuilder.Append(goodsinfo.Htmltitle.ToString().Trim());
  51. templateBuilder.Append("</strong>rn");
  52. templateBuilder.Append(" </div>rn");
  53. templateBuilder.Append(" <div id="headsearch">rn");
  54. templateBuilder.Append(" <div id="search">rn");
  55. if (usergroupinfo.Allowsearch>0)
  56. {
  57. } //end if
  58. templateBuilder.Append(" </div>rn");
  59. templateBuilder.Append(" </div>rn");
  60. templateBuilder.Append("</div> rn");
  61. if (config.Forumjump==1)
  62. {
  63. templateBuilder.Append(" ");
  64. templateBuilder.Append(navhomemenu.ToString());
  65. templateBuilder.Append("rn");
  66. } //end if
  67. templateBuilder.Append("<div class="mainbox viewthread">rn");
  68. templateBuilder.Append(" <span class="headactions">rn");
  69. if (goodsinfo.Selleruid==userid)
  70. {
  71. templateBuilder.Append(" <a href="editgoods.aspx?goodsid=");
  72. templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
  73. templateBuilder.Append("">编辑商品</a>rn");
  74. } //end if
  75. if (goodsinfo.Selleruid==userid || ismoder==1)
  76. {
  77. templateBuilder.Append(" <a onclick="return confirm('确定要删除吗?');" href="showgoods.aspx?deletegoods=1&goodsid=");
  78. templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
  79. templateBuilder.Append("">删除商品</a> rn");
  80. } //end if
  81. templateBuilder.Append(" <a href="usercppostpm.aspx?msgtoid=");
  82. templateBuilder.Append(goodsinfo.Selleruid.ToString().Trim());
  83. templateBuilder.Append("" target="_blank">给我留言</a> <a href="favorites.aspx?goodsid=");
  84. templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
  85. templateBuilder.Append("">收藏</a>rn");
  86. templateBuilder.Append(" </span>rn");
  87. templateBuilder.Append(" <h1>rn");
  88. templateBuilder.Append(" ");
  89. templateBuilder.Append(goodsinfo.Htmltitle.ToString().Trim());
  90. templateBuilder.Append("rn");
  91. templateBuilder.Append(" </h1>rn");
  92. templateBuilder.Append(" <table cellspacing="0" cellpadding="0" summary="");
  93. templateBuilder.Append(goodsinfo.Htmltitle.ToString().Trim());
  94. templateBuilder.Append("">rn");
  95. templateBuilder.Append(" <tr>rn");
  96. templateBuilder.Append(" <td class="postcontent">rn");
  97. templateBuilder.Append(" <div class="imageviewer">rn");
  98. templateBuilder.Append(" <ul>rn");
  99. templateBuilder.Append(" <li>rn");
  100. if (goodsinfo.Goodspic=="")
  101. {
  102. templateBuilder.Append(" <img id="goodspic" style="width:250px" src="templates/");
  103. templateBuilder.Append(templatepath.ToString());
  104. templateBuilder.Append("/images/mall/nogoods_big.gif" onerror="this.onerror=null;this.src='");
  105. templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
  106. templateBuilder.Append("';"  title="");
  107. templateBuilder.Append(goodsinfo.Title.ToString().Trim());
  108. templateBuilder.Append("">rn");
  109. }
  110. else
  111. {
  112. templateBuilder.Append(" <span style="position: absolute; display: none;" onmouseover="showMenu(this.id, 0, 1)" id="attach_");
  113. templateBuilder.Append(goodsinfo.Aid.ToString().Trim());
  114. templateBuilder.Append(""><img border="0" src="images/attachicons/attachimg.gif" /></span><img id="goodspic" style="width:250px" src="upload/");
  115. templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
  116. templateBuilder.Append("" onload="attachimg(this, 'load');" onmouseover="attachimginfo(this, 'attach_");
  117. templateBuilder.Append(goodsinfo.Aid.ToString().Trim());
  118. templateBuilder.Append("', 1);attachimg(this, 'mouseover')" onclick="zoom(this);" onmouseout="attachimginfo(this, 'attach_");
  119. templateBuilder.Append(goodsinfo.Aid.ToString().Trim());
  120. templateBuilder.Append("', 0, event)"  onerror="this.onerror=null;this.src='");
  121. templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
  122. templateBuilder.Append("';"  title="");
  123. templateBuilder.Append(goodsinfo.Title.ToString().Trim());
  124. templateBuilder.Append(""/>rn");
  125. } //end if
  126. templateBuilder.Append(" <li><a href="javascript:;" onclick="zoom($('goodspic'));"><img border="0" src="templates/");
  127. templateBuilder.Append(templatepath.ToString());
  128. templateBuilder.Append("/images/zoomin.gif" style="margin-bottom:-6px;margin-right: 4px" />点击放大图片</a></li>rn");
  129. templateBuilder.Append(" <li><!--<img src="images/recommend_to_friend.gif" alt="推荐给好友">--><a href="favorites.aspx?goodsid=");
  130. templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
  131. templateBuilder.Append(""><img src="templates/");
  132. templateBuilder.Append(templatepath.ToString());
  133. templateBuilder.Append("/images/add_to_watched_item.gif" alt="收藏这件宝贝"></li></a>rn");
  134. templateBuilder.Append(" </ul>rn");
  135. templateBuilder.Append(" </div>rn");
  136. templateBuilder.Append(" <div class="itemsummary">rn");
  137. templateBuilder.Append(" <ul id="priceinfo">rn");
  138. templateBuilder.Append("     <li ><span>原  价:</span><del>");
  139. templateBuilder.Append(goodsinfo.Costprice.ToString().Trim());
  140. templateBuilder.Append("</del>元</li>rn");
  141. templateBuilder.Append(" <li class="currentprice" style="padding-bottom: 5px;"><span style="margin-top: 5px;">现  价:</span><em>");
  142. templateBuilder.Append(goodsinfo.Price.ToString().Trim());
  143. templateBuilder.Append("</em>元</li>rn");
  144. templateBuilder.Append(" <li class="shippingcost"><span>运  费:</span>rn");
  145. if (goodsinfo.Transport==0)
  146. {
  147. templateBuilder.Append("     虚拟物品或无需邮递 rn");
  148. } //end if
  149. if (goodsinfo.Transport==1)
  150. {
  151. templateBuilder.Append("     卖家承担运费rn");
  152. } //end if
  153. if (goodsinfo.Transport>1)
  154. {
  155. if (goodsinfo.Ordinaryfee>0)
  156. {
  157. templateBuilder.Append("         平邮: ");
  158. templateBuilder.Append(goodsinfo.Ordinaryfee.ToString().Trim());
  159. templateBuilder.Append("元rn");
  160. } //end if
  161. if (goodsinfo.Emsfee>0)
  162. {
  163. templateBuilder.Append("         EMS:");
  164. templateBuilder.Append(goodsinfo.Emsfee.ToString().Trim());
  165. templateBuilder.Append("元rn");
  166. } //end if
  167. if (goodsinfo.Expressfee>0)
  168. {
  169. templateBuilder.Append("         快递:");
  170. templateBuilder.Append(goodsinfo.Expressfee.ToString().Trim());
  171. templateBuilder.Append("元rn");
  172. } //end if
  173. if (goodsinfo.Ordinaryfee<=0 && goodsinfo.Emsfee<=0)
  174. {
  175. if (goodsinfo.Expressfee<=0)
  176. {
  177. templateBuilder.Append("              无运费rn");
  178. } //end if
  179. } //end if
  180. } //end if
  181. templateBuilder.Append(" </li>rn");
  182. if (goodsinfo.Transport==3)
  183. {
  184. templateBuilder.Append(" <li class="shippingcost"><span>  </span>买家收到货物后直接支付给物流公司 </li>rn");
  185. } //end if
  186. templateBuilder.Append(" </ul>rn");
  187. if (goodsinfo.Selleruid!=-1 && userid!=goodsinfo.Selleruid)
  188. {
  189. if (goodsinfo.Closed==0 && goodsinfo.Amount>0)
  190. {
  191. templateBuilder.Append(" <div class="buttonbuynow"><a href="buygoods.aspx?goodsid=");
  192. templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
  193. templateBuilder.Append("" class="eventcode" title="点击此按钮,到下一步确认购买信息。">立刻购买</a></div>rn");
  194. } //end if
  195. } //end if
  196. templateBuilder.Append(" <div id="otherinfobox">rn");
  197. templateBuilder.Append(" <ul id="otherinfo">rn");
  198. templateBuilder.Append(" <li class="timeleft"><span>剩余时间:</span> <label class="lefttime1" id="remaintime"></label></li>rn");
  199. templateBuilder.Append(" <li class="totalsalenum"><span>累计售出:</span>");
  200. templateBuilder.Append(goodsinfo.Totalitems.ToString().Trim());
  201. templateBuilder.Append("件 <!--(已有<a href="#" target="_blank" style=""> 4 </a>条评价)</li>-->rn");
  202. templateBuilder.Append(" <li class="neworold"><span>宝贝类型:</span> rn");
  203. if (goodsinfo.Quality==1)
  204. {
  205. templateBuilder.Append("全新rn");
  206. }
  207. else
  208. {
  209. templateBuilder.Append("二手rn");
  210. } //end if
  211. templateBuilder.Append(" </li>rn");
  212. if (goodsinfo.Locus!="")
  213. {
  214. templateBuilder.Append(" <li class="location"><span>所 在 地:</span> ");
  215. templateBuilder.Append(goodsinfo.Locus.ToString().Trim());
  216. templateBuilder.Append("</li>rn");
  217. } //end if
  218. templateBuilder.Append(" <li class="amount"><span>宝贝数量:</span> rn");
  219. if (goodsinfo.Amount>0)
  220. {
  221. templateBuilder.Append(goodsinfo.Amount.ToString().Trim());
  222. templateBuilder.Append("rn");
  223. }
  224. else
  225. {
  226. templateBuilder.Append("0rn");
  227. } //end if
  228. templateBuilder.Append(" 件</li>rn");
  229. templateBuilder.Append(" <li class="viewtimes"><span>浏 览 量:</span><label>");
  230. templateBuilder.Append(goodsinfo.Viewcount.ToString().Trim());
  231. templateBuilder.Append("</label> 次</li>rn");
  232. templateBuilder.Append(" </ul>rn");
  233. templateBuilder.Append(" <div class="havkbox"></div>rn");
  234. templateBuilder.Append("  </div>rn");
  235. templateBuilder.Append(" </div>rn");
  236. templateBuilder.Append(" </td>rn");
  237. templateBuilder.Append(" <td class="postauthor">rn");
  238. templateBuilder.Append(" <div class="authormessage">掌柜档案</div>rn");
  239. templateBuilder.Append(" <div class="authorname">rn");
  240.  aspxrewriteurl = this.UserInfoAspxRewrite(goodsinfo.Selleruid);
  241. templateBuilder.Append(" <a href="");
  242. templateBuilder.Append(aspxrewriteurl.ToString());
  243. templateBuilder.Append("" target="_blank">");
  244. templateBuilder.Append(goodsinfo.Seller.ToString().Trim());
  245. templateBuilder.Append("</a>rn");
  246. templateBuilder.Append("     </div>rn");
  247. templateBuilder.Append(" <dl>rn");
  248. templateBuilder.Append(" <dt>卖家信用</dt><dd><span id="sellercreditnum"></span></dd>rn");
  249. templateBuilder.Append(" <dt>买家信用</dt><dd><span id="buyercreditnum"></span></dd>rn");
  250. templateBuilder.Append(" <dt>卖家好评率</dt><dd><span id="sellergoodrate"></span></dd>rn");
  251. templateBuilder.Append(" <dt>买家好评率</dt><dd><span id="buyergoodrate"></span></dd>rn");
  252. templateBuilder.Append(" <dt>注册时间</dt><dd>");
  253. templateBuilder.Append(joindate.ToString());
  254. templateBuilder.Append("</dd>rn");
  255. templateBuilder.Append(" </dl>rn");
  256. templateBuilder.Append(" <script type="text/javascript">rn");
  257. templateBuilder.Append("     getTime('");
  258. templateBuilder.Append(goodsinfo.Expiration.ToString().Trim());
  259. templateBuilder.Append("','remaintime');rn");
  260. templateBuilder.Append("                var creditrulesjsondata = ");
  261. templateBuilder.Append(creditrulesjsondata.ToString());
  262. templateBuilder.Append(";rn");
  263. templateBuilder.Append("                var templatepath = '");
  264. templateBuilder.Append(templatepath.ToString());
  265. templateBuilder.Append("';rn");
  266. templateBuilder.Append("                var usercredit_data = ");
  267. templateBuilder.Append(sb_usercredit.ToString());
  268. templateBuilder.Append(";rn");
  269. templateBuilder.Append("                gettradecredit(usercredit_data[0].sixmonth + usercredit_data[0].sixmonthago, true, 'sellercreditnum',");
  270. templateBuilder.Append(goodsinfo.Selleruid.ToString().Trim());
  271. templateBuilder.Append("); //卖家信用rn");
  272. templateBuilder.Append("                gettradecredit(usercredit_data[3].sixmonth + usercredit_data[3].sixmonthago, false, 'buyercreditnum',");
  273. templateBuilder.Append(goodsinfo.Selleruid.ToString().Trim());
  274. templateBuilder.Append("); //买家信用rn");
  275. templateBuilder.Append("                loadratedata(0,3,'sellercredit','sellergoodrate');   rn");
  276. templateBuilder.Append("                loadratedata(3,6,'buyercredit','buyergoodrate');   rn");
  277. templateBuilder.Append("            </");
  278. templateBuilder.Append("script> rn");
  279. if (config.Enablemall==2)
  280. {
  281. templateBuilder.Append("     <div class="moregoods"><a href="shop.aspx?userid=");
  282. templateBuilder.Append(goodsinfo.Shopid.ToString().Trim());
  283. templateBuilder.Append(""><img src="templates/");
  284. templateBuilder.Append(templatepath.ToString());
  285. templateBuilder.Append("/images/moregoods.gif" alt="查看更多商品"/></a></div>rn");
  286. } //end if
  287. templateBuilder.Append(" </td>rn");
  288. templateBuilder.Append(" </tr>rn");
  289. templateBuilder.Append(" </table>rn");
  290. templateBuilder.Append("</div>rn");
  291. templateBuilder.Append("<div class="mainbox othergoodsinfo">rn");
  292. templateBuilder.Append(" <ul class="tabs">rn");
  293. templateBuilder.Append("  <li id="li_showdetail" class="current"><a onclick="showgoodsinfo('showdetail')" href="javascript:;">宝贝详情</a></li>rn");
  294. templateBuilder.Append("  <li id="li_othermessage"><a onclick="showgoodsinfo('othermessage')" href="javascript:;">其他信息</a></li>rn");
  295. templateBuilder.Append("  <li id="li_pricelist"><a onclick="showgoodsinfo('pricelist')" href="javascript:;">出价记录</a></li>rn");
  296. templateBuilder.Append("  <li id="li_messagebox"><a onclick="showgoodsinfo('messagebox')" href="javascript:;">留言簿</a></li>rn");
  297. templateBuilder.Append("  <li style="display: none;" id="ad_relatedtrade"/>rn");
  298. templateBuilder.Append(" </ul>rn");
  299. templateBuilder.Append(" <div id="showdetail">rn");
  300. templateBuilder.Append(" <div class="postmessage">");
  301. templateBuilder.Append(message.ToString());
  302. templateBuilder.Append("</div>rn");
  303. if (config.Enablemall==2)
  304. {
  305. templateBuilder.Append(" <div class="othergoods">rn");
  306. templateBuilder.Append(" <h4><img width="12" height="12" align="middle" alt="" src="templates/");
  307. templateBuilder.Append(templatepath.ToString());
  308. templateBuilder.Append("/images/rec_item_title_icon.gif"/>掌柜推荐的宝贝</h4>rn");
  309. templateBuilder.Append(" <ul> rn");
  310. int recgoodsinfo__loop__id=0;
  311. foreach(Goodsinfo recgoodsinfo in recommendgoodslist)
  312. {
  313. recgoodsinfo__loop__id++;
  314. templateBuilder.Append("    <li>rn");
  315.  aspxrewriteurl = this.ShowGoodsAspxRewrite(recgoodsinfo.Goodsid);
  316. if (recgoodsinfo.Goodspic=="")
  317. {
  318. templateBuilder.Append("         <a target="_blank" href="");
  319. templateBuilder.Append(aspxrewriteurl.ToString());
  320. templateBuilder.Append(""><img style="width:80px" src="templates/");
  321. templateBuilder.Append(templatepath.ToString());
  322. templateBuilder.Append("/images/nogoods_small.jpg" onerror="this.onerror=null;this.src='");
  323. templateBuilder.Append(recgoodsinfo.Goodspic.ToString().Trim());
  324. templateBuilder.Append("';"  title="");
  325. templateBuilder.Append(recgoodsinfo.Title.ToString().Trim());
  326. templateBuilder.Append(""></a>rn");
  327. }
  328. else
  329. {
  330. templateBuilder.Append("         <a target="_blank" href="");
  331. templateBuilder.Append(aspxrewriteurl.ToString());
  332. templateBuilder.Append(""><img style="width:80px" src="upload/");
  333. templateBuilder.Append(recgoodsinfo.Goodspic.ToString().Trim());
  334. templateBuilder.Append("" onerror="this.onerror=null;this.src='");
  335. templateBuilder.Append(recgoodsinfo.Goodspic.ToString().Trim());
  336. templateBuilder.Append("';"  title="");
  337. templateBuilder.Append(recgoodsinfo.Title.ToString().Trim());
  338. templateBuilder.Append(""></a>rn");
  339. } //end if
  340. templateBuilder.Append("    <em>");
  341. templateBuilder.Append(recgoodsinfo.Price.ToString().Trim());
  342. templateBuilder.Append(" 元</em>rn");
  343. templateBuilder.Append("    <span><a target="_blank" href="");
  344. templateBuilder.Append(aspxrewriteurl.ToString());
  345. templateBuilder.Append("">");
  346. templateBuilder.Append(recgoodsinfo.Htmltitle.ToString().Trim());
  347. templateBuilder.Append("</a></span>rn");
  348. templateBuilder.Append("    </li>rn");
  349. } //end loop
  350. templateBuilder.Append("    </ul>rn");
  351. templateBuilder.Append("    <div class="openshop">挑选更多宝贝>> <a target="_blank" href="shop.aspx?userid=");
  352. templateBuilder.Append(goodsinfo.Shopid.ToString().Trim());
  353. templateBuilder.Append(""><img align="absmiddle" alt="进入掌柜店铺" src="http://pics.taobao.com/bao/album/sys/auction/stroll_shop_icon2.gif"/></a></div>rn");
  354. templateBuilder.Append(" </div>rn");
  355. } //end if
  356. templateBuilder.Append(" </div>rn");
  357. templateBuilder.Append(" <div id="othermessage">rn");
  358. templateBuilder.Append(" <h3 id="othermessage_h3">其他信息</h3>rn");
  359. templateBuilder.Append(" <ul>rn");
  360. templateBuilder.Append(" <li><span>开始:</span>");
  361. templateBuilder.Append(goodsinfo.Dateline.ToString().Trim());
  362. templateBuilder.Append("</li>rn");
  363. templateBuilder.Append(" <li><span>发票:</span>rn");
  364. if (goodsinfo.Invoice==1)
  365. {
  366. templateBuilder.Append("有rn");
  367. }
  368. else
  369. {
  370. templateBuilder.Append("无rn");
  371. } //end if
  372. templateBuilder.Append("</li>rn");
  373. templateBuilder.Append(" <li><span>结束:</span>");
  374. templateBuilder.Append(goodsinfo.Expiration.ToString().Trim());
  375. templateBuilder.Append("</li>rn");
  376. templateBuilder.Append(" <li><span>保修:</span>rn");
  377. if (goodsinfo.Repair==0)
  378. {
  379. templateBuilder.Append("无rn");
  380. }
  381. else
  382. {
  383. templateBuilder.Append(goodsinfo.Repair.ToString().Trim());
  384. templateBuilder.Append(" 天rn");
  385. } //end if
  386. templateBuilder.Append("</li>rn");
  387. templateBuilder.Append(" <li><span>最后编辑时间:</span>");
  388. templateBuilder.Append(goodsinfo.Lastupdate.ToString().Trim());
  389. templateBuilder.Append("</li>rn");
  390. templateBuilder.Append(" <li><span>编号:</span>");
  391. templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
  392. templateBuilder.Append("</li>rn");
  393. templateBuilder.Append(" <li><span>运费:</span> rn");
  394. if (goodsinfo.Transport==0)
  395. {
  396. templateBuilder.Append("     虚拟物品或无需邮递 rn");
  397. } //end if
  398. if (goodsinfo.Transport==1)
  399. {
  400. templateBuilder.Append("     卖家承担运费rn");
  401. } //end if
  402. if (goodsinfo.Transport>1)
  403. {
  404. if (goodsinfo.Ordinaryfee>0)
  405. {
  406. templateBuilder.Append("         平邮: ");
  407. templateBuilder.Append(goodsinfo.Ordinaryfee.ToString().Trim());
  408. templateBuilder.Append("元rn");
  409. } //end if
  410. if (goodsinfo.Emsfee>0)
  411. {
  412. templateBuilder.Append("         EMS:");
  413. templateBuilder.Append(goodsinfo.Emsfee.ToString().Trim());
  414. templateBuilder.Append("元rn");
  415. } //end if
  416. if (goodsinfo.Expressfee>0)
  417. {
  418. templateBuilder.Append("         快递:");
  419. templateBuilder.Append(goodsinfo.Expressfee.ToString().Trim());
  420. templateBuilder.Append("元rn");
  421. } //end if
  422. if (goodsinfo.Ordinaryfee<=0 && goodsinfo.Emsfee<=0)
  423. {
  424. if (goodsinfo.Expressfee<=0)
  425. {
  426. templateBuilder.Append("              无运费rn");
  427. } //end if
  428. } //end if
  429. if (goodsinfo.Transport==3)
  430. {
  431. templateBuilder.Append("         (买家收到货物后直接支付给物流公司)rn");
  432. } //end if
  433. } //end if
  434. templateBuilder.Append(" </li>rn");
  435. templateBuilder.Append(" <!--<li><span>付款方式:</span></li>-->rn");
  436. templateBuilder.Append(" </ul>rn");
  437. templateBuilder.Append(" </div>rn");
  438. templateBuilder.Append(" <div id="pricelist">rn");
  439. templateBuilder.Append(" <h3 id="pricelist_h3">出价记录</h3>rn");
  440. templateBuilder.Append(" <div id="summaryinfo">rn");
  441. templateBuilder.Append("            <ul>rn");
  442. templateBuilder.Append("                <li class="price">价格: <em>");
  443. templateBuilder.Append(goodsinfo.Price.ToString().Trim());
  444. templateBuilder.Append("</em>元</li>rn");
  445. templateBuilder.Append(" <li class="timeleft">剩余时间: <label id="remaintime2">");
  446. templateBuilder.Append(goodsinfo.Expiration.ToString().Trim());
  447. templateBuilder.Append("</label></li>rn");
  448. if (goodsinfo.Selleruid!=-1 && userid!=goodsinfo.Selleruid)
  449. {
  450. if (goodsinfo.Closed==0 && goodsinfo.Amount>0)
  451. {
  452. templateBuilder.Append("                           <li class="btnbuynowsmall"><a href="buygoods.aspx?goodsid=");
  453. templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
  454. templateBuilder.Append(""><img width="127" height="33" title="点击此按钮, 到下一步确认购买信息。" title="立刻购买" src="templates/");
  455. templateBuilder.Append(templatepath.ToString());
  456. templateBuilder.Append("/images/button_buynow.gif"/></a></li>rn");
  457. } //end if
  458. } //end if
  459. templateBuilder.Append("            </ul>rn");
  460. templateBuilder.Append(" </div>rn");
  461. templateBuilder.Append(" <div id="tradelog_html" class="salerlist"></div>rn");
  462. templateBuilder.Append(" <div id="listpage" class="listpage"></div>rn");
  463. templateBuilder.Append(" <script>rn");
  464. templateBuilder.Append("    getTime('");
  465. templateBuilder.Append(goodsinfo.Expiration.ToString().Trim());
  466. templateBuilder.Append("','remaintime2');rn");
  467. templateBuilder.Append("    var page_recordcount = ");
  468. templateBuilder.Append(tradecount.ToString());
  469. templateBuilder.Append(";rn");
  470. templateBuilder.Append("    var page_pagesize = ");
  471. templateBuilder.Append(pptradelog.ToString());
  472. templateBuilder.Append(";rn");
  473. templateBuilder.Append("    var page_goodsid = ");
  474. templateBuilder.Append(goodsid.ToString());
  475. templateBuilder.Append(";rn");
  476. templateBuilder.Append("    var page_currentpage = 1;rn");
  477. templateBuilder.Append("    var path = 'templates/");
  478. templateBuilder.Append(templatepath.ToString());
  479. templateBuilder.Append("/';rn");
  480. templateBuilder.Append("    ajaxgettradelog(page_goodsid, page_pagesize, page_currentpage);rn");
  481. templateBuilder.Append(" </");
  482. templateBuilder.Append("script>rn");
  483. templateBuilder.Append(" </div>rn");
  484. templateBuilder.Append(" <div id="messagebox">rn");
  485. templateBuilder.Append("     <h3 id="messagebox_h3">留言簿</h3>rn");
  486. templateBuilder.Append("     <div id="leavewordlist"></div>rn");
  487. templateBuilder.Append("        <div id="leaveword_listpage" class="listpage"></div>rn");
  488. templateBuilder.Append(" <script>rn");
  489. templateBuilder.Append("    var leaveword_page_recordcount = ");
  490. templateBuilder.Append(leavewordcount.ToString());
  491. templateBuilder.Append(";rn");
  492. templateBuilder.Append("    var leaveword_page_pagesize = 10;rn");
  493. templateBuilder.Append("    var leaveword_page_currentpage = ");
  494. templateBuilder.Append(leaveword_page_currentpage.ToString());
  495. templateBuilder.Append(";rn");
  496. templateBuilder.Append("    var userid = ");
  497. templateBuilder.Append(userid.ToString());
  498. templateBuilder.Append(";rn");
  499. templateBuilder.Append("    var isseller = '");
  500. templateBuilder.Append(isseller.ToString());
  501. templateBuilder.Append("'=='True'?true:false;rn");
  502. templateBuilder.Append("    ajaxgetleaveword(page_goodsid, leaveword_page_pagesize, leaveword_page_currentpage);rn");
  503. templateBuilder.Append(" </");
  504. templateBuilder.Append("script>rn");
  505. templateBuilder.Append(" </div> rn");
  506. templateBuilder.Append(" <script language="javascript">showgoodsinfo('showdetail');</");
  507. templateBuilder.Append("script>rn");
  508. templateBuilder.Append("</div>rn");
  509. if (config.Enablemall==1)
  510. {
  511. templateBuilder.Append("<div id="footfilter" class="box">rn");
  512. if (config.Forumjump==1)
  513. {
  514. templateBuilder.Append(" <select onchange="if(this.options[this.selectedIndex].value != '') { jumpurl(this.options[this.selectedIndex].value,");
  515. templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
  516. templateBuilder.Append(",'");
  517. templateBuilder.Append(config.Extname.ToString().Trim());
  518. templateBuilder.Append("');}">rn");
  519. templateBuilder.Append(" <option>论坛跳转...</option>rn");
  520. templateBuilder.Append(" ");
  521. templateBuilder.Append(forumlistboxoptions.ToString());
  522. templateBuilder.Append("rn");
  523. templateBuilder.Append(" </select>rn");
  524. } //end if
  525. if (config.Visitedforums>0)
  526. {
  527. templateBuilder.Append(" <select name="select2" onchange="if(this.options[this.selectedIndex].value != '') {jumpurl(this.options[this.selectedIndex].value,");
  528. templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
  529. templateBuilder.Append(",'");
  530. templateBuilder.Append(config.Extname.ToString().Trim());
  531. templateBuilder.Append("');}">rn");
  532. templateBuilder.Append("   <option>最近访问...</option>");
  533. templateBuilder.Append(visitedforumsoptions.ToString());
  534. templateBuilder.Append("rn");
  535. templateBuilder.Append(" </select>rn");
  536. } //end if
  537. templateBuilder.Append(" <script type="text/javascript">rn");
  538. templateBuilder.Append(" var categorydata = ");
  539. templateBuilder.Append(goodscategoryfid.ToString());
  540. templateBuilder.Append(";rn");
  541. templateBuilder.Append(" function jumpurl(fid, aspxrewrite, extname) {rn");
  542. templateBuilder.Append(" for(var i in categorydata) {rn");
  543. templateBuilder.Append("    if(categorydata[i].fid == fid) {rn");
  544. templateBuilder.Append("    if(aspxrewrite) {rn");
  545. templateBuilder.Append("    window.location='showgoodslist-' +categorydata[i].categoryid + extname;rn");
  546. templateBuilder.Append("    }rn");
  547. templateBuilder.Append("    else {rn");
  548. templateBuilder.Append("    window.location='showgoodslist.aspx?categoryid=' +categorydata[i].categoryid;rn");
  549. templateBuilder.Append("    }rn");
  550. templateBuilder.Append("    return;rn");
  551. templateBuilder.Append("    } rn");
  552. templateBuilder.Append(" }rn");
  553. templateBuilder.Append(" if(aspxrewrite) {rn");
  554. templateBuilder.Append(" window.location='showforum-' + fid + extname;rn");
  555. templateBuilder.Append(" }rn");
  556. templateBuilder.Append(" else {rn");
  557. templateBuilder.Append(" window.location='showforum.aspx?forumid=' + fid ;rn");
  558. templateBuilder.Append(" }rn");
  559. templateBuilder.Append(" }rn");
  560. templateBuilder.Append(" </");
  561. templateBuilder.Append("script>rn");
  562. templateBuilder.Append("</div>rn");
  563. } //end if
  564. } //end if
  565. }
  566. else
  567. {
  568. if (needlogin)
  569. {
  570. }
  571. else
  572. {
  573. } //end if
  574. templateBuilder.Append(" </div>rn");
  575. } //end if
  576. templateBuilder.Append("</div>rn");
  577. Response.Write(templateBuilder.ToString());
  578. }
  579. </script>