<?php
/**
 * 内容编辑
 * $Id: video_data_edit.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
 * @author wanggb
 * @access public
 * @package manager.templates
 **/

?>
<b>短视频编辑</b><br />
<br />
<form name="article_edit_input" action="video_edit_result.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="action_type" value="<?=$action_type ?>" />
<input type="hidden" name="id" value="<?=$id ?>" />
<input type="hidden" id="selected_tags" name="selected_tags" value="<?=$article_dat->tags ?>" />
<input type="hidden" id="front_image" name="front_image" value="<?=$article_dat->front_image ?>" />
<table width="80%">
	<tr>
		<td>分类选择</td>
	</tr>
	<tr>
		<td class="begin_blank">
				<select name="category_id" size="150" style="width:200px;height:60px;line-height:20px;">
					<?
					foreach ($category_list as $category_mst) {
					?>
						<option value="<?=$category_mst->category_id ?>"<?=$category_mst->category_id == $article_dat->category_id ? " selected " : "" ?>><?=$category_mst->title ?></option>
					<?
					}
					?>
				</select>
		</td>
	</tr>
	<tr>
		<td>标题</td>
	</tr>
	<tr>
		<td class="begin_blank"><textarea name="title" cols=50 rows=1?><?=htmlspecialchars($article_dat->title) ?></textarea></td>
	</tr>
	<tr>
		<td>短视频</td>
	</tr>
	<tr>
		<td class="begin_blank">
			<input type="file" id="upload_video_file"  name="upload_video_file" accept="video/mp4"/>
			<br />
		</td>
	</tr>
	<tr>
		<td>封面</td>
	</tr>
	<tr>
		<td class="begin_blank">
			<input type="file" id="upload_front_file"  name="upload_front_file" onChange="checkUploadVideoFront()" accept="image/png, image/jpeg, image/gif, image/jpg"/>
			<br />
			<span id="span_preview">
				<? 
					if (!empty($article_dat->front_image)) {
				?>
						<img class="image_thumbnail" id="span_preview_img" src="<?=BeautyHandler::getImageUrl($article_dat->front_image, 'video', "") ?>" style=""/>
				<?
					}
				?>

			</span>
		</td>
	</tr>
	<tr>
		<td>简介</td>
	</tr>
	<tr>
		<td class="begin_blank"><textarea name="content" cols=50 rows=5?><?=htmlspecialchars($article_dat->content) ?></textarea></td>
	</tr>
	<tr>
		<td>是否免费</td>
	</tr>
	<tr>
		<td class="begin_blank">
			<input type="radio" name="is_free" value="true" <?=$article_dat->is_free ? " checked=\"checked\"" : "" ?> />是
			<input type="radio" name="is_free" value="false" <?=!$article_dat->is_free ? " checked=\"checked\"" : "" ?> />否
		</td>
	</tr>
	<!--
	<tr>
		<td>首页显示</td>
	</tr>
	<tr>
		<td class="begin_blank">
			<input type="radio" name="is_top" value="true" <?=$article_dat->is_top ? " checked=\"checked\"" : "" ?> />是
			<input type="radio" name="is_top" value="false" <?=!$article_dat->is_top ? " checked=\"checked\"" : "" ?> />否
		</td>
	</tr>
	-->
</table>
<br />
<input type="button" value="编集" class="button_width_normal" onClick="doCheck();"/>
</form>
