Kyberia v2.3 - 1st revision from SVN (Without patches of kyberia.sk team)
[mirrors/Kyberia-bloodline.git] / data / templates / own_templates / 2471247.tpl
1 {if $template_event eq 'preview'}
2 <table>
3 <tr>
4 <td valign='top' rowspan='2' >
5 <img hspace='5' src='{get_image_link id=$user_id}'>
6 </td>
7 <td width='100%' valign='top'>
8 <table width='100%'>
9 <tr class='header'>
10 <td align='center'>PREVIEW</td>
11 </tr>
12 <tr>
13 <td>{$post_vars.mail_text|preview}</td>
14 </tr>
15 </table>
16 </td>
17 </tr>
18 </table>
19 {* end of preview *}
20
21 {elseif $template_event eq 'filter_by'}
22 {if $post_vars.mail_text neq ''}
23 {get_mail listing_amount=232323 offset=$offset search_type=$post_vars.search_type search=$post_vars.mail_text}
24 {else}
25 {get_mail listing_amount=232323 offset=$offset search_type=$post_vars.search_type search=$post_vars.mail_to}
26 {/if}
27 {else}{get_mail listing_amount=$listing_amount offset=$offset}
28 {/if}
29
30 {foreach from=$get_mail item=message}
31 <div class='message' style='clear:left; margin-bottom:0.5em; position:relative;'>
32 <img width='50' src='{get_image_link id=$message.mail_from}' style='float:left; margin-left:5px;' alt='{$message.mail_from_name|addslashes}'>
33 <div class='header' style='height:auto; margin-left:61px; padding-left:0.1em'>
34 <a href="javascript:chngto('{$message.mail_from_name|addslashes}','{$message.mail_from}')">{$message.mail_from_name}</a>
35 {if $message.mail_from neq $user_id and $message.locationfrom_action_id}[location:: <a href='/id/{$message.locationfrom_action_id}'>{$message.locationfro
36 m_action|strip_tags}</a>]{/if}
37 &nbsp;&nbsp;-->&nbsp;&nbsp;
38 <a href="javascript:chngto('{$message.mail_to_name|addslashes}','{$message.mail_to}')">{$message.mail_to_name}</a>
39 {if $message.mail_to neq $user_id and $message.locationto_action_id}[location:: <a href='/id/{$message.locationto_action_id}'>{$message.locationto_action
40 |strip_tags}</a>]{/if}
41 &nbsp;&nbsp;--&nbsp;&nbsp;<input type='checkbox' name='message[{$message.mail_id}]'>
42 <br>
43 {$message.mail_timestamp|date_format:"%H:%M:%S - %d.%m.%Y"}
44 {if $message.mail_to==$user_id AND $message.mail_timestamp > $node.last_visit}&nbsp;&nbsp;<span class='most_important'>NEW</span>
45 {elseif $message.mail_read eq 'no' and $message.mail_to neq $message.mail_user}&nbsp;&nbsp;<span class='most_important'>UNREAD</span>{/if}
46 </div>
47 <div class='content' style='margin:0; margin-left:61px;'>
48 {$message.mail_text|nl2br}
49 </div>
50 <hr style='clear:left; height: 1px; border: none; margin:0; visibility: hidden;'>
51 </div>
52 {/foreach}
This page took 0.298697 seconds and 4 git commands to generate.