Форма добавления комментариев

 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
<div id="forma_comment_vnu">
<?if(!$USER_LOGGED_IN$)?>
<div class="pola_comment" id="mar_l"><div>Имя <span>*</span>:</div><input class="comm_p" type="text" name="name" value="$NAME$" size="30" maxlength="60"></div>
<div class="pola_comment"><div>Email <span>*</span>:</div><input class="comm_p" type="text" name="email" value="$EMAIL$" size="30" maxlength="60"></div>
<?endif?>
<div id="forma_comment_panel">
<?if($BBCODES$)?>
<div id="panel_bb">
<a class="panel_b" onclick="simpletag('b','b','','message','')" title="Жирный" style="border-left:1px solid #CAD1DB;border-right:1px solid #CAD1DB;"><i class="icon-bold"></i></a>
<a class="panel_i" onclick="simpletag('i','i','','message','')" title="Курсив" ><i class="icon-italic"></i></a>
<a class="panel_u" onclick="simpletag('u','u','','message','')" title="Подчеркнутый" style="border-left:1px solid #CAD1DB;border-right:1px solid #CAD1DB;"><i class="icon-underline"></i></a>
<a class="panel_url" onclick="tag_url('message','')" title="Добавить ссылку"><i class="icon-link"></i></a>
<a class="panel_email" onclick="tag_email('message','')" title="Добавить E-mail " style="border-left:1px solid #CAD1DB;border-right:1px solid #CAD1DB;"><i class="icon-at"></i></a>
<a class="panel_image" onclick="tag_image()" title="Добавить Картинку"><i class="icon-picture"></i></a>
<a class="panel_citata" onclick="simpletag('quote','b','','message','')" title="Цитата" style="border-left:1px solid #CAD1DB;border-right:1px solid #CAD1DB;"><i class="icon-quote-left"></i></a>
<a class="panel_code" onclick="simpletag('code','b','','message','')" title="Вставить html-css код"><i class="icon-code"></i></a>
<a class="panel_hide" onclick="tag_hide('message','')" title="Спрятать от гостей" style="border-left:1px solid #CAD1DB;border-right:1px solid #CAD1DB;"><i class="icon-lock-1"></i></a>
<a class="panel_list" onclick="tag_list()" title="Вставить Список"><i class="icon-th-list-3"></i></a>
<a class="panel_l" onclick="simpletag('l','cdl','···','message')" title="По левому краю" style="border-left:1px solid #CAD1DB;border-right:1px solid #CAD1DB;"><i class="icon-align-left-1"></i></a>
<a class="panel_c" onclick="simpletag('c','cdc','···','message')" title="По центру"><i class="icon-align-center-1"></i></a>
<a class="panel_r" onclick="simpletag('r','cdr','···','message')" title="По правому краю" style="border-left:1px solid #CAD1DB;border-right:1px solid #CAD1DB;"><i class="icon-align-right-1"></i></a>
<a class="panel_hr" onclick="add_code('[hr]','message')" title="[hr] - Линия"><i class="icon-minus-3"></i></a>
<a class="panel_close" onclick="closeall('message','');" title="Закрыть все BB-коды" style="border-left:1px solid #CAD1DB;border-right:1px solid #CAD1DB;"><i class="icon-ok-circled"></i></a>
<a class="panel_info" onclick="window.open('/index/17','bbcodes','scrollbars=1,width=550,height=450,left=0,top=0');" title="Справка по BB-кодам" style="border-left:1px solid #CAD1DB;border-right:1px solid #CAD1DB;"><i class="icon-info-circled"></i></a>
$BBCODES$
</div>
<?else?>
<div id="panel_bbt"></div>
<?endif?>
<div id="panel_smail">
<div class="left transparency_i">
<script type="text/javascript">function emoticon(code,nm){if (code != ""){var txtarea=document.getElementById(nm);code = ' ' + code + ' ';if (document.selection) {txtarea.focus();var txtContent = txtarea.value;var str = document.selection.createRange();if (str.text == ""){str.text = code;} else if (txtContent.indexOf(str.text) != -1){str.text = code + str.text;} else {txtarea.value = txtContent + code;}}else{txtarea.value = txtarea.value + code;}}}</script>
<a href="javascript://" rel="nofollow" onclick="emoticon(';)','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/wink.gif" title="wink" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon('%)','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/wacko.gif" title="wacko" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon(':p','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/tongue.gif" title="tongue" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon(':o','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/surprised.gif" title="surprised" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon(':)','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/smile.gif" title="smile" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon(':(','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/sad.gif" title="sad" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon('^_^','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/happy.gif" title="happy" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon('<_<','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/dry.gif" title="dry" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon(':'(','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/cry.gif" title="cry" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon('B)','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/cool.gif" title="cool" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon(':D','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/biggrin.gif" title="biggrin" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon('>(','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/angry.gif" title="angry" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon(':yes:','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/yes.gif" title="yes" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon(':umnik:','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/umnik.gif" title="umnik" /></a>
<a href="javascript://" rel="nofollow" onclick="emoticon(':victory:','message');return false;"><img alt="" style="margin:0;padding:0;border:0;" src="http://s5.ucoz.net/sm/23/victory.gif" title="victory" /></a>
</div>
<p><a href="javascript://" rel="nofollow" onclick="new _uWnd('Sml',' ',-250,-350,{autosize:0,closeonesc:1,resize:0},{url:'/index/35-1-0'});return false;">Все смайлы</a><?if $USER_LOGGED_IN$?> <?else?> | <a href="$REGISTER_LINK$">Регистрация</a><?endif?></p>
</div>
</div>
<textarea style="height:105px;" rows="8" name="message" id="message" cols="50">$MESSAGE$</textarea>
<div id="panel_bottom">
<?if($ERROR$)?><div id="panel_error">$ERROR$</div> <?endif?>
<div class="left"><?if($SECURITY_CODE$)?>$SECURITY_CODE$ <?endif?></div>
<div class="right"><input type="button" class="knopka_comment_dm" name="button" value="Просмотреть" onclick="precomment()"><input type="reset" class="knopka_comment_dm" name="reset" value="Очистить" title="Очистить поле сообщения"><input type="submit" class="knopka_comment_dm" name="submit" value="Добавить" title="Добавить новый комментарий"></div>
</div>
</div>
<script type="text/javascript">
function precomment(){
document.preform.message.value=$('#message').val();
<?if($SMILES$)?>document.preform.sm.value='1';<?endif?>
window.open('','commprev','scrollbars=1,width=600,height=250,left=0,top=0');
document.preform.submit();}
</script>
<link rel="stylesheet" type="text/css" href="/comment/comment.css" media="all" />