<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProductPicBaseList.aspx.cs"
    Inherits="Admin_Product_ProductPicBaseList" EnableViewState="true" %>

<%@ Register Src="../Controls/EditionItem.ascx" TagName="EditionItem" TagPrefix="uc2" %>
<%@ Register Assembly="SnSee.Control" Namespace="SnSee.Control" TagPrefix="cc1" %>
<!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 id="Head1" runat="server">
    <title></title>
    <link href="../Stylesheet/Main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <ul class="tool">
            <li onmousemove="this.className='tool_li_ac'" onmouseout="this.className=''">
                <img src="../Images/icon_add.gif" width="14" height="14" align="absmiddle" />
                <a href="Product.aspx?ProductClassParentID=<%=ProductClassParentID %>" title="增加产品">增加产品</a></li>
            <li onmousemove="this.className='tool_li_ac'" onmouseout="this.className=''" id="boxDel"
                runat="server" visible="false">
                <img src="../Images/icon_del.gif" width="12" height="12" align="absmiddle" />
                <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click" OnClientClick="return confirm('当产品放入回收站时，同时将当前产品所在全部语言版本的产品也将放入回收站，确定要操作吗？')"
                    ToolTip="将当前产品放入回收站">放入回收站</asp:LinkButton></li>
            <li>
                <div class="tool_back">
                    <a href="javaScript:history.back(-1)">返回上一步</a></div>
            </li>
        </ul>
        <div class="main_body">
            <h1>
                <asp:Literal ID="litTitle" runat="server" Text="上传产品相关图片"></asp:Literal></h1>
            <div class="item">
                <ul class="item_list">
                    <li class="item_list_cell margin_left_2px">
                        <div>
                            <a href="Product.aspx?ID=<%=ProductBaseID %>&ProductClassParentID=<%=ProductClassParentID %>&EditionID=<%=EditionID %>">第一步：产品基本资料</a>
                        </div>
                    </li>
                    <li class="item_list_cell">
                        <div>
                            <a href="ProductEdition.aspx?ID=<%=ProductBaseID %>&ProductClassParentID=<%=ProductClassParentID %>&EditionID=<%=EditionID %>">第二步：填写产品不同语言版本资料</a>
                        </div>
                    </li>
                    <li class="item_list_cell_ac">
                        <div>
                            <a href="ProductPic.aspx?ID=<%=ProductBaseID %>&ProductClassParentID=<%=ProductClassParentID %>&EditionID=<%=EditionID %>">产品其它相关图片</a>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="item_body">
                <div class="ht">
                </div>
                <div class="item">
                    <ul class="item_list">
                        <li class="item_list_cell_ac margin_left_2px">
                            <div>
                                <a href="ProductPicBaseList.aspx?ID=<%=ProductBaseID %>&ProductClassParentID=<%=ProductClassParentID %>">相关图片基础资料列表</a>
                            </div>
                        </li>
                        <li>
                            <div>
                                <uc2:EditionItem ID="EditionItem2" runat="server" />
                            </div>
                        </li>
                        <li style="margin-left: 10px;">
                            <div>
                            </div>
                        </li>
                    </ul>
                    <li class="float_right font_bold"><a href="ProductPic.aspx?ID=<%=ProductBaseID %>&ProductClassParentID=<%=ProductClassParentID %>&EditionID=<%=EditionID %>&Ac=Pic">
                        + 增加图片</a>&nbsp;&nbsp;</li>
                </div>
                <div class="divbox2">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tbbox">
                        <tr>
                            <th width="20%">
                                产品图片
                            </th>
                            <asp:Repeater ID="rptEditionList" runat="server">
                                <ItemTemplate>
                                    <th>
                                        <%#Eval("EditionName")%>
                                    </th>
                                </ItemTemplate>
                            </asp:Repeater>
                            <th>
                                上传时间
                            </th>
                            <th width="7%">
                                操作
                            </th>
                        </tr>
                        <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand" OnItemDataBound="rptList_ItemDataBound">
                            <ItemTemplate>
                                <asp:Literal ID="litProductBaseID" runat="server" Text='<%#Eval("ProductBaseID")%>'
                                    Visible="false"></asp:Literal>
                                <asp:Literal ID="litID" runat="server" Text='<%#Eval("ID")%>' Visible="false"></asp:Literal>
                                <tr>
                                    <td align="center">
                                        <img src="<%#Eval("PicPath3") %>" width="80" border="0" />
                                    </td>
                                    <asp:Repeater ID="rptEditionList" runat="server" OnItemDataBound="rptEditionList_ItemDataBound">
                                        <ItemTemplate>
                                            <td align="center">
                                                <asp:HyperLink ID="hlkLink" runat="server"></asp:HyperLink>
                                            </td>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                    <td align="center">
                                        <%#Eval("CreateTime")%>
                                    </td>
                                    <td align="center">
                                        <a href="ProductPic.aspx?ID=<%#Eval("ProductBaseID")%>&ProductPicBaseID=<%#Eval("ID")%>&ProductClassParentID=<%=ProductClassParentID %>&EditionID=<%=EditionID%>&Ac=Pic"
                                            title="编辑当前产品图片">
                                            <img src="../images/icon_bj.gif" border="0" align="absmiddle" /></a>
                                        <asp:LinkButton ID="lbtnDel" runat="server" ToolTip="将当前图片彻底删除" CommandArgument='<%#Eval("ID")%>'
                                            CommandName="Delete_Command" OnClientClick="return confirm('确认将当前图片彻底删除吗？')"><img src="../images/icon_sc.gif" border="0" align="absmiddle" /></asp:LinkButton>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
                <div class="webpage">
                    <cc1:WebPage ID="WebPage1" runat="server" PageSize="20">
                    </cc1:WebPage>
                </div>
            </div>
            <div class="ht">
            </div>
            <ul class="ac_intro" runat="server" id="boxPageExplain">
                <li class="ac_intro_title">说明：</li>
                <li class="ac_intro_item">增加产品共分为三步，如下：</li>
                <li class="ac_intro_item">1. 上传产品基础资料；</li>
                <li class="ac_intro_item">2. 填写产品不同语言版本资料；</li>
                <li class="ac_intro_item">3. 产品如果存在其它相关图片，请在“产品其它相关图片”项上传图片；</li>
            </ul>
        </div>
    </form>
</body>
</html>
