<%@ page language="C#" autoeventwireup="true" inherits="Admin_Brand_List, ShopNum1Deploy" %>

<%@ 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 runat="server">
    <title>Untitled Page</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;">
    <form id="form1" runat="server">
     <div class="navigator">【 商品品牌 】</div>
    <table style="width:100%">
        <tr>
        <td style="width:100%" align="left"> 
      
        <div class="query" style="padding-left:20%">
        <table cellpadding="0" cellspacing="3"><tr><td valign="middle" >
             <asp:Label ID="LabelName" runat="server" Text="品牌名称：" Font-Bold="False"></asp:Label></td><td>
        <asp:TextBox ID="TextBoxName" runat="server" CssClass="input1"></asp:TextBox></td><td>
                                            <asp:Button ID="ButtonSearch" runat="server" onclick="ButtonSearch_Click" 
                   Text="查询 " CssClass="bt2" style="margin:0"/>
                   </td></tr></table>
                   </div>
        </td>
        </tr>
          <tr>
        <td>
           
            <cc1:Num1GridView ID="Num1GridviewShow"   runat="server" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSourceData"  
            Width="100%" AscendingImageUrl="~/images/SortAsc.gif" 
            DescendingImageUrl="~/images/SortDesc.gif" PageSize="5" Font-Size="Small" 
            Font-Bold="False" AddSequenceColumn="False" AllowMultiColumnSorting="False" 
                Del="False" DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False" 
                GridViewSortDirection="Ascending" PagingStyle="None" style="margin-left: 2px; margin-top: 0px;" 
                TableName="" BorderColor="#CCDDEF" BorderStyle="Solid" 
            BorderWidth="1px" CellPadding="4" onrowdatabound="Num1GridviewShow_RowDataBound" 
            >
<HeaderStyle HorizontalAlign="Center"></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" type="checkbox" Value='<%# Eval("Guid") %>' 
                               align="middle" />
                       </ItemTemplate>
                    
                       <HeaderStyle HorizontalAlign="Center" />
                       <ItemStyle HorizontalAlign="Center" />
                    
                </asp:TemplateField>
                <asp:BoundField DataField="Guid" HeaderText="Guid" Visible="False" 
                       SortExpression="Guid" />
                   <asp:TemplateField HeaderText="品牌图片" SortExpression="logo">
                         <ItemTemplate>
                        <asp:HyperLink ID="HyperLinkImage" runat="server" ForeColor="Black" Target="_blank">查看</asp:HyperLink>
                    </ItemTemplate>
                   </asp:TemplateField>
                <asp:BoundField DataField="Name" HeaderText="品牌名称" SortExpression="Name" >
                    <ItemStyle HorizontalAlign="Center" />
                   </asp:BoundField>
                   <asp:BoundField DataField="WebSite" HeaderText="品牌网站" SortExpression="WebSite">
                   </asp:BoundField>
                   <asp:TemplateField HeaderText="是否前台显示" SortExpression="IsShow">
                    
                       <ItemTemplate>
                           <asp:Label ID="Label1" runat="server" Text='<%# ChangeIsShow(DataBinder.Eval(Container, "DataItem(IsShow)","{0}")) %>'></asp:Label>
                       </ItemTemplate>
                       <ItemStyle HorizontalAlign="Center" />
                   </asp:TemplateField>
                <asp:BoundField DataField="OrderID" HeaderText="排序号" SortExpression="OrderID" >
                    <ItemStyle HorizontalAlign="Center" />
                   </asp:BoundField>
                <asp:BoundField DataField="Logo" HeaderText="品牌图片" >
                    <HeaderStyle CssClass="hidden" />
                    <ItemStyle CssClass="hidden" />
                   </asp:BoundField>
            </Columns>
        </cc1:Num1GridView></td>
        </tr>
          <tr>
        <td style="width:100%;>
        <div class="vote">
           <asp:Button ID="ButtonAdd" runat="server" onclick="ButtonAdd_Click" Text="添加" 
            onclientclick="GetCheckedBoxValues()"  CssClass="bt2" />
        <asp:Button ID="ButtonEdit" runat="server" onclick="ButtonEdit_Click" 
            onclientclick="return EditButton()" Text="编辑"  CssClass="bt2" />
        <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="ShopNum1.BusinessLogic.ShopNum1_Brand_Action" 
       >
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxName" Name="name" PropertyName="Text" 
                Type="String" />
            <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
        </SelectParameters>
        
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
