222 lines
7.1 KiB
Smarty
222 lines
7.1 KiB
Smarty
{include file='admin_header.tpl'}
|
|
|
|
{* $Id: user_video_upload.tpl 131 2009-03-22 00:54:31Z john $ *}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{* SHOW ERROR MESSAGE *}
|
|
{if $is_error != 0||$error1!=''}
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td class='result'>
|
|
<div class='error'><img src='./images/error.gif' border='0' class='icon' /> {lang_print id=$is_error}{$error1}</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if $task=="youtube" || $task=="create"}
|
|
<script src="../include/ckeditor/ckeditor.js"></script>
|
|
|
|
<form name='uploadForm' action='bateoffvideos.php?task={if $task=="youtube"}doembed{else}docreate{/if}' method='post' id='uploadForm'>
|
|
<input name='video_id' type='hidden' value='{$video_id}'>
|
|
<b>{lang_print id=5500078}</b><br />
|
|
<input name='video_title' type='text' class='text' maxlength='50' size='30' value='{$video.title}'>
|
|
<br />
|
|
<br />
|
|
|
|
|
|
<b>{lang_print id=5500079}</b><br>
|
|
<textarea name='video_desc' rows='6' cols='50'>{$video.body}</textarea>
|
|
<br />
|
|
<br />
|
|
|
|
<b>Season</b><br />
|
|
<input name='season' type='text' class='text' maxlength='50' size='30' value='{$video.season}'><br>
|
|
<br>
|
|
|
|
<b>Order</b><br />
|
|
<input name='orderby' type='text' class='text' maxlength='50' size='30' value='{$video.orderby}'><br>
|
|
<br>
|
|
Image:<br />
|
|
|
|
<input id="image" name="image" style="width:800px;" value="{$video.picture}" /> <a href="/include/filemanager/dialog.php?type=1&field_id=image&fldr=/ads&TB_iframe=true&height=450&width=900" class="smoothbox" type="button">Choose File</a><br /><br>
|
|
|
|
{php}printdatetime();{/php}
|
|
{*<br>
|
|
<br>
|
|
<h3>Annotations</h3>
|
|
<b>Start Time (hh:mm:ss)</b><br />
|
|
<input name='start' type='text' class='text' maxlength='50' size='30' value='{$video.start}'><br>
|
|
<br>
|
|
<b>End Time (hh:mm:ss)</b><br />
|
|
<input name='end' type='text' class='text' maxlength='50' size='30' value='{$video.end}'><br>
|
|
<br>
|
|
<b>Left in Pixels</b><br />
|
|
<input name='alignleft' type='text' class='text' maxlength='50' size='30' value='{$video.alignleft}'><br>
|
|
<br>
|
|
<b>Top in Pixels</b><br />
|
|
<input name='aligntop' type='text' class='text' maxlength='50' size='30' value='{$video.aligntop}'><br>
|
|
<br>
|
|
<b>Show Close Button?</b><br />
|
|
<select name="close"><option {if $video.close==0}selected="selected"{/if} value="0">No</option><option {if $video.close==1}selected="selected"{/if} value="1">Yes</option></select><br>
|
|
<br>
|
|
<b>Link to</b><br />
|
|
<input name='url' type='text' class='text' maxlength='50' size='30' value='{$video.url}'><br>
|
|
<b>Text</b><br />
|
|
<input name='annotationtext' type='text' class='text' size='30' value='{$video.annotationtext}'><br>
|
|
<b>CSS</b><br />
|
|
<textarea name='css' style="width:500px; height:300px;">{$video.css}</textarea><br>
|
|
*}
|
|
|
|
|
|
{literal}
|
|
<script>
|
|
//CKFinder.setupCKEditor( );
|
|
// This call can be placed at any point after the
|
|
// <textarea>, or inside a <head><script> in a
|
|
// window.onload event handler.
|
|
|
|
// Replace the <textarea id="editor"> with an CKEditor
|
|
// instance, using default configurations.
|
|
var editor = CKEDITOR.replace( 'video_desc' ,{
|
|
filebrowserBrowseUrl : '../include/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',
|
|
//filebrowserUploadUrl : '../include/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',
|
|
filebrowserImageBrowseUrl : '../include/filemanager/dialog.php?type=1&editor=ckeditor&fldr='
|
|
});
|
|
//CKFinder.setupCKEditor( editor, '../include/ckeditor/ckfinder/' );
|
|
|
|
</script>
|
|
{/literal}
|
|
{if $video_id!=""}<br>
|
|
<br>
|
|
|
|
Video:<br>
|
|
|
|
|
|
|
|
{literal}
|
|
<script type="text/javascript" src="{/literal}{$imagecdn}{literal}include/videoplayer/start/java/FWDUVPlayer.js"></script>
|
|
|
|
<!-- Setup video player-->
|
|
|
|
{/literal}
|
|
<div id="myDiv" style="position:relative; left:0px; top:0px;"></div>
|
|
|
|
|
|
|
|
<!-- HTML playlist -->
|
|
|
|
|
|
<!-- HTML mixed playlist -->
|
|
|
|
|
|
<video width="320" height="240" controls poster="{$imagecdn}videos/bateoff/{$video.picture}">
|
|
<source src="{$imagecdn}videos/bateoff/{$video.video}" type="video/mp4">
|
|
<source src="{$imagecdn}videos/bateoff/{$video.video}" type="video/mp4">
|
|
<source src="{$imagecdn}videos/bateoff/{$video_id}.mp4" type="video/mp4">
|
|
<source src="{$imagecdn}videos/bateoff/{$video_id}-1080.mp4" type="video/mp4">
|
|
<source src="{$imagecdn}videos/bateoff/{$video_id}-720.mp4" type="video/mp4">
|
|
<source src="{$imagecdn}videos/bateoff/{$video_id}-480.mp4" type="video/mp4">
|
|
<source src="{$imagecdn}videos/bateoff/{$video_id}-240.mp4" type="video/mp4">
|
|
|
|
Your browser does not support the video tag.
|
|
</video>
|
|
|
|
|
|
|
|
|
|
<br>
|
|
|
|
Preview:<br>
|
|
|
|
<video width="320" height="240" controls poster="/videos/bateoff/{$video_id}_preview_thumb.jpg">
|
|
<source src="/videos/bateoff/preview_{$video_id}.mp4" type="video/mp4">
|
|
|
|
Your browser does not support the video tag.
|
|
</video>
|
|
{/if}
|
|
|
|
{if $task=="youtube"}
|
|
<b>{lang_print id=5500190}</b><br />
|
|
{lang_print id=5500196}<br />
|
|
<input name='video_url' id='video_url' type='text' class='text' value='{$video_last_url}' size='30' >
|
|
<br />
|
|
<br />
|
|
{/if}
|
|
|
|
|
|
{* SHOW SEARCH PRIVACY OPTIONS IF ALLOWED BY ADMIN *}
|
|
{if $user->level_info.level_video_search == 1}
|
|
<b>{lang_print id=5500014}</b><br>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td><input type='radio' name='video_search' id='video_search_1' value='1'{if $video->video_info.video_search} checked='checked'{/if}></td>
|
|
<td><label for='video_search_1'>{lang_print id=5500015}</label></td>
|
|
</tr>
|
|
|
|
</table>
|
|
<br />
|
|
{/if}
|
|
|
|
{php}showtotals();{/php}
|
|
|
|
|
|
|
|
<input type='hidden' name='video_type' value='0' /><br>
|
|
<br>
|
|
|
|
<input type='submit' class='button' name='submit' value='Update' id='fallback_submit' />
|
|
|
|
</form>
|
|
|
|
{/if}
|
|
|
|
{if $task=="upload"}
|
|
<div id="div_upload">
|
|
{if !empty($allowed_exts)}{lang_sprintf id=1000090 1=$allowed_exts}<br />{/if}
|
|
|
|
<strong><span class="yellow">Please do not navigate away from this page until your video has finished uploading.</strong>
|
|
<br /><br />
|
|
|
|
{include file='admin_user_upload.tpl' action='/bwadmin/bateoffvideos.php' session_id=$session_id upload_token=$upload_token show_uploader=1 inputs=$inputs file_result=$file_result max_files=1 }
|
|
|
|
</div>
|
|
{/if}
|
|
|
|
{if $task=="uploadpreview"}
|
|
<div id="div_upload">
|
|
{if !empty($allowed_exts)}{lang_sprintf id=1000090 1=$allowed_exts}<br />{/if}
|
|
|
|
<strong><span class="yellow">Please do not navigate away from this page until your video has finished uploading.</strong>
|
|
<br /><br />
|
|
|
|
{include file='admin_user_upload.tpl' action='/bwadmin/bateoffvideos.php' session_id=$session_id upload_token=$upload_token show_uploader=1 inputs=$inputs file_result=$file_result max_files=1 }
|
|
|
|
</div>
|
|
{/if}
|
|
|
|
|
|
|
|
{if $task=="complete"}
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td class='result'>
|
|
<div class='success' style='text-align: left;'>
|
|
{lang_print id=5500173}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{/if}
|
|
|
|
{include file='admin_footer.tpl'} |