<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Content_PicList_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 name="Author" content="EoyooCMS" />
    <meta name="Copyright" content="eoyoo.com" />
    <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_PicList_Control.js"></script>
    
</head>
<body>
    <form id="FormControl" action="<%=getFormUrl %>?com=<%=com%>&naviid=<%=naviid %>&naviname=<%=naviname %>&picid=<%=picid %>" method="post" enctype="multipart/form-data">
<!-- 隐藏域 -->
<input id="picID_hide" name="picID_hide" type="hidden" value="<%=picid %>" />
<input id="naviid_hide" name="naviid_hide" type="hidden" value="<%=naviid %>" />
<input id="naviname_hide" name="naviname_hide" type="hidden" value="<%=naviname %>" />
<input id="picPic_hide" name="picPic_hide" type="hidden" value="<%=_picPic %>" />
<input id="picTitleColor_hide" name="picTitleColor_hide" type="hidden" value="<%=_picTitleColor %>" />


<% string picPicSetID = ""; %>
<%if (_picPicDat.Rows.Count > 0) %>
<%{ %>
    <%for (int i = 0; i < _picPicDat.Rows.Count; i++) %>
    <%{ %>
        <% picPicSetID += _picPicDat.Rows[i]["id"].ToString() + ","; %>
    <%} %>
<%} %>
<input id="picPicSet_hide" name="picPicSet_hide" type="hidden" value="<%=picPicSetID %>" />

