<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="video_admin_batchadd.aspx.cs" Inherits="JumbotCms.WebForm.Modules._video_admin_batchadd" %>
<%@ Register Assembly="JCmsLibs.FCKeditorV2" Namespace="JCmsLibs.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>
<meta   http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta   http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>视频批量录入</title>
<link   type="text/css" rel="stylesheet" href="../admin/css/common.css" />
<script type="text/javascript" src="../_libs/jquery.tools.pack.js"></script>
<script type="text/javascript" src="../_data/jcmsV4.x.js"></script>
<link   type="text/css" rel="stylesheet" href="../_data/jcmsV4.x.css" />
<link   type="text/css" rel="stylesheet" href="../admin/css/common.css" />
<script type="text/javascript">
var ccid = joinValue('ccid');
$(document).ready(function(){
	$('.tip-t').jtip({gravity: 't',fade: false});
	$('.tip-r').jtip({gravity: 'r',fade: false});
	$('.tip-b').jtip({gravity: 'b',fade: false});
	$('.tip-l').jtip({gravity: 'l',fade: false});
	$.formValidator.initConfig({onError:function(msg){alert(msg);}});
	$("#txtTitle").formValidator({tipid:"tipTitle",onshow:"*(星号)代表序号，例如：和谐花开神州美 */14",onfocus:"*(星号)代表序号，例如：和谐花开神州美 */14",oncorrect:"正确"}).InputValidator({min:6,onerror:"至少输入6个字符,请确认"});
	$("#txtSortRank").formValidator({tipid:"tipSortRank",onshow:"请填写数字",onfocus:"请填写数字",oncorrect:"正确"}).RegexValidator({regexp:"^\([0-9]+)$",onerror:"请填写数字"});
	$("#txtVideoUrl").formValidator({tipid:"tipVideoUrl",onshow:"每个视频地址之间用“$$$”分割",onfocus:"每个视频地址之间用“$$$”分割",oncorrect:"正确"}).InputValidator({min:1,onerror:"请确认视频地址"});

});
//插入预览附件地址
function AttachmentSelected(path,elementid)
{
	$("#"+elementid).val(path);
}
//插入上传视频
function AttachmentOperater(path){
	$("#txtVideoUrl").val(path);
}
var PhotoInput = 'txtImg';
function FillPhoto(photo){
    $('#'+PhotoInput).val(photo);
}
</script>
</head>
<body>
<form id="form1" runat="server" onsubmit="return jQuery.formValidator.PageIsValid('1')">
	<table class="formtable">
		<tr>
			<th> 视频名称格式 </th>
			<td>
				<asp:TextBox ID="txtTitle" runat="server" Width="600px" MaxLength="150" CssClass="ipt"></asp:TextBox><br />
				<span id="tipTitle" style="width:300px;"> </span>
			</td>
		</tr>
		<tr>
			<th>起始序号</th>
			<td><asp:TextBox ID="txtSortRank" runat="server" MaxLength="3" Width="40px" CssClass="ipt">1</asp:TextBox>
				<span id="tipSortRank" style="width:200px;"> </span></td>
		</tr>
		<tr>
			<th> 所属子类 </th>
			<td><asp:DropDownList ID="ddlClassId" runat="server"> </asp:DropDownList>
			</td>
		</tr>
		<tr style="display:none;">
			<th> 最低浏览权限 </th>
			<td><asp:DropDownList ID="ddlReadGroup" runat="server"> </asp:DropDownList>
			(此功能在静态生成的频道无效)
			</td>
		</tr>
		<tr>
			<th> 表演者 </th>
			<td><asp:TextBox ID="txtAuthor" runat="server" MaxLength="20" Width="240px" CssClass="ipt"></asp:TextBox>
				<span style="display:none;"><asp:TextBox ID="txtUserId" runat="server" CssClass="ipt">0</asp:TextBox>
				</span> </td>
		</tr>
		<tr style="display:none;">
			<th> 编辑员 </th>
			<td><asp:TextBox ID="txtEditor" runat="server" CssClass="ipt"></asp:TextBox></td>
		</tr>
		<tr style="display:none;">
			<th> 审核员 </th>
			<td><asp:TextBox ID="txtAuditor" runat="server" CssClass="ipt"></asp:TextBox></td>
		</tr>
		<tr>
			<th> 视频简介</th>
			<td><span class="tip-t" tip="html代码会被自动过滤，并只保留前200个字符"><asp:TextBox ID="txtSummary" runat="server" Height="97px" TextMode="MultiLine" Width="97%" CssClass="ipt"></asp:TextBox></span>
			</td>
		</tr>
		<tr>
			<th> 视频描述</th>
			<td><FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" ToolbarSet="Simple" Height="180px" Width="100%"> </FCKeditorV2:FCKeditor>
				<br />
				<asp:Label ID="txtContentMsg" runat="server" ForeColor="Red"></asp:Label>
			</td>
		</tr>
		<tr>
			<th> 视频地址</th>
			<td colspan="3"><asp:TextBox ID="txtPageSize" runat="server" Visible="false" CssClass="ipt">1</asp:TextBox>
				<asp:TextBox ID="txtVideoUrl" runat="server" Width="97%" Height="120" CssClass="ipt" TextMode="MultiLine"></asp:TextBox>
				<span id="tipVideoUrl" style="width:200px;"> </span></td>
		</tr>
		<tr>
			<th> 视频上传 </th>
			<td><iframe id="frm_upload" src="../admin/attachment_default2.aspx?ccid=<%=ChannelId %>" width="100%"
                    height="345" scrolling="no" frameborder="0"></iframe></td>
		</tr>
	</table>
	<div class="buttonok">
		<span id="spanIsEdit" style="display:<% =IsPower(ChannelId + "-04")?"":"none"%>"><asp:CheckBox ID="chkIsEdit" runat="server" Text="审核" /></span>
		<asp:Button ID="btnSave" runat="server" Text="确定" CssClass="btnsubmit" OnClick="btnSave_Click" />
		<input id="btnReset" type="button" value="取消" class="btncancel" onclick="parent.JumbotCms.Popup.hide();" />
	</div>
</form>
<script type="text/javascript">_jcms_SetDialogTitle();</script>
</body>
</html>
