<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.System_SearchKey_Manage, V5Shop.Shop.Config" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register TagPrefix="V5Shop" Namespace="V5Shop.Control" Assembly="V5Shop.Control" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<!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 href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />

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

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <uc3:ManageHeader ID="ManageHeader1" runat="server" />
            <div id="search">
                <div style="padding: 10px 20px; border: 1px #eeeeee solid; background: #f7f7f7">
                    <asp:Label ID="lblKeyWord" runat="server" Text="关键字："></asp:Label><asp:TextBox ID="txtKeyWord" Width="100px" runat="server" class="input"></asp:TextBox>
                    <asp:Label ID="lblCount" runat="server" Text="搜索次数："></asp:Label><asp:TextBox ID="txtCount" runat="server" Width="60px"></asp:TextBox>
                    <asp:Label ID="lblType" runat="server" Text="搜索类型："></asp:Label><asp:DropDownList ID="ddlType" runat="server">
                    </asp:DropDownList>
                    <asp:Label ID="lblIsShow" runat="server" Text="是否显示："></asp:Label><asp:DropDownList ID="ddlIsShow" runat="server">
                    </asp:DropDownList>
                    <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" class="button" /></div>
            </div>
            <div id="content">
                <div style="padding: 3px 25px; color: #4B6888; border-bottom: 1px #CCCCCC solid">
                    <input type="checkbox" id="CheckAllBox" onclick="CheckAll()" class="checkbox" />
                    全选
　
<asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" OnClick="btnAdd_Click"><img src="images/icon/key_add.gif" /> 添加</asp:LinkButton>
　
<asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" OnClick="btnEdit_Click"
                        OnClientClick="return CheckEdit()"><img src="images/icon/key_edit.gif" /> 编辑</asp:LinkButton>
　
<asp:LinkButton ID="btnDel" runat="server" ForeColor="#4B6888" OnClick="btnDel_Click"
                        OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" /> 删除</asp:LinkButton>
　
<asp:LinkButton ID="btnVisibleT" runat="server" ForeColor="#4B6888" OnClick="btnVisibleT_Click" OnClientClick="return CheckSelect()"><img src="images/icon/key_show.gif" /> 显示</asp:LinkButton>
　
<asp:LinkButton ID="btnVisibleF" runat="server" ForeColor="#4B6888" OnClick="btnVisibleF_Click" OnClientClick="return CheckSelect()"><img src="images/icon/key_hermit.gif" /> 隐藏</asp:LinkButton></div>
                <div class="listborder">
                    <V5Shop:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CssClass="datalist" HeaderStyle-ForeColor="#000"
                        EmptyDataText="没有查询到任何记录" TableName="SearchKey" BorderWidth="0px" CacheName="SearchKey"
                        GridLines="None" PageSize="12">
                        <Columns>
                            <asp:TemplateField>
                                <itemstyle width="3%" />
                                <itemtemplate>
                                <input runat="server" Value='<%# Eval("ID") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out" class="checkbox">
                            
</itemtemplate>
                            <itemstyle horizontalalign="Center"  /></asp:TemplateField>
                            <asp:BoundField DataField="id" SortExpression="ID" HeaderText="ID">
                                <itemstyle width="6%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Name" HeaderText="关键字" SortExpression="Name">
                                <itemstyle width="55%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Count" SortExpression="Count" HeaderText="搜索次数">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TypeName" SortExpression="TypeName" HeaderText="搜索类型">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="是否显示" SortExpression="IsShow">                                <itemstyle width="10%" />

                                <itemtemplate>
									<asp:Label runat="server" Text='<%# FormartStatus(DataBinder.Eval(Container,"DataItem(IsShow)","{0}")) %>' id="Label2"></asp:Label>
							</itemtemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <HeaderStyle CssClass="category" ForeColor="Black" Height="18px" />
                    </V5Shop:V5ShopGridView>
                </div>
                <div id="hiddenfield">
                    <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                    <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                    <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                    <uc1:HiddenField ID="Alert" runat="server" />
                </div>
                <uc2:PageBottom ID="PageBottom1" runat="server" />
            </div>
    </form>
</body>
</html>
