<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Include/Connect.asp"-->
<!--#include file="FCKeditor/fckeditor.asp" -->
<%
Username=Checkstr(request.querystring("Username"))
if Username="" then
response.end()
end if

if session("username") <> Username then
response.write("你没有权限！")
response.redirect("../default.asp")
response.end()
end if
%>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../CSS/Hompy/hompy.css" type=text/css rel=stylesheet>
<title></title>
<script language="JavaScript">
function insertSmiley(smiley){
if(document.addphoto.content.createTextRange){
document.addphoto.content.focus();
document.selection.createRange().duplicate().text=smiley;
}else{
document.addphoto.content.value+=smiley;
}
}
</script>
<SCRIPT language="javascript">
<!--
function formcheck()
{
    if(addvideo.videosysgroup.value =="")
	{
	    alert("请选择视频分类！");
		addvideo.videosysgroup.focus();
	}
　else if(addvideo.topic.value == "")
	{
		alert("请填写视频标题！");
		addvideo.topic.focus();
	}
　else if(addvideo.filename.value == "")
	{
		alert("请上传文件！");
	}
	else if(addvideo.content.value == "")
	{
		alert("请填写视频简介！");
		addvideo.content.focus();
	}
	else
	{
		document.addvideo.submit();
	}

}
//-->
</SCRIPT>
</head>
<body  oncontextmenu="window.event.returnValue=false" onselectstart="return false">
<TABLE cellSpacing=0 cellPadding=0 width=473 border=0>
  <TBODY>
    <TR> 
      <TD height=33 valign="top"> 
        <div align="center"> 
          <table width="97%" border="0" cellspacing="0" cellpadding="0">
            <TR> 
              <TD width="397" height=25 class="orange2_b">上传视频</TD>
              <TD width="62" class=font_gray9b>&nbsp;</TD>
            </TR>
            <TR> 
              <TD height=1 colspan="2" bgColor=#dddddd></TD>
            </TR>
          </table>
        </div></TD>
    </TR>
    <TR> 
      <TD height=24><div align="center"> 
<table width="97%"  border="0" cellspacing="0" cellpadding="0">
<form name="addvideo" action="upload_video_save.asp" method="post" >
<input name="filename" type="hidden" value="">
  <tr>
    <td><TABLE cellSpacing=0 cellPadding=0 width=97% border=0>
                    <TBODY>
                    <TR>
                      <TD 
                      style="BORDER-RIGHT: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid" 
                      bgColor=#bcbcbc height=1></TD></TR>
                    <TR>
                        <TD 
                      style="BORDER-RIGHT: #bcbcbc 1px solid; BORDER-LEFT: #bcbcbc 1px solid" 
                      align=middle> <table cellspacing=0 cellpadding=0 width=458 border=0>
                            <tbody>
                              <tr> 
                                <td width=59 height=28> <div align=center>视频分类</div></td>
                                <td width=263><select name=videosysgroup>
                                    <option value="" selected>请选择系统视频分类</option>
<%
set rs = server.CreateObject("adodb.recordset")
sql="select * from Show5_VideoSysGroup order by GroupID"
rs.open sql,cn
do while not rs.eof
%> 
                                <OPTION value=<%=rs("GroupID")%>><%=rs("Groupname")%></OPTION>
<%
rs.movenext
loop
%>
                                  </select></td>
                              </tr>
                              <tr> 
                                <td class=li_x_02 colspan=3 height=1></td>
                              </tr>
                              <tr> 
                                <td width=59 height=28> <div align=center>标题</div></td>
                                <td width=263><input class=input id=topic 
                              style="WIDTH: 240px; HEIGHT: 21px" maxlength=30 
                              name=topic> </td>
                              </tr>
                              <tr> 
                                <td class=li_x_02 colspan=3 height=1></td>
                              </tr>
                              <tr> 
                                <td width=59 height=28><div align=center>文件</div></td>
                                <td width=263><iframe border="0" frameborder="0" framespacing="0" height="23" marginheight="0" marginwidth="0" scrolling="No" width="269" vspale="0" src="upload_video_f.asp"></iframe></td>
                                <td width="136" class=p9><input class=input id=filename_f style="border:0px solid; width:135px;color:#ff0000" maxlength=30 name=filename_f readonly></td>
                              </tr>
                              <tr> 
                                <td class=li_x_02 colspan=3 height=1></td>
                              </tr>
                              <tr> 
                                <td width=59 height=35> <div align=center></div></td>
                                <td colspan="2" style="LINE-HEIGHT:20px">支持的文件类型：(avi|mpg|mpeg|asf|wmv|flv|3gp[手机格式])<br>
                                  注：不支持<font color="#FF0000">WMV9</font>编码的视频，最大上传20M的视频文件。</td>
                              </tr>
                            </tbody>
                          </table>
                          <DIV id=imgview style="DISPLAY: none">
                        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                          <TBODY>
                          <TR>
                            <TD class=li_x_02 height=1></TD></TR></TBODY></TABLE>
                          </DIV>
                        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                          <TBODY>
                          <TR>
                            <TD class=li_x_02 height=1></TD></TR></TBODY></TABLE>
                        <%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "FCKeditor/"

oFCKeditor.ToolbarSet = "Upphoto"
oFCKeditor.Width = "100%"
oFCKeditor.Height = "200"
oFCKeditor.Value = "请输入视频简介！"
oFCKeditor.Create "content"
%></TD>
                      </TR>
                    <TR>
          <TD 
                      style="BORDER-RIGHT: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid" 
                      bgColor=#bcbcbc height=1></TD></TR></TBODY></TABLE>
          <table width="97%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="62%" height="27" align="right" style="PADDING-LEFT: 6px"><img src="../Images/Hompy/Bt_goback.gif" width="39" height="18" align="absmiddle"> &nbsp;<A href="javascript:formcheck();"><img src="../Images/Hompy/Bt_confirm.gif" width="39" height="18" border="0" align="absmiddle"></a></td>
  </tr>
</table></td>
  </tr>
</form>
</table>
<table width="97%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="62%" height="27" align="center">&nbsp;</td>
  </tr>
</table>
   </div></TD>
    </TR>
  </TBODY>
</TABLE>
</body>
</html>
