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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.usercpshopcategory" %>
  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:59.
  11. 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:24:59. 
  12. */
  13. base.OnInit(e);
  14. templateBuilder.Capacity = 220000;
  15. templateBuilder.Append("<script type="text/javascript" src="javascript/template_usercpshopcategory.js"></");
  16. templateBuilder.Append("script>rn");
  17. templateBuilder.Append("<style type="text/css">rn");
  18. templateBuilder.Append(" body {rn");
  19. templateBuilder.Append("    overflow-x:auto;rn");
  20. templateBuilder.Append("    font-size:12px;rn");
  21. templateBuilder.Append(" }rn");
  22. templateBuilder.Append(" .contral{rn");
  23. templateBuilder.Append("    cursor:default;rn");
  24. templateBuilder.Append("    margin:0 auto;rn");
  25. templateBuilder.Append(" }rn");
  26. templateBuilder.Append(" .contral input{rn");
  27. templateBuilder.Append("    cursor:hand;rn");
  28. templateBuilder.Append("    valign:middle;rn");
  29. templateBuilder.Append(" }rn");
  30. templateBuilder.Append(" .treenode_move {rn");
  31. templateBuilder.Append("    position:absolute;rn");
  32. templateBuilder.Append("    width:200px;rn");
  33. templateBuilder.Append("    line-height:18px;rn");
  34. templateBuilder.Append("    filter:alpha(opacity=50);rn");
  35. templateBuilder.Append("    opacity:0.5;rn");
  36. templateBuilder.Append("    z-index:110;rn");
  37. templateBuilder.Append("    display:none;rn");
  38. templateBuilder.Append("    padding-left:10px;rn");
  39. templateBuilder.Append(" }rn");
  40. templateBuilder.Append(" .treenode_0_noselected,.treenode_0_over{rn");
  41. templateBuilder.Append("    height:4px;rn");
  42. templateBuilder.Append("    line-height:4px;rn");
  43. templateBuilder.Append("    overflow:hidden;rn");
  44. templateBuilder.Append("    z-index:100;rn");
  45. templateBuilder.Append(" }rn");
  46. templateBuilder.Append(" .treenode_0_over{rn");
  47. templateBuilder.Append("    background: #c0ddfc;rn");
  48. templateBuilder.Append("    height:6px;rn");
  49. templateBuilder.Append("    line-height:6px;rn");
  50. templateBuilder.Append(" }rn");
  51. templateBuilder.Append(" .treenode_noselected,.treenode_selected, .treenode_over{rn");
  52. templateBuilder.Append("    line-height:15px;rn");
  53. templateBuilder.Append("    z-index:100;rn");
  54. templateBuilder.Append("    border-bottom: 1px solid #CCCCCC;rn");
  55. templateBuilder.Append(" padding: 2px;rn");
  56. templateBuilder.Append(" }rn");
  57. templateBuilder.Append(" .treenode_selected,.treenode_over{rn");
  58. templateBuilder.Append("    background: #c0ddfc;rn");
  59. templateBuilder.Append("    color:#ffffff; rn");
  60. templateBuilder.Append("    }rn");
  61. templateBuilder.Append(" .treenode_over{rn");
  62. templateBuilder.Append("    cursor:poiter; rn");
  63. templateBuilder.Append(" }rn");
  64. templateBuilder.Append(".TopicButton{border:1px solid #ccc;margin-right:4px;padding:1px 2px; line-height:14px;}rn");
  65. templateBuilder.Append(" *html .TopicButton { margin-right:2px;  font-size:12px;}rn");
  66. templateBuilder.Append(" *+html .TopicButton { margin-right:2px;  font-size:12px;}rn");
  67. templateBuilder.Append(" .TopicButton img{ margin-bottom:-3px; height:15px; padding-right:2px;}rn");
  68. templateBuilder.Append(" a.TopicButton:link,a.TopicButton:visited {color:#000; text-decoration:none;}rn");
  69. templateBuilder.Append(" a.TopicButton:hover,a.TopicButton:active {color:#000; text-decoration:none;}rn");
  70. templateBuilder.Append(" </style>rn");
  71. templateBuilder.Append("<!--header end-->rn");
  72. templateBuilder.Append("<div id="foruminfo">rn");
  73. templateBuilder.Append(" <div id="nav">rn");
  74. templateBuilder.Append(" <a href="");
  75. templateBuilder.Append(config.Forumurl.ToString().Trim());
  76. templateBuilder.Append("" class="home">");
  77. templateBuilder.Append(config.Forumtitle.ToString().Trim());
  78. templateBuilder.Append("</a>  &raquo; <a href="usercp.aspx">用户中心</a>  &raquo; <strong>撰写短消息</strong>rn");
  79. templateBuilder.Append(" </div>rn");
  80. templateBuilder.Append(" <div id="headsearch">rn");
  81. templateBuilder.Append(" <div id="search">rn");
  82. templateBuilder.Append(" </div>rn");
  83. templateBuilder.Append(" </div>rn");
  84. templateBuilder.Append("</div>rn");
  85. templateBuilder.Append("<!--主体-->rn");
  86. templateBuilder.Append("<div class="controlpannel">rn");
  87. templateBuilder.Append(" <div class="pannelcontent">rn");
  88. templateBuilder.Append(" <div class="pcontent">rn");
  89. templateBuilder.Append(" <div class="panneldetail">rn");
  90. templateBuilder.Append("                <div class="pannelbody">rn");
  91. templateBuilder.Append(" <div class="pannellist">rn");
  92. templateBuilder.Append(" <form id="postcategory" name="postcategory" method="post" action="usercpshopcategory.aspx?item=");
  93. templateBuilder.Append(item.ToString());
  94. templateBuilder.Append("&shopid=");
  95. templateBuilder.Append(shopid.ToString());
  96. templateBuilder.Append("">rn");
  97. templateBuilder.Append(" <input type="hidden" id="operation" name="operation" value="edit"/>rn");
  98. templateBuilder.Append(" <input type="hidden" id="categoryid" name="categoryid" value="0"/>rn");
  99. templateBuilder.Append(" <input type="hidden" id="targetcategoryid" name="targetcategoryid" value="0"/>rn");
  100. templateBuilder.Append(" <input type="hidden" id="isaschildnode" name="isaschildnode" value="0"/>rn");
  101. templateBuilder.Append(" <input type="hidden" id="editcategoryname" name="editcategoryname" value=""/>rn");
  102. templateBuilder.Append(" <input type="submit" id="shopcategorysubmit" name="shopcategorysubmit" style="display: none" />rn");
  103. if (page_err==0)
  104. {
  105. if (ispost)
  106. {
  107. }
  108. else
  109. {
  110. if (shopcategorydt_count>0)
  111. {
  112. templateBuilder.Append("   <div style="border: 1px dotted rgb(219, 221, 211); padding: 15px 10px 10px 56px; background: rgb(253, 255, 242) url(admin/images/hint.gif) no-repeat scroll 20px 15px; clear: both; margin-top: 10px; position: relative; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; margin-bottom: 10px; text-align: left; font-size: 12px;">rn");
  113. templateBuilder.Append("                            <li>支持鼠标拖拽</li>rn");
  114. templateBuilder.Append("                          </div>rn");
  115. } //end if
  116. templateBuilder.Append("   <div id="treecategory"></div>rn");
  117. templateBuilder.Append("                          <script type="text/javascript">rn");
  118. templateBuilder.Append("                            var cats = ");
  119. templateBuilder.Append(shopcategorydata.ToString());
  120. templateBuilder.Append(";rn");
  121. templateBuilder.Append("                            var newtree = new tree('newtree',cats,'reSetTree');rn");
  122. templateBuilder.Append("                          </");
  123. templateBuilder.Append("script>rn");
  124. 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");
  125. templateBuilder.Append("         新分类名称: <input type="text" value="" maxlength="50" size="20" id="addcategoryname" name="addcategoryname">rn");
  126. if (shopcategorydt_count>0)
  127. {
  128. templateBuilder.Append("         位置:       <select id="selectcategoryid" name="selectcategoryid">rn");
  129. templateBuilder.Append("                         ");
  130. templateBuilder.Append(categoryoptions.ToString());
  131. templateBuilder.Append("rn");
  132. templateBuilder.Append("                     </select>rn");
  133. templateBuilder.Append("         添加方式: <select id="addtype"  name="addtype" tabindex="52">rn");
  134. templateBuilder.Append("                      <option value="1" >作为同级分类</option>rn");
  135. templateBuilder.Append("                                  <option value="2" >做为子分类</option>rn");
  136. templateBuilder.Append("                                     </select>rn");
  137. } //end if
  138. templateBuilder.Append("                         <button class="mallbutton" type="button" onclick="javascript:$('operation').value='add';$('shopcategorysubmit').click();">添加分类</button>rn");
  139. templateBuilder.Append("                          </div>rn");
  140. } //end if
  141. }
  142. else
  143. {
  144. } //end if
  145. templateBuilder.Append(" </form>rn");
  146. templateBuilder.Append("         </div>rn");
  147. templateBuilder.Append("     </div>         rn");
  148. templateBuilder.Append("        </div>rn");
  149. templateBuilder.Append("    </div>rn");
  150. templateBuilder.Append("   </div>rn");
  151. templateBuilder.Append("</div>rn");
  152. templateBuilder.Append("<!--主体-->rn");
  153. Response.Write(templateBuilder.ToString());
  154. }
  155. </script>