<%@ page language="C#" autoeventwireup="true" inherits="admin_product, aoshuosoft" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!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="admin.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript">
function sy()
{
if(document.getElementById("ms").value=="双语模式")
{
document.getElementById("ms").value="简体中文";
tbname.style.display="";
tbkeywords.style.display="";
tbdescription.style.display="";
tbmodel.style.display="";
tbspec.style.display="";
tbcolor.style.display="";
tbweight.style.display="";
tbprice.style.display="";
tbcontent.style.display="";
}
else
{
document.getElementById("ms").value="双语模式";
tbname.style.display="none";
tbkeywords.style.display="none";
tbdescription.style.display="none";
tbmodel.style.display="none";
tbspec.style.display="none";
tbcolor.style.display="none";
tbweight.style.display="none";
tbprice.style.display="none";
tbcontent.style.display="none";
}
}
function acadd()
{
one.style.display="";
two.style.display="";
ae.style.display="none";
}
</script>
<body>
    <form id="form1" runat="server">
    <div>
     <table border='0' width='100%' id='one' style="display:none;" >
      <tr height='150'>
      <td>      
      </td>
      </tr>
      </table>
      <table id='two' style="display:none;" align='center' cellspacing='1' border='0' bgcolor='#CCFF66'><tr bgcolor='#FFFF99'><td>
      <table  class='actionadd' border='0' height='30' bgcolor='#FFFF99' style="width: 365px">
         <tr style='font-size:12px;'><td style="text-align: right">
             <asp:Image ID="Image1" runat="server" ImageUrl="~/image/ac.gif" /></td><td>
             &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 请稍后，正在保存数据...</td></tr>
         </table></td></tr>
      </table>         
        <asp:Panel ID="addedit" runat="server" Width="100%" Visible="False">        
            <table id="ae" border="0" cellpadding="3" cellspacing="1" class="adminmaintable">
                <tr>
                    <td class="bt" colspan="2" style="text-align: center; height: 40px;">
                        <asp:Label ID="actionbt" runat="server" Text="" Width="179px"></asp:Label></td>
                </tr>
                 <tr>
                <td style="width: 76px">
                    模式选择：</td>
                <td>
                    <input id="ms" type="button" value="双语模式" onclick="sy()" /></td>
            </tr>
                <tr>
                    <td style="width: 76px">
                        产品属性：</td>
                    <td>
                        <asp:CheckBox ID="hot" runat="server" Text="热门" /><asp:CheckBox ID="commend" runat="server" Text="推荐" /></td>
                </tr>
                <tr>
                    <td>
                        产品分类：</td>
                    <td>
                        <asp:DropDownList ID="sort" runat="server" CssClass="downlist" >
                        </asp:DropDownList>
                        <asp:Literal ID="sortts" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <td>
                        产品名称：</td>
                    <td>
                        <asp:TextBox ID="name" runat="server" CssClass="textput" Width="260px"></asp:TextBox>*</td>
                </tr>
                <tr class="en" id="tbname" style="display:none;">
                    <td>
                        产品名称：<br />
                        （英文）</td>
                    <td>
                        <asp:TextBox ID="enname" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        产品关键词：<br />
                    </td>
                    <td>
                        <asp:TextBox ID="keywords" runat="server" CssClass="textput" Height="40px" TextMode="MultiLine"
                            Width="521px"></asp:TextBox></td>
                </tr>
                <tr class="en" id="tbkeywords" style="display:none;">
                    <td>
                        产品关键词：<br />
                        （英文）</td>
                    <td>
                        <asp:TextBox ID="enkeywords" runat="server" CssClass="textput" Height="40px" TextMode="MultiLine"
                            Width="521px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        产品描述：</td>
                    <td>
                        <asp:TextBox ID="description" runat="server" CssClass="textput" Height="40px" TextMode="MultiLine"
                            Width="521px"></asp:TextBox></td>
                </tr>
                <tr class="en" id="tbdescription" style="display:none;">
                    <td>
                        产品描述：<br />
                        （英文）</td>
                    <td>
                        <asp:TextBox ID="endescription" runat="server" CssClass="textput" Height="40px" TextMode="MultiLine"
                            Width="521px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        产品型号：</td>
                    <td>
                        <asp:TextBox ID="model" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>
                <tr class="en" id="tbmodel" style="display:none;">
                    <td>
                        产品型号：<br />
                        （英文）</td>
                    <td>
                        <asp:TextBox ID="enmodel" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        产品规格：</td>
                    <td>
                        <asp:TextBox ID="spec" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>
                <tr class="en" id="tbspec" style="display:none;">
                    <td>
                        产品规格：<br />
                        （英文）</td>
                    <td>
                        <asp:TextBox ID="enspec" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        产品颜色：</td>
                    <td>
                        <asp:TextBox ID="color" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>
                <tr class="en" id="tbcolor" style="display:none;">
                    <td>
                        产品颜色：<br />
                        （英文）</td>
                    <td>
                        <asp:TextBox ID="encolor" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        产品重量：</td>
                    <td>
                        <asp:TextBox ID="weight" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>
                <tr class="en" id="tbweight" style="display:none;">
                    <td>
                        产品重量：<br />
                        （英文）</td>
                    <td>
                        <asp:TextBox ID="enweight" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        产品价格：</td>
                    <td>
                        <asp:TextBox ID="price" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>
                <tr class="en" id="tbprice" style="display:none;">
                    <td>
                        产品价格：<br />
                        （英文）</td>
                    <td>
                        <asp:TextBox ID="enprice" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        生产日期：</td>
                    <td>
                        <asp:TextBox ID="date" runat="server" CssClass="textput" Width="260px"></asp:TextBox></td>
                </tr>                
                <tr>
                    <td>
                        详细简介：</td>
                    <td>
                        <FCKeditorV2:FCKeditor ID="content" runat="server" BasePath="~/FCKeditor/"
                            EnableSourceXHTML="true" EnableXHTML="true" Height="400px">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr class="en" id="tbcontent" style="display:none;">
                    <td>
                        详细简介：<br />
                        （英文）</td>
                    <td>
                        <FCKeditorV2:FCKeditor ID="encontent" runat="server" BasePath="~/FCKeditor/"
                            EnableSourceXHTML="true" EnableXHTML="true" Height="400px">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr>
                    <td>
                        首页图片：</td>
                    <td>
                        <asp:FileUpload ID="filepic" runat="server" Width="356px" />（只能上传.gif,.jpg格式图片）用于在首页的图片文章处显示
                    </td>
                </tr>
                <tr>
                   <td colspan="2">
                                       <asp:CheckBox ID="makewater" Checked="true" runat="server" Text="给文章内容里的图片加水印(在系统设置中开启水印功能才有效)" ForeColor="Blue" /></td>
               </tr>
               <tr>
                   <td style="width: 76px">
                       静态生成：</td>
                   <td>
                       <asp:CheckBox ID="html" Text="自动生成静态（当系统开启静态生成功能才有效）" runat="server" /></td>
               </tr>
                <tr>
                    <td style="width: 76px">
                        优先级别：</td>
                    <td>
                        <asp:TextBox ID="yxpx" runat="server" Text="0" Width="57px"></asp:TextBox>&nbsp;
                        数字越大排序越靠前（只有在<a href="list.aspx?action=product" target="adminmain">产品参数配置</a>中启用了优先排序才有效）</td>
                </tr>
                <tr>
                   <td style="width: 76px">
                       模板选择：</td>
                   <td>
                       <asp:DropDownList ID="kzmb" runat="server">
                       </asp:DropDownList>
                       <a href="kztemplet.aspx?action=add">点击这里添加扩展模板</a></td>
               </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <asp:Button ID="addproduct" runat="server" Text="添加" Width="80px" OnClick="addproduct_Click" OnClientClick="acadd()" />
                        <asp:Button ID="editproduct" runat="server" Text="修改" Width="80px" OnClick="editproduct_Click" OnClientClick="acadd()" /></td>
                </tr>
            </table>
            <asp:Literal ID="javaaction" runat="server"></asp:Literal></asp:Panel>
        <asp:Panel ID="product" runat="server"  Width="100%" Visible="False">
            <table class="adminhtmltable" border="0" cellpadding="1" cellspacing="1" >
                <tr>
                    <td style="height: 24px; background-color: #0099FF;color:#FFFFFF;font-weight:bold;">
                           产品分类</td>
                       <td  style="height: 24px;background-color: #0099FF;color:#FFFFFF;font-weight:bold;">
                           产品列表</td>
                </tr>
                <tr>
                    <td style="background-color:#ffffff;" valign="top">
                        <asp:TreeView ID="sorttree" runat="server" ShowLines="True">
                        </asp:TreeView>
                    </td>
                    <td style="background-color:#ffffff;" valign="top">
                        <asp:Literal ID="producttable" runat="server"></asp:Literal></td>
                </tr>
                 <tr>
                    <td class="bt" colspan="2" style=" height: 25px;">
                        <asp:Button ID="zk" runat="server" Text="全部展开" OnClick="zk_Click"  />
                        <asp:Button ID="ss" runat="server" Text="全部收缩" OnClick="ss_Click" /></td>
                </tr>
            </table>
        </asp:Panel>
       </div>
    </form>
</body>
</html>
