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

 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
<script type="text/javascript" src="/chats/chat.js"></script>
<?if(!$USER_LOGGED_IN$)?>
<div id="form_block">
<?if($USER_LOGGED_IN$)?>
<?else?>
<div align="center">
<!--<s5237>--><h7>Для добавления необходима авторизация.<!--</s>--></h7><br><p><a class="button" href="$LOGIN_LINK$"><!--<s3087>--><span>Вход</span><!--</s>--></a></p>
</div>
<?endif?>
</div>
<?else?>
<div id="form_block">
<div id="mess_block">
<textarea name="mcmessage" onkeyup="countMessLength();" onfocus="countMessLength();" id="mchatMsgF" class="mess"></textarea>
</div>
<?if(!$USER_LOGGED_IN$)?>
<div class="name_block">
<input type="text" maxlength="60" name="uname" size="8" class="mchat" id="mchatNmF" value="Имя" title="Имя" onfocus="if(this.value==$(this).attr('title')){this.value='';}" style="width:100%; height: 24px;" />
</div>
<!-- <div class="email_block"> </div>
<div class="site_block"> </div> -->
<?endif?>
<?if($FLD_SECURE$)?>
<table border="0" cellpadding="1" cellspacing="1" width="100%" >
<tr>
<td width="50%" style="padding-left: 3px;">$FLD_SECURE$</td>
<td align="right" style="padding-right: 3px;">$IMG_SECURE$</td>
</tr>
</table>
<?endif?>
<div id="funct_block">
<div id="ent_block">
<div class="" style="margin-top: 0px;">
<input type="submit" class="button tag" style="width:38px;height:24px;" value="GO" id="mchatBtn" />
<div align="center"><img alt="" style="display:none;margin: 2px 4px;" id="mchatAjax" src="http://s44.ucoz.net/img/fr/ajax3.gif" border="0" width="16" /> </div>
</div>
</div>
<div style="padding: 0px; vertical-align: middle;">
<a href="javascript://" onclick="openLayerB('Rules_Mchat',0,'/chats/rules_mchat.xml','Правила мини-чата',400,200,'1','','',0,'justify'); return false;" title="Правила мини-чата"><img alt=""><i class="icon-attention-alt" style="font-size: 16px; margin: -3px;"></i></a>
<a href="javascript://" rel="nofollow" onclick="document.getElementById('mchatIfm2').src='/mchat/?'+Math.random();return false;" title="Обновить"><img alt=""><i class="icon-cw" style="font-size: 16px; margin: -3px;"></i></a>
<?if($SMILES_URI$)?>
<a href="$SMILES_URI$" title="Смайлики"><img alt=""><i class="icon-smile" style="font-size: 16px; margin: -3px;"></i></a>
<?endif?>
<?if($BBCODES_URI$)?>
<a onclick="new _uWnd('bb-code','Все ВВ-коды Coz',809,450,{modal:true,close:true,header:true,nomove:false,fixed:true},'<iframe class=iframe_os src=/index/17 name=iframe frameborder=0 width=100% height=450px scrolling=value></iframe>')" href="javascript://" title="ББ-коды"><i class="icon-code" style="font-size: 16px; margin: -3px;"></i></a>
<?endif?>
<?if($MSGCTRL_URI$)?>
<a onclick="new _uWnd('mchat','Модерация мини-чата',809,450,{modal:true,close:true,header:true,nomove:false,fixed:true},'<iframe class=iframe_os src=/mchat/0-1 name=iframe frameborder=0 width=100% height=450px scrolling=value></iframe>')" href="javascript://" title="Модерация"><i class="icon-wrench" style="font-size: 16px; margin: -3px;"></i></a>
<?endif?>
<?if($GROUP_ID$=4 || $GROUP_ID$=3)?>
<a href="javascript://" rel="nofollow" onclick="delete_chat()" title="Очистка чата"><img alt=""><i class="icon-trash" style="font-size: 16px; margin: -3px;"></i></a>
<?endif?>
</div>
</div>
<script type="text/javascript" src="/chats/del.js"></script>
</div>
<?endif?>