<h3>Quick mail</h3><div>
<table width=100%>
<tr>
<td valign='top'>
<form enctype="multipart/form-data" action="/id/{$node.node_id}/{if $action neq false}{$action}{/if}"
method="post" name="formular" id="formular">

<div id='mail_form'>
	<div style='float:left; width:50px; margin: 0 6px 0 5px; padding:0;'>
		{if $post_vars.mailto neq false}
			{get_id_by_name name=$post_vars.mailto}
		{elseif $post_vars.mail_to neq false}
			{get_id_by_name name=$post_vars.mail_to}
		{else}
			{get_id_by_name name=$new_mail_name}
		{/if}
		<img src='{get_image_link id=$get_id_by_name}' name="fricon" border='0' style='
float:left; width:50px;height:50px; margin:0;' class='icoImg'/>
		<input style='width: 50px; margin:0;' type='text' name='mail_to' value="{if
$post_vars.mailto neq false}{$post_vars.mailto|escape:"html"}{elseif $post_vars.mail_to neq
false}{$post_vars.mail_to}{else}{$new_mail_name}{/if}" onmouseout="vymena()" onblur="vymena()">

	</div>
	<textarea name='mail_text' id='mail_text' class='small'
  style='width:70%; height:65px; font-size:9px; font-family: tahoma;'>{$post_vars.mail_text|escape:"html"}</textarea>
<script language="Javascript">document.getElementById('mail_text').focus();</script>
	<div class='controls' style='mardin:0; margin-left:61px; _margin-left:106px;'>
		<input type='submit' name='event' value='send' />
		<input type='checkbox' name='no_html' value='yes' />&nbsp;NO HTML
	</div>
</div>




{get_mail listing_amount=5 offset=$offset}

{section name=message loop=$get_mail}
<div class='message' style=' margin-bottom:0.5em; position:relative;'>
  <img width='23' height='23' src='{get_image_link id=$get_mail[message].mail_from}' style='float:left;
margin-left:5px;' alt='{$get_mail[message].mail_from_name}' />
  <div class='header' style='height:auto; margin-left:30px; padding-left:0.1em'>
    <a
href="javascript:chngto('{$get_mail[message].mail_from_name}','{$get_mail[message].mail_from}')">{$get_mail[message].mail_from_name}</a>
    >
    <a
href="javascript:chngto('{$get_mail[message].mail_to_name}','{$get_mail[message].mail_to}')">{$get_mail[message].mail_to_name}</a>


    <br />    {$get_mail[message].mail_timestamp|date_format:"%H:%M:%S - %d.%m.%Y"} {if
$get_mail[message].mail_to==$user_id AND $get_mail[message].mail_timestamp > $node.last_visit}&nbsp;&nbsp;
    <span class='most_important'> NEW </span>
    {elseif $get_mail[message].mail_read eq 'no' and $get_mail[message].mail_to neq
$get_mail[message].mail_user}&nbsp;&nbsp;
    <span class='most_important'> UNREAD </span>    {/if}
  </div>
  <div class='content' style='margin:0; margin-left:30px;'>
{$get_mail[message].mail_text|nl2br|stripslashes|imagestrip}
  </div>
  <hr style='clear:left; height: 1px; border: none; margin:0; visibility: hidden;'>
</div>{/section}



</form>
</td></tr></table>
</div>