<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="askclass.aspx.cs" Inherits="Kcms.UI.admin.askclass" %>
<!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></title>
    <link href="skins/work-style.css" rel="stylesheet" type="text/css" />
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
</head>
<body>
    <form id="form2" runat="server">
<div class="container">
 <div class="path clearfix"><div class="l"><h4><img src="skins/icon/searchsentre_summ.gif" align="absmiddle" />问答分类</h4></div><div class="r"><asp:Literal ID="litAdv" runat="server"></asp:Literal></div></div>
 <div class="mbox clearfix">
  <div class="left">
    <a href="askclass.aspx" class="on">问答分类</a>
  </div>
  <div class="right">
<table class="rtable" width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
        <tr class="title">
            <td colspan="2">分类设置</td>
        </tr>
        <tr>
        <td width="30%"><b>分类名称：</b></td>
        <td>
            <asp:HiddenField ID="hidId" runat="server" />
            <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="*" ControlToValidate="txtName"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
        <td><b>页面标题：</b></td>
        <td>
            <asp:TextBox ID="txtTitle" runat="server" Columns="48"></asp:TextBox>
            分类在页面的标题。留空就显示分类名。</td>
        </tr>
        <tr>
        <td>&nbsp;</td>
        <td>
            <asp:Button ID="Button1" runat="server" CssClass="btn0" onclick="Button1_Click" 
                Text="添加" />
            </td>
        </tr>
        </table>
        <br />
<p>分类路径: <asp:Literal ID="litClassNav" runat="server"></asp:Literal></p>
<table class="rtable" width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
        <tr class="title">
            <td colspan="5">分类管理<asp:HiddenField ID="hidCurParentId" runat="server" /></td>
        </tr>
        <tr>
            <td width="5%"><b>ID</b></td>
            <td><b>分类名称</b>　点击分类名，可添加子分类</td>
            <td width="16%" align="center" colspan="2"><b>排序</b></td>
            <td width="16%" align="center"><b>操作</b></td>
        </tr>
        <asp:Repeater ID="rptList" runat="server" 
            onitemdatabound="rptlist_ItemDataBound" 
            onitemcommand="rptlist_ItemCommand">
        <ItemTemplate>
            <asp:HiddenField ID="hidPai" Value='<%#Eval("pai") %>' runat="server" />
        <tr onMouseOver="this.className='over'" onMouseOut="this.className=''">
            <td><asp:Literal ID="litId" runat="server" Text='<%#Eval("id") %>'></asp:Literal></td>
            <td><a href="?pid=<%#Eval("id") %>"><%#Eval("name") %></a></td>
              <td align="center">
                  <asp:DropDownList ID="drpUp" runat="server" Visible="False" AutoPostBack="true" OnSelectedIndexChanged="up_SelectedIndexChanged">
                  </asp:DropDownList>
              </td>
              <td align="center">    
                  <asp:DropDownList ID="drpDown" runat="server" Visible="False" AutoPostBack="true" OnSelectedIndexChanged="down_SelectedIndexChanged">
                  </asp:DropDownList>
              </td>
            <td align="center"><asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="false" CommandName="edit">编辑</asp:LinkButton>　<asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm('确定删除？将同时删除所有子类！')" CausesValidation="false" CommandName="del">删除?</asp:LinkButton></td>
        </tr>
        </ItemTemplate>
        </asp:Repeater>
        </table>
  </div>
 </div>
</div>
</form>
</body>
</html>