Files
Testing/templates/admin_bator_videos.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

183 lines
5.5 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='bator_training.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 />
{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>
<video width="320" height="240" controls poster="/batortraining/{$video_id}_thumb.jpg">
<source src="/batortraining/{$video_id}.mp4" type="video/mp4">
Your browser does not support the video tag.
</video><br>
<br>
Preview:<br>
<video width="320" height="240" controls poster="/batortraining/{$video_id}_preview_thumb.jpg">
<source src="/batortraining/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}
{* no more youtube @jdw *}
<input type='hidden' name='video_type' value='0' /><br>
<br>
<input type='submit' class='button' name='submit' value='Update' id='fallback_submit' />&nbsp;&nbsp;
</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/bator_training.php' session_id=$session_id upload_token=$upload_token show_uploader=$show_uploader 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/bator_training.php' session_id=$session_id upload_token=$upload_token show_uploader=$show_uploader 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'}