2014-01-23 14:00:36 +00:00
{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" >
2014-01-30 13:58:28 +00:00
< 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" >
{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'}
< 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: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" >
2014-01-23 14:00:36 +00:00
< legend > User Information< / legend >
2014-01-30 13:58:28 +00:00
< 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" >
2014-01-23 14:00:36 +00:00
< label for = "videoid" > Video Id< / label >
< input class = "form-control" disabled = "disabled" name = "videoid" type = "text" id = "videoid" value = "{$data.videoid}" size = "45" / >
2014-01-30 13:58:28 +00:00
< / div >
< div class = "form-group" >
2014-01-23 14:00:36 +00:00
< label for = "videokey" > Video Key< / label >
< input class = "form-control" disabled = "disabled" name = "videokey" type = "text" id = "videokey" value = "{$data.videokey}" size = "45" / >
2014-01-30 13:58:28 +00:00
< / div >
< div class = "form-group" >
2014-01-23 14:00:36 +00:00
< label for = "filename" > File Name< / label >
< input class = "form-control" disabled = "disabled" name = "filename" type = "text" id = "filename" value = "{$data.file_name}" size = "45" / >
2014-01-30 13:58:28 +00:00
< / div >
< div class = "form-group" >
< label for = "totalvideos" > Total Video Files< / label >
2014-01-23 14:00:36 +00:00
{get_all_video_files vdetails=$data count_only=true} -
< a href = "view_conversion_log.php?file_name={$data.file_name}" >
2014-01-30 13:58:28 +00:00
< label > View File Details and Conversion Log< / label > < / a >
< / div >
2014-01-23 14:00:36 +00:00
< div class = "form-group" >
< label > Total Thumbnails< / label >
2014-01-30 13:58:28 +00:00
< span > {get_thumb vdetails=$data count_only=true}< / span >
< / div >
2014-01-23 14:00:36 +00:00
< div class = "dropdown" >
2014-01-27 05:29:21 +00:00
< a class = "btn btn-info btn-sm dropdown-toggle" data-toggle = "dropdown" href = "" > Thumbs < i class = "caret" > < / i > < / a >
2014-01-30 13:58:28 +00:00
< ul class = "dropdown-menu" role = "menu" aria-labelledby = "dropdownMenu" >
2014-01-23 14:00:36 +00:00
{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 >
{assign var=vidthumbs value=get_thumb($data,1,TRUE,FALSE,TRUE,FALSE)}
{foreach from=$vidthumbs item=vid_thumb}
2014-01-30 13:58:28 +00:00
< div class = "form-group pull-right" >
2014-01-23 14:00:36 +00:00
< label for = "{$vid_thumb|getname}" >
2014-01-30 13:58:28 +00:00
< img src = "{$vid_thumb}" > < 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 / >
2014-01-23 14:00:36 +00:00
{if $vid_thumb|getname!='processing'}
< a href = "?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}" > Delete< / a >
{/if}
2014-01-30 13:58:28 +00:00
< / div >
< / div >
2014-01-23 14:00:36 +00:00
{/foreach}
{foreach from=$requiredFields item=field}
{/foreach}
2014-01-30 13:58:28 +00:00
< div class = "form-group" >
2014-01-23 14:00:36 +00:00
< 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 >
2014-01-30 13:58:28 +00:00
< / div >
< div class = "form-group" >
< label for = "duration" > Duration:< / label >
< strong > {$data.duration}< / strong > (Seconds)
< / div >
2014-01-23 14:00:36 +00:00
< 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" / >
2014-01-30 13:58:28 +00:00
< / div >
< div class = "form-group" >
2014-01-23 14:00:36 +00:00
< label for = "rating" > Rating< / label >
< input class = "form-control" name = "rating" type = "text" id = "rating" value = "{$data.rating}" size = "5" / >
of 10
2014-01-30 13:58:28 +00:00
< / div >
2014-01-23 14:00:36 +00:00
< 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" / >
2014-01-30 13:58:28 +00:00
< / div >
< legend > Custom Upload Fields< / legend >
{foreach from=$custom_upload_fields item=field}
< div class = "form-group" >
2014-01-23 14:00:36 +00:00
< label > {$field.title}< / label >
{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
< br >
{$field.hint_2}
2014-01-30 13:58:28 +00:00
< / div >
{/foreach}
< div class = "form-group" >
2014-01-23 14:00:36 +00:00
< input type = "submit" class = "btn btn-primary" value = "Update video details" style = "margin:5px 0px 15px 0px" name = "update" >
2014-01-30 13:58:28 +00:00
< / 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 >