<? if ($block) : ?><p class="notice"><img alt="" class="icos" src="/design/icons/cross.png"><?=$ban?></p>
<? elseif (isset($mail)) : ?><p><img alt="" class="icos" src="/design/icons/pencil.png">Диалог с <span class="color">
<?=$nick?>:</span><br><textarea class="<?=$class?>" id="smiles" maxlength="500" name="text"><?=$value?></textarea>
</p><div class="smiles"><span><img class="smile" src="/design/smiles/smile.png" alt=":)"></span><span>
<img class="smile" src="/design/smiles/wink.png" alt=";)"></span><span><img class="smile" src="/design/smiles/laugh.png" alt=":D">
</span><span><img class="smile" src="/design/smiles/biggrin.png" alt="XD"></span><span><img class="smile" src="/design/smiles/tongue.png" alt=":P">
</span><span><img class="smile" src="/design/smiles/cool.png" alt="8)"></span><span><img class="smile" src="/design/smiles/shock.png" alt=":O">
</span><span><img class="smile" src="/design/smiles/happen.png" alt=":|"></span><span><img class="smile" src="/design/smiles/sad.png" alt=":("></span>
<span><img class="smile" src="/design/smiles/angry.png" alt=":Z"></span></div><input type="hidden" name="nick" value="<?=$nick?>">
<input type="hidden" name="token" value="<?=TOKEN?>"><button>Отправить</button><? elseif (!$go) : ?><p><img alt="" class="icos" src="/design/icons/pencil.png">
Диалог с <span class="color"><?=$nick?>:</span><br><textarea id="smiles" maxlength="500" name="text"></textarea></p><div class="smiles"><span>
<img class="smile" src="/design/smiles/smile.png" alt=":)"></span><span><img class="smile" src="/design/smiles/wink.png" alt=";)">
</span><span><img class="smile" src="/design/smiles/laugh.png" alt=":D"></span><span><img class="smile" src="/design/smiles/biggrin.png" alt="XD">
</span><span><img class="smile" src="/design/smiles/tongue.png" alt=":P"></span><span><img class="smile" src="/design/smiles/cool.png" alt="8)">
</span><span><img class="smile" src="/design/smiles/shock.png" alt=":O"></span><span><img class="smile" src="/design/smiles/happen.png" alt=":|">
</span><span><img class="smile" src="/design/smiles/sad.png" alt=":("></span><span><img class="smile" src="/design/smiles/angry.png" alt=":Z">
</span></div><input type="hidden" name="nick" value="<?=$nick?>"><input type="hidden" name="token" value="<?=TOKEN?>"><button>Отправить</button>
<? else : ?><p>Обновление диалога..</p><? endif; ?>