<!-- 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="picAdd_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="<%=_picTitleColor!=""?"color:"+_picTitleColor+";":"" %><%=_picTitleIsBlod==true?"font-weight:bold":"" %>" tabindex="1" id="picTitle_text" value="<%=_picTitle %>" class="isNull input300" name="picTitle_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="picTitleisbold_chk" name="picTitleisbold_chk" <%=_picTitleIsBlod==true?"checked=checked":"" %> type="checkbox" value="0" />加粗
                </label>
                <span class="point ico-remind V">名称样式控制</span>
            </p>
            <p>
                 <label class="name">图册介绍:</label> <span class="interval"><textarea name="picContent_txt" id="picContent_txt" class="isNull input400" tabindex="1" cols="" rows=""><%=_picContent%></textarea></span>
            </p>

            </div>

            <div id="tabDiv2">
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item1"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item1"]%>:</label>
                <input tabindex="1" id="picValue1" value="<%=_picValue1 %>" class="input300" name="picValue1" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item1"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item2"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item2"]%>:</label>
                <input tabindex="1" id="picValue2" value="<%=_picValue2 %>" class="input300" name="picValue2" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item2"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item3"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item3"]%>:</label>
                <input tabindex="1" id="picValue3" value="<%=_picValue3 %>" class="input300" name="picValue3" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item3"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item4"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item4"]%>:</label>
                <input tabindex="1" id="picValue4" value="<%=_picValue4 %>" class="input300" name="picValue4" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item4"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item5"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item5"]%>:</label>
                <input tabindex="1" id="picValue5" value="<%=_picValue5 %>" class="input300" name="picValue5" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item5"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item6"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item6"]%>:</label>
                <input tabindex="1" id="picValue6" value="<%=_picValue6 %>" class="input300" name="picValue6" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item6"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item7"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item7"]%>:</label>
                <input tabindex="1" id="picValue7" value="<%=_picValue7 %>" class="input300" name="picValue7" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item7"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item8"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item8"]%>:</label>
                <input tabindex="1" id="picValue8" value="<%=_picValue8 %>" class="input300" name="picValue8" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item8"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item9"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item9"]%>:</label>
                <input tabindex="1" id="picValue9" value="<%=_picValue9 %>" class="input300" name="picValue9" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item9"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item10"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item10"]%>:</label>
                <input tabindex="1" id="picValue10" value="<%=_picValue10 %>" class="input300" name="picValue10" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item10"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item11"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item11"]%>:</label>
                <input tabindex="1" id="picValue11" value="<%=_picValue11 %>" class="input300" name="picValue11" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item11"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item12"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item12"]%>:</label>
                <input tabindex="1" id="picValue12" value="<%=_picValue12 %>" class="input300" name="picValue12" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item12"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item13"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item13"]%>:</label>
                <input tabindex="1" id="picValue13" value="<%=_picValue13 %>" class="input300" name="picValue13" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item13"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item14"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item14"]%>:</label>
                <input tabindex="1" id="picValue14" value="<%=_picValue14 %>" class="input300" name="picValue14" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item14"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item15"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item15"]%>:</label>
                <input tabindex="1" id="picValue15" value="<%=_picValue15 %>" class="input300" name="picValue15" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item15"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item16"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item16"]%>:</label>
                <input tabindex="1" id="picValue16" value="<%=_picValue16 %>" class="input300" name="picValue16" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item16"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item17"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item17"]%>:</label>
                <input tabindex="1" id="picValue17" value="<%=_picValue17 %>" class="input300" name="picValue17" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item17"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item18"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item18"]%>:</label>
                <input tabindex="1" id="picValue18" value="<%=_picValue18 %>" class="input300" name="picValue18" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item18"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item19"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item19"]%>:</label>
                <input tabindex="1" id="picValue19" value="<%=_picValue19 %>" class="input300" name="picValue19" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item19"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item20"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item20"]%>:</label>
                <input tabindex="1" id="picValue20" value="<%=_picValue20 %>" class="input300" name="picValue20" type="text" />
                <span class="point ico-remind V">图册<%=EoyooCMS.CoreCalls.ModuleConfig.getPicModuleItem["item20"]%></span>
                </p>
            </div>
            <div id="tabDiv3">
            <p>
                <label class="name">图册封面:</label> 
                <span class="interval">
                    <%if (_picPic.ToString().IndexOf("/") >= 0) %>
                    <%{ %>
                    <img id="picImg_txt" class="small-border-images" src="<%=_picPic == "" ? "images/none-large-pic.gif" : _picPic %>" />
                    <%} else {%>
                    <img id="picImg_txt" class="small-border-images" src="<%=_picPic == "" ? "images/none-large-pic.gif" : "../Upload/Insets/" + _picPic %>" />
                    <%} %>
                </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 (_picPicDat.Rows.Count > 0) %>
                    <%{ %>
                        <%for (int i = 0; i < _picPicDat.Rows.Count; i++) %>
                        <%{ %>
                        <li>
                            <a class="del" rel="delPicSet" href="<%=_picPicDat.Rows[i]["id"].ToString() %>-<%=_picPicDat.Rows[i]["picpath"].ToString() %>">删</a>
                            <a class="fm" rel="fengPicSet" href="<%=_picPicDat.Rows[i]["picpath"].ToString() %>">封</a>
                            <img class="small-border-images" src="/Upload/Insets/<%=_picPicDat.Rows[i]["picpath"].ToString() %>" />
                            <div class="clear-6"></div>
                            <span class="E line16"><%=_picPicDat.Rows[i]["name"].ToString()%></span>
                        </li>
                        <%} %>
                    <%}%>
                    <li id="noneData" style="<%=_picPicDat.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"><span class="R">网址跳转:</span></label> <input tabindex="1" id="picJump_text" value="<%=_picJump%>" class="isUrl input200" name="picJump_text" type="text" />
                <span class="point ico-remind V">设置图册网址跳转选项,访问将直接跳转指定的网址,取消则留空</span>
                </p>
                <p>
                <label class="name">内容属性:</label>

                <label class="checkbox">
            	    <input id="picAttribute1_chk" name="picAttribute1_chk" <%=_picAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />精品
                </label>
                <label class="checkbox">
                    <input id="picAttribute2_chk" name="picAttribute2_chk" <%=_picAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />推荐
                </label>
                <label class="checkbox">
                    <input id="picAttribute3_chk" name="picAttribute3_chk" <%=_picAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />置顶
                </label>
                <span class="point ico-remind V">图册属性设置</span>
                </p>

                <p>
                <label class="name">推广词语:</label> <textarea name="pickey_text" id="pickey_text" class="input400" tabindex="1" cols="" rows=""><%=_picKey%></textarea>
                <span class="point ico-remind V">SEO优化推广关键词</span>
                </p>

                <p>
                <label class="name">推广描述:</label> <textarea name="picDescription_text" id="picDescription_text" class="input400" tabindex="1" cols="" rows=""><%=_picDescription%></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>
