<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Brand.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.Shop.Brand" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" 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">
    <title>品牌管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />

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

    <link rel="stylesheet" type="text/css" href="../Style.css" />

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

    <style type="text/css">
        #dhtmltooltip
        {
            font-size: 9pt;
            border-right: gray 1px solid;
            padding-right: 4px;
            border-top: gray 1px solid;
            padding-left: 4px;
            z-index: 100;
            filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=120);
            visibility: hidden;
            padding-bottom: 4px;
            border-left: gray 1px solid;
            width: 150px;
            padding-top: 4px;
            border-bottom: gray 1px solid;
            position: absolute;
            background-color: #cccccc;
        }
    </style>
</head>
<body>
    <div id='dhtmltooltip'>
        <img src="" /></div>

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

    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 98%;" border="0" cellpadding="4" cellspacing="0" id="NavigationPath">
                <tr>
                    <td style="width: auto">
                        &nbsp;<img src='../../Images/arrow.gif' alt="" />
                        您现在的位置：<asp:Label ID="LB_Path" runat="server"></asp:Label>
                    </td>
                    <td style="width: auto; text-align: right">
                        <a href="Brand.aspx?Action=Add&ModelID=<%=Request["ModelID"] %>">添加品牌</a>
                    </td>
                </tr>
            </table>
            <asp:Panel ID="Panel1" runat="server">
                <table cellspacing="0" cellpadding="6" width="100%" border="0">
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌名称：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="TB_Name" runat="server" Width="250px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入！"
                                ControlToValidate="TB_Name"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌Logo：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="TB_SrcList" runat="server" Width="250px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入！"
                                ControlToValidate="TB_SrcList"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌大图：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="TB_SrcDetail" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌网址：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="TB_Website" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            详细内容：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="TB_Content" runat="server" Height="100px" TextMode="MultiLine" Width="317px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌标题：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="TB_Title" runat="server" Width="250px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请输入！"
                                ControlToValidate="TB_Title"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            网页关键字：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="TB_Keywords" runat="server" Height="100px" TextMode="MultiLine"
                                Width="320px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            网页备注：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="TB_Description" runat="server" Height="100px" TextMode="MultiLine"
                                Width="321px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="display: none">
                        <td height="25" width="30%" align="right">
                            品牌拼音：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="TB_Pinyin" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            品牌公司：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="TB_Company" runat="server" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            是否显示：
                        </td>
                        <td height="25" align="left">
                            <asp:CheckBox ID="CB_IsShow" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            &nbsp;
                        </td>
                        <td height="25" align="left">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right">
                            &nbsp;
                        </td>
                        <td height="25" align="left">
                            <asp:Button ID="BT_OK" runat="server" Text="确定" CssClass="btn" OnClick="BT_OK_Click" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server">
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" CssClass="GridView"
                    DataKeyNames="ID" OnRowDataBound="GV_List_RowDataBound" 
                    OnRowDeleting="GV_List_RowDeleting" onrowcommand="GV_List_RowCommand">
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <HeaderTemplate>
                                <input name="chkHeader" onclick="javascript:SelectAll(this);" type="checkbox" value="chkHeader" /></HeaderTemplate>
                            <HeaderStyle Width="30px" />
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ID" HeaderText="ID">
                            <HeaderStyle Width="40px" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="品牌名称" DataField="Name" />
                        <asp:TemplateField HeaderText="品牌Logo">
                            <ItemTemplate>
                                <img onmouseover="javascript:ddrivetip('<img src=<%# Eval("SrcList") %>  />','#ffffff')"
                                    onmouseout="hideddrivetip()" src="../Images/FileICO/jpg.gif" hasbox="2" alt="" />
                            </ItemTemplate>
                            <HeaderStyle Width="60px" />
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="是否显示">
                            <ItemTemplate>
                                <asp:LinkButton ID="LB_IsShow" CommandArgument='<%# Eval("ID") %>' runat="server" CommandName="IsShow" Text='<%# Eval("IsShow") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                        </asp:TemplateField>
                        <asp:CommandField ShowDeleteButton="True" HeaderText="删除">
                            <ItemStyle HorizontalAlign="Center" Width="40px" />
                        </asp:CommandField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle" />
                </asp:GridView>
                <div class="WorkArea">
                    <asp:Button ID="BT_DelSeletedID" runat="server" Text="删除选中" Style="cursor: hand"
                        EnableViewState="False" CssClass="btn"></asp:Button>
                    &nbsp;&nbsp; |&nbsp;&nbsp;
                </div>
                <div class="pagefield">
                    <cc1:PageNavigation ID="PageNavigation1" runat="server" SubmitButtonClass="btn" OnPageChanging="PageNavigation1_PageChanging" PageSize="15">
                    </cc1:PageNavigation>
                </div>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
