<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Content_DownloadList_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_DownLoadList_Control.js"></script>
</head>
<body>
    <form id="FormControl" action="<%=getFormUrl %>?com=<%=com%>&naviid=<%=naviid %>&naviname=<%=naviname %>&downid=<%=downid %>" method="post" enctype="multipart/form-data">
<!-- 隐藏域 -->
<input id="downID_hide" name="downID_hide" type="hidden" value="<%=downid %>" />
<input id="naviid_hide" name="naviid_hide" type="hidden" value="<%=naviid %>" />
<input id="naviname_hide" name="naviname_hide" type="hidden" value="<%=naviname %>" />

<input id="downloadPic_hide" name="downloadPic_hide" type="hidden" value="<%=_downPic %>" />

<input id="downFileName_hide" name="downFileName_hide" type="hidden" value="<%=_downFileName %>" />
<input id="downFileSuffix_hide" name="downFileSuffix_hide" type="hidden" value="<%=_downFileSuffix %>" />
<input id="downFileSize_hide" name="downFileSize_hide" type="hidden" value="<%=_downFileSize %>" />
<input id="downFilePath_hide" name="downFilePath_hide" type="hidden" value="<%=_downFilePath %>" />

<input id="downTitleColor_hide" name="downTitleColor_hide" type="hidden" value="<%=_downTitleColor %>" />
<% string downPicSetID = ""; %>
<%if (_downloadPicDat.Rows.Count > 0) %>
<%{ %>
    <%for (int i = 0; i < _downloadPicDat.Rows.Count; i++) %>
    <%{ %>
        <% downPicSetID += _downloadPicDat.Rows[i]["id"].ToString() + ","; %>
    <%} %>
<%} %>
<input id="downloadPicSet_hide" name="downloadPicSet_hide" type="hidden" value="<%=downPicSetID %>" />

