<%@ page language="C#" autoeventwireup="true" inherits="Admin_HelpType_List, GroupTGWeb_deploy" %>

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="ShopNum1" %>

<!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 id="Head1" runat="server">
    <title>帮助分类</title>
      <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
<script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;font-size:12px">
    <form id="form1" runat="server">
    
     <div class="navigator">【 帮助分类 】</div>
    <table style="width:100%" align="center">
    <tr>
    <td
    <div class="query">
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td width="10%" align="right">分类名称：</td>
    <td width="20%"><asp:TextBox ID="textBoxName" runat="server" CssClass="input1"></asp:TextBox></td>
    <td width="20%"><asp:Button ID="ButtonSearch" runat="server" onclick="ButtonSearch_Click"  Text="查询" CssClass="bt2"/></div>
       </td>
         </tr>
    </table>
        </td>
    </tr>
    <tr>
    <td align="left">  
        <cc1:Num1GridView ID="num1GridViewShow" 
            runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSourceData"  
            Width="100%" AscendingImageUrl="~/images/SortAsc.gif" 
            DescendingImageUrl="~/images/SortDesc.gif" Font-Size="Small" 
            AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF" 
            BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" 
            DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False" 
            GridViewSortDirection="Ascending" PagingStyle="None" style="margin-left: 2px;" 
            TableName="">
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF"></HeaderStyle>

<PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
            <Columns>
                   <asp:TemplateField>
                    <HeaderTemplate>
                        <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" 
                            type="checkbox"  />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input ID="checkboxItem"   value='<%# Eval("Guid") %>'  type="checkbox" />
                  </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>               
                <asp:TemplateField HeaderText ="分类名称">
                  <ItemTemplate>
                   <a href='<%# "HelpType_Operate.aspx?Guid="+Eval("Guid") %>'><%# Eval("Name") %></a>
                  </ItemTemplate>
                  <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>                
                <asp:BoundField DataField="OrderID" HeaderText="排序号" SortExpression="OrderID" >
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
            </Columns>
        </cc1:Num1GridView></td>
    </tr>
        <tr>
    <td align="left">
    <div class="vote">
    <asp:Button ID="ButtonAdd" runat="server" onclick="ButtonAdd_Click" Text="添加" 
            onclientclick="GetCheckedBoxValues()"  CssClass="bt2"/>
        &nbsp;<asp:Button ID="ButtonEdit" runat="server" onclick="ButtonEdit_Click" 
            onclientclick="return EditButton()" Text="编辑" CssClass="bt2"/>
        &nbsp;<asp:Button ID="ButtonDelete" runat="server" Text="删除" 
            onclientclick="return DeleteButton()" 
            onclick="ButtonDelete_Click" CssClass="bt2"/>
         <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" /></div>
    </td>
    </tr>
    </table>
    
        <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
            SelectMethod="Search" 
            TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_HelpType_Action" 
            OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:ControlParameter ControlID="textBoxName" Name="name" 
                    PropertyName="Text" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
        <br />
    </form>
</body>
</html>
