Форма добавления сообщения

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<div class="gDivLeft"><div class="gDivRight">
<table border="0" width="100%" cellspacing="1" cellpadding="0" class="gTable" id="frM53">
<tr id="frM54"><td colspan="2" class="gTableTop" id="frM55"><div style="float:right" class="gTopCornerRight"></div><a name="post">$FORM_TITLE$</a></td></tr>
<?if($ERROR$)?>
<tr id="frM1"><td colspan="2" align="center" class="gTableError" id="frM2">$ERROR$</td></tr>
<?endif?>
<?if($_USER$)?>
<tr id="frM3"><td class="gTableLeft" id="frM4">Имя:</td><td class="gTableRight" id="frM5">$_USER$</td></tr>
<?endif?>
<?if($_THREAD_NAME$)?>
<tr id="frM25"><td class="gTableLeft" id="frM26">Название темы:</td><td class="gTableRight" id="frM27">$_THREAD_NAME$</td></tr>
<tr id="frM28"><td class="gTableLeft" id="frM29">Описание темы:</td><td class="gTableRight" id="frM30">$_THREAD_DESCR$</td></tr>
<?endif?>
<?if($_POLL_QUESTION$)?>
<tr id="frM31"><td class="gTableRight" colspan="2" id="frM32">&nbsp;</td></tr><tr id="frM33"><td class="gTableLeft" id="frM34">Вопрос голосования:</td><td class="gTableRight" id="frM35">$_POLL_QUESTION$</td></tr><tr id="frM36"><td class="gTableLeft" id="frM37">Пункты опроса:<div class="pollHelp">Введите по одному ответу на строку. Максимум <b>10</b> ответов.</div></td><td class="gTableRight" id="frM38">$_POLL_ANSWERS$</td></tr><tr id="frM40"><td class="gTableLeft" id="frM41">Опции опроса:</td><td class="gTableRight" id="frM42">$_POLL_ONLY_OPT$ <label for="pollonly">Только опрос (писать ответы в теме будет нельзя)</label><br />$_POLL_MULTI_OPT$ <label for="pollmulty">Включить возможность выбора нескольких вариантов ответов</label><br />$_POLL_PERIOD_OPT$ Период голосования (0 - без ограничений)</td></tr><tr id="frM43"><td class="gTableRight" colspan="2" id="frM44">&nbsp;</td></tr>
<?endif?>
<tr id="frM56"><td width="25%" class="gTableLeft" id="frM57" valign="top">Текст сообщения:<div class="smilesPart">$SMILES$</div></td><td class="gTableRight" id="frM58">
<span style="display:none;">$BBCODES$</span>
<script src="/js/bbcodes.js" type="text/javascript"></script>
<div align="center" style="padding-bottom:2px;">
<?if($CUR_GROUP_ID$ = '3' || $CUR_GROUP_ID$ = '4')?>
<span style="padding-right:-3px;">
<input class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="simpletag('admin','b','','message','')" value="&#xe87c;" title="Сообщение админа">
</span>
<span style="padding-right:-3px;">
<input class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="simpletag('moder','b','','message','')" value="&#xe84b;" title="Сообщение модера">
</span>
<?endif?>
<span id="bc1" style="padding-right:-3px;">
<input id="b" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="simpletag('b','','','message','')" value="&#xe8fc;" title="Жирный шрифт">
</span>
<span id="bc2" style="padding-right:-3px;">
<input id="i" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="simpletag('i','','','message','')" value="&#xe8fd;" title="Наклонный шрифт">
</span>
<span id="bc3" style="padding-right:-3px;">
<input id="u" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="simpletag('u','','','message','')" value="&#xe90a;" title="Подчеркнутый шрифт">
</span>
<span id="bc5" style="padding-right:-3px;">
<input class="bbbuttom" type="button" style="width:25px;font-family:'fontello';" href="javascript://" onclick="$('#code_family').slideToggle('fast');" value="&#xe8fb;" title="Выбрать шрифт">
<div id="code_family">
<span onclick="javascript:alterfont('Times','font','message','')" style="font-family:Times;" class="tagbb">Times</span>
<span onclick="javascript:alterfont('Arial','font','message','')" style="font-family:Arial;" class="tagbb">Arial</span>
<span onclick="javascript:alterfont('Courier','font','message','')" style="font-family:Courier;" class="tagbb">Courier</span>
<span onclick="javascript:alterfont('Impact','font','message','')" style="font-family:Impact;" class="tagbb">Impact</span>
<span onclick="javascript:alterfont('Geneva','font','message','')" style="font-family:Geneva;" class="tagbb">Geneva</span>
<span onclick="javascript:alterfont('Arial Black','font','message','')" style="font-family:Arial Black;" class="tagbb">Arial Black</span>
<span onclick="javascript:alterfont('Tahoma','font','message','')" style="font-family:Tahoma;" class="tagbb">Tahoma</span>
</div>
</span>
<span id="bc4" style="padding-right:-3px;">
<input class="bbbuttom" type="button" style="width:25px;font-family:'fontello';" href="javascript://" onclick="$('#code_size').slideToggle('fast');" value="&#xef26;" title="Размер шрифта">
<div id="code_size">
<span onclick="javascript:alterfont('6','size','message','')" class="tagbb">6pt</span>
<span onclick="javascript:alterfont('8','size','message','')" class="tagbb">8pt</span>
<span onclick="javascript:alterfont('10','size','message','')" class="tagbb">10pt</span>
<span onclick="javascript:alterfont('12','size','message','')" class="tagbb">12pt</span>
<span onclick="javascript:alterfont('14','size','message','')" class="tagbb">14pt</span>
<span onclick="javascript:alterfont('16','size','message','')" class="tagbb">16pt</span>
<span onclick="javascript:alterfont('18','size','message','')" class="tagbb">18pt</span>
<span onclick="javascript:alterfont('20','size','message','')" class="tagbb">20pt</span>
<span onclick="javascript:alterfont('22','size','message','')" class="tagbb">22pt</span>
<span onclick="javascript:alterfont('24','size','message','')" class="tagbb">24pt</span>
</div>
</span>
<span id="bc6" style="padding-right:-3px;">
<input class="bbbuttom" type="button" style="width:25px;font-family:'fontello';" href="javascript://" onclick="$('#code_color').slideToggle('fast');" value="&#xe91d;" title="Цвет шрифта">
<div id="code_color">
<span onclick="javascript:alterfont('#00e4ff','color','message',''),bbcodes();return false;" class="tagbb" style="color:#00e4ff;">Голубой</span>
<span onclick="javascript:alterfont('orange','color','message','')" class="tagbb" style="color:orange;">Оранжевый</span>
<span onclick="javascript:alterfont('red','color','message','')" class="tagbb" style="color:red;">Красный</span>
<span onclick="javascript:alterfont('#f0f','color','message','')" class="tagbb" style="color:#f0f;">Розовый</span>
<span onclick="javascript:alterfont('green','color','message','')" class="tagbb" style="color:green;">Зелёный</span>
<span onclick="javascript:alterfont('#8400ff','color','message','')" class="tagbb" style="color:#8400ff;">Фиолетовый</span>
<span onclick="javascript:alterfont('gray','color','message','')" class="tagbb" style="color:gray;">Серый</span>
<span onclick="javascript:alterfont('#000000','color','message','')" class="tagbb" style="color:#000000;">Чёрный</span>
</div>
</span>
<span id="bc7" style="padding-right:-3px;">
<input id="url" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="tag_url2('message','')" value="&#xe9b4;" title="Вставить ссылку">
</span>
<span id="bc8" style="padding-right:-3px;">
<input id="email" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="tag_email('message','')" value="&#xec76;" title="Вставить e-mail">
</span>
<span id="bc9" style="padding-right:-3px;">
<input class="bbbuttom" type="button" style="width:25px;font-family:'fontello';" href="javascript://" onclick="$('#imgbb').slideToggle('fast');" value="&#xe833;" title="Вставить изображение">
<div id="imgbb">
<span onclick="new _uWnd('img_up','Загрузка изображений на фотохостинг',820,450,{modal:true,close:true,header:true,nomove:false,fixed:true},'<iframe class=iframe_os src=http://img.sc/ name=iframe frameborder=0 width=100% height=450px scrolling=value></iframe>')" class="tagbb" style="color:#61B3A3;" href="javascript://">Загрузить Img</a></span>
<span onclick="tag_imgmin('message','')" class="tagbb" style="color:#000">Одиночное</span>
<span onclick="tag_imgleft('message','')" class="tagbb" style="color:#0387B2">Слева</span>
<span onclick="tag_imgright('message','')" class="tagbb" style="color:#F96E38">Справа</span>
<span onclick="tag_thumb('message','')" class="tagbb" style="color:#026011">Галерея</span>
</div>
</span>
<span id="bc10" style="padding-right:-3px;">
<input id="quote" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="simpletag('quote','','','message','')" value="&#xe9c5;" title="Вставить цитату">
</span>
<span id="bc11" style="padding-right:-3px;">
<input id="codes" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="simpletag('code','','','message','')" value="&#xe86c;" title="Вставить код">
</span>
<span id="bc34" style="padding-right:-3px;">
<input id="spoiler" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="tag_spoiler('message','')" value="&#xe941;" title="Убрать в спойлер">
</span>
<span id="bc38" style="padding-right:-3px;">
<input id="hide" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="tag_hide('message','')" value="&#xed24;" title="Скрыть от гостей">
</span>
<span id="bc12" style="padding-right:-3px;">
<input id="list" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="tag_list('message','')" value="&#xe904;" title="Вставить список">
</span>
<span id="bc13" style="padding-right:-3px;">
<input id="cdl" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="simpletag('l','cdl','···','message')" value="&#xe900;" title="Выравнивание текста слева">
</span>
<span id="bc14" style="padding-right:-3px;">
<input id="cdc" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="simpletag('c','cdc','···','message')" value="&#xe901;" title="Выравнивание текста по центру">
</span>
<span id="bc15" style="padding-right:-3px;">
<input id="cdr" class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="simpletag('r','cdr','···','message')" value="&#xe902;" title="Выравнивание текста справа">
</span>
<span id="bc16" style="padding-right:-3px;">
<input class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="window.open('/index/17','bbcodes','scrollbars=1,width=550,height=450,left=0,top=0');" value="&#xe840;" title="Обзор бб-кодов">
</span>
<span id="bc17" style="padding-right:-3px;">
<input class="codeButtons codeCloseAll" type="button" style="width:25px;font-family:'fontello';" onclick="closeall('message','');" title="" value="&#xe839;" title="Закрыть все незакрытые теги">
</span>
<span id="bc18" style="padding-right:-3px;">
<input class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="new _uWnd('Sml',' ',-250,-350,{autosize:0,closeonesc:1,resize:0},{url:'/index/35-23-'});" value="&#xe958;" title="Все смайлы">
</span>
<span id="bc19" style="padding-right:-3px;">
<input class="codeButtons" type="button" style="width:25px;font-family:'fontello';" onclick="window.open('/forum/0-0-0-31','virtKB','width=300,height=120,top=0,left=0');" value="&#xe874;" title="Клавиатура">
</span>
<input id="tagcount" type="hidden" value="0">
</div>
$_MESSAGE$</td></tr>
<?if($MESSAGE_OPTIONS_FLAG$)?>
<tr id="frM14"><td class="gTableLeft" id="frM15">Опции сообщения:</td><td class="gTableRight" id="frM16">
<?if($_HTML_OPT$)?>
$_HTML_OPT$ <label for="ahtml">Включить HTML теги</label><br />$_MAKE_BR_OPT$ <label for="frmt">Заменять переводы строк тегом <b>&lt;BR></b></label><br>
<?endif?>
<?if($_EDITED_OPT$)?>
$_EDITED_OPT$ <label for="edited">Добавить надпись &quot;Отредактировано...&quot; в это сообщение?</label><br />
<?endif?>
<?if($_SMILES_OPT$)?>
$_SMILES_OPT$ <label for="smon">Включить смайлы</label><br />
<?endif?>
<?if($_SIGNATURE_OPT$)?>
$_SIGNATURE_OPT$ <label for="sgon">Включить подпись</label><br />
<?endif?>
<?if($_SUBSCRIBE_OPT$)?>
$_SUBSCRIBE_OPT$ <label for="sbon">Уведомления на e-mail при ответах</label><br />
<?endif?>
</td></tr>
<?endif?>
<?if($MODER_OPTIONS_FLAG$)?>
<tr id="frM6"><td class="gTableLeft" id="frM7">Опции темы:</td><td class="gTableRight" id="frM8">
<?if($_FIRSTONTOP_OPT$)?>
$_FIRSTONTOP_OPT$ <label for="firstontop">Первое сообщение темы сделать шапкой (показывать на всех страницах)</label><br />
<?endif?>
<?if($_ONTOP_OPT$)?>
$_ONTOP_OPT$ <label for="isontop">Тема всегда сверху</label><br />
<?endif?>
<?if($_CLOSED_OPT$)?>
$_CLOSED_OPT$ <label for="isclosed">Закрытая тема</label><br />
<?endif?>
<?if($_NOTIFY_OPT$)?>
$_NOTIFY_OPT$ <label for="notify">Сообщить подписчикам о редактировании темы</label>
<?endif?>
</td></tr>
<?endif?>
<?if($_CHANGE_USER$)?>
<tr>
<td class="gTableLeft">Автор темы:</td>
<td class="gTableRight">
$_CHANGE_USER$
</td>
</tr>
<?endif?>
<?if($_FILES_UPLOADER$)?>
<tr id="frM50"><td class="gTableLeft" id="frM51">Прикрепить файл: <span style="font-size:7pt;">(не более <b>$FILE_MAX_SIZE$</b>Kb)</span></td><td class="gTableRight" id="frM52">$_FILES_UPLOADER$</td></tr>
<?endif?>
<?if($_SECURITY_CODE$)?>
<tr id="frM45"><td class="gTableLeft" id="frM46">Код безопасности:</td><td class="gTableRight" id="frM47">$_SECURITY_CODE$</td></tr>
<?endif?>
<tr id="frM59"><td class="gTableRight" colspan="2" align="center" id="frM60"><input style="width:110px;" id="frF15" class="postPreview" type="button" value="Просмотреть" onclick="prepost();" /> <input type="submit" id="frF16" name="sbm" style="width:150px;font-weight:bold;" class="postSubmit" value="$SUBMIT_SIGN$" /> <input style="width:110px;" id="frF17" class="postReset" type="reset" value="Отменить" /></td></tr>
</table>
</div></div><div class="gDivBottomLeft"></div><div class="gDivBottomCenter"></div><div class="gDivBottomRight"></div>