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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.usercpshoplink" %>
  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:25:00.
  11. 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:25:00. 
  12. */
  13. base.OnInit(e);
  14. templateBuilder.Capacity = 220000;
  15. templateBuilder.Append("<!--header end-->rn");
  16. templateBuilder.Append("<div id="foruminfo">rn");
  17. templateBuilder.Append(" <div id="nav">rn");
  18. templateBuilder.Append(" <a href="");
  19. templateBuilder.Append(config.Forumurl.ToString().Trim());
  20. templateBuilder.Append("" class="home">");
  21. templateBuilder.Append(config.Forumtitle.ToString().Trim());
  22. templateBuilder.Append("</a>  &raquo; <a href="usercp.aspx">用户中心</a>  &raquo; <strong>友情链接列表</strong>rn");
  23. templateBuilder.Append(" </div>rn");
  24. templateBuilder.Append(" <div id="headsearch">rn");
  25. templateBuilder.Append(" <div id="search">rn");
  26. templateBuilder.Append(" </div>rn");
  27. templateBuilder.Append(" </div>rn");
  28. templateBuilder.Append("</div>rn");
  29. templateBuilder.Append("<!--主体-->rn");
  30. templateBuilder.Append("<div class="controlpannel">rn");
  31. templateBuilder.Append(" <div class="pannelcontent">rn");
  32. templateBuilder.Append(" <div class="pcontent">rn");
  33. templateBuilder.Append(" <!--panneldetail start-->rn");
  34. templateBuilder.Append(" <div class="panneldetail">rn");
  35. templateBuilder.Append(" <!--pannelbody start-->rn");
  36. templateBuilder.Append("                <div class="pannelbody">rn");
  37. templateBuilder.Append(" <div class="pannellist">rn");
  38. if (page_err==0)
  39. {
  40. if (ispost)
  41. {
  42. }
  43. else
  44. {
  45. templateBuilder.Append(" <form id="shoplink" name="shoplink" method="post" action="">rn");
  46. templateBuilder.Append("    <script type="text/javascript">rn");
  47. templateBuilder.Append("        function checkgoodsbox(form,objtag) {rn");
  48. templateBuilder.Append("                               for(var i = 0; i < form.elements.length; i++) {rn");
  49. templateBuilder.Append("                                   var e = form.elements[i];rn");
  50. templateBuilder.Append("                                   if(e.name == "shoplinkid") {rn");
  51. templateBuilder.Append("                                       e.checked = objtag.checked;rn");
  52. templateBuilder.Append("                                   }rn");
  53. templateBuilder.Append("                               }rn");
  54. templateBuilder.Append("                               objtag.checked = !objtag.checked;rn");
  55. templateBuilder.Append("                           }rn");
  56. templateBuilder.Append("                       </");
  57. templateBuilder.Append("script>rn");
  58. templateBuilder.Append("                       <input type="hidden" id="operation" name="operation" value="add"/>rn");
  59. templateBuilder.Append("    <input type="submit" id="shoplinksubmit" name="shoplinksubmit" style="display: none" />rn");
  60. if (shoplinkinfolist.Count<16)
  61. {
  62. templateBuilder.Append("    <div style="text-align:center;background:#F5F5F5 none repeat scroll 0%;border:1px solid #DDDDDD;font-size:14px;margin-top:10px;padding:10px;">rn");
  63. templateBuilder.Append("         店主姓名: <input type="text" value="" maxlength="50" size="20" id="username" name="username">rn");
  64. templateBuilder.Append("                           <button class="mallbutton" type="button" onclick="javascript:$('operation').value='add';$('shoplinksubmit').click();">添加</button>rn");
  65. templateBuilder.Append("                       </div>rn");
  66. } //end if
  67. templateBuilder.Append("     <div class="shopsearch"><strong>友情链接列表</strong></div>rn");
  68. templateBuilder.Append("                        <table width="100%" cellspacing="0" cellpadding="0" border="0">rn");
  69. templateBuilder.Append("                            <thead>rn");
  70. templateBuilder.Append("                                <tr>rn");
  71. templateBuilder.Append("                                    <th></th> rn");
  72. templateBuilder.Append("                                    <th>店铺名称</th>rn");
  73. templateBuilder.Append("                                    <th>排序位置</th>rn");
  74. templateBuilder.Append("                                </tr>rn");
  75. templateBuilder.Append("                            </thead>rn");
  76. templateBuilder.Append("                            <!--NtGoodsList start-->rn");
  77. int shoplink__loop__id=0;
  78. foreach(Shoplinkinfo shoplink in shoplinkinfolist)
  79. {
  80. shoplink__loop__id++;
  81. templateBuilder.Append("                     <tbody>rn");
  82. templateBuilder.Append("                                <tr class="messagetable" onmouseover="this.className='messagetableon'" onmouseout="this.className='messagetable'">rn");
  83. templateBuilder.Append("                                    <td style="width: 30px;"><input name="shoplinkid" type="checkbox" id="shoplink_");
  84. templateBuilder.Append(shoplink.Id.ToString().Trim());
  85. templateBuilder.Append("" value="");
  86. templateBuilder.Append(shoplink.Id.ToString().Trim());
  87. templateBuilder.Append("" style="margin-top:8px;" /></td>rn");
  88. templateBuilder.Append("                                    <td style="width: 120px; padding:2px 0;"><a href="shop.aspx?shopid=");
  89. templateBuilder.Append(shoplink.Linkshopid.ToString().Trim());
  90. templateBuilder.Append("" target="_blank">");
  91. templateBuilder.Append(shoplink.Name.ToString().Trim());
  92. templateBuilder.Append("</a></td>rn");
  93. templateBuilder.Append("                                    <td align="center"><input value="");
  94. templateBuilder.Append(shoplink.Displayorder.ToString().Trim());
  95. templateBuilder.Append("" name="displayorder_");
  96. templateBuilder.Append(shoplink.Id.ToString().Trim());
  97. templateBuilder.Append("" size="2"/></td>rn");
  98. templateBuilder.Append("                                </tr>rn");
  99. templateBuilder.Append("                            </tbody>rn");
  100. templateBuilder.Append("                            <!--NtGoodsList end-->                         rn");
  101. } //end loop
  102. templateBuilder.Append("                        </table>   rn");
  103. templateBuilder.Append("    <div style="text-align:center;background:#F5F5F5 none repeat scroll 0%;border:1px solid #DDDDDD;font-size:14px;margin-top:10px;padding:10px;">rn");
  104. templateBuilder.Append("         <a href="javascript:;"  onclick="checkgoodsbox($('goodslist'),this)" checked="true" class="selectall">全选</a>&nbsp;&nbsp;&nbsp;rn");
  105. templateBuilder.Append("                           <button class="mallbutton" type="button" onclick="javascript:$('operation').value='delete';$('shoplinksubmit').click();">删除</button> rn");
  106. templateBuilder.Append("                           <button class="mallbutton" type="button" onclick="javascript:$('operation').value='updatedisplayorder';$('shoplinksubmit').click();">更新显示顺序</button>rn");
  107. templateBuilder.Append("                           注:目前系统允许您最多添加 16 个友情链接,您当前已经添加 ");
  108. templateBuilder.Append(shoplinkinfolist.Count.ToString().Trim());
  109. templateBuilder.Append(" 个。rn");
  110. templateBuilder.Append("                       </div>rn");
  111. templateBuilder.Append(" </form>rn");
  112. } //end if
  113. }
  114. else
  115. {
  116. } //end if
  117. templateBuilder.Append("         </div>rn");
  118. templateBuilder.Append("     </div>   rn");
  119. templateBuilder.Append("     <!--pannelbody end-->rn");
  120. templateBuilder.Append("        </div>rn");
  121. templateBuilder.Append("        <!--panneldetail end-->rn");
  122. templateBuilder.Append("    </div>rn");
  123. templateBuilder.Append("   </div>rn");
  124. templateBuilder.Append("</div>rn");
  125. templateBuilder.Append("<!--主体-->rn");
  126. Response.Write(templateBuilder.ToString());
  127. }
  128. </script>