<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="class.aspx.cs" Inherits="JuSNS.Web.system.gift._class" %>

<!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>
<title id="ptitle" runat="server">礼物分类管理</title>
<link href="../images/css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>

</head>
<body>
<form id="form1" runat="server">
<table width="99%" border="0" align="center" cellpadding="5" cellspacing="1">
  <tr>
    <td width="120" align="center" valign="top">
        <div class="menu">
            <ul>
        	<%=this.GetSystemMenu(sort)%>
        	</ul>
      </div>
    </td>
    <td valign="top">
   <div class="navip">
    <span class="Blue">
                    <a href="index.aspx">礼物管理</a> 
                    <a href="add.aspx">增加礼物</a> 
                    <a href="class.aspx">礼物分类</a> 
    </span> 
   </div> 
   
   <div style="padding:6px 8px 0px 8px;"><a href="class.aspx#ClassName">增加分类</a></div>
   <div id="mainbody">
         <ul runat="server" id="ClassList">
         </ul>   
   </div>
    <div style="padding:6px 8px 0px 8px;">
        增加/修改分类：
        <asp:TextBox ID="ClassName" runat="server"></asp:TextBox> 
        <asp:RequiredFieldValidator
                            ID="RequireName" runat="server" ControlToValidate="ClassName" Display="Dynamic"
                            ErrorMessage="分类名称不能为空"></asp:RequiredFieldValidator>
        <asp:Button ID="Button1" runat="server" Text="确定" OnClick="Button1_Click" />
        <asp:HiddenField ID="TxtclassID" runat="server" Value="0" />
    
    </div>
    </td>
  </tr>
</table>

    
</form>
</body>
</html>
<script language="javascript" type="text/javascript">
function del(id)
{
    if(confirm('你确认删除此分类吗?'))
   { 
        self.location="class.aspx?Type=del&id="+id;
   }
}
</script>
