<?php 
	session_start(); 
	require_once('inc/conn.php');
	require_once('inc/constant.php');
	require_once('inc/ls_syscode.php');
	require_once('inc/check.php');
	$opendb=new mydb();
	$showstr = "视频";
	$ls_msg = $showstr."操作";
	$videoText=$_POST['vodioText'];
	
?>
<!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">
		<link href="css/admin.css" rel="stylesheet" type="text/css">
		<script language="JavaScript" src="js/ls.js"></script>
		<title>无标题文档</title>
		
	</head>

	<body>
		<table width="96%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#6396d6">
			<tr>
				<td height="18" background="images/admin_bg.gif"><div align="center"><font color="#ffffff"><strong>添加<?=$showstr?>管理</strong></font></div>
				</td>
			</tr>
			<tr>
				<td height="213" valign="top" bgcolor="#dee7ff"><br>
				 <form name="myform" enctype="multipart/form-data" method="post" action="savevideo.php" >
					<input type="hidden" value="insert" name="ls">
					<table border="0" width="90%" align="center">
						<tr>
							<td>提示：<font color="#FF0000"><?php echo $ls_msg; ?></font></td>
							<td align="right"><img src="images/shao.gif">&nbsp;<a href="video.php"><u>返回</u></a></td>
						</tr>
					</table>
					<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
					 
					  <tr bgcolor="#B9DAFF"> 
						<td height="28" colspan="2"></td>
					  </tr>
                      <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" width="15%">视频名称：</td>
						<td width="85%"><input type="text" name="videoName" style="width:200px;" ></td>
					  </tr>
                      <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" width="15%">视频简介：</td>
						<td><textarea name="videoText" style="width:70%; height:50px;" ><?php echo $videoText;?></textarea></td>
					  </tr>
					  <!--<tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" >*缩略图：</td>
						<td style="padding-left:5px;" >
							<img src="images/picture.gif" width="<?php echo $SmallPicW ?>" height="<?php echo $SmallPicH?>" border="1" name="pic" ><br /><input type="file" name="productPic" style="width:400px;" onBlur="document.pic.src=myform.productPic.value;">
						</td>
					  </tr>-->
					  <tr bgcolor="#B9DAFF">
						<td height="5" colspan="2" align="center">&nbsp;</td>
					  </tr>
					</table>
                    <table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
                      <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" width="15%">视频链接：</td>
						<td width="85%"><textarea name="videoCode" style="width:70%;height:50px;" ><?php echo $code;?></textarea></td>
					  </tr>
                      <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" >视频文件：</td>
						<td><input type="file" name="videoFile" style="width:400px;" onBlur="document.pic.src=myform.videoFile.value;"><font color="#FF0000">（视频格式必须为flv）</font></td>
					  </tr>
                      <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" width="15%">&nbsp;</td>
						<td width="85%"><font color="#FF0000">提示：如果有“视频链接”（即：不为空），则为显示“视频链接”为主！</font></td>
					  </tr>
					  <tr bgcolor="#B9DAFF">
						<td height="25" colspan="2" align="center"><input type="submit" value="添加<?=$showstr?>"></td>
					  </tr>
					</table>
				</form>
				</td>
			</tr>
		</table>
	</body>
</html>