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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.usercpmygoods" %>
  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:58.
  11. 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:24:58. 
  12. */
  13. base.OnInit(e);
  14. templateBuilder.Capacity = 220000;
  15. templateBuilder.Append("<!--header end-->rn");
  16. if (page_err==0)
  17. {
  18. templateBuilder.Append("<div id="foruminfo">rn");
  19. templateBuilder.Append(" <div id="nav">rn");
  20. templateBuilder.Append(" <a href="");
  21. templateBuilder.Append(config.Forumurl.ToString().Trim());
  22. templateBuilder.Append("" class="home">");
  23. templateBuilder.Append(config.Forumtitle.ToString().Trim());
  24. templateBuilder.Append("</a>  &raquo; <a href="usercp.aspx">用户中心</a>  &raquo; <strong>我的商品</strong>rn");
  25. templateBuilder.Append(" </div>rn");
  26. templateBuilder.Append(" <div id="headsearch">rn");
  27. templateBuilder.Append(" <div id="search">rn");
  28. templateBuilder.Append(" </div>rn");
  29. templateBuilder.Append(" </div>rn");
  30. templateBuilder.Append("</div>rn");
  31. templateBuilder.Append("<!--主体-->rn");
  32. templateBuilder.Append("<div class="controlpannel">rn");
  33. templateBuilder.Append(" <div class="pannelcontent">rn");
  34. templateBuilder.Append(" <div class="pcontent">rn");
  35. templateBuilder.Append(" <div class="panneldetail">rn");
  36. templateBuilder.Append(" <div class="panneltabs">rn");
  37. templateBuilder.Append("    <a href="usercpmygoods.aspx?item=tradestats" rn");
  38. if (item=="tradestats")
  39. {
  40. templateBuilder.Append("class="current"rn");
  41. } //end if
  42. templateBuilder.Append(">交易统计</a>rn");
  43. templateBuilder.Append("    <a id="buyergoods" onMouseOver="showMenu(this.id);" onMouseOut="showMenu(this.id);" href="usercpmygoods.aspx?item=buytrade" onclick="javascript:window.location.href=this.href;"  class="rn");
  44. if (item=="buytrade")
  45. {
  46. templateBuilder.Append("currentrn");
  47. } //end if
  48. templateBuilder.Append(" dropmenu">我是买家</a>rn");
  49. templateBuilder.Append("                   <a id="sellergoods" onMouseOver="showMenu(this.id);" onMouseOut="showMenu(this.id);" href="usercpmygoods.aspx?item=selltrade" onclick="javascript:window.location.href=this.href;" class="rn");
  50. if (item=="selltrade")
  51. {
  52. templateBuilder.Append("currentrn");
  53. } //end if
  54. templateBuilder.Append(" dropmenu">我是卖家</a>rn");
  55. templateBuilder.Append("                   <a href="eccredit.aspx?uid=");
  56. templateBuilder.Append(userid.ToString());
  57. templateBuilder.Append("" target="_blank">信用评价</a>rn");
  58. templateBuilder.Append(" </div> rn");
  59. templateBuilder.Append(" <ul class="popupmenu_popup headermenu_popup" id="buyergoods_menu" style="display: none">rn");
  60. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=buytradern");
  61. if (goodsidlist!="")
  62. {
  63. templateBuilder.Append("&goodsid=");
  64. templateBuilder.Append(goodsidlist.ToString());
  65. templateBuilder.Append("rn");
  66. } //end if
  67. templateBuilder.Append("">进行中的交易</a></li>rn");
  68. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=buytrade&filter=attentionrn");
  69. if (goodsidlist!="")
  70. {
  71. templateBuilder.Append("&goodsid=");
  72. templateBuilder.Append(goodsidlist.ToString());
  73. templateBuilder.Append("rn");
  74. } //end if
  75. templateBuilder.Append("">关注的交易</a></li>rn");
  76. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=buytrade&filter=eccreditrn");
  77. if (goodsidlist!="")
  78. {
  79. templateBuilder.Append("&goodsid=");
  80. templateBuilder.Append(goodsidlist.ToString());
  81. templateBuilder.Append("rn");
  82. } //end if
  83. templateBuilder.Append("">评价的交易</a></li>rn");
  84. templateBuilder.Append("                   <li><a href="usercpmygoods.aspx?item=buytrade&filter=successrn");
  85. if (goodsidlist!="")
  86. {
  87. templateBuilder.Append("&goodsid=");
  88. templateBuilder.Append(goodsidlist.ToString());
  89. templateBuilder.Append("rn");
  90. } //end if
  91. templateBuilder.Append("">成功的交易</a></li>rn");
  92. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=buytrade&filter=refundrn");
  93. if (goodsidlist!="")
  94. {
  95. templateBuilder.Append("&goodsid=");
  96. templateBuilder.Append(goodsidlist.ToString());
  97. templateBuilder.Append("rn");
  98. } //end if
  99. templateBuilder.Append("">退款的交易</a></li>rn");
  100. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=buytrade&filter=closedrn");
  101. if (goodsidlist!="")
  102. {
  103. templateBuilder.Append("&goodsid=");
  104. templateBuilder.Append(goodsidlist.ToString());
  105. templateBuilder.Append("rn");
  106. } //end if
  107. templateBuilder.Append("">失败的交易</a></li>rn");
  108. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=buytrade&filter=unstartrn");
  109. if (goodsidlist!="")
  110. {
  111. templateBuilder.Append("&goodsid=");
  112. templateBuilder.Append(goodsidlist.ToString());
  113. templateBuilder.Append("rn");
  114. } //end if
  115. templateBuilder.Append("">未生效的交易</a></li>rn");
  116. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=buytrade&filter=allrn");
  117. if (goodsidlist!="")
  118. {
  119. templateBuilder.Append("&goodsid=");
  120. templateBuilder.Append(goodsidlist.ToString());
  121. templateBuilder.Append("rn");
  122. } //end if
  123. templateBuilder.Append("">全部交易</a></li>rn");
  124. templateBuilder.Append("                </ul>rn");
  125. templateBuilder.Append("               <ul class="popupmenu_popup headermenu_popup" id="sellergoods_menu" style="display: none">rn");
  126. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=selltradern");
  127. if (goodsidlist!="")
  128. {
  129. templateBuilder.Append("&goodsid=");
  130. templateBuilder.Append(goodsidlist.ToString());
  131. templateBuilder.Append("rn");
  132. } //end if
  133. templateBuilder.Append("">进行中的交易</a></li>rn");
  134. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=selltrade&filter=attentionrn");
  135. if (goodsidlist!="")
  136. {
  137. templateBuilder.Append("&goodsid=");
  138. templateBuilder.Append(goodsidlist.ToString());
  139. templateBuilder.Append("rn");
  140. } //end if
  141. templateBuilder.Append("">关注的交易</a></li>rn");
  142. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=selltrade&filter=eccreditrn");
  143. if (goodsidlist!="")
  144. {
  145. templateBuilder.Append("&goodsid=");
  146. templateBuilder.Append(goodsidlist.ToString());
  147. templateBuilder.Append("rn");
  148. } //end if
  149. templateBuilder.Append("">评价的交易</a></li>rn");
  150. templateBuilder.Append("                   <li><a href="usercpmygoods.aspx?item=selltrade&filter=successrn");
  151. if (goodsidlist!="")
  152. {
  153. templateBuilder.Append("&goodsid=");
  154. templateBuilder.Append(goodsidlist.ToString());
  155. templateBuilder.Append("rn");
  156. } //end if
  157. templateBuilder.Append("">成功的交易</a></li>rn");
  158. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=selltrade&filter=refundrn");
  159. if (goodsidlist!="")
  160. {
  161. templateBuilder.Append("&goodsid=");
  162. templateBuilder.Append(goodsidlist.ToString());
  163. templateBuilder.Append("rn");
  164. } //end if
  165. templateBuilder.Append("">退款的交易</a></li>rn");
  166. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=selltrade&filter=closedrn");
  167. if (goodsidlist!="")
  168. {
  169. templateBuilder.Append("&goodsid=");
  170. templateBuilder.Append(goodsidlist.ToString());
  171. templateBuilder.Append("rn");
  172. } //end if
  173. templateBuilder.Append("">失败的交易</a></li>rn");
  174. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=selltrade&filter=unstartrn");
  175. if (goodsidlist!="")
  176. {
  177. templateBuilder.Append("&goodsid=");
  178. templateBuilder.Append(goodsidlist.ToString());
  179. templateBuilder.Append("rn");
  180. } //end if
  181. templateBuilder.Append("">未生效的交易</a></li>rn");
  182. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=selltrade&filter=allrn");
  183. if (goodsidlist!="")
  184. {
  185. templateBuilder.Append("&goodsid=");
  186. templateBuilder.Append(goodsidlist.ToString());
  187. templateBuilder.Append("rn");
  188. } //end if
  189. templateBuilder.Append("">全部交易</a></li>rn");
  190. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=selltrade&filter=onsellrn");
  191. if (goodsidlist!="")
  192. {
  193. templateBuilder.Append("&goodsid=");
  194. templateBuilder.Append(goodsidlist.ToString());
  195. templateBuilder.Append("rn");
  196. } //end if
  197. templateBuilder.Append("">出售中的商品</a></li>rn");
  198. templateBuilder.Append("            <li><a href="usercpmygoods.aspx?item=selltrade&filter=allgoodsrn");
  199. if (goodsidlist!="")
  200. {
  201. templateBuilder.Append("&goodsid=");
  202. templateBuilder.Append(goodsidlist.ToString());
  203. templateBuilder.Append("rn");
  204. } //end if
  205. templateBuilder.Append("">全部商品</a></li>rn");
  206. if (config.Enablemall==2)
  207. {
  208. templateBuilder.Append("                   <li><a href="postgoods.aspx" target="_blank">我要卖</a></li>rn");
  209. } //end if
  210. templateBuilder.Append("                </ul>rn");
  211. templateBuilder.Append("                <div class="pannelbody">rn");
  212. templateBuilder.Append(" <div class="pannellist mallcount">rn");
  213. if (page_err==0)
  214. {
  215. if (ispost)
  216. {
  217. }
  218. else
  219. {
  220. if (item=="tradestats")
  221. {
  222. templateBuilder.Append("             <div class="tradestats">rn");
  223. templateBuilder.Append(" <table cellspacing="0" cellpadding="0" width="100%">rn");
  224. templateBuilder.Append(" <thead>rn");
  225. templateBuilder.Append(" <tr>rn");
  226. templateBuilder.Append(" <td colspan="2">买家提醒区</td>rn");
  227. templateBuilder.Append(" </tr>rn");
  228. templateBuilder.Append(" </thead>rn");
  229. templateBuilder.Append(" <tbody>rn");
  230. templateBuilder.Append(" <tr>rn");
  231. templateBuilder.Append(" <th><a href="usercpmygoods.aspx?item=buytrade">我买入的商品</a></th>rn");
  232. templateBuilder.Append(" <td>rn");
  233. if (tradestatisticinfo.Buyertrading>0)
  234. {
  235. templateBuilder.Append("     <a href="usercpmygoods.aspx?item=buytrade">您有 ");
  236. templateBuilder.Append(tradestatisticinfo.Buyertrading.ToString().Trim());
  237. templateBuilder.Append(" 个正在进行中的交易</a>rn");
  238. } //end if
  239. if (tradestatisticinfo.Buyerattention>0)
  240. {
  241. templateBuilder.Append("     <a href="usercpmygoods.aspx?item=buytrade&filter=attention">您有 ");
  242. templateBuilder.Append(tradestatisticinfo.Buyerattention.ToString().Trim());
  243. templateBuilder.Append(" 个交易需要关注</a>rn");
  244. } //end if
  245. if (tradestatisticinfo.Buyerrate>0)
  246. {
  247. templateBuilder.Append("     <a href="usercpmygoods.aspx?item=buytrade&filter=eccredit">您有 ");
  248. templateBuilder.Append(tradestatisticinfo.Buyerrate.ToString().Trim());
  249. templateBuilder.Append(" 个需要评价的交易</a> rn");
  250. } //end if
  251. templateBuilder.Append(" <!--<br />rn");
  252. templateBuilder.Append(" <div class="lighttxt" style="padding-left: 1em">包括如下内容:<div style="padding-left: 2em">2 个交易,等待您付款<br /></div></div>-->rn");
  253. templateBuilder.Append(" </td>rn");
  254. templateBuilder.Append(" </tr>rn");
  255. templateBuilder.Append(" <tr>rn");
  256. templateBuilder.Append(" <th><a href="usercpmygoods.aspx?item=buytrade&filter=unstart" title="(您)买家确认但卖家未确认的交易">未生效的交易</a></th> rn");
  257. templateBuilder.Append(" <td></td> rn");
  258. templateBuilder.Append(" </tr>rn");
  259. templateBuilder.Append(" </tbody>rn");
  260. templateBuilder.Append(" <thead>rn");
  261. templateBuilder.Append(" <tr>rn");
  262. templateBuilder.Append(" <td colspan="2">卖家提醒区</td>rn");
  263. templateBuilder.Append(" </tr>rn");
  264. templateBuilder.Append(" </thead>rn");
  265. templateBuilder.Append(" <tbody>rn");
  266. templateBuilder.Append(" <tr>rn");
  267. templateBuilder.Append(" <th><a href="usercpmygoods.aspx?item=selltrade&filter=onsell">出售中的商品</a></th>rn");
  268. templateBuilder.Append(" <td>rn");
  269. if (reccount>0)
  270. {
  271. templateBuilder.Append("        <a href="usercpmygoods.aspx?item=selltrade&filter=onsell">您有 ");
  272. templateBuilder.Append(reccount.ToString());
  273. templateBuilder.Append(" 个正在出售中的商品</a>rn");
  274. }
  275. else
  276. {
  277. templateBuilder.Append("         您目前没有正在出售中的商品rn");
  278. } //end if
  279. templateBuilder.Append(" </td>rn");
  280. templateBuilder.Append(" </tr>rn");
  281. templateBuilder.Append(" <tr>rn");
  282. templateBuilder.Append(" <th><a href="usercpmygoods.aspx?item=selltrade">交易中的商品</a></th>rn");
  283. templateBuilder.Append(" <td>rn");
  284. if (tradestatisticinfo.Sellertrading>0)
  285. {
  286. templateBuilder.Append("     <a href="usercpmygoods.aspx?item=selltrade">您有 ");
  287. templateBuilder.Append(tradestatisticinfo.Sellertrading.ToString().Trim());
  288. templateBuilder.Append(" 个正在进行中的交易</a><br />rn");
  289. } //end if
  290. if (tradestatisticinfo.Sellerattention>0)
  291. {
  292. templateBuilder.Append("     <a href="usercpmygoods.aspx?item=selltrade&filter=attention">您有 ");
  293. templateBuilder.Append(tradestatisticinfo.Sellerattention.ToString().Trim());
  294. templateBuilder.Append(" 个交易需要关注</a>rn");
  295. } //end if
  296. if (tradestatisticinfo.Sellerrate>0)
  297. {
  298. templateBuilder.Append("     <br /><a href="usercpmygoods.aspx?item=selltrade&filter=eccredit">您有 ");
  299. templateBuilder.Append(tradestatisticinfo.Sellerrate.ToString().Trim());
  300. templateBuilder.Append(" 个需要评价的交易</a> rn");
  301. } //end if
  302. templateBuilder.Append(" </td>rn");
  303. templateBuilder.Append(" </tr>rn");
  304. templateBuilder.Append(" <tr>rn");
  305. templateBuilder.Append(" <th><a href="usercpmygoods.aspx?item=selltrade&filter=unstart" title="(您)卖家未确认的交易">未生效的交易</a></th> rn");
  306. templateBuilder.Append(" <td></td> rn");
  307. templateBuilder.Append(" </tr>rn");
  308. templateBuilder.Append(" </tbody>rn");
  309. templateBuilder.Append(" <thead>rn");
  310. templateBuilder.Append(" <tr>rn");
  311. templateBuilder.Append(" <td colspan="2">交易统计</td>rn");
  312. templateBuilder.Append(" </tr>rn");
  313. templateBuilder.Append(" </thead>rn");
  314. templateBuilder.Append(" <tbody>rn");
  315. templateBuilder.Append(" <tr>rn");
  316. templateBuilder.Append(" <td colspan="2">售出商品总数: ");
  317. templateBuilder.Append(tradestatisticinfo.Sellnumbersum.ToString().Trim());
  318. templateBuilder.Append("<br />销售成交总额: ");
  319. templateBuilder.Append(tradestatisticinfo.Selltradesum.ToString().Trim());
  320. templateBuilder.Append(" 元 </td>rn");
  321. templateBuilder.Append(" </tr>rn");
  322. templateBuilder.Append(" <tr>rn");
  323. templateBuilder.Append(" <td colspan="2">买入商品总数: ");
  324. templateBuilder.Append(tradestatisticinfo.Buynumbersum.ToString().Trim());
  325. templateBuilder.Append("<br />买入成交总额: ");
  326. templateBuilder.Append(tradestatisticinfo.Buytradesum.ToString().Trim());
  327. templateBuilder.Append(" 元 </td>rn");
  328. templateBuilder.Append(" </tr>rn");
  329. templateBuilder.Append(" </tbody>rn");
  330. templateBuilder.Append(" </table>rn");
  331. templateBuilder.Append("     </div>rn");
  332. }
  333. else
  334. {
  335. templateBuilder.Append("                        <div class="shopsearch">rn");
  336. templateBuilder.Append("                            <!--rn");
  337. templateBuilder.Append("                            <div class="mysearch">rn");
  338. templateBuilder.Append("                                <input type="hidden" id="item" name="item" value="");
  339. templateBuilder.Append(item.ToString());
  340. templateBuilder.Append("">rn");
  341. templateBuilder.Append("                                <input type="hidden" id="filter" name="filter" value="");
  342. templateBuilder.Append(filter.ToString());
  343. templateBuilder.Append("">rn");
  344. templateBuilder.Append("                                商品名称<input class="colorblue" value="" name="srchkey" size="27" /><button class="lightbutton" value="true" type="submit" name="submit">搜索</button>rn");
  345. templateBuilder.Append("                            </div>rn");
  346. templateBuilder.Append("                            -->rn");
  347. templateBuilder.Append("                            <strong>我是rn");
  348. if (item=="buytrade")
  349. {
  350. templateBuilder.Append("买家rn");
  351. } //end if
  352. if (item=="selltrade")
  353. {
  354. templateBuilder.Append("卖家rn");
  355. } //end if
  356. templateBuilder.Append("                                 —— rn");
  357. if (filter=="")
  358. {
  359. templateBuilder.Append("进行中的交易rn");
  360. } //end if
  361. if (filter=="attention")
  362. {
  363. templateBuilder.Append("进行中的交易rn");
  364. } //end if
  365. if (filter=="eccredit")
  366. {
  367. templateBuilder.Append("评价的交易rn");
  368. } //end if
  369. if (filter=="success")
  370. {
  371. templateBuilder.Append("成功的交易rn");
  372. } //end if
  373. if (filter=="refund")
  374. {
  375. templateBuilder.Append("退款的交易rn");
  376. } //end if
  377. if (filter=="closed")
  378. {
  379. templateBuilder.Append("失败的交易rn");
  380. } //end if
  381. if (filter=="unstart")
  382. {
  383. templateBuilder.Append("未生效的交易rn");
  384. } //end if
  385. if (filter=="all")
  386. {
  387. templateBuilder.Append("全部交易rn");
  388. } //end if
  389. if (filter=="onsell")
  390. {
  391. templateBuilder.Append("出售中的商品rn");
  392. } //end if
  393. if (filter=="allgoods")
  394. {
  395. templateBuilder.Append("全部商品rn");
  396. } //end if
  397. templateBuilder.Append("                            </strong>rn");
  398. templateBuilder.Append("                        </div>rn");
  399. if (filter=="allgoods" || filter=="onsell")
  400. {
  401. templateBuilder.Append("                    <form id="goodslist" name="goodslist" method="post" action="">rn");
  402. templateBuilder.Append("                        <table width="100%" cellspacing="0" cellpadding="0" border="0">rn");
  403. templateBuilder.Append("                        <script type="text/javascript">rn");
  404. templateBuilder.Append("                         function checkGoodsBox(form,objtag) {rn");
  405. templateBuilder.Append("                         for(var i = 0; i < form.elements.length; i++) {rn");
  406. templateBuilder.Append("                         var e = form.elements[i];rn");
  407. templateBuilder.Append("                         if(e.name == "goodsid") {rn");
  408. templateBuilder.Append("                         e.checked = objtag.checked;rn");
  409. templateBuilder.Append("                         }rn");
  410. templateBuilder.Append("                         }rn");
  411. templateBuilder.Append("                         objtag.checked = !objtag.checked;rn");
  412. templateBuilder.Append("                         }rn");
  413. templateBuilder.Append("                        </");
  414. templateBuilder.Append("script>                    rn");
  415. templateBuilder.Append("                            <thead>rn");
  416. templateBuilder.Append("                                <tr>rn");
  417. templateBuilder.Append("                                    <th colspan="3">商品名称</th>rn");
  418. templateBuilder.Append("                                    <th>查看交易</th>rn");
  419. if (filter=="allgoods")
  420. {
  421. templateBuilder.Append("                                    <th>上架</th> rn");
  422. templateBuilder.Append("                                    <th>关闭</th> rn");
  423. } //end if
  424. templateBuilder.Append("                                    <th>售出数</th>rn");
  425. templateBuilder.Append("                                    <th>库存数</th>rn");
  426. templateBuilder.Append("                                    <th>销售额(元)</th>rn");
  427. templateBuilder.Append("                                    <th>最后交易</th>rn");
  428. templateBuilder.Append("                                </tr>rn");
  429. templateBuilder.Append("                            </thead>rn");
  430. templateBuilder.Append("                            <!--NtGoodsList start-->rn");
  431. int goodsinfo__loop__id=0;
  432. foreach(Goodsinfo goodsinfo in goodslist)
  433. {
  434. goodsinfo__loop__id++;
  435. templateBuilder.Append("                     <tbody>rn");
  436. templateBuilder.Append("                                <tr class="messagetable" onmouseover="this.className='messagetableon'" onmouseout="this.className='messagetable'">rn");
  437.  aspxrewriteurl = this.ShowGoodsAspxRewrite(goodsinfo.Goodsid);
  438. templateBuilder.Append("                                    <td style="width: 30px;"><input name="goodsid" type="checkbox" id="goodsid_");
  439. templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
  440. templateBuilder.Append("" value="");
  441. templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
  442. templateBuilder.Append("" style="margin-top:8px;"/></td>rn");
  443. templateBuilder.Append("                                    <td style="width: 120px; padding:2px 0;"><a href="");
  444. templateBuilder.Append(aspxrewriteurl.ToString());
  445. templateBuilder.Append("" target="_blank">rn");
  446. templateBuilder.Append("                                        <a href="");
  447. templateBuilder.Append(aspxrewriteurl.ToString());
  448. templateBuilder.Append("" target="_blank">rn");
  449. if (goodsinfo.Goodspic=="")
  450. {
  451. templateBuilder.Append("                             <img width="80" src="templates/");
  452. templateBuilder.Append(templatepath.ToString());
  453. templateBuilder.Append("/images/NoPhoto.jpg" onerror="this.onerror=null;this.src='");
  454. templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
  455. templateBuilder.Append("';"  title="");
  456. templateBuilder.Append(goodsinfo.Title.ToString().Trim());
  457. templateBuilder.Append("">rn");
  458. }
  459. else
  460. {
  461. templateBuilder.Append("                             <img width="80" src="upload/");
  462. templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
  463. templateBuilder.Append("" onerror="this.onerror=null;this.src='");
  464. templateBuilder.Append(goodsinfo.Goodspic.ToString().Trim());
  465. templateBuilder.Append("';"  title="");
  466. templateBuilder.Append(goodsinfo.Title.ToString().Trim());
  467. templateBuilder.Append("">rn");
  468. } //end if
  469. templateBuilder.Append("                                        </a>rn");
  470. templateBuilder.Append("                                    </td>rn");
  471. templateBuilder.Append("                                    <td style="text-align: left;"><a href="");
  472. templateBuilder.Append(aspxrewriteurl.ToString());
  473. templateBuilder.Append("" target="_blank">");
  474. templateBuilder.Append(goodsinfo.Title.ToString().Trim());
  475. templateBuilder.Append("</a> <a href="editgoods.aspx?goodsid=");
  476. templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
  477. templateBuilder.Append("" target="_blank">[编辑]</a></td>rn");
  478. templateBuilder.Append("                                    <td><a href="usercpmygoods.aspx?item=selltrade&goodsid=");
  479. templateBuilder.Append(goodsinfo.Goodsid.ToString().Trim());
  480. templateBuilder.Append("" target="_blank">进入</td>rn");
  481. if (filter=="allgoods")
  482. {
  483. if (goodsinfo.Displayorder>=0)
  484. {
  485. templateBuilder.Append("                                            <td>已上架</td>rn");
  486. }
  487. else
  488. {
  489. templateBuilder.Append("                                            <td>未上架</td>rn");
  490. } //end if
  491. if (goodsinfo.Closed==1)
  492. {
  493. templateBuilder.Append("                                            <td>已关闭</td>rn");
  494. }
  495. else
  496. {
  497. templateBuilder.Append("                                            <td>未关闭</td>rn");
  498. } //end if
  499. } //end if
  500. templateBuilder.Append("                                    <td>");
  501. templateBuilder.Append(goodsinfo.Totalitems.ToString().Trim());
  502. templateBuilder.Append("</td>rn");
  503. templateBuilder.Append("                                    <td class="fontfamily">");
  504. templateBuilder.Append(goodsinfo.Amount.ToString().Trim());
  505. templateBuilder.Append("</td>rn");
  506. templateBuilder.Append("                                    <td>");
  507. templateBuilder.Append(goodsinfo.Tradesum.ToString().Trim());
  508. templateBuilder.Append("</td>rn");
  509. templateBuilder.Append("                                    <td>rn");
  510. if (goodsinfo.Lastbuyer!="")
  511. {
  512. templateBuilder.Append("                                        ");
  513. templateBuilder.Append(goodsinfo.Lasttrade.ToString().Trim());
  514. templateBuilder.Append("<br/>rn");
  515. templateBuilder.Append("                                        by <a href="userinfo.aspx?username=");
  516. templateBuilder.Append(goodsinfo.Lastbuyer.ToString().Trim());
  517. templateBuilder.Append("">");
  518. templateBuilder.Append(goodsinfo.Lastbuyer.ToString().Trim());
  519. templateBuilder.Append("</a>rn");
  520. }
  521. else
  522. {
  523. templateBuilder.Append("                                            暂无交易rn");
  524. } //end if
  525. templateBuilder.Append("                                    </td>rn");
  526. templateBuilder.Append("                                </tr>rn");
  527. templateBuilder.Append("                            </tbody>rn");
  528. templateBuilder.Append("                            <!--NtGoodsList end-->                         rn");
  529. } //end loop
  530. templateBuilder.Append("                     </table>      rn");
  531. templateBuilder.Append("  </form>rn");
  532. templateBuilder.Append("  <div class="pannelmessage">rn");
  533. templateBuilder.Append(" <div class="pannelleft" style="width: 160px;">rn");
  534. templateBuilder.Append(" <a href="javascript:;"  onclick="checkGoodsBox($('goodslist'),this)" checked="true" class="selectall">全选</a>&nbsp;&nbsp;&nbsp;rn");
  535. templateBuilder.Append(" <input type="hidden" id="operation" name="operation" value="deletegoods">rn");
  536. templateBuilder.Append(" <a href="###" onclick="$('operation').value = 'deletegoods';$('goodslist').submit();" class="selectall">删除</a> rn");
  537. templateBuilder.Append(" <!--rn");
  538. templateBuilder.Append(" <a href="###" onclick="$('goodslist').submit()" class="selectall">上架</a>rn");
  539. templateBuilder.Append(" <a href="###" onclick="$('goodslist').submit()" class="selectall">下架</a>-->rn");
  540. templateBuilder.Append(" </div>rn");
  541. templateBuilder.Append("  </div>rn");
  542. } //end if
  543. if (istradeloglist)
  544. {
  545. templateBuilder.Append("                  <table width="100%" cellspacing="0" cellpadding="0" border="0">rn");
  546. templateBuilder.Append("                     <thead>rn");
  547. templateBuilder.Append("                                <tr>rn");
  548. templateBuilder.Append("                                    <th colspan="2">商品名称</th>rn");
  549. templateBuilder.Append("                                    <th>rn");
  550. if (item=="buytrade")
  551. {
  552. templateBuilder.Append("卖家rn");
  553. } //end if
  554. if (item=="selltrade")
  555. {
  556. templateBuilder.Append("买家rn");
  557. } //end if
  558. templateBuilder.Append("</th>rn");
  559. templateBuilder.Append("                                    <th>交易金额(元)</th>rn");
  560. templateBuilder.Append("                                    <th>交易状态</th>rn");
  561. if (isshowrate)
  562. {
  563. templateBuilder.Append("                                    <th>信用评价</th>rn");
  564. } //end if
  565. templateBuilder.Append("                                </tr>rn");
  566. templateBuilder.Append("                            </thead>rn");
  567. int __mygoodstradelog__loop__id=0;
  568. foreach(DataRow __mygoodstradelog in goodstradeloglist.Rows)
  569. {
  570. __mygoodstradelog__loop__id++;
  571. templateBuilder.Append("                     <!--NtTradeLogList start-->rn");
  572. templateBuilder.Append("                     <tbody>rn");
  573. templateBuilder.Append("                                <tr class="messagetable" onmouseover="this.className='messagetableon'" onmouseout="this.className='messagetable'">rn");
  574.  aspxrewriteurl = this.ShowGoodsAspxRewrite(__mygoodstradelog["goodsid"].ToString().Trim());
  575. templateBuilder.Append("                                    <td style="width: 120px;vertical-align:middle;">rn");
  576. templateBuilder.Append("                                        <a href="");
  577. templateBuilder.Append(aspxrewriteurl.ToString());
  578. templateBuilder.Append("" target="_blank">rn");
  579. if (__mygoodstradelog["goodspic"].ToString().Trim()=="")
  580. {
  581. templateBuilder.Append("                             <img src="templates/");
  582. templateBuilder.Append(templatepath.ToString());
  583. templateBuilder.Append("/images/NoPhoto.jpg" width="80" onerror="this.onerror=null;this.src='" + __mygoodstradelog["goodspic"].ToString().Trim() + "';"  title="" + __mygoodstradelog["title"].ToString().Trim() + "" style="margin-top:2px;">rn");
  584. }
  585. else
  586. {
  587. templateBuilder.Append("                             <img src="upload/" + __mygoodstradelog["goodspic"].ToString().Trim() + "" width="80" onerror="this.onerror=null;this.src='" + __mygoodstradelog["goodspic"].ToString().Trim() + "';"  title="" + __mygoodstradelog["title"].ToString().Trim() + "" style="margin-top:2px;">rn");
  588. } //end if
  589. templateBuilder.Append("                                        </a>rn");
  590. templateBuilder.Append("                                    </td>rn");
  591. templateBuilder.Append("                                    <td style="text-align: left;"><a href="");
  592. templateBuilder.Append(aspxrewriteurl.ToString());
  593. templateBuilder.Append("" target="_blank">" + __mygoodstradelog["title"].ToString().Trim() + "</a></td>rn");
  594. templateBuilder.Append("                                    <td>rn");
  595. if (item=="buytrade")
  596. {
  597.  aspxrewriteurl = this.UserInfoAspxRewrite(__mygoodstradelog["sellerid"].ToString().Trim());
  598. templateBuilder.Append("                                            <a href="");
  599. templateBuilder.Append(aspxrewriteurl.ToString());
  600. templateBuilder.Append("" target="_blank">" + __mygoodstradelog["seller"].ToString().Trim() + "</a>rn");
  601. } //end if
  602. if (item=="selltrade")
  603. {
  604.  aspxrewriteurl = this.UserInfoAspxRewrite(__mygoodstradelog["buyerid"].ToString().Trim());
  605. templateBuilder.Append("                                            <a href="");
  606. templateBuilder.Append(aspxrewriteurl.ToString());
  607. templateBuilder.Append("" target="_blank">" + __mygoodstradelog["buyer"].ToString().Trim() + "</a>rn");
  608. } //end if
  609. templateBuilder.Append("                                    </td>rn");
  610. templateBuilder.Append("                                    <td class="fontfamily">" + __mygoodstradelog["tradesum"].ToString().Trim() + "</td>   rn");
  611. templateBuilder.Append("                                    <td>rn");
  612. templateBuilder.Append("                                        <a href="rn");
  613. if (__mygoodstradelog["offline"].ToString().Trim()=="1")
  614. {
  615. templateBuilder.Append("offlinetradern");
  616. }
  617. else
  618. {
  619. templateBuilder.Append("onlinetradern");
  620. } //end if
  621. templateBuilder.Append(".aspx?goodstradelogid=" + __mygoodstradelog["id"].ToString().Trim() + "" target="_blank"> rn");
  622. if (__mygoodstradelog["status"].ToString().Trim()=="0")
  623. {
  624. templateBuilder.Append("                             未生效的交易rn");
  625. } //end if
  626. if (__mygoodstradelog["status"].ToString().Trim()=="1")
  627. {
  628. templateBuilder.Append("                             等待买家付款rn");
  629. } //end if
  630. if (__mygoodstradelog["status"].ToString().Trim()=="2")
  631. {
  632. templateBuilder.Append("                             交易已创建, 等待卖家确认rn");
  633. } //end if
  634. if (__mygoodstradelog["status"].ToString().Trim()=="3")
  635. {
  636. templateBuilder.Append("                             确认买家付款中,暂勿发货rn");
  637. } //end if
  638. if (__mygoodstradelog["status"].ToString().Trim()=="4")
  639. {
  640. templateBuilder.Append("                                 买家已付款,等待卖家发货rn");
  641. } //end if
  642. if (__mygoodstradelog["status"].ToString().Trim()=="5")
  643. {
  644. templateBuilder.Append("                                 卖家已发货,买家确认中rn");
  645. } //end if
  646. if (__mygoodstradelog["status"].ToString().Trim()=="6")
  647. {
  648. templateBuilder.Append("                                 买家确认收到货,等待支付宝打款给卖家rn");
  649. } //end if
  650. if (__mygoodstradelog["status"].ToString().Trim()=="7")
  651. {
  652. templateBuilder.Append("                                 交易成功结束rn");
  653. } //end if
  654. if (__mygoodstradelog["status"].ToString().Trim()=="8")
  655. {
  656. templateBuilder.Append("                                 交易中途关闭(未完成)rn");
  657. } //end if
  658. if (__mygoodstradelog["status"].ToString().Trim()=="10")
  659. {
  660. templateBuilder.Append("                                 等待卖家同意退款rn");
  661. } //end if
  662. if (__mygoodstradelog["status"].ToString().Trim()=="11")
  663. {
  664. templateBuilder.Append("                                 卖家拒绝买家条件,等待买家修改条件rn");
  665. } //end if
  666. if (__mygoodstradelog["status"].ToString().Trim()=="12")
  667. {
  668. templateBuilder.Append("                                 卖家同意退款,等待买家退货rn");
  669. } //end if
  670. if (__mygoodstradelog["status"].ToString().Trim()=="13")
  671. {
  672. templateBuilder.Append("                                 等待卖家收货rn");
  673. } //end if
  674. if (__mygoodstradelog["status"].ToString().Trim()=="17")
  675. {
  676. templateBuilder.Append("                                 退款成功rn");
  677. } //end if
  678. templateBuilder.Append("</a>rn");
  679. templateBuilder.Append("                                        <p class="fontfamily">" + __mygoodstradelog["lastupdate"].ToString().Trim() + "</p>rn");
  680. templateBuilder.Append("                                    </td>rn");
  681. templateBuilder.Append("                                     <td> rn");
  682. if (isshowrate)
  683. {
  684. if (__mygoodstradelog["ratestatus"].ToString().Trim()=="0")
  685. {
  686. templateBuilder.Append("                                          <a href ="goodsrate.aspx?goodstradelogid=" + __mygoodstradelog["id"].ToString().Trim() + "" target="_blank">评价</a>rn");
  687. } //end if
  688. if (item=="selltrade" && __mygoodstradelog["ratestatus"].ToString().Trim()=="1")
  689. {
  690. templateBuilder.Append("                                          等待对方评价rn");
  691. }
  692. else
  693. {
  694. if (item=="buytrade" && __mygoodstradelog["ratestatus"].ToString().Trim()=="2")
  695. {
  696. templateBuilder.Append("                                            等待对方评价rn");
  697. } //end if
  698. } //end if
  699. if (item=="selltrade" && __mygoodstradelog["ratestatus"].ToString().Trim()=="2")
  700. {
  701. templateBuilder.Append("                                          对方已评<BR /><a href ="goodsrate.aspx?goodstradelogid=" + __mygoodstradelog["id"].ToString().Trim() + "" target="_blank">评价</a>rn");
  702. }
  703. else
  704. {
  705. if (item=="buytrade" && __mygoodstradelog["ratestatus"].ToString().Trim()=="1")
  706. {
  707. templateBuilder.Append("                                            对方已评<BR /><a href ="goodsrate.aspx?goodstradelogid=" + __mygoodstradelog["id"].ToString().Trim() + "" target="_blank">评价</a>rn");
  708. } //end if
  709. } //end if
  710. if (__mygoodstradelog["ratestatus"].ToString().Trim()=="3")
  711. {
  712. templateBuilder.Append("                                          双方已评rn");
  713. } //end if
  714. } //end if
  715. templateBuilder.Append("                                     </td>rn");
  716. templateBuilder.Append("                                </tr>rn");
  717. templateBuilder.Append("                            </tbody>rn");
  718. templateBuilder.Append("                            <!--NtTradeLogList end-->rn");
  719. } //end loop
  720. templateBuilder.Append("                 </table>rn");
  721. } //end if
  722. templateBuilder.Append(" <div class="pages_btns" style="margin-top:10px;">rn");
  723. templateBuilder.Append(" <div class="pages">rn");
  724. templateBuilder.Append(" <em>");
  725. templateBuilder.Append(pageid.ToString());
  726. templateBuilder.Append("/");
  727. templateBuilder.Append(pagecount.ToString());
  728. templateBuilder.Append("页</em>");
  729. templateBuilder.Append(pagenumbers.ToString());
  730. templateBuilder.Append("rn");
  731. templateBuilder.Append(" <kbd>跳转<input name="gopage" type="text" id="gopage" onKeyDown="if(event.keyCode==13) { window.location='usercpmygoods.aspx?item=");
  732. templateBuilder.Append(item.ToString());
  733. templateBuilder.Append("&filter=");
  734. templateBuilder.Append(filter.ToString());
  735. templateBuilder.Append("&page=' + (parseInt(this.value) > 0 ? parseInt(this.value) : 1);}" size="4" maxlength="9"/>页</kbd>rn");
  736. templateBuilder.Append(" </div>rn");
  737. templateBuilder.Append(" </div>rn");
  738. } //end if
  739. templateBuilder.Append("                    </div>rn");
  740. templateBuilder.Append("                </div>rn");
  741. templateBuilder.Append(" </div>rn");
  742. } //end if
  743. } //end if
  744. templateBuilder.Append(" </div>rn");
  745. templateBuilder.Append(" </div>rn");
  746. templateBuilder.Append("</div>rn");
  747. templateBuilder.Append("</div>rn");
  748. templateBuilder.Append("<!--主体-->rn");
  749. }
  750. else
  751. {
  752. } //end if
  753. Response.Write(templateBuilder.ToString());
  754. }
  755. </script>