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

<%@ 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="txtKeyword" runat="server"></asp:TextBox>
                所属类别:<asp:DropDownList ID="dropExpoType" runat="server">
                </asp:DropDownList>
                <asp:Button ID="btnSelect" OnClick="btnSelect_Click" runat="server" Text="立即查询" CssClass="i_button">
                </asp: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>
           
            </div>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:GridView ID="grdExpo" runat="server" AutoGenerateColumns="False" CellPadding="0"
                GridLines="None" Font-Overline="False" OnPageIndexChanging="grdConsultative_PageIndexChanging"
                OnRowDataBound="grdExpo_RowDataBound" DataKeyNames="ID" CssClass="talbe_list">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th20 tou" />
                        <ItemStyle CssClass="nolet" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="信息标题">
                        <ItemTemplate>
                               <%# GetNewTitle(DataBinder.Eval(Container.DataItem, "Title").ToString(),Eval("ID").ToString())%>
                        </ItemTemplate>
                        <ItemStyle CssClass="left2" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="所属类别">
                        <ItemTemplate>
                            <a style="text-decoration: none" href='ExpoList.aspx?TypeID=<%# DataBinder.Eval(Container.DataItem,"TypeID") %>'>
                                <%# DataBinder.Eval(Container.DataItem, "Type") %>
                            </a>                           
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="审核">
                        <ItemTemplate>
                            <%#  ShowVerify(DataBinder.Eval(Container.DataItem, "Verify").ToString())%>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText=" 开始日期">
                        <ItemTemplate>
                            <%# GetShortDate(DataBinder.Eval(Container.DataItem, "StartDate").ToString())%>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="结束日期">
                        <ItemTemplate>
                            <%# GetShortDate(DataBinder.Eval(Container.DataItem, "EndDate").ToString())%>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            操作选项
                        </HeaderTemplate>
                        <ItemTemplate>
                         <a href='ExpoEdit.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID") %>'>修改</a> | <asp:LinkButton CommandName="delete" ID="lnkdelete" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>'
                                OnCommand="lnkdelete_Command" runat="server" Text="删除" OnClientClick="return confirm('你确定要删除吗?')"></asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th80" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="header" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:Label ID="lblMessage" runat="server" Text="Label" Visible="False"></asp:Label>
            <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_button1"
                    OnClientClick="javascript:return confirm('您确定要让该信息通过审核吗？') " OnClick="ButEigible_Click" />
                <asp:Button ID="ButDisqualification" runat="server" Font-Size="9pt" Text="审核未通过" CssClass="i_button1"
                    OnClientClick="javascript:return confirm('您确定不让该信息通过审核吗？')" OnClick="ButDisqualification_Click"  />
            </div>
        </div>
    </form>
</body>
</html>
