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

<!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/Main.css" rel="stylesheet" type="text/css" />

    <script src="../Javascript/Common.js" type="text/javascript" language="JavaScript"></script>

</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_ac 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" id="boxProductOtherPic" runat="server">
                        <div>
                            <a href="ProductPic.aspx?ID=<%=ProductBaseID %>&ProductClassParentID=<%=ProductClassParentID %>&EditionID=<%=EditionID %>">产品其它相关图片</a>
                        </div>
                    </li>
                </ul>
            </div>
            <div class="item_body">
                <ul class="item_body_list" id="item_body_list">
                    <asp:Panel ID="pnlPicPath1" runat="server">
                        <li><span class="item_body_list_left">
                            产品大图：</span> <span class="item_body_list_right">
                            <asp:FileUpload ID="fuPicPath1" runat="server" Width="380px" /> <asp:Literal ID="litMustProductPicPath1" runat="server">*</asp:Literal>
                            (尺寸：<%=SnSee.Config.ProductConfig.ProductPicPath1Width%>×<%=SnSee.Config.ProductConfig.ProductPicPath1Height%>)
                        </span></li>
                        <li><span class="item_body_list_left">自动生成：</span><span class="item_body_list_right">
                            <asp:CheckBox ID="chkIsMakeProductPicPath1" runat="server" Text="自动生成大图" CssClass="input_no" />
                            <asp:CheckBox ID="chkIsMakeProductPicPath2" runat="server" Text="自动生成中图" CssClass="input_no"
                                onclick="ShowObject(this, 'pnlPicPath2')" />
                            <asp:CheckBox ID="chkIsMakeProductPicPath3" runat="server" Text="自动生成小图" CssClass="input_no"
                                onclick="ShowObject(this, 'pnlPicPath3')" />
                            (注：自动生成图片时将会按照系统设置的尺寸生成，生成的图片有质量损失) </span></li>
                        <li runat="server" id="boxPicPath1" visible="false" style="height: 150px; overflow: scroll;
                            width: 680px;">
                            <asp:Image ID="imgPicPath1" runat="server" /></li>
                    </asp:Panel>
                    <asp:Panel ID="pnlPicPath2" runat="server">
                        <li><span class="item_body_list_left">产品中图：</span> <span class="item_body_list_right">
                            <asp:FileUpload ID="fuPicPath2" runat="server" Width="380px" /> <asp:Literal ID="litMustProductPicPath2" runat="server">*</asp:Literal>
                            (尺寸：<%=SnSee.Config.ProductConfig.ProductPicPath2Width%>×<%=SnSee.Config.ProductConfig.ProductPicPath2Height%>)
                        </span></li>
                        <li runat="server" id="boxPicPath2" visible="false" style="height: 150px; overflow: scroll;
                            width: 680px;">
                            <asp:Image ID="imgPicPath2" runat="server" /></li>
                    </asp:Panel>
                    <asp:Panel ID="pnlPicPath3" runat="server">
                        <li><span class="item_body_list_left">产品小图：</span> <span class="item_body_list_right">
                            <asp:FileUpload ID="fuPicPath3" runat="server" Width="380px" /> <asp:Literal ID="litMustProductPicPath3" runat="server">*</asp:Literal>
                            (尺寸：<%=SnSee.Config.ProductConfig.ProductPicPath3Width%>×<%=SnSee.Config.ProductConfig.ProductPicPath3Height%>)
                        </span></li>
                        <li runat="server" id="boxPicPath3" visible="false" style="height: 150px; overflow: scroll;
                            width: 680px;">
                            <asp:Image ID="imgPicPath3" runat="server" /></li>
                    </asp:Panel>
                </ul>
                <div class="padding8px align_center font_bold ht_color">
                    <asp:LinkButton ID="lbtnOk" runat="server" CssClass="btn_bg" OnClick="lbtnOk_Click">保存产品其本资料，进入下一步：填写产品不同语言版本资料</asp:LinkButton></div>
            </div>
            <div class="ht">
            </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>

        <script language="javascript" type="text/javascript">
        LiColor("item_body_list");
        </script>

    </form>
</body>
</html>
