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

<!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="list.aspx" style="display:none;">问答管理</a> <a href="index.aspx" style="display:none;">分类管理</a></span> 
   </div> 
   
   <div style="padding:6px 8px 0px 8px;"><a href="index.aspx#ClassName">增加分类</a></div>
   <div id="mainbody">
         <ul runat="server" id="ClassList">
         </ul>   
   </div>
    <div style="padding:6px 8px 0px 8px;">
        增加：
        <asp:DropDownList ID="ParentID" runat="server">
        <asp:ListItem Value="0">无上级分类</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="ClassName" runat="server"></asp:TextBox> 
        <asp:Button ID="Button1" runat="server" Text="确定" OnClick="Button1_Click" />
        <asp:RequiredFieldValidator
                            ID="RequireName" runat="server" ControlToValidate="ClassName" Display="Dynamic"
                            ErrorMessage="分类名称不能为空"></asp:RequiredFieldValidator>
        <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="index.aspx?Type=del&id="+id;
   }
}
</script>
