<%@ control language="C#" autoeventwireup="true" inherits="UserControl_UploadImages, ShopWe" %>
<div class="come_title_3">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td style="width: 100px">
                <h2>
                    上传商品图片</h2>
            </td>
            <td>
                <div class="button_4" id="fileDiv">
                    <input type="file" size="1" runat="server" id="file1" class="files" onchange="createFile(this);HideDiv('ImagesTip');" />
                </div>
            </td>
            <td>
                <div class="title_help">
                    <a href="http://www.shopwe.cn/bbs/" target="_blank">
                        <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
                    <a href="http://help.shopwe.cn/video/AddGoods/AddGoods.htm" target="_blank">
                        <img src="../Themes/Default/Images/video_help.jpg" alt="shopwe视频教程" width="50" height="20" /></a>
                    <a href="http://help.shopwe.cn/help/Show.asp?id=46" target="_blank">
                        <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
            </td>
        </tr>
    </table>
</div>
<div class="k_all6">
    <div class="ys_bf_eeor" id="ImagesTip">
        <table>
            <tr>
                <td align="center" style="height: 30px">
                    请点击左上角的添加图片来添加商品相册图片。</td>
            </tr>
        </table>
    </div>
    <div class="din">
        <ul id="AddFiles">
            <!--<li><a href="#" class="blue">方的看法s方的看法s方的看法s</a>&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/x.jpg" alt="删除" /><a href="#" class="grey">删除</a></li>-->
        </ul>
    </div>
</div>
<div class="come_title_bai">
    <h2>
        上传的商品图片</h2>
</div>
<asp:Repeater ID="RepeaterGoodsImage" runat="server">
    <HeaderTemplate>
        <div class="k_all6">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
    </HeaderTemplate>
    <ItemTemplate>
        <div class="img_all">
            <div class="tu">
                <asp:Image ID="GoodsImage" runat="server" Width="54px" Height="54px" ImageUrl='<%# ImagePath.GetGoodsAllImagesDirectory + Eval("GoodsGuid") + "/" + Eval("SmallImageUrl") %>' />
            </div>
            <div class="img_button">
                <img src="../css/images/del_imgred.gif" alt="删除" /><asp:LinkButton ID="LinkButtonDeleteImage"
                    CommandArgument='<%# Eval("ID") %>' CommandName='DeleteGoodsImage' OnClick="DeleteImage_Click"
                    runat="server" CssClass="grey" CausesValidation="false">删除</asp:LinkButton>
            </div>
        </div>
    </ItemTemplate>
    <FooterTemplate>
        </td></tr> </table> </div>
    </FooterTemplate>
</asp:Repeater>
