<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Content_ProductList_Control" %>

<!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>
    <title><%=com == "add" ? "添加产品" : "编辑产品"%></title>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Plugin/Xheditor/xheditor.js"></script>
    <script type="text/javascript" src="Plugin/Uploadify/jquery.uploadify.min.js" ></script>
    <script type="text/javascript" src="Script/Eoyoo.FormControl.js"></script>
    <script type="text/javascript" src="Script/Content_ProductList_Control.js"></script>
</head>
<body>
    <form id="FormControl" action="<%=getFormUrl %>?com=<%=com%>&naviid=<%=naviid %>&naviname=<%=naviname %>&proid=<%=proid %>" method="post" enctype="multipart/form-data">
<!-- 隐藏域 -->
<input id="productID_hide" name="productID_hide" type="hidden" value="<%=proid %>" />
<input id="naviid_hide" name="naviid_hide" type="hidden" value="<%=naviid %>" />
<input id="naviname_hide" name="naviname_hide" type="hidden" value="<%=naviname %>" />
<input id="productPic_hide" name="productPic_hide" type="hidden" value="<%=_proPic %>" />
<input id="productTitleColor_hide" name="productTitleColor_hide" type="hidden" value="<%=_proTitleColor %>" />
<% string proPicSetID = ""; %>
<%if (_productPicDat.Rows.Count>0) %>
<%{ %>
    <%for (int i = 0; i < _productPicDat.Rows.Count; i++) %>
    <%{ %>
        <% proPicSetID += _productPicDat.Rows[i]["id"].ToString() + ","; %>
    <%} %>
<%} %>
<input id="productPicSet_hide" name="productPicSet_hide" type="hidden" value="<%=proPicSetID %>" />
<!-- end 隐藏域 -->


