113 lines
3.1 KiB
Smarty
113 lines
3.1 KiB
Smarty
{include file='header_popup.tpl'}
|
|
|
|
{* $Id: user_video_upload.tpl 131 2009-03-22 00:54:31Z john $ *}
|
|
|
|
|
|
|
|
|
|
<div style='text-align:left; padding: 10px;'>{if $task=="youtube"}{lang_print id=5500197}{else}{lang_print id=5500004}{/if}<br />
|
|
<br />
|
|
|
|
|
|
{* SHOW SWITCHER *}
|
|
{*if $task=="youtube" && $user->level_info.level_video_allow && !empty($setting.setting_video_ffmpeg_path)}
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td>
|
|
<div><img src="./images/icons/bulb16.gif" class='button' /><a href="user_video_upload.php?task=create">{lang_print id=5500191}</a></div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
{/if}
|
|
|
|
{if $task=="create" && $user->level_info.level_youtube_allow}
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td>
|
|
<div><img src="./images/icons/bulb16.gif" class='button' /><a href="user_video_upload.php?task=youtube">{lang_print id=5500192}</a></div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
{/if*}
|
|
|
|
|
|
{* SHOW ERROR MESSAGE *}
|
|
{if $is_error != 0}
|
|
<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}</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
{if $task=="youtube" || $task=="create"}
|
|
|
|
<form name='uploadForm' action='group_video_upload.php?task={if $task=="youtube"}doembed{else}docreate{/if}' method='post' id='uploadForm'>
|
|
<input type='hidden' name='group_id' value='{$group_id}' />
|
|
<b>{lang_print id=5500078}</b><br />
|
|
<input name='video_title' type='text' class='text' maxlength='50' size='30' style='border: none; width: 175px;' value='{$video->video_info.video_title}'>
|
|
<br />
|
|
<br />
|
|
|
|
|
|
<b>{lang_print id=5500079}</b><br>
|
|
<textarea name='video_desc' rows='6' cols='50'>{$video->video_info.video_desc}</textarea>
|
|
<br />
|
|
<br />
|
|
|
|
|
|
{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}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{if $task=="youtube"}
|
|
<input type='hidden' name='video_type' value='1' />
|
|
<input type='submit' class='button' name='submit' value='{lang_print id=5500186}' id='fallback_submit' />
|
|
{else}
|
|
<input type='hidden' name='video_type' value='0' />
|
|
<input type='submit' class='button' name='submit' value='{lang_print id=5500158}' id='fallback_submit' />
|
|
{/if}
|
|
|
|
</form>
|
|
|
|
{/if}
|
|
|
|
{if $task=="upload"}
|
|
<div id="div_upload">
|
|
{if !empty($allowed_exts)}{lang_sprintf id=1000090 1=$allowed_exts}<br />{/if}
|
|
You may upload files with sizes up to 70 MB.
|
|
{include file='user_upload.tpl' action='group_video_upload.php' session_id=$session_id upload_token=$upload_token show_uploader=0 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}</div>
|
|
|
|
</body></html> |