Commit | Line | Data |
---|---|---|
e586807d H |
1 | <!-- |
2 | This program is free software. It comes without any warranty, to | |
3 | the extent permitted by applicable law. You can redistribute it | |
4 | and/or modify it under the terms of the Do What The Fuck You Want | |
5 | To Public License, Version 2, as published by Sam Hocevar. See | |
6 | http://sam.zoy.org/wtfpl/COPYING for more details. | |
7 | --> | |
8 | ||
9 | {if $template_event eq 'preview'} | |
10 | <table> | |
11 | <tr> | |
12 | <td valign='top' rowspan='2' ><img hspace='5' src='{get_image_link id=$user_id}'></td> | |
13 | <td width='100%' valign='top'> | |
14 | <table width='100%'><tr class='header'> | |
15 | <td align='center'>PREVIEW | |
16 | ||
17 | <tr><td>{$post_vars.mail_text|preview}</td></tr> | |
18 | </table> | |
19 | </table> | |
20 | {* end of preview *} | |
21 | ||
22 | {elseif $template_event eq 'filter_by'} | |
23 | {get_mail listing_amount=23232322323 offset=$offset search_type=$post_vars.search_type search=$post_vars.mail_text} | |
24 | ||
25 | {else}{get_mail listing_amount=$listing_amount offset=$offset} | |
26 | {/if} | |
27 | ||
28 | {foreach from=$get_mail item=message} | |
29 | <table> | |
30 | <tr> | |
31 | <td valign='top' rowspan='2'><img hspace='5' width='50' src='{get_image_link id=$message.mail_from}'> | |
32 | <td class='header' valign='top'> | |
33 | <a href='javascript:chngto("{$message.mail_from_name}","{$message.mail_from}")'>{$message.mail_from_name}</a> | |
34 | {if $message.mail_from neq $user_id and $message.locationfrom_action_id}[location:: <a href='/id/{$message.locationfrom_action_id}'>{$message.locationfrom_action}</a>]{/if} | |
35 | --> | |
36 | <a href='javascript:chngto("{$message.mail_to_name}","{$message.mail_to}")'>{$message.mail_to_name}</a> | |
37 | {if $message.mail_to neq $user_id and $message.locationto_action_id}[location:: <a href='/id/{$message.locationto_action_id}'>{$message.locationto_action}</a>]{/if} | |
38 | -- <input type='checkbox' name='message[{$message.mail_id}]'> | |
39 | <br> | |
40 | {if $message.mail_to==$user_id AND $message.mail_timestamp > $node.last_visit}<span class='most_important'>NEW</span> | |
41 | {elseif $message.mail_read eq 'no' and $message.mail_to neq $message.mail_user}<span class='most_important'>UNDELIVERED</span>{/if} | |
42 |   {$message.mail_timestamp|date_format:"%H:%M:%S - %d.%m.%Y"} | |
43 | </td> | |
44 | </tr> | |
45 | <tr> | |
46 | <td valign='top'>{$message.mail_text|nl2br}</td> | |
47 | </tr> | |
48 | </table> | |
49 | {/foreach} | |
50 | ||
51 | ||
52 |