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

<!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>
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body style="text-align: center">
    <form id="form1" runat="server">
    <div>
        <table style="width: 628px">
            <tr>
                <td colspan="3" style="height: 29px; background-color: #ccffcc">
                    <strong><span style="font-size: 11pt">首页推荐产品</span></strong></td>
            </tr>
            <tr style="font-size: 9pt">
                <td colspan="3" style="background-color: lavender">
                    <asp:GridView ID="XmlGridView" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        ForeColor="#333333" GridLines="None" Width="100%" CssClass="9" OnPageIndexChanging="XmlGridView_PageIndexChanging" AllowPaging="True" DataKeyNames="ShareimgID" PageSize="12" OnRowDeleting="XmlGridView_RowDeleting">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:TemplateField HeaderText="图片名称">
                                <ItemStyle HorizontalAlign="Left" Width="140px" />
                                <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem,"Imgname") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="所显示产品">
                                <ItemStyle HorizontalAlign="Left" />
                                <ItemTemplate>
                                <%#Myimgurl((string)DataBinder.Eval(Container.DataItem,"Imgurl")) %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作管理">
                                <ItemTemplate>
                                    <asp:Button ID="delBtn" runat="server" CommandName="delete" Text="删除" Height="19px" />
                                </ItemTemplate>
                                <ItemStyle Width="60px" />
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle BackColor="#2461BF" ForeColor="Red" HorizontalAlign="Center" Font-Bold="True" Font-Size="12pt" Font-Underline="True" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr style="font-size: 9pt">
                <td colspan="3" style="background-color: lavender">
                    <table border="1" width="100%">
                        <tr>
                            <td style="width: 520px; text-align: left">
                                <span style="color: darkorange" class="9">选择产品：</span><asp:DropDownList ID="drpProductlist" runat="server" Width="173px">
                                </asp:DropDownList>
                                <asp:FileUpload ID="imageUpload" runat="server" Width="215px" />
                                &nbsp;&nbsp;<asp:Button ID="Button1" runat="server" Height="22px" Text="上 传" OnClick="Button1_Click" /></td>
                            <td rowspan="3" style="width: 2px">
                                <asp:Label ID="lblImage" runat="server" Height="100px" Width="80px"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="width: 520px; text-align: left" class="9">
                                1.首先选择要关联的产品&nbsp; 2.然后依次上传在首页滚动的图片 &nbsp; 3.完成后生成代码 . &nbsp; &nbsp; &nbsp;&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 520px; text-align: center;">
                                <asp:Label ID="lblError" runat="server" Font-Bold="True" Font-Size="9pt" ForeColor="Red"
                                    Text="注意：首页推荐产品数量只能是4的倍数，如：4，8，12"></asp:Label>
                                <asp:Label ID="lblImgurl" runat="server" Font-Size="9pt"></asp:Label></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr style="font-size: 9pt">
                <td colspan="3" style="height: 28px; background-color: #ccffcc; text-align: center;">
                                <asp:Button ID="Button2" runat="server" Text="全部完成后生成代码" OnClick="Button2_Click" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
