<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Content_VideoList_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_VideoList_Control.js"></script>
    <script src="/Plugin/flowplayer/flowplayer-3.2.11.min.js" type="text/javascript"></script>
</head>
<body>
    <form id="FormControl" action="<%=getFormUrl %>?com=<%=com%>&naviid=<%=naviid %>&naviname=<%=naviname %>&videoid=<%=videoid %>" method="post" enctype="multipart/form-data">
<!-- 隐藏域 -->
<input id="videoID_hide" name="videoID_hide" type="hidden" value="<%=videoid %>" />
<input id="naviid_hide" name="naviid_hide" type="hidden" value="<%=naviid %>" />
<input id="naviname_hide" name="naviname_hide" type="hidden" value="<%=naviname %>" />

<input id="videoPic_hide" name="videoPic_hide" type="hidden" value="<%=_videoPic %>" />

<input id="videoPath_hide" name="videoPath_hide" type="hidden" value="<%=_videoPath %>" />

<!-- end 隐藏域 -->


<div class="wrapper-div">
    <!-- 弹出框 -->
    <div id="ouBox" class="ouBox">
        <a class="close" title="关闭" href="#"></a>
        <div class="video"></div>
    </div>
    <!-- end 弹出框 -->
	<!-- 添加视频 -->
        <!-- 标 -->
                <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="videoAdd_Tab" class="tabs-2 f_left">
                                <li><a class="active" href="#tabDiv1">基本属性</a></li>
                                <li><a href="#tabDiv2">其他</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="<%=_videoTitleColor!=""?"color:"+_videoTitleColor+";":"" %><%=_videoTitleIsBlod==true?"font-weight:bold":"" %>" tabindex="1" id="videoTitle_text" value="<%=_videoTitle %>" class="isNull input300" name="videoTitle_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="videoTitleisbold_chk" name="videoTitleisbold_chk" <%=_videoTitleIsBlod==true?"checked=checked":"" %> type="checkbox" value="0" />加粗
                </label>
                <span class="point ico-remind V">名称样式控制</span>
            </p>
            <p>
                <label class="name">视频缩略图:</label> 
                <span class="interval">

                <%if (_videoPic.ToString().IndexOf("/") >= 0) %>
                <%{ %>
                    <img id="videoImg_txt" class="small-border-images" src="<%=_videoPic == "" ? "images/none-large-pic.gif" : _videoPic  %>" />
                <%}else{ %>
                    <img id="videoImg_txt" class="small-border-images" src="<%=_videoPic == "" ? "images/none-large-pic.gif" : "../Upload/video_pic/" + _videoPic  %>" />
                <%} %>
                
                </span>
                <span class="interval">
                <span id="uploadPicMsg" class="point ico-remind V">缩略图上传</span><br />
                <span class="uploadBtn"><input type="file" name="uploadPicBtn" id="uploadPicBtn" /></span>
                </span>
            </p>

            <p>
                <label class="name">视频上传:</label>
                
                
                <div id="uploadFileSetBox" class="filebox f_left line22">
                    <%if (_videoPath == "") %>
                    <%{ %>
                        <span class="G">请点击右边按钮上传视频</span><br />
                        <span class="G">文件支持：flv</span><br />
                        <span class="V NoB">如视频格式非flv，推荐视频转换工具 <a target="_blank" class="Q underline" href="http://www.baidu.com/s?wd=格式工厂">下载</a></span>
                    <%}else { %>
                        <span class="G">已上传了一个视频文件</span><br />
                        <span class="G">文件名：<%=_videoPath %></span><br />
                        <%if (_videoPath.ToString().IndexOf("/") >= 0) %>
                        <%{ %>
                            <a rel="playvideo" class="Q B underline" href="<%=_videoPath %>">[播放视频]</a>
                        <%}else{ %>
                            <a rel="playvideo" class="Q B underline" href="/Upload/Video/<%=_videoPath %>">[播放视频]</a>
                        <%} %>
                        
                        <a rel="delvideo" class="R B underline" href="<%=_videoPath %>">[删除视频]</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>
                <label class="checkbox">
            	    <input id="videoAutoplay_chk" name="videoAutoplay_chk" <%=_videoAutoplay==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="videoContent_txt" id="videoContent_txt" class="isNull input400" tabindex="1" cols="" rows=""><%=_videoContent%></textarea></span>
                </p>

            </div>
            <div id="tabDiv2">
                <p>
                <label class="name">内容属性:</label>

                <label class="checkbox">
            	    <input id="videoAttribute1_chk" name="videoAttribute1_chk" <%=_videoAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />精品
                </label>
                <label class="checkbox">
                    <input id="videoAttribute2_chk" name="videoAttribute2_chk" <%=_videoAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />推荐
                </label>
                <label class="checkbox">
                    <input id="videoAttribute3_chk" name="videoAttribute3_chk" <%=_videoAttribute1==true?"checked=checked":"" %> type="checkbox" value="0" />置顶
                </label>
                <span class="point ico-remind V">视频属性设置</span>
                </p>

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

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