mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-20 17:58:24 +03:00
91 lines
5.1 KiB
Smarty
91 lines
5.1 KiB
Smarty
{include file='header.tpl' menu='talk'}
|
|
|
|
{literal}
|
|
<script language="JavaScript" type="text/javascript">
|
|
document.addEvent('domready', function() {
|
|
new Autocompleter.Request.HTML($('talk_users'), DIR_WEB_ROOT+'/include/ajax/userAutocompleter.php?security_ls_key='+LIVESTREET_SECURITY_KEY, {
|
|
'indicatorClass': 'autocompleter-loading', // class added to the input during request
|
|
'minLength': 1, // We need at least 1 character
|
|
'selectMode': 'pick', // Instant completion
|
|
'multiple': true // Tag support, by default comma separated
|
|
});
|
|
});
|
|
</script>
|
|
{/literal}
|
|
|
|
{if $oConfig->GetValue('view.tinymce')}
|
|
<script type="text/javascript" src="{cfg name='path.root.engine_lib'}/external/tinymce_3.2.7/tiny_mce.js"></script>
|
|
|
|
{literal}
|
|
<script type="text/javascript">
|
|
tinyMCE.init({
|
|
mode : "textareas",
|
|
theme : "advanced",
|
|
theme_advanced_toolbar_location : "top",
|
|
theme_advanced_toolbar_align : "left",
|
|
theme_advanced_buttons1 : "lshselect,bold,italic,underline,strikethrough,|,bullist,numlist,|,undo,redo,|,lslink,unlink,lsvideo,lsimage,pagebreak,code",
|
|
theme_advanced_buttons2 : "",
|
|
theme_advanced_buttons3 : "",
|
|
theme_advanced_statusbar_location : "bottom",
|
|
theme_advanced_resizing : true,
|
|
theme_advanced_resize_horizontal : 0,
|
|
theme_advanced_resizing_use_cookie : 0,
|
|
theme_advanced_path : false,
|
|
object_resizing : true,
|
|
force_br_newlines : true,
|
|
forced_root_block : '', // Needed for 3.x
|
|
force_p_newlines : false,
|
|
plugins : "lseditor,safari,inlinepopups,media,pagebreak",
|
|
convert_urls : false,
|
|
extended_valid_elements : "embed[src|type|allowscriptaccess|allowfullscreen|width|height]",
|
|
language : TINYMCE_LANG
|
|
});
|
|
</script>
|
|
{/literal}
|
|
{else}
|
|
{include file='window_load_img.tpl' sToLoad='talk_text'}
|
|
{/if}
|
|
|
|
|
|
|
|
<h2>{$aLang.talk_create}</h2>
|
|
<form action="" method="POST" enctype="multipart/form-data">
|
|
<input type="hidden" name="security_ls_key" value="{$LIVESTREET_SECURITY_KEY}" />
|
|
|
|
<p><label for="talk_users">{$aLang.talk_create_users}:</label><input type="text" class="w100p" id="talk_users" name="talk_users" value="{$_aRequest.talk_users}"/></p>
|
|
<p><label for="talk_title">{$aLang.talk_create_title}:</label><input type="text" class="w100p" id="talk_title" name="talk_title" value="{$_aRequest.talk_title}"/></p>
|
|
|
|
<label for="talk_text">{$aLang.talk_create_text}:</label>
|
|
{if !$oConfig->GetValue('view.tinymce')}
|
|
<div class="panel-form">
|
|
<select onchange="lsPanel.putTagAround('talk_text',this.value); this.selectedIndex=0; return false;" style="width: 91px;">
|
|
<option value="">{$aLang.panel_title}</option>
|
|
<option value="h4">{$aLang.panel_title_h4}</option>
|
|
<option value="h5">{$aLang.panel_title_h5}</option>
|
|
<option value="h6">{$aLang.panel_title_h6}</option>
|
|
</select>
|
|
<select onchange="lsPanel.putList('talk_text',this); return false;">
|
|
<option value="">{$aLang.panel_list}</option>
|
|
<option value="ul">{$aLang.panel_list_ul}</option>
|
|
<option value="ol">{$aLang.panel_list_ol}</option>
|
|
</select>
|
|
<a href="#" onclick="lsPanel.putTagAround('talk_text','b'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/bold_ru.gif" width="20" height="20" title="{$aLang.panel_b}"></a>
|
|
<a href="#" onclick="lsPanel.putTagAround('talk_text','i'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/italic_ru.gif" width="20" height="20" title="{$aLang.panel_i}"></a>
|
|
<a href="#" onclick="lsPanel.putTagAround('talk_text','u'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/underline_ru.gif" width="20" height="20" title="{$aLang.panel_u}"></a>
|
|
<a href="#" onclick="lsPanel.putTagAround('talk_text','s'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/strikethrough.gif" width="20" height="20" title="{$aLang.panel_s}"></a>
|
|
|
|
<a href="#" onclick="lsPanel.putTagUrl('talk_text','{$aLang.panel_url_promt}'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/link.gif" width="20" height="20" title="{$aLang.panel_url}"></a>
|
|
<a href="#" onclick="lsPanel.putQuote('talk_text'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/quote.gif" width="20" height="20" title="{$aLang.panel_quote}"></a>
|
|
<a href="#" onclick="lsPanel.putTagAround('talk_text','code'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/code.gif" width="30" height="20" title="{$aLang.panel_code}"></a>
|
|
<a href="#" onclick="lsPanel.putTagAround('talk_text','video'); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/video.gif" width="20" height="20" title="{$aLang.panel_video}"></a>
|
|
|
|
<a href="#" onclick="showImgUploadForm(); return false;" class="button"><img src="{cfg name='path.static.skin'}/images/panel/img.gif" width="20" height="20" title="{$aLang.panel_image}"></a>
|
|
</div>
|
|
{/if}
|
|
<p><textarea name="talk_text" id="talk_text" rows="12">{$_aRequest.talk_text}</textarea></p>
|
|
|
|
<p><input type="submit" value="{$aLang.talk_create_submit}" name="submit_talk_add"/></p>
|
|
</form>
|
|
|
|
|
|
{include file='footer.tpl'} |