<!-- 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="downAdd_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="<%=_downTitleColor!=""?"color:"+_downTitleColor+";":"" %><%=_downTitleIsBlod==true?"font-weight:bold":"" %>" tabindex="1" id="downTitle_text" value="<%=_downTitle %>" class="isNull input300" name="downTitle_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="downTitleisbold_chk" name="downTitleisbold_chk" <%=_downTitleIsBlod==true?"checked=checked":"" %> type="checkbox" value="0" />加粗
                </label>
                <span class="point ico-remind V">名称样式控制</span>
            </p>
            <p>
                <label class="name">下载分类:</label> 
                <select id="downClass_select" name="downClass_select" tabindex="1" class="select">
                <option value="0">==请选择下载分类==</option>
                <% System.Data.DataTable _downclassDat = _downloadClassDat(naviid); %>
                <%for (int i = 0; i < _downclassDat.Rows.Count; i++) %>
                <%{ %>
                <option <%=_downClassID==_downclassDat.Rows[i]["id"].ToString()?"selected=selected":"" %> value="<%=_downclassDat.Rows[i]["id"].ToString() %>"><%=_downclassDat.Rows[i]["name"].ToString()%></option>
                <% System.Data.DataTable _downclassSonDat = _downloadClassSonDat(naviid, _downclassDat.Rows[i]["id"].ToString()); %>
                    <%for (int j = 0; j < _downclassSonDat.Rows.Count; j++) %>
                    <%{ %>
                    <option <%=_downClassID==_downclassSonDat.Rows[j]["id"].ToString()?"selected=selected":"" %> value="<%=_downclassSonDat.Rows[j]["id"].ToString() %>">&nbsp;&nbsp;└&nbsp;&nbsp;<%=_downclassSonDat.Rows[j]["name"].ToString()%></option>
                    <%} %>
                <%} %>
                </select>
                <span class="point ico-remind V">下载所属分类</span>
            </p>
            <p>
                <label class="name">上传文件:</label>
    
                    <div id="uploadFileSetBox" class="filebox f_left line22">
                    <%if (_downFilePath == "") %>
                    <%{ %>
                        <span class="G">上传文件：暂无文件</span><br />
                        <span class="G">文件支持：*</span><br />
                        <span class="V NoB">请点击右边按钮上传附件</span>
                    <%}else { %>
                        <span class="G">已上传：<%=_downFileName %> </span><br />
                        <span class="V NoB">文件大小：<%=_downFileSize %> Byte</span><br />
                        <a rel="delfile" class="R B underline" href="<%=_downFilePath %>">[删除]</a>
                    <%} %>
                    </div>
                    <span id="uploadMsg" class="point ico-remind V">上传文件</span><br />
                    <span class="uploadBtn"><input type="file" name="uploadImgBtn" id="uploadImgBtn" /></span>
                    <div class="clear-0"></div>
            </p>
            <p>
                <label class="name">允许下载:</label> 
                <select id="memberClass_select" name="memberClass_select" tabindex="1" class="select">
                <option value="0">==游客==</option>
                <%for (int i = 0; i < _memberClassDat.Rows.Count; i++) %>
                <%{ %>
                <option <%=_downMemberClassID==_memberClassDat.Rows[i]["id"].ToString()?"selected=selected":"" %> value="<%=_memberClassDat.Rows[i]["id"].ToString() %>"><%=_memberClassDat.Rows[i]["name"].ToString()%></option>
                <%} %>
                </select>
                <span class="point ico-remind V">设置允许下载该附件的会员类型</span>
            </p>
            <p>
                     <label class="name">下载介绍:</label> <span class="interval"><textarea name="downContent_txt" id="downContent_txt" class="isNull input400" tabindex="1" cols="" rows=""><%=_downContent%></textarea></span>
                </p>

            </div>

            <div id="tabDiv2">
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item1"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item1"]%>:</label>
                <input tabindex="1" id="downValue1" value="<%=_downValue1 %>" class="input300" name="downValue1" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item1"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item2"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item2"]%>:</label>
                <input tabindex="1" id="downValue2" value="<%=_downValue2 %>" class="input300" name="downValue2" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item2"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item3"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item3"]%>:</label>
                <input tabindex="1" id="downValue3" value="<%=_downValue3 %>" class="input300" name="downValue3" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item3"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item4"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item4"]%>:</label>
                <input tabindex="1" id="downValue4" value="<%=_downValue4 %>" class="input300" name="downValue4" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item4"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item5"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item5"]%>:</label>
                <input tabindex="1" id="downValue5" value="<%=_downValue5 %>" class="input300" name="downValue5" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item5"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item6"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item6"]%>:</label>
                <input tabindex="1" id="downValue6" value="<%=_downValue6 %>" class="input300" name="downValue6" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item6"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item7"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item7"]%>:</label>
                <input tabindex="1" id="downValue7" value="<%=_downValue7 %>" class="input300" name="downValue7" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item7"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item8"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item8"]%>:</label>
                <input tabindex="1" id="downValue8" value="<%=_downValue8 %>" class="input300" name="downValue8" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item8"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item9"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item9"]%>:</label>
                <input tabindex="1" id="downValue9" value="<%=_downValue9 %>" class="input300" name="downValue9" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item9"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item10"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item10"]%>:</label>
                <input tabindex="1" id="downValue10" value="<%=_downValue10 %>" class="input300" name="downValue10" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item10"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item11"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item11"]%>:</label>
                <input tabindex="1" id="downValue11" value="<%=_downValue11 %>" class="input300" name="downValue11" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item11"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item12"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item12"]%>:</label>
                <input tabindex="1" id="downValue12" value="<%=_downValue12 %>" class="input300" name="downValue12" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item12"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item13"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item13"]%>:</label>
                <input tabindex="1" id="downValue13" value="<%=_downValue13 %>" class="input300" name="downValue13" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item13"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item14"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item14"]%>:</label>
                <input tabindex="1" id="downValue14" value="<%=_downValue14 %>" class="input300" name="downValue14" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item14"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item15"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item15"]%>:</label>
                <input tabindex="1" id="downValue15" value="<%=_downValue15 %>" class="input300" name="downValue15" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item15"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item16"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item16"]%>:</label>
                <input tabindex="1" id="downValue16" value="<%=_downValue16 %>" class="input300" name="downValue16" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item16"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item17"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item17"]%>:</label>
                <input tabindex="1" id="downValue17" value="<%=_downValue17 %>" class="input300" name="downValue17" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item17"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item18"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item18"]%>:</label>
                <input tabindex="1" id="downValue18" value="<%=_downValue18 %>" class="input300" name="downValue18" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item18"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item19"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item19"]%>:</label>
                <input tabindex="1" id="downValue19" value="<%=_downValue19 %>" class="input300" name="downValue19" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item19"]%></span>
                </p>
                
                <p style="<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item20"]!="未命名"?"display:block":"display:none" %>">
                <label class="name"><%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item20"]%>:</label>
                <input tabindex="1" id="downValue20" value="<%=_downValue20 %>" class="input300" name="downValue20" type="text" />
                <span class="point ico-remind V">下载<%=EoyooCMS.CoreCalls.ModuleConfig.getDownLoadModule["item20"]%></span>
                </p>
            </div>
            <div id="tabDiv3">
                <p>
                <label class="name">封面图片:</label> 
                <span class="interval">

                            <%if (_downPic.IndexOf("/") >= 0) %>
                            <%{ %>
                            <img id="downloadImg_txt" class="small-border-images" src="<%=_downPic == "" ? "images/none-large-pic.gif" :  _downPic %>" />
                            <%}else {%>
                            <img id="downloadImg_txt" class="small-border-images" src="<%=_downPic == "" ? "images/none-large-pic.gif" : "../Upload/Insets/" + _downPic %>" />
                            <%} %>

                    
                </span>
                <span class="interval">
                    <span id="uploadSetMsg" class="point ico-remind V">下载封面</span><br />
                    <span class="uploadBtn"><input type="file" name="uploadImgSetBtn" id="uploadImgSetBtn" /></span>
                </span>
                </p>
                <div class="clear-8"></div>
                <p>
                    <label class="name">相关图片集:</label>
                    <ul id="uploadPicSetBox" class="upload_list">
                    <%if (_downloadPicDat.Rows.Count > 0) %>
                    <%{ %>
                        <%for (int i = 0; i < _downloadPicDat.Rows.Count; i++) %>
                        <%{ %>
                        <li>
                            <a class="del" rel="delPicSet" href="<%=_downloadPicDat.Rows[i]["id"].ToString() %>-<%=_downloadPicDat.Rows[i]["picpath"].ToString() %>">删</a>
                            <a class="fm" rel="fengPicSet" href="<%=_downloadPicDat.Rows[i]["picpath"].ToString() %>">封</a>
                            <img class="small-border-images" src="/Upload/Insets/<%=_downloadPicDat.Rows[i]["picpath"].ToString() %>" />
                            <div class="clear-6"></div>
                            <span class="E line16"><%=_downloadPicDat.Rows[i]["name"].ToString()%></span>
                        </li>
                        <%} %>
                    <%}%>
                    <li id="noneData" style="<%=_downloadPicDat.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="downAttribute1_chk" name="downAttribute1_chk" <%=_downAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />精品
                </label>
                <label class="checkbox">
                    <input id="downAttribute2_chk" name="downAttribute2_chk" <%=_downAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />推荐
                </label>
                <label class="checkbox">
                    <input id="downAttribute3_chk" name="downAttribute3_chk" <%=_downAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />置顶
                </label>
                <span class="point ico-remind V">下载属性设置</span>
                </p>

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

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