<!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" />
<title>修改视频 {#$LA_poweredby#} -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="{#$base_weburl#}/templates/adminsys/css/list.css" />
<script language="javascript" src="{#$base_weburl#}/js/pinyin.js"></script>
<script language="javascript">
var webroot_url = '{#$base_weburl#}';
function submitFun()
{
		var idvid_name 	= document.getElementById('vid_name');
		var idvis_id 	= document.getElementById('vis_id');
		var idvid_img 	= document.getElementById('vid_img');
		
		var content= CKEDITOR.instances.vid_content.getData()
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(idvid_name.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：视频标题不能为空！请输入！';
			idvid_name.focus();
			return false;
		}else if(idvis_id.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：视频分类不能为空！请选择！';
			idvis_id.focus();
			return false;
		}else if(idvid_img.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：视频不能为空请输入！';
			idvid_img.focus();
			return false;
		}else if(content=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：视频内容不能为空请输入！';
			CKEDITOR.instances.vid_content.focus();
			return false;
		}

		document.formSub.action='{#$employee_weburl#}/index.php?load=video&act=editinfo';
		document.formSub.target="_self"
		document.formSub.submit();

}


	
	function upLoadFile()
	{
		document.formSub.target="hidden_frame"
		document.formSub.action='{#$employee_weburl#}/index.php?load=uploadfile&act=upload&upLoadName=upfile&getUrl=vid_img';
		document.formSub.submit(); 
		document.getElementById("lodingdiv").style.display="";
		document.getElementById("lodingdiv").innerHTML="<img src=\"{#$webroot_url#}/uploads/sys/loading2.gif\" />文件正上传，请稍候...";

	}
	
	
	function hiddenLoding()
	{
		document.getElementById("lodingdiv").style.display="none";
		document.getElementById("lodingdiv").innerHTML="";
		document.getElementById("vid_img").value="";
		document.getElementById("upfile").value="";
	}
	
	function codechange()
	{
		if(document.getElementById("vid_pinyin").value=='')
		{
			getPinYinValue('vid_name','vid_pinyin');
		}
	}
</script>
</head>
<body>

<table  cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr><td><table cellpadding="0" cellspacing="0" border="0" style="width:100%; color:#000000; font-weight:normal; background-color:#3EC3EF;"  >
  <tr>
    <td>&nbsp;<a href="{#$employee_weburl#}/index.php?load=video&act=infolist" ><img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">视频列表</a> | 视频修改</td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.gv32.com/type_video-edit.html" target="_blank" title="点击-在线帮助"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0" alt="点击-在线帮助"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr><td>

<form action="{#$employee_weburl#}/index.php?load=video&act=editinfo" method="post"   enctype="multipart/form-data" name="formSub" id="formSub" >
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th colspan="2">修改视频</th>
</tr>
<input name="vid_id" id="vid_id" value="{#$info.vid_id#}" type="hidden"  >
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td" align="right"><strong>视频标题：</strong></td>
<td class="tdd"><input name="vid_name" id="vid_name" value="{#$info.vid_name#}" type="text"  style="width:300px;" onblur="codechange()" ></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>拼音：</strong></td>
<td class="tdd"><input name="vid_pinyin" id="vid_pinyin" value="{#$info.vid_pinyin#}" type="text"  style="width:300px;" > <a href="#" onclick="getPinYinValue('vid_name','vid_pinyin')" >重置</a></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>视频分类：</strong></td>
<td class="tdd">
<select   name="vis_id" id="vis_id"  style="width:250px;" >
<option value="">请选择上级分类</option>
{#foreach key=key item=item from=$vsInfo#}
<option value="{#$item.vis_id#}" {#if $item.vis_id eq $info.vis_id#} selected="selected" {#/if#}  >{#$item.vis_name#}</option>
	{#foreach item=spitem from=$item.array#}
	<option value="{#$spitem.vis_id#}"   {#if $spitem.vis_id eq $info.vis_id#} selected="selected" {#/if#}   >|__{#$spitem.vis_name#}</option>
	{#/foreach#}
{#/foreach#}
</select>
		</td>
</tr>
 

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>上传主图：</strong></td>
<td class="tdd">   <input type="file" id="upfile" name="upfile" style="width:450">&nbsp;<input name="but" type="button" value="上传文件"  onclick="upLoadFile(this)">
<iframe name='hidden_frame' id="hidden_frame" style="border:none; background-color:#00CCCC;" scrolling="no" width="0" height="0" ></iframe>{#if $info.vid_img eq ''#}
<div id="lodingdiv" style=" display:none;width:380px;" ><img src="{#$base_weburl#}/uploads/sys/loading2.gif" />文件正上传中，请稍候...</div>{#else#}<div id="lodingdiv" style="width:380px;" >{#$info.vid_img#}<img src="{#$base_weburl#}/uploads/sys/cancel.png" width="16" onclick="hiddenLoding()"></div>{#/if#}
</td>
</tr>



 

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>主图地址：</strong></td>
<td class="tdd"><input name="vid_img" id="vid_img" value="{#$info.vid_img#}" type="text"  style="width:300px;" ></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>视频地址：</strong></td>
<td class="tdd"><input name="vid_url" id="vid_url" value="{#$info.vid_url#}" type="text"  style="width:300px;" ></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>视频内容：</strong></td>
<td class="tdd">
{#$ckeditorLoad#}</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td"><strong>显示：</strong></td>
<td class="tdd">{#foreach key=ek item=ei from=$_LANG.bd_enabledArray#}
{#$ei#}<input type="radio"   name="vid_enabled" id="vid_enabled[{#$ek#}]"  value="{#$ek#}" {#if $ek eq 1#} checked="checked" {#/if#}>
{#/foreach#}
</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"> <input name="buttsubmit" id="buttsubmit" type="button" value="修 改"  onclick="submitFun(this)"  ></td>
</tr>
</table>
</form>

</td></tr>
<tr><td></td></tr>
</table>


</body>
</html>