<div class="wrapper-div">
	<!-- 添加文章 -->
        <!-- 标 -->
                <div class="title1">
                    <div class="right">
                        <span class="title-ico f_right titico3 X"> Ctrl + S 快捷保存</span>
                        <span class="title-ico titico7 H B f_left m_right16"><%=com == "add" ? "添加产品" : "编辑产品"%> - <span class="NoB Q">[<%=naviname %>]</span></span>
    	                    <ul id="productAdd_Tab" class="tabs-2 f_left">
                                <li><a class="active" href="#tabDiv1">基本属性</a></li>
                                <li><a href="#tabDiv2">产品参数</a></li>
                                <li><a href="#tabDiv3">产品图片</a></li>
                                <li><a href="#tabDiv4">其他</a></li>
                            </ul>
                            <div class="clear-0"></div>
                    </div>
	            </div>
        <!-- end 标 -->

        <!-- 表单 -->
        <div class="tbox_form">
            
            <div id="tabDiv1">
            <p>
                <label class="name">产品名称:</label>
                <input style="<%=_proTitleColor!=""?"color:"+_proTitleColor+";":"" %><%=_proTitleIsBlod==true?"font-weight:bold":"" %>" tabindex="1" id="proicleTitle_text" value="<%=_proTitle %>" class="isNull input300" name="productTitle_text" type="text" />
                <span class="point ico-remind V">产品名称</span>
            </p>
            <p>
                <label class="name">名称样式:</label>
                <label id="colorBox" class="color">
                    <a title="设置标题为黑色" style="background:#000;" href="#000">黑色</a>
                    <a title="设置标题为红色" style="background:#f00;" href="#f00">红色</a>
                    <a title="设置标题为黄色" style="background:#f60;" href="#f60">黄色</a>
                    <a title="设置标题为蓝色" style="background:#03f;" href="#03f">蓝色</a>
                    <a title="设置标题为绿色" style="background:#090;" href="#090">绿色</a>
                    <a title="设置标题为紫色" style="background:#c09;" href="#c09">紫色</a>
                </label>
                <label class="checkbox">
            	    <input id="productTitleisbold_chk" name="productTitleisbold_chk" <%=_proTitleIsBlod==true?"checked=checked":"" %> type="checkbox" value="0" />加粗
                </label>
                <span class="point ico-remind V">名称样式控制</span>
            </p>

            <p>
                <label class="name">产品分类:</label> 
                <select id="productClass_select" name="productClass_select" tabindex="1" class="select isNull">
                <option value="0">==请选择产品分类==</option>
                <%foreach (System.Data.DataRow dat in _productClassDat(naviid).Rows) %>
                <%{ %>
                <option <%=dat["subnumber"].ToString()!="0"?"disabled=disabled":"" %>  <%=_proClassID==dat["id"].ToString()?"selected=selected":"" %> value="<%=dat["id"].ToString() %>"><%=dat["name"].ToString()%></option>
                    <%foreach (System.Data.DataRow sdat in _productClassSonDat(naviid, dat["id"].ToString()).Rows) %>
                    <%{ %>
                    <option <%=_proClassID==sdat["id"].ToString()?"selected=selected":"" %> value="<%=sdat["id"].ToString() %>">&nbsp;&nbsp;└&nbsp;&nbsp;<%=sdat["name"].ToString()%></option>
                    <%} %>
                <%} %>
                </select>
                <span class="point ico-remind V">产品所属分类</span>
            </p>

            <p>
                <label class="name">所属品牌:</label> 
                <select id="productBrand_select" name="productBrand_select" tabindex="1" class="select isNull">
                <option value="0">==请选择品牌==</option>

                <%foreach (System.Data.DataRow dat in _productBrandDat(naviid).Rows) %>
                <%{ %>
                <option <%=dat["subnumber"].ToString()!="0"?"disabled=disabled":"" %> <%=_proBrandID==dat["id"].ToString()?"selected=selected":"" %> value="<%=dat["id"].ToString() %>"><%=dat["name"].ToString()%></option>

                    <%foreach (System.Data.DataRow sdat in _productBrandSonDat(naviid, dat["id"].ToString()).Rows) %>
                    <%{ %>
                    <option <%=_proBrandID==sdat["id"].ToString()?"selected=selected":"" %> value="<%=sdat["id"].ToString() %>">&nbsp;&nbsp;└&nbsp;&nbsp;<%=sdat["name"].ToString()%></option>
                    <%} %>
                <%} %>

                </select>
                <span class="point ico-remind V">产品所属品牌</span>
            </p>
            <p>
                <label class="name">产品价格:</label>
                <input tabindex="1" id="proPrice_text" value="<%=_proPrice %>" class="isNumber input300" name="proPrice_text" type="text" />
                <span class="point ico-remind V">产品价格</span>
            </p>
            
            <p>
                 <label class="name">产品介绍:</label> <span class="interval"><textarea name="productContent_txt" id="productContent_txt" class="isNull input400" tabindex="1" cols="" rows=""><%=_proContent%></textarea></span>
            </p>

            </div>

            <div id="tabDiv2">
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item1"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item1"]%>:</label>
                <input tabindex="1" id="proValue1" value="<%=_proValue1 %>" class="input300" name="proValue1" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item1"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item2"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item2"]%>:</label>
                <input tabindex="1" id="proValue2" value="<%=_proValue2 %>" class="input300" name="proValue2" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item2"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item3"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item3"]%>:</label>
                <input tabindex="1" id="proValue3" value="<%=_proValue3 %>" class="input300" name="proValue3" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item3"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item4"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item4"]%>:</label>
                <input tabindex="1" id="proValue4" value="<%=_proValue4 %>" class="input300" name="proValue4" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item4"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item5"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item5"]%>:</label>
                <input tabindex="1" id="proValue5" value="<%=_proValue5 %>" class="input300" name="proValue5" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item5"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item6"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item6"]%>:</label>
                <input tabindex="1" id="proValue6" value="<%=_proValue6 %>" class="input300" name="proValue6" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item6"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item7"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item7"]%>:</label>
                <input tabindex="1" id="proValue7" value="<%=_proValue7 %>" class="input300" name="proValue7" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item7"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item8"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item8"]%>:</label>
                <input tabindex="1" id="proValue8" value="<%=_proValue8 %>" class="input300" name="proValue8" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item8"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item9"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item9"]%>:</label>
                <input tabindex="1" id="proValue9" value="<%=_proValue9 %>" class="input300" name="proValue9" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item9"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item10"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item10"]%>:</label>
                <input tabindex="1" id="proValue10" value="<%=_proValue10 %>" class="input300" name="proValue10" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item10"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item11"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item11"]%>:</label>
                <input tabindex="1" id="proValue11" value="<%=_proValue11 %>" class="input300" name="proValue11" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item11"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item12"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item12"]%>:</label>
                <input tabindex="1" id="proValue12" value="<%=_proValue12 %>" class="input300" name="proValue12" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item12"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item13"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item13"]%>:</label>
                <input tabindex="1" id="proValue13" value="<%=_proValue13 %>" class="input300" name="proValue13" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item13"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item14"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item14"]%>:</label>
                <input tabindex="1" id="proValue14" value="<%=_proValue14 %>" class="input300" name="proValue14" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item14"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item15"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item15"]%>:</label>
                <input tabindex="1" id="proValue15" value="<%=_proValue15 %>" class="input300" name="proValue15" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item15"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item16"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item16"]%>:</label>
                <input tabindex="1" id="proValue16" value="<%=_proValue16 %>" class="input300" name="proValue16" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item16"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item17"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item17"]%>:</label>
                <input tabindex="1" id="proValue17" value="<%=_proValue17 %>" class="input300" name="proValue17" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item17"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item18"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item18"]%>:</label>
                <input tabindex="1" id="proValue18" value="<%=_proValue18 %>" class="input300" name="proValue18" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item18"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item19"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item19"]%>:</label>
                <input tabindex="1" id="proValue19" value="<%=_proValue19 %>" class="input300" name="proValue19" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item19"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item20"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item20"]%>:</label>
                <input tabindex="1" id="proValue20" value="<%=_proValue20 %>" class="input300" name="proValue20" type="text" />
                <span class="point ico-remind V">产品<%=EoyooCMS.CoreCalls.ModuleConfig.getProductModule["item20"]%></span>
                </p>
            </div>
            <div id="tabDiv3">
                <p>
                <label class="name">封面图片:</label> 
                <span class="interval">
                    <%if (_proPic.ToString().IndexOf("/") >= 0) %>
                    <%{ %>
                    <img id="productImg_txt" class="small-border-images" src="<%=_proPic == "" ? "images/none-large-pic.gif" : _proPic %>" />
                    <%}else {%>
                    <img id="productImg_txt" class="small-border-images" src="<%=_proPic == "" ? "images/none-large-pic.gif" : "../Upload/Insets/" + _proPic %>" />
                    <%} %>
                    
                </span>
                <span class="interval">
                    <span id="uploadMsg" class="point ico-remind V">产品缩略图</span><br />
                    <span class="uploadBtn"><input type="file" name="uploadImgBtn" id="uploadImgBtn" /></span>
                </span>
                </p>
                <div class="clear-8"></div>
                <p>
                    <label class="name">产品图片集:</label>
                    <ul id="uploadPicSetBox" class="upload_list">
                    <%if (_productPicDat.Rows.Count > 0) %>
                    <%{ %>
                        <%for (int i = 0; i < _productPicDat.Rows.Count; i++) %>
                        <%{ %>
                        <li>
                            <a class="del" rel="delPicSet" href="<%=_productPicDat.Rows[i]["id"].ToString() %>-<%=_productPicDat.Rows[i]["picpath"].ToString() %>">删</a>
                            <a class="fm" rel="fengPicSet" href="<%=_productPicDat.Rows[i]["picpath"].ToString() %>">封</a>
                            <img class="small-border-images" src="/Upload/Insets/<%=_productPicDat.Rows[i]["picpath"].ToString() %>" />
                            <div class="clear-6"></div>
                            <span class="E line16"><%=_productPicDat.Rows[i]["name"].ToString()%></span>
                        </li>
                        <%} %>
                    <%}%>
                    <li id="noneData" style="<%=_productPicDat.Rows.Count == 0 ? "display:block" : "display:none"%>" class="line18">暂无数据</li>
                    </ul>
                </p> 
                <div class="clear-6"></div>
            </div>
            <div id="tabDiv4">
                <p>
                <label class="name">内容属性:</label>

                <label class="checkbox">
            	    <input id="productAttribute1_chk" name="productAttribute1_chk" <%=_proAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />精品
                </label>
                <label class="checkbox">
                    <input id="productAttribute2_chk" name="productAttribute2_chk" <%=_proAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />推荐
                </label>
                <label class="checkbox">
                    <input id="productAttribute3_chk" name="productAttribute3_chk" <%=_proAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />置顶
                </label>
                <span class="point ico-remind V">产品属性设置</span>
                </p>
                <p>
                <label class="name"><span class="R">网址跳转:</span></label> <input tabindex="1" id="proJump_text" value="<%=_proJump%>" class="isUrl input200" name="proJump_text" type="text" />
                <span class="point ico-remind V">设置产品网址跳转选项,访问将直接跳转指定的网址,取消则留空</span>
            </p>
                <p>
                <label class="name">推广词语:</label> <textarea name="productkey_text" id="productkey_text" class="input400" tabindex="1" cols="" rows=""><%=_proKey%></textarea>
                <span class="point ico-remind V">SEO优化推广关键词</span>
                </p>

                <p>
                <label class="name">推广描述:</label> <textarea name="productDescription_text" id="productDescription_text" class="input400" tabindex="1" cols="" rows=""><%=_proDescription%></textarea>
                <span class="point ico-remind V">SEO优化推广描述说明</span>
                </p>

            </div>
            <hr />
            <p>
                <label class="name">&nbsp;</label>
                <input type="submit" class="bule-btn f_left m_right4 W" value="确定保存" /> 
                <span></span>
            </p>
        </div>
        <!-- end 表单 -->
    <!-- end 添加文章 -->
</div>
    </form>
</body>
</html>
