【php开源代码栏目提醒】:本文主要为网学会员提供addvideo.php,希望对需要addvideo.php网友有所帮助,学习一下!
<?php exit();?>
<!--{if isset($inajax)}-->
{template ajax_header}
<!--{else}-->
{template addvideoheader}
<!--{/if}-->
<script type="text/javascript" src="./js/vspacecp/video.js"></script>
<!--{if $action == 'upload'}-->
<script type="text/javascript" src="./js/swfobject.js"></script>
<script type="text/javascript" >
function uploadflv(){
var a=window.showModalDialog('admin_swfup.php','','dialogWidth:300px;dialogHeight:320px;center:yes;help:no;status:no;scroll:no');
if(a){
upload_video.videosrc.value=a;
}
}
function uploadimg(){
var a=window.showModalDialog('admin_imgup.php','','dialogWidth:300px;dialogHeight:320px;center:yes;help:no;status:no;scroll:no');
if(a){
upload_video.picsrc.value=a;
}
}
</script>
<div class="mainbody">
<h1>涓婁紶瑙嗛</h1>
<div class="mainbody_content">
<form name="upload_video" id="upload_video" action="./vspacecp.php?script=addvideo&action=upload" method="post">
<h2>鏈湴鏂囦欢涓婁紶</h2>
<div class="v_up border_style">
<div>
<input type="text" name="videosrc" id="videosrc" value="flv/1.flv"/>
<input type="button" onclick="uploadflv()" value="涓婁紶瑙嗛" /></div>
<div>
<input type="text" id="picsrc" name="picsrc" value="flv/1.jpg" />
<input type="button" onclick="uploadimg()" value="涓婁紶缂╃暐鍥? /></div>
<div>
瑙嗛闀垮害锛?input name="times" id="times" type="text"/>绉?/div>
<!--<div>$swfcode</div>-->
<span>璇峰厛閫夋嫨瑕佷笂浼犵殑瑙嗛鐒跺悗锛岀偣鍑烩滀笂浼犫濆皢瑙嗛涓婁紶鍒版湇鍔″櫒鍐嶈繘琛屾彁浜ゆ搷浣溿?/span>
<p>
<span id="autosubmit_p" class="auto_submit">
<input type='checkbox' <!--{if $lastinforarr[autosubmit]}--> checked="checked"<!--{/if}-->id='autosubmit' name='autosubmit' value="1" style="vertical-align:middle" /> <label>鑷姩鎻愪氦</label></span>
<!--{if ($cache['uchome_exists'] && $settings['feed']['addvideo'])}-->
<input type='checkbox' id='isfeed' style="vertical-align:middle" name='isfeed' value="1" <!--{if $mpreferences[per_feed]}--> checked="checked"<!--{/if}--> /> <label>鍔犲叆浜嬩欢</label>
<!--{/if}-->
</p>
</div>
<div class="border_style">
<input name="submitbt" value="1" type="hidden" />
<input name="ivid" id="ivid" type="hidden" />
<input name="autoplay" value="{VIDEO_AUTOPLAY_TRUE}" type="hidden" />
<input name="allowcomment" <!--{if $mpreferences[defaultcomment]}--> value="{VIDEO_ALLOWCOMMENT_TRUE}" <!--{else}--> value="{VIDEO_ALLOWCOMMENT_FALSE}"<!--{/if}--> type="hidden" />
<input name="allowgrade" <!--{if $mpreferences[defaultcredits]}--> value="{VIDEO_ALLOWGRADE_TRUE}" <!--{else}--> value="{VIDEO_ALLOWGRADE_FALSE}" <!--{/if}--> type="hidden" />
<input name="share" value="1" type="hidden" />
<input name="isup" value="{VIDEO_ISUP}" type="hidden" />
<h2>濉啓瑙嗛璧勬枡</h2>
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td class="information_left"><pre>*</pre>瑙嗛鏍囬: </td>
<td>
<input class="input_text" name="subject" <!--{if $mpreferences[lastinfor]}-->value="$lastinforarr[subject]"<!--{/if}--> id="subject" type="text" size="30" />
</td>
</tr>
<tr valign="top">
<td class="information_left"><pre>*</pre>鍐呭浠嬬粛: </td>
<td><textarea name="description" id="descriptionid" class='videointro'><!--{if $mpreferences[lastinfor]}-->$lastinforarr[descriptionid]<!--{/if}--></textarea></td>
</tr>
<tr valign="top">
<td class="information_left"><pre>*</pre>瑙嗛鏍囩: </td>
<td>
<input class="input_text" onfocus='javascript:this.select();' name="tags" id="tags" type="text" size="30" <!--{if $mpreferences[lastinfor]}--> value="$lastinforarr[tags]" <!--{/if}-->>
<input type="b