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

<%@ 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 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">
            <ul>
                <li>通过用户管理，您可以进行编辑会员资料、用户组、权限、积分、授权会员勋章以及删除会员等操作；</li>
                <li>请先根据条件搜索用户，然后选择相应的操作。</li>
            </ul>
        </div>--%>
        <div class="itemtitle">
            <h3>
                信息搜索</h3>
        </div>
        <div class="itemtitle_tect">
            <p>
                信息搜索：<asp:TextBox ID="txtTitleName" runat="server"></asp:TextBox>
                <asp:DropDownList ID="dropAgentType" runat="server" AutoPostBack="True" >
                </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">
                <asp:Label ID="Label5" runat="server"><strong>快捷操作</strong></asp:Label>
                <asp:Label ID="Label1" runat="server"><a href="?v=0">所有信息</a></asp:Label>
                <asp:Label ID="Label2" runat="server"><a href="?v=1">已审核信息</a></asp:Label>
                <asp:Label ID="Label3" runat="server"><a href="?v=2">未审核信息</a></asp:Label>
                <asp:Label ID="Label4" runat="server"><a href="?v=3">推荐信息</a></asp:Label>
            </div>
            <div class="search">
            </div>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:GridView ID="grdWillAgent" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                OnRowDataBound="grdWillAgent_RowDataBound" AllowPaging="True" OnPageIndexChanging="grdWillAgent_PageIndexChanging"
                GridLines="None" CssClass="talbe_list">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th20 tou" />
                        <ItemStyle CssClass="nolet" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="Title" HeaderText="信息标题">
                        <ItemStyle CssClass="left2" />
                    </asp:BoundField>
                    <asp:BoundField DataField="TypeName" HeaderText="所属类目">
                        <HeaderStyle CssClass="th30" />
                    </asp:BoundField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            发布日期
                        </HeaderTemplate>
                        <ItemTemplate>
                            <%# GetShortDate(Eval("AddDate").ToString())%>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="审核">
                        <ItemTemplate>
                            <span>
                                <%#  ShowVerify(Eval("Verify").ToString())  %>
                            </span>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th30" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="推荐">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnUpdateRecommend" Font-Underline="false" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")+"|"+DataBinder.Eval(Container.DataItem, "Recommend") %>'
                                Text='<%# DataBinder.Eval(Container.DataItem, "Recommend").ToString()== "True" ? "推荐" : "不推荐"%>'
                                OnCommand="lbtnUpdateRecommend_Command"></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th30" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作选项">
                        <ItemTemplate>
                            <asp:LinkButton CommandName="delete" ID="lnkdelete" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>'
                                OnCommand="lnkdelete_Command" runat="server" Text="删除" OnClientClick="return confirm('你确定要删除吗?')"></asp:LinkButton>
                            | <a style="text-decoration: none;" href='WillAgentEdit.aspx?ID=<%# Eval("ID") %>&UserID=<%# Eval("UserID") %>'>
                                编辑</a>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
            <div class="Paging">
                <p>
                    <uc1:PageNo ID="PageNo1" runat="server" />
                </p>
                <input id="CheckBox2" name="CheckBox2" onclick="SelectAll();" type="checkbox" />全选
                <asp:Button ID="btnDelete" runat="server" Font-Size="9pt" OnClick="btnDelete_Click"  Text="批量删除" CssClass="i_button" />
                <asp:Button ID="ButEigible" runat="server" Font-Size="9pt" Text="通过" CssClass="i_button"    OnClientClick="javascript:return confirm('您确定要让该信息通过审核吗？') " OnClick="ButEigible_Click" />
                <asp:Button ID="ButDisqualification" runat="server" Font-Size="9pt" Text="未通过"  CssClass="i_button"  OnClientClick="javascript:return confirm('您确定不让该信息通过审核吗？')" OnClick="ButDisqualification_Click" />
                <asp:Label ID="lblMessage" runat="server" Visible="false"></asp:Label>
            </div>
        </div>
    </form>
</body>
</html>
