Handle basic HTTP auth using PHP instead of using webserver configuration = better...
[mirrors/Kyberia-bloodline.git] / data / templates / own_templates / 2284397.tpl
CommitLineData
51ff3226 1{if $header_id neq true}
2{include file="1549864.tpl"}
3{/if}
4<table width=100%><tr><td valign='top' width=23%>
5</td>
6<td valign='top'>
7<form enctype="multipart/form-data" action='/id/{$node.node_id}/{if $action neq false}{$action}{/if}' method='post' name='formular' id="formular">
8<script language='javascript'>
9<!--
10{literal}
11var checked = false;
12function check_all() {
13 if (checked == false) {
14 checked = true;
15 } else {
16 checked = false;
17 }
18 for (var i = 0; i < document.getElementById('formular').elements.length; i++) {
19 document.getElementById('formular').elements[i].checked = checked;
20 }
21 alert(document.getElementById('formular').elements[4].className);
22 if (checked == false) {
23 return "check_all";
24 } else {
25 return "uncheck_all";
26 }
27}
28{/literal}
29-->
30</script>
31<input type='button' value='check_all' onclick="this.value=check_all()">
32{if $template_event eq 'preview'}
33<table>
34 <tr>
35 <td valign='top' rowspan='2' >
36 <img hspace='5' src='{get_image_link id=$user_id}'>
37 </td>
38 <td width='100%' valign='top'>
39 <table width='100%'>
40 <tr class='header'>
41 <td align='center'>PREVIEW</td>
42 </tr>
43 <tr>
44 <td>{$post_vars.mail_text|preview}</td>
45 </tr>
46 </table>
47 </td>
48 </tr>
49</table>
50{* end of preview *}
51
52{elseif $template_event eq 'filter_by'}
53 {if $post_vars.mail_text neq ''}
54 {get_mail listing_amount=232323 offset=$offset search_type=$post_vars.search_type search=$post_vars.mail_text}
55 {else}
56 {get_mail listing_amount=232323 offset=$offset search_type=$post_vars.search_type search=$post_vars.mail_to}
57 {/if}
58{else}{get_mail listing_amount=$listing_amount offset=$offset}
59{/if}
60
61{section name=message loop=$get_mail}
62<div class='message' style=' margin-bottom:0.5em; position:relative;'>
63 <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}'>
64 <div class='header' style='height:auto; margin-left:61px; padding-left:0.1em'>
65 <a href="javascript:chngto('{$get_mail[message].mail_from_name}','{$get_mail[message].mail_from}')">{$get_mail[message].mail_from_name}</a>
66 {if $get_mail[message].mail_from neq $user_id and $get_mail[message].locationfrom_action_id}[location:: <a href='/id/{$get_mail[message].locationfrom_action_id}'>{$get_mail[message].locationfrom_action|strip_tags}</a>]{/if}
67 &nbsp;&nbsp;-->&nbsp;&nbsp;
68 <a href="javascript:chngto('{$get_mail[message].mail_to_name}','{$get_mail[message].mail_to}')">{$get_mail[message].mail_to_name}</a>
69 {if $get_mail[message].mail_to neq $user_id and $get_mail[message].locationto_action_id}[location:: <a href='/id/{$get_mail[message].locationto_action_id}'>{$get_mail[message].locationto_action|strip_tags}</a>]{/if}
70 &nbsp;&nbsp;--&nbsp;&nbsp;<input type='checkbox' name='message[{$get_mail[message].mail_id}]' id='message_{$smarty.section.message.index}' class="mail_checkbox">
71 <br>
72 {$get_mail[message].mail_timestamp|date_format:"%H:%M:%S - %d.%m.%Y"}
73 {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>
74 {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}
75 </div>
76 <div class='content' style='margin:0; margin-left:61px;'>
77 {$get_mail[message].mail_text|nl2br}
78 </div>
79 <hr style='clear:left; height: 1px; border: none; margin:0; visibility: hidden;'>
80</div>
81{/section}
82
83</form>
84</td></tr></table>
85{include file="1549377.tpl"}
This page took 0.911234 seconds and 4 git commands to generate.