<%@ Page Language="C#" MasterPageFile="~/Main.Master" EnableViewState="true" AutoEventWireup="true"
    CodeBehind="ProductImgList.aspx.cs" Inherits="OAWeb.crm.product.ProductImgList" %>

<%@ Register Src="../../UserControls/ProductNav.ascx" TagName="ProductNav" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <style type="text/css">
        .table_form .right
        {
            width: 150px;
        }
        .list .table_list th, .list .table_list td
        {
            line-height: 14px;
            height: 14px;
        }
    </style>
    <!--主体左侧-->
    <table id="plc_profile" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="main_left">
                <uc1:ProductNav ID="ProductNav1" runat="server" />
            </td>
            <td class="main_center">
                <!--主体-->
                <div class="page_main">
                    <div class="page_content">
                        <div class="div_pane bgColor01" style="border: solid 1px #ddd;">
                            <em style="float: left">
                                <img src="/images/01.gif" />
                            </em>商品相册 <span style="margin-left: 15px;">
                                <asp:FileUpload ID="FileUpload1" runat="server" />
                                <asp:Button ID="Button1" runat="server" Text="添加图片" OnClick="Button1_Click" CssClass="btn_77px" />
                            </span>
                        </div>
                        <div class="form" style="border: solid 1px #ddd; padding: 15px; border-top: none;
                            height: 500px;">
                            <asp:Repeater ID="rptAlbum" runat="server" OnItemCommand="rptAlbum_ItemCommand" OnItemDataBound="rptAlbum_ItemDataBound">
                                <ItemTemplate>
                                    <div style="border: 1px solid rgb(218, 218, 218); margin: 4px; padding: 2px; float: left;
                                        text-align: center; width: 150px; padding-bottom: 5px;">
                                        <br />
                                        <asp:Image ID="img" runat="server" Width="100" ImageUrl='<%# Eval("Small") %>' />
                                        <br />
                                        <br />
                                        <asp:LinkButton ID="lbtnDefault" runat="server" CommandArgument='<%#Eval("Id")%>'
                                            CommandName="SetDefault">设为主图</asp:LinkButton>
                                        <asp:Label ID="lblDefault" runat="server" Text="主图" Visible="false" ForeColor="Red" ></asp:Label>
                                        <span style=" margin-left:10px;">
                                            <asp:LinkButton ID="lbkbtnDel" CommandName="cmmdel" runat="server" CommandArgument='<%#Eval("Id")%>'
                                                OnClientClick="return confirm('确定要删除该图片！');">删除</asp:LinkButton>
                                        </span>
                                    </div>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
