Вид материалов:
Code
<script type="text/javascript" src="/js/mchat.js"></script>
<div style="padding:0 4px 5px 2px;color:252525;margin-bottom:3px;background:#;border:1px solid #4c4c4c;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius: 3px;">
<table width="100%"><tr><td>
<?if($CUSTOM1$)?><img src="$CUSTOM1$" width="13" border="0" style="vertical-align:-2px"/><?else?><img src="/images/7.png" width="13" border="0" style="vertical-align:-2px"><?endif?>
<span style='cursor: pointer;' onclick='show_bar(event, $USER_ID$)'><b>$USERNAME$</b></span></td>
<td align="right"><span style="font-size:7px">$TIME$</span></td></tr></table>
<div align="center" style="display:none" id="hide$NUMBER$"></div></tr></tbody></table>
<?if($USER_ID$ = 2)?><font color=black>$MESSAGE$</font><?else?>$MESSAGE$<?endif?>
</div>
форма добавления сообщений:
Code
<br>
<?if($FLD_CUSTOM1$ || $FLD_CUSTOM2$)?>
<div style="padding-right:2px;padding-left:2px;"><div class="mChat">
<center><img src="http://gold-soft-cs.at.ua/ichat/chat2.png" height="13" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
<img src="http://gold-soft-cs.at.ua/ichat/chdat2.png" height="13" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
<img src="http://gold-soft-cs.at.ua/ichat/chdat23.png" height="13" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
<img src="http://gold-soft-cs.at.ua/ichat/chdat4.png" height="13" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
<img src="http://gold-soft-cs.at.ua/ichat/chdat44.png" height="13" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
<img src="http://gold-soft-cs.at.ua/ichat/4.png" height="13" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
<img src="http://gold-soft-cs.at.ua/ichat/7.png" height="13" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
<img src="http://gold-soft-cs.at.ua/ichat/chdat5.png" height="12" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" />
<img src="http://gold-soft-cs.at.ua/ichat/chdat6.png" height="13" style="cursor:pointer" onclick="$('#mchatC1F').val(this.src);" /></center>
</div></div>
<?if($FLD_CUSTOM1$ || $FLD_CUSTOM2$)?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td width="50%">$FLD_CUSTOM1$</td><td>$FLD_CUSTOM2$</td></tr>
</table>
<script type="text/javascript">$('#mchatC1F').hide();</script>
<?endif?><?endif?>
<center>
<?if($USER_LOGGED_IN$)?>
<script src="/js/bbmchat.js" type="text/javascript"></script>
<span style="padding-right: 1px;" id="bc9"><input title="Вставить картинку" value="img" onclick="tag_image1('mchatMsgF','')" class="codeButtons" style="width: 25px;" id="img"type="button"></span>
<span style="padding-right:1px;" id="bc18"><input title="Вставить код" value="code" onclick="simpletag1('code','','','mchatMsgF','')" class="codeButtons" style="width: 30px;" id="code" type="button"></span>
<span style="padding-right:1px;" id="bc7"><input title="Вставить ссылку" value="http://" onclick="tag_url1('mchatMsgF','')" class="codeButtons"style="direction: ltr; width: 45px;" id="url"type="button"></span>
<span style="padding-right:1px;" id="bc1"><input title="Bold" value="b" onclick="simpletag1('b','','','mchatMsgF','')" class="codeButtons"id="b" style="width: 20px; font-weight: bold;"type="button"></span>
<span style="padding-right:1px;" id="bc2"><input title="Italic" value="i" onclick="simpletag1('i','','','mchatMsgF','')" class="codeButtons"id="i" style="width: 20px; font-style: italic;"type="button"></span>
<span style="padding-right:1px;" id="bc3"><input title="Underline" value="u" onclick="simpletag1('u','','','mchatMsgF','')" class="codeButtons"id="u" style="width: 15px; text-decoration: underline;"type="button"></span><?else?><center>[ <a href="$LOGIN_LINK$">Вход</a> | <a href="$REGISTER_LINK$">Регистрация</a> ]<?endif?>
</center>
<?if(!$USER_LOGGED_IN$)?><div align="center"><a href="$LOGIN_LINK$">Для добавления необходима авторизация</a></div><?else?>
<?if(!$CAN_ADD$)?><div align="center"><?if($LOGIN_LINK$)?><a href="$LOGIN_LINK$">Для добавления необходима авторизация</a><?else?>Доступ запрещен<?endif?></div><?else?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<td width="70%" align="right">
<a href="$RELOAD_URI$" title="Обновить"><img border="0" align="absmiddle" src="http://s12.ucoz.net/img/icon/tf.png" width="16" height="16"></a>
<?if($SMILES_URI$)?> <a href="$SMILES_URI$" title="Вставить смайл"><img border="0" align="absmiddle" src="http://s12.ucoz.net/.s/img/icon/sf.png" width="16" height="16"></a><?endif?>
<?if($BBCODES_URI$)?> <a href="$BBCODES_URI$" title="BB-Коды"><img border="0" align="absmiddle" src="http://www.dmone.ru/ichat/bb.png" width="16" height="16"></a><?endif?>
<?if($MSGCTRL_URI$)?> <a href="$MSGCTRL_URI$" title="Управление сообщениями"><img border="0" align="absmiddle" src="http://s12.ucoz.net/img/icon/cmt.png" width="16" height="16"></a><?endif?>
</td></tr></table>
<?if(!$USER_LOGGED_IN$)?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td colspan="2">$FLD_NAME$</td></tr>
<tr><td width="50%">$FLD_EMAIL$</td><td>$FLD_URL$</td></tr>
</table>
<?endif?>
<?if($FLD_SECURE$)?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td width="50%">$FLD_SECURE$</td><td align="right">$IMG_SECURE$</td></tr>
</table>
<?endif?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td width="95%" rowspan="2">$FLD_MESSAGE$</td>
</tr>
</tr></table>
<table border="0" cellpadding="1" cellspacing="1" width="30%" align="center">
<tr>
<td width="30%" align="center">
$SUBMIT$
</td>
</tr>
</table>
<?endif?><?endif?>