Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / templates / sv / modules / mail.tpl
CommitLineData
e586807d
H
1<!--
2This program is free software. It comes without any warranty, to
3the extent permitted by applicable law. You can redistribute it
4and/or modify it under the terms of the Do What The Fuck You Want
5To Public License, Version 2, as published by Sam Hocevar. See
6http://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{/if}
22
23{get_mail listing_amount=$listing_amount offset=$offset}
24{foreach from=$get_mail item=message}
25<table>
26<tr>
27<td valign='top' rowspan='2'><img hspace='5' width='50' src='{get_image_link id=$message.mail_from}'>
28<td class='header' valign='top'>
29<a href='javascript:chngto("{$message.mail_from_name}","{$message.mail_from}")'>{$message.mail_from_name}</a>
30{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}
31&nbsp;&nbsp;-->&nbsp;&nbsp;
32<a href='javascript:chngto("{$message.mail_to_name}","{$message.mail_to}")'>{$message.mail_to_name}</a>
33{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}
34&nbsp;&nbsp;--&nbsp;&nbsp;<input type='checkbox' name='message[{$message.mail_id}]'>
35<br>
36{if $message.mail_to==$user_id AND $message.mail_timestamp > $node.last_visit}<span class='most_important'>NEW</span>
37{elseif $message.mail_read eq 'no'}<span class='most_important'>UNDELIVERED</span>{/if}
38&nbsp&nbsp;{$message.mail_timestamp|date_format:"%H:%M:%S - %d.%m.%Y"}
39</td>
40</tr>
41<tr>
42<td valign='top'>{$message.mail_text}</td>
43</tr>
44</table>
45{/foreach}
46
47
48
This page took 0.16008 seconds and 4 git commands to generate.