163 lines
No EOL
9.3 KiB
HTML
163 lines
No EOL
9.3 KiB
HTML
{assign var='custom_upload_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
|
|
{assign var='video_fields' value=$Upload->load_video_fields($data)}
|
|
{if $data.title neq ""}
|
|
<form action="" method="post" name="edit_video" id="edit_video">
|
|
<div class="row">
|
|
<div class="lead dropdown">Editing {$data.title}
|
|
<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="{videoLink vdetails=$data}">Watch this video</a> </li>
|
|
{if $data.active!='yes'}
|
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&mode=activate">Activate</a> </li>
|
|
{else}
|
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&mode=deactivate">Deactivate</a> </li>
|
|
{/if}
|
|
{if $data.featured!='yes'}
|
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&mode=featured">Make Featured</a></li>
|
|
{else}
|
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="edit_video.php?video={$data.videoid}&mode=unfeature">Make Unfeatured</a></li>
|
|
{/if}
|
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0)" onClick="javascript:_cb.Confirm_Delete('video_manager.php?delete_video={$data.videoid}')">Delete This Video</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-sm-6 col-md-6 col-lg-6 col x1-12">
|
|
<legend>User Information</legend>
|
|
<div class="form-group">
|
|
<img src="{$userquery->getUserThumb($u,'small')}" class="thumbnail" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label>User Id</label>
|
|
<input type="text" value="{$data.userid}" disabled="disabled" class="form-control">
|
|
<label for="user">User Name</label>
|
|
<input class="form-control" disabled="disabled" type="text" value="{$data.userid|get_username}">
|
|
</div>
|
|
<legend>Important Details</legend>
|
|
<div class="form-group">
|
|
<label for="videoid">Video Id</label>
|
|
<input class="form-control" disabled="disabled" name="videoid" type="text" id="videoid" value="{$data.videoid}" size="45"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="videokey">Video Key</label>
|
|
<input class="form-control" disabled="disabled" name="videokey" type="text" id="videokey" value="{$data.videokey}" size="45"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="filename">File Name</label>
|
|
<input class="form-control" disabled="disabled" name="filename" type="text" id="filename" value="{$data.file_name}" size="45"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="totalvideos">Total Video Files</label>
|
|
{get_all_video_files vdetails=$data count_only=true} -
|
|
<a href="view_conversion_log.php?file_name={$data.file_name}">
|
|
<label>View File Details and Conversion Log</label></a>
|
|
</div>
|
|
<div class="form-group">
|
|
<label>Total Thumbnails</label>
|
|
<span>{get_thumb vdetails=$data count_only=true}</span>
|
|
</div>
|
|
<div class="dropdown">
|
|
<a class="btn btn-info btn-sm dropdown-toggle" data-toggle="dropdown" href="">Thumbs <i class="caret"></i></a>
|
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
|
|
{if $data.embeded !=yes}
|
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="upload_thumbs.php?video={$data.videoid};gen_more=true">Regenerate</a>{/if}
|
|
</li>
|
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="upload_thumbs.php?video={$data.videoid}">Manage</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="row">
|
|
{assign var=vidthumbs value=get_thumb($data,1,TRUE,FALSE,TRUE,FALSE)}
|
|
{foreach from=$vidthumbs item=vid_thumb}
|
|
<div class="col-md-3">
|
|
<ul class="ace-thumbnails">
|
|
<li>
|
|
<img src="{$vid_thumb}" width="100" height="100">
|
|
<div class="tools">
|
|
<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} />
|
|
{if $vid_thumb|getname!='processing'}
|
|
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">
|
|
<i class="icon-remove red"></i></a>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
{/if}
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
{foreach from=$requiredFields item=field}
|
|
{/foreach}
|
|
<div class="form-group">
|
|
<label class="status">Status</label>
|
|
<select class="form-control" name="status">
|
|
<option class="form-control" value="Successful" {if $data.status=='Successful'} selected {/if}>Successfull</option>
|
|
<option class="form-control" value="processing" {if $data.status=='Processing'} selected {/if}>Processing</option>
|
|
<option class="form-control" value="Failed"{if $data.status=='Failed'} selected {/if}>Failed</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="duration">Duration:</label>
|
|
<input type="text" class="form-control" value="{$data.duration}">(Seconds)
|
|
</div>
|
|
<legend>Video Stats</legend>
|
|
<div class="form-group">
|
|
<label for="views">Views</label>
|
|
<input class="form-control" name="views" type="text" id="views" value="{$data.views}" size="45"/>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="rating">Rating</label>
|
|
<input class="form-control" name="rating" type="text" id="rating" value="{$data.rating}" size="5"/>
|
|
of 10
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="rated_by">RatedBy</label>
|
|
<input class="form-control" name="rated_by" type="text" id="rated_by" value="{$data.rated_by}" size="45"/>
|
|
</div>
|
|
<legend>Custom Upload Fields</legend>
|
|
{foreach from=$custom_upload_fields item=field}
|
|
<div class="form-group">
|
|
<label>{$field.title}</label>
|
|
{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
|
<br>
|
|
{$field.hint_2}
|
|
</div>
|
|
{/foreach}
|
|
<div class="form-group">
|
|
<input type="submit" class="btn btn-primary" value="Update video details" style="margin:5px 0px 15px 0px" name="update">
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-md-6 col-lg-6 col x1-12 pull-right">
|
|
<div class="head">Viewing {$data.title}
|
|
{FlashPlayer vdetails = $data width='100%' autoplay='false'}
|
|
{foreach from=$video_fields item=field_group}
|
|
<legend>{$field_group.group_name}</legend>
|
|
{foreach from=$field_group.fields item=field}
|
|
<div class="form-group">
|
|
{$field.class='form-control'}
|
|
<label><strong>{$field.title}</strong></label> <br>
|
|
{if $field.type=='radio'}
|
|
{$field.class='form-control'}
|
|
{else}{$field.class='form-control'}
|
|
{/if}
|
|
{if $field.hint_1}{$field.hint_1}<br/>{/if}
|
|
{$formObj->createField($field)}
|
|
{if $field.hint_2}<br/>{$field.hint_2}{/if}
|
|
</div>
|
|
{/foreach}
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
{assign var=id value=$data.videoid}{include file="$style_dir/blocks/comments.html" type=v id=$data.videoid link="video=$id"}
|
|
</div>
|
|
</form>
|
|
{/if}
|
|
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
|
|
<script>
|
|
$(document).ready(function(){
|
|
$( "#datecreated" ).datepicker({
|
|
showOtherMonths: true,
|
|
selectOtherMonths: false,
|
|
dateFormat:"yy-mm-dd"
|
|
});
|
|
});
|
|
</script> |