153 lines
4.7 KiB
Smarty
153 lines
4.7 KiB
Smarty
|
|
{include file='header.tpl'}
|
||
|
|
|
||
|
|
<script type="text/javascript" src="./include/ckeditor/ckeditor.js"></script>
|
||
|
|
|
||
|
|
<table cellpadding='0' cellspacing='0' width='100%'>
|
||
|
|
<tr>
|
||
|
|
<td style='vertical-align: top;'>
|
||
|
|
<div class='page_header'>
|
||
|
|
<a href='forum.php'><span style="font-size:20pt; font-weight:bold;text-transform:uppercase;">{lang_print id=6000061}</span></a> »
|
||
|
|
<a href='forum_view.php?forum_id={$forum_info.forum_id}'>{lang_print id=$forum_info.forum_title}</a> »
|
||
|
|
{if $is_reply || $is_edit}
|
||
|
|
<a href='forum_topic.php?forum_id={$forum_info.forum_id}&topic_id={$topic_info.forumtopic_id}'>{$topic_info.forumtopic_subject}</a> »
|
||
|
|
{if $is_edit}
|
||
|
|
{lang_print id=6000124}
|
||
|
|
{else}
|
||
|
|
{lang_print id=6000089}
|
||
|
|
{/if}
|
||
|
|
{else}
|
||
|
|
{lang_print id=6000065}
|
||
|
|
{/if}
|
||
|
|
</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
|
||
|
|
{* SHOW MAINTENANCE DIV *}
|
||
|
|
{if $setting.setting_forum_status == 2}
|
||
|
|
<br>
|
||
|
|
<table cellpadding='0' cellspacing='0'>
|
||
|
|
<tr><td class='result' style='text-align: left;'>{lang_print id=6000113}</td>
|
||
|
|
</table>
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
{* SHOW ERROR *}
|
||
|
|
{if $is_error != 0}
|
||
|
|
<br>
|
||
|
|
<table cellpadding='0' cellspacing='0'>
|
||
|
|
<tr><td class='error'><img src='./images/error.gif' border='0' class='icon'>{lang_print id=$is_error}</td></tr>
|
||
|
|
</table>
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
<br>
|
||
|
|
|
||
|
|
<form action='forum_new.php' method='post' enctype='multipart/form-data'>
|
||
|
|
{if (!$is_reply && !$is_edit) || ($is_edit && $show_title)}
|
||
|
|
<div class="col-sm-8">
|
||
|
|
|
||
|
|
{lang_print id=6000088}<br>
|
||
|
|
<input type='text' class='text form-control' name='topic_title' value='{$topic_title}' size='50' maxlength='50'>
|
||
|
|
</div><div class="clearfix"></div>
|
||
|
|
<br>
|
||
|
|
|
||
|
|
{/if}
|
||
|
|
<div class="col-sm-8">
|
||
|
|
|
||
|
|
{lang_print id=6000090}<br>
|
||
|
|
<textarea name="post_body" class="form-control">{$post_body|replace:"\r":''|replace:"\n":''}</textarea><br>
|
||
|
|
</div><div class="clearfix"></div>
|
||
|
|
{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( 'post_body',
|
||
|
|
{
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
toolbar: [
|
||
|
|
|
||
|
|
['Bold','Italic','Underline','StrikeThrough'],
|
||
|
|
|
||
|
|
['NumberedList', 'BulletedList'],
|
||
|
|
|
||
|
|
['Link','Unlink'],
|
||
|
|
[ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ],
|
||
|
|
|
||
|
|
['RemoveFormat'],
|
||
|
|
|
||
|
|
['Smiley','SpecialChar']
|
||
|
|
|
||
|
|
//['Source']
|
||
|
|
|
||
|
|
]
|
||
|
|
|
||
|
|
}
|
||
|
|
);
|
||
|
|
|
||
|
|
|
||
|
|
</script>{/literal}
|
||
|
|
{*
|
||
|
|
<div class="col-sm-8">
|
||
|
|
|
||
|
|
{lang_print id=6000086}<br>
|
||
|
|
|
||
|
|
{if $is_edit && $postmedia_info.is_media}
|
||
|
|
<div id='postmedia_img'>
|
||
|
|
<img src='{$postmedia_info.forummedia_path}' border='0' width='{$misc->photo_size($postmedia_info.forummedia_path,"200","200","w")}'>
|
||
|
|
<br>
|
||
|
|
<a href='javascript:void(0);' onClick="$('postmedia_img').destroy();$('postmedia_upload').style.display='block';">{lang_print id=6000126}</a>
|
||
|
|
<input type='hidden' name='postmedia_keep' value='1'>
|
||
|
|
</div>
|
||
|
|
<div id='postmedia_upload' style='display:none;'>
|
||
|
|
<input type='file' class='text' name='post_media' size='50'>
|
||
|
|
<div>{lang_print id=6000092}</div>
|
||
|
|
</div>
|
||
|
|
{else}
|
||
|
|
<input type='file' class='text' name='post_media' size='50'>
|
||
|
|
<div>{lang_print id=6000092}</div>
|
||
|
|
{/if}
|
||
|
|
</div><div class="clearfix"></div>
|
||
|
|
<br>*}
|
||
|
|
<div class="col-sm-8">
|
||
|
|
|
||
|
|
|
||
|
|
<table cellpadding='0' cellspacing='0'>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
{if $is_reply}
|
||
|
|
<input type='submit' class='button' value='{lang_print id=6000085}'>
|
||
|
|
<input type='hidden' name='task' value='reply'>
|
||
|
|
<input type='hidden' name='topic_id' value='{$topic_info.forumtopic_id}'>
|
||
|
|
{elseif $is_edit}
|
||
|
|
<input type='submit' class='button' value='{lang_print id=6000125}'>
|
||
|
|
<input type='hidden' name='task' value='edit'>
|
||
|
|
<input type='hidden' name='topic_id' value='{$topic_info.forumtopic_id}'>
|
||
|
|
<input type='hidden' name='post_id' value='{$post_id}'>
|
||
|
|
{else}
|
||
|
|
<input type='submit' class='button' value='{lang_print id=6000087}'>
|
||
|
|
<input type='hidden' name='task' value='create'>
|
||
|
|
{/if}
|
||
|
|
<input type='hidden' name='forum_id' value='{$forum_info.forum_id}'>
|
||
|
|
<input type='hidden' name='MAX_FILE_SIZE' value='50000000'>
|
||
|
|
</td>
|
||
|
|
<td> {lang_print id=6000091} <a href='{if $is_edit}forum_topic.php?forum_id={$forum_info.forum_id}&topic_id={$topic_info.forumtopic_id}&post_id={$post_id}#post_{$post_id}{elseif $is_reply}forum_topic.php?forum_id={$forum_info.forum_id}&topic_id={$topic_info.forumtopic_id}{else}forum.php?forum_id={$forum_info.forum_id}{/if}'>{lang_print id=747}</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div><div class="clearfix"></div>
|
||
|
|
</form>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
{include file='footer.tpl'}
|