<%@ control language="C#" autoeventwireup="true" inherits="ECMe_WebUserControl_Product_UploadImages, ECMe_Deploy" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<div class="title">
    上传商品相册
</div>
<div class="all_1">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td class="all">
                <div class="title_1">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="width: 65px; font-size: 12px">
                                <span style="width: 70px">选择图片：</span>
                            </td>
                            <td style="width: 320px">
                                <div id="fileDiv">
                                    <input type="file" size="1" runat="server" id="file1" name="file1" class="files" onchange="createFile(this);Show('ShowAddFiles')" />
                                </div>
                            </td>
                            <td style="font-size: 12px; color: #999999">
                                <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                商品相册可以上传jpg、png、gif等
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="Fast_group_labe" id="ShowAddFiles" style="display:none">
                    <div class="box">
                        <ul id="AddFiles">
                            <li class="tle_top"><span class="tle_withe_closs">相关操作</span><span class="tle_withe">图片路径</span></li>
                        </ul>
                        <div>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</div>
<div class="title">
    商品相册
</div>
<div class="all_1">
    <asp:UpdatePanel ID="UpdatePanelImg" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
                <tr>
                    <td valign="top" class="all">
                        <asp:Repeater ID="RepeaterTable" runat="server" OnItemCommand="RepeaterTable_ItemCommand">
                            <ItemTemplate>
                                <div class="photo">
                                    <p class="img">
                                        <asp:Image ID="IProductImg" ImageUrl='<%# Common.GetProductMultiSmallImg(int.Parse(Eval("ID").ToString())) %>'
                                            Width="54" Height="54" runat="server" />
                                    </p>
                                    <p>
                                        <asp:LinkButton ID="LDeleteItem" CommandArgument='<%# Eval("ID") %>' CssClass="blue"
                                            runat="server"  OnClientClick="return confirm('你真的要删除?');" CausesValidation="false">删除</asp:LinkButton>
                                    </p>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</div>
