| 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 | {section name=message loop=$get_mail} |
| 31 | <div class='message' style=' margin-bottom:0.5em; position:relative;'> |
| 32 | <img width='50' src='{get_image_link id=$get_mail[message].mail_from}' style='float:left; margin-left:5px;' alt='{$get_mail[message].mail_from_name}' /> |
| 33 | <div class='header' style='height:auto; margin-left:61px; padding-left:0.1em'> |
| 34 | <a href="javascript:chngto('{$get_mail[message].mail_from_name}','{$get_mail[message].mail_from}')">{$get_mail[message].mail_from_name}</a> |
| 35 | {if $get_mail[message].mail_from neq $user_id and $get_mail[message].locationfrom_action_id} |
| 36 | [location:: |
| 37 | <a href='/id/{$get_mail[message].locationfrom_action_id}'>{$get_mail[message].locationfrom_action|strip_tags|stripslashes}</a> |
| 38 | ]{/if} --> |
| 39 | <a href="javascript:chngto('{$get_mail[message].mail_to_name}','{$get_mail[message].mail_to}')">{$get_mail[message].mail_to_name}</a> |
| 40 | {if $get_mail[message].mail_to neq $user_id and $get_mail[message].locationto_action_id} |
| 41 | [location:: |
| 42 | <a href='/id/{$get_mail[message].locationto_action_id}'>{$get_mail[message].locationto_action|strip_tags|stripslashes}</a> |
| 43 | ]{/if} -- |
| 44 | <input type='checkbox' name='message[{$get_mail[message].mail_id}]' id='message_{$smarty.section.message.index}' class="mail_checkbox"> |
| 45 | <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} |
| 46 | <span class='most_important'> NEW </span> |
| 47 | {elseif $get_mail[message].mail_read eq 'no' and $get_mail[message].mail_to neq $get_mail[message].mail_user} |
| 48 | <span class='most_important'> UNDEAD </span> {/if} |
| 49 | </div> |
| 50 | <div class='content' style='margin:0; margin-left:61px;'> {$get_mail[message].mail_text|nl2br|stripslashes|imagestrip} |
| 51 | </div> |
| 52 | <hr style='clear:left; height: 1px; border: none; margin:0; visibility: hidden;'> |
| 53 | </div>{/section} |