usercpshopcategory.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:9k
源码类别:
SCSI/ASPI
开发平台:
Others
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Mall.Pages.usercpshopcategory" %>
- <%@ Import namespace="System.Data" %>
- <%@ Import namespace="Discuz.Common" %>
- <%@ Import namespace="Discuz.Forum" %>
- <%@ Import namespace="Discuz.Entity" %>
- <script runat="server">
- override protected void OnInit(EventArgs e)
- {
- /*
- This page was created by Discuz!NT Template Engine at 2009-9-22 17:24:59.
- 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:24:59.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_usercpshopcategory.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<style type="text/css">rn");
- templateBuilder.Append(" body {rn");
- templateBuilder.Append(" overflow-x:auto;rn");
- templateBuilder.Append(" font-size:12px;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" .contral{rn");
- templateBuilder.Append(" cursor:default;rn");
- templateBuilder.Append(" margin:0 auto;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" .contral input{rn");
- templateBuilder.Append(" cursor:hand;rn");
- templateBuilder.Append(" valign:middle;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" .treenode_move {rn");
- templateBuilder.Append(" position:absolute;rn");
- templateBuilder.Append(" width:200px;rn");
- templateBuilder.Append(" line-height:18px;rn");
- templateBuilder.Append(" filter:alpha(opacity=50);rn");
- templateBuilder.Append(" opacity:0.5;rn");
- templateBuilder.Append(" z-index:110;rn");
- templateBuilder.Append(" display:none;rn");
- templateBuilder.Append(" padding-left:10px;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" .treenode_0_noselected,.treenode_0_over{rn");
- templateBuilder.Append(" height:4px;rn");
- templateBuilder.Append(" line-height:4px;rn");
- templateBuilder.Append(" overflow:hidden;rn");
- templateBuilder.Append(" z-index:100;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" .treenode_0_over{rn");
- templateBuilder.Append(" background: #c0ddfc;rn");
- templateBuilder.Append(" height:6px;rn");
- templateBuilder.Append(" line-height:6px;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" .treenode_noselected,.treenode_selected, .treenode_over{rn");
- templateBuilder.Append(" line-height:15px;rn");
- templateBuilder.Append(" z-index:100;rn");
- templateBuilder.Append(" border-bottom: 1px solid #CCCCCC;rn");
- templateBuilder.Append(" padding: 2px;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" .treenode_selected,.treenode_over{rn");
- templateBuilder.Append(" background: #c0ddfc;rn");
- templateBuilder.Append(" color:#ffffff; rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" .treenode_over{rn");
- templateBuilder.Append(" cursor:poiter; rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(".TopicButton{border:1px solid #ccc;margin-right:4px;padding:1px 2px; line-height:14px;}rn");
- templateBuilder.Append(" *html .TopicButton { margin-right:2px; font-size:12px;}rn");
- templateBuilder.Append(" *+html .TopicButton { margin-right:2px; font-size:12px;}rn");
- templateBuilder.Append(" .TopicButton img{ margin-bottom:-3px; height:15px; padding-right:2px;}rn");
- templateBuilder.Append(" a.TopicButton:link,a.TopicButton:visited {color:#000; text-decoration:none;}rn");
- templateBuilder.Append(" a.TopicButton:hover,a.TopicButton:active {color:#000; text-decoration:none;}rn");
- templateBuilder.Append(" </style>rn");
- templateBuilder.Append("<!--header end-->rn");
- templateBuilder.Append("<div id="foruminfo">rn");
- templateBuilder.Append(" <div id="nav">rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(config.Forumurl.ToString().Trim());
- templateBuilder.Append("" class="home">");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</a> » <a href="usercp.aspx">用户中心</a> » <strong>撰写短消息</strong>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="headsearch">rn");
- templateBuilder.Append(" <div id="search">rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<!--主体-->rn");
- templateBuilder.Append("<div class="controlpannel">rn");
- templateBuilder.Append(" <div class="pannelcontent">rn");
- templateBuilder.Append(" <div class="pcontent">rn");
- templateBuilder.Append(" <div class="panneldetail">rn");
- templateBuilder.Append(" <div class="pannelbody">rn");
- templateBuilder.Append(" <div class="pannellist">rn");
- templateBuilder.Append(" <form id="postcategory" name="postcategory" method="post" action="usercpshopcategory.aspx?item=");
- templateBuilder.Append(item.ToString());
- templateBuilder.Append("&shopid=");
- templateBuilder.Append(shopid.ToString());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <input type="hidden" id="operation" name="operation" value="edit"/>rn");
- templateBuilder.Append(" <input type="hidden" id="categoryid" name="categoryid" value="0"/>rn");
- templateBuilder.Append(" <input type="hidden" id="targetcategoryid" name="targetcategoryid" value="0"/>rn");
- templateBuilder.Append(" <input type="hidden" id="isaschildnode" name="isaschildnode" value="0"/>rn");
- templateBuilder.Append(" <input type="hidden" id="editcategoryname" name="editcategoryname" value=""/>rn");
- templateBuilder.Append(" <input type="submit" id="shopcategorysubmit" name="shopcategorysubmit" style="display: none" />rn");
- if (page_err==0)
- {
- if (ispost)
- {
- }
- else
- {
- if (shopcategorydt_count>0)
- {
- 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");
- templateBuilder.Append(" <li>支持鼠标拖拽</li>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <div id="treecategory"></div>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var cats = ");
- templateBuilder.Append(shopcategorydata.ToString());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" var newtree = new tree('newtree',cats,'reSetTree');rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- 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");
- templateBuilder.Append(" 新分类名称: <input type="text" value="" maxlength="50" size="20" id="addcategoryname" name="addcategoryname">rn");
- if (shopcategorydt_count>0)
- {
- templateBuilder.Append(" 位置: <select id="selectcategoryid" name="selectcategoryid">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(categoryoptions.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" 添加方式: <select id="addtype" name="addtype" tabindex="52">rn");
- templateBuilder.Append(" <option value="1" >作为同级分类</option>rn");
- templateBuilder.Append(" <option value="2" >做为子分类</option>rn");
- templateBuilder.Append(" </select>rn");
- } //end if
- templateBuilder.Append(" <button class="mallbutton" type="button" onclick="javascript:$('operation').value='add';$('shopcategorysubmit').click();">添加分类</button>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- }
- else
- {
- } //end if
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div> rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<!--主体-->rn");
- Response.Write(templateBuilder.ToString());
- }
- </script>