178 lines
5.1 KiB
Smarty
178 lines
5.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='bate_videos.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.description}</textarea>
|
|
<br />
|
|
<br />
|
|
<b>Order: </b><br />
|
|
<input name='orderby' type='text' class='text' maxlength='50' size='30' value='{$video.orderby}'><br>
|
|
<br>
|
|
|
|
{php}printdatetime();{/php}
|
|
<br>
|
|
<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}
|
|
|
|
{/literal}
|
|
|
|
|
|
<!-- HTML playlist -->
|
|
|
|
|
|
<!-- HTML mixed playlist -->{literal}
|
|
|
|
{/literal}
|
|
<video width="320" height="240" controls poster="{$imagecdn}{$video.picture}">
|
|
|
|
<source src="{$imagecdn1}bate_videos/{$video.video}" type="video/mp4">
|
|
<source src="{$imagecdn1}bate_videos/{$video_id}.mp4" type="video/mp4">
|
|
<source src="{$imagecdn1}bate_videos/{$video_id}-1080.mp4" type="video/mp4">
|
|
<source src="{$imagecdn1}bate_videos/{$video_id}-720.mp4" type="video/mp4">
|
|
<source src="{$imagecdn1}bate_videos/{$video_id}-480.mp4" type="video/mp4">
|
|
<source src="{$imagecdn1}bate_videos/{$video_id}-240.mp4" type="video/mp4">
|
|
|
|
Your browser does not support the video tag.
|
|
</video><br>
|
|
<br>
|
|
|
|
|
|
{/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}
|
|
|
|
|
|
|
|
|
|
<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-bateoff.tpl' action='https://bateworld.com/bwadmin/bate_videos.php' newform='https://bateworld.com/bwadmin/bate_videos.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-bateoff.tpl' action='https://bateworld.com/bwadmin/bate_videos.php' newform='https://bateworld.com/bwadmin/bate_videos.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'} |