<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserLableManage.aspx.cs"
    Inherits="admin_Lable_UserLable_UserLableManage" %>

<%@ Register Src="../../../Control/PageNo.ascx" TagName="PageNo" 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 id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>自定义标签管理</title>
    <link rel="stylesheet" href="../../skin/style.css" type="text/css" />

    <script type="text/javascript" src="../../../js/jquery.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            <h3>
                自定义标签搜索</h3>
        </div>
        <div class="itemtitle_tect">
            <p>
                标签名称：
                <asp:TextBox ID="txtTitleName" runat="server" CssClass="i_text1"></asp:TextBox>
                标签类别：<asp:DropDownList ID="dropLableType" runat="server">
                </asp:DropDownList><asp:Button ID="btnSearch" runat="server" Text="立即查询" OnClick="btnSearch_Click"
                    CssClass="i_button" /></p>
        </div>
        <div class="clr">
        </div>
        <div class="partition">
            <div class="Option">
                <span><strong>快捷操作</strong></span> <span><a href="../UserLable/UserLableAdd.aspx">添加标签</a></span>
                <span><a href="../UserLableType/UserLableTypeManage.aspx">标签类别管理</a></span>
            </div>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:GridView ID="grdUserLable" runat="server" AutoGenerateColumns="False" OnRowDeleting="grdUserLable_RowDeleting"
                GridLines="None" DataKeyNames="ID" CssClass="talbe_list" OnRowDataBound="grdUserLable_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th20 tou" />
                        <ItemStyle CssClass="nolet" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="LableName" HeaderText="标签名称">
                        <ItemStyle CssClass="left2" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Remarks" HeaderText="备注"></asp:BoundField>
                    <asp:TemplateField HeaderText="所属类别">
                        <ItemStyle CssClass="th80" />
                        <ItemTemplate>
                            <a href='UserLableManage.aspx?TypeID=<%# Eval("TypeID") %>'>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("TypeName") %>'></asp:Label></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="添加日期">
                        <ItemTemplate>
                            <%# GetShortDate(Eval("AddDate").ToString()) %>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作选项">
                        <ItemTemplate>
                            <a style="text-decoration: none" href="UserLableEdit.aspx?ID=<%# DataBinder.Eval(Container.DataItem,"ID") %>">
                                编辑</a> |
                            <asp:LinkButton Font-Underline="false" ID="lbtnDelete" runat="server" Text="删除" CommandName="Delete"
                                OnClientClick="return   confirm( '你确定删除吗？一旦删除后，调用它的页面将出错！请慎重操作！') " />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
            <div class="Paging">
                <p>
                    <uc1:PageNo ID="PageNo1" runat="server" />                   
                </p>
                <asp:Label ID="lblMessage" runat="server" Visible="false"></asp:Label>
                <input id="CheckBox2" name="CheckBox2" type="checkbox" onclick="SelectAll();" />全选
                <asp:Button ID="btnDelete" runat="server" Font-Size="9pt" Text="批量删除" OnClick="btnDelete_Click"
                    CssClass="i_button" />
            </div>
        </div>
    </form>
</body>
</html>
