48 lines
2.7 KiB
HTML
48 lines
2.7 KiB
HTML
![]() |
{if $data.title neq ""}
|
||
|
<h3>Manage Video Thumbs</h3>
|
||
|
<div class="lead dropdown">
|
||
|
<a class="btn btn-primary btn-sm dropdown-toggle pull-right" data-toggle="dropdown" href="">Actions <i class="caret"></i></a>
|
||
|
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu1">
|
||
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="upload_thumbs.php?video={$data.videoid}&gen_more=true">Regenerate Thumbs</a></li>
|
||
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}">Back to Edit Details</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<form action="upload_thumbs.php?video={$data.videoid}" method="post" enctype="multipart/form-data" name="set_default_thumb" id="set_default_thumb">
|
||
|
<div class="row">
|
||
|
<div class="col-sm-6 col-md-6 col-lg-6 col-xs-12">
|
||
|
<div style="width:140px; float:left" align="center">
|
||
|
<label for="{$vid_thumb|getname}"><img src="{$vid_thumb}" border="1" style="margin:4px; max-width:120px" /><br />
|
||
|
<input class="radio" type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|getname|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>
|
||
|
<div align="center" style=" width:98%; margin:auto; margin-top:10px;">
|
||
|
<input class="btn btn-primary btn-danger" type="submit" name="update_default_thumb" value="Update Video Thumb" class="button"/>
|
||
|
</div>
|
||
|
</div>
|
||
|
<fieldset class="fieldset">
|
||
|
{assign var=vidthumbs value=get_thumb($data,1,TRUE,FLASE,TRUE,FALSE)}
|
||
|
|
||
|
{foreach from=$vidthumbs item=vid_thumb}
|
||
|
|
||
|
|
||
|
{/foreach}
|
||
|
</form>
|
||
|
|
||
|
<form action="upload_thumbs.php?video={$data.videoid}" method="post" enctype="multipart/form-data" name="form1">
|
||
|
<fieldset class="fieldset">
|
||
|
<h3 align="right">Upload New Thumb</h3>
|
||
|
<div align="right" style="width:1000px;"><a href="javascript:void(0)" onclick="$('#thumb_fileds').append('<input name=\'vid_thumb[]\' type=\'file\' /><br>')">+ Insert More</a></div>
|
||
|
<div align="right" id="thumb_fileds" style="margin:10px">
|
||
|
<input name="vid_thumb[]" type="file" />
|
||
|
<label for="thumb_file"></label>
|
||
|
<br />
|
||
|
</div>
|
||
|
</fieldset>
|
||
|
<div align="right" style=" width:98%; margin:auto; margin-top:10px;">
|
||
|
<input type="submit" name="upload_thumbs" value="Upload Thumb(s)" class="btn btn-primary"/>
|
||
|
</div>
|
||
|
</form>
|
||
|
<div style="height:20px"></div>
|
||
|
{/if}
|