<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClassTreeEdit.aspx.cs" Inherits="WstWeb.Admin.UC.ClassTreeEdit" %>
    <%@ Register src="~/admin/uc/ClassRelationSelect.ascx" tagname="ClassForSelect" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css">
    body{font-size:13px;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
   <fieldset style="width:95%;border:1px solid #90ACCF;margin-top:20px;">
    <legend><font color="red"><b>添加与修改</b></font></legend>

    <table width="95%" border="0" cellpadding="0" cellspacing="0" style="border:0px solid #90ACCF;padding:8px;">
      <tr>
          <td style="width: 84px;">
              类别名称:</td>
          <td style="text-align:left;">
          &nbsp;<asp:TextBox CssClass="input_text" ID="tbName" runat="server"></asp:TextBox></td>
      </tr>
      <tr>
          <td style="width: 84px; height: 94px;">
              类别描述:</td>
          <td style="text-align:left;">
          &nbsp;<asp:TextBox CssClass="input_text" ID="tbClassRemark" runat="server" TextMode="MultiLine" Rows="5" Width="407px"></asp:TextBox></td>
      </tr>
      <tr>
          <td style="width: 84px;">
              类别关系:</td>
          <td style="text-align:left;">
              
              <uc1:ClassForSelect ID="ClassForSelect1" runat="server" />
              修改类别关系时，被修改类别会连其下的子类别一起被修改
              </td>
      </tr>       
      <tr>
          <td style="height: 30px;text-align:left;padding-left:20px;" colspan="2">
          <br />
              <asp:Button ID="btAddClass" runat="server" Text="增加类别" OnClick="btAddClass_Click" />
              <asp:Button ID="btModify" runat="server" Text="修改类别" OnCommand="btModify_Command" Visible="False" />&nbsp;
              <asp:Button ID="btnDel" runat="server" Text="删除类别" OnCommand="btDel_Command" 
                  Visible="False" />&nbsp;
              <asp:Button ID="btCancel" runat="server" OnClick="btCancel_Click" Text="取消" Visible="False" /></td>
      </tr>
    </table>
    </fieldset>
    <input type="hidden" id="hdnRelation" runat="server" />
    <asp:Literal ID="litScript" Visible="false" runat="server">
    <script>

            parent.RefreshNode(document.getElementById("hdnRelation").value);

    </script> </asp:Literal>
    </form>
</body>
</html>
