clipbucket/upload/admin_area/styles/clipbucketblue/layout/upload_thumbs.html
2009-08-25 12:16:42 +00:00

30 lines
No EOL
1.7 KiB
HTML

{if $data.title neq ""}
<div class="setting_title">Manage Video Thumbs</div>
<form action="upload_thumbs.php?video={$data.videoid}" method="post" enctype="multipart/form-data" name="form1">
<a href="edit_video.php?video={$data.videoid}">&laquo; Back to Edit Details</a> | <a href="upload_thumbs.php?video={$data.videoid}&gen_more=true">Regenerate Thumbs</a><br />
{assign var=vidthumbs value=func->get_thumb($data,1,TRUE)}
{foreach from=$vidthumbs item=vid_thumb}
<div style="width:140px; float:left" align="center">
<label for="{$vid_thumb|getname}"><img src="{$vid_thumb}" border="1" style="margin:4px" /><br />
<input type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|get_thumb_num} checked="checked"{/if} />Default</label><br />
{if $vid_thumb|getname!='processing'}
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">Delete</a>
{/if}
</div>
{/foreach}
<div style="clear:both;"></div><br />
<input type="submit" name="update_default_thumb" value="Update Video Thumb"/>
</form><form action="upload_thumbs.php?video={$data.videoid}" method="post" enctype="multipart/form-data" name="form1">
<h2>Upload New Thumb</h2>
<div align="right" style="width:500px;"><a href="javascript:void(0)" onclick="$('#thumb_fileds').append('<input name=\'vid_thumb[]\' type=\'file\' /><br>')">+ Insert More</a></div>
<div id="thumb_fileds">
<input name="vid_thumb[]" type="file" />
<label for="thumb_file"></label>
<br />
</div><br />
<input type="submit" name="upload_thumbs" value="Upload Thumb(s)"/>
</form>
{/if}