Code

Updated buttons
[gosa.git] / gosa-plugins / mail / addons / mailqueue / contents.tpl
1 <div style="height: 5px;">&nbsp;</div>
2 <div class="contentboxh">
3  <p class="contentboxh"><img src="images/launch.png" alt="[F]" align="right">Filter</p>
4 </div>
5 <div class="contentboxb">
6   <div >
7         <table width="100%" summary="">
8                 <tr>
9                         <td>
10         <img class="center" alt="{t}Search{/t}" src="images/lists/search.png" align="middle" border="0">
11          &nbsp;{t}Search for{/t}
12     <input type='text' name="search_for" size="12" maxlength="60" value="{$search_for}" title="{t}Please enter a search string here.{/t}" onchange="mainform.submit()">
13          &nbsp;in 
14         <select size="1" name="p_server" title="{t}Select a server{/t}" onchange="mainform.submit()">
15          {html_options values=$p_serverKeys output=$p_servers selected=$p_server}
16         </select>
17 <!--
18         {t}with status{/t} : 
19         <select size="1" name="Stat" onchange="mainform.submit()">
20          {html_options values=$stats output=$r_stats selected=$stat}
21         </select>
22 -->
23          &nbsp;{t}within the last{/t}&nbsp;
24         <select size="1" name="p_time" onchange="mainform.submit()">
25          {html_options values=$p_timeKeys output=$p_times selected=$p_time}
26         </select>
27          &nbsp;
28         <button type='submit' name='search'>{t}Search{/t}</button>
30                         </td>
31                         <td style="border-left:1px solid #A0A0A0; text-align:right;">&nbsp;
32                                 {if $delAll_W}
33                                 <input name="all_del"  src="images/lists/trash.png"             
34                                         value="{t}Remove all messages{/t}" type="image" 
35                                         title="{t}Remove all messages from selected servers queue{/t}">
36                                 {/if}
37                                 {if $holdAll_W}
38                                 <input name="all_hold" src="plugins/mail/images/mailq_hold.png"
39                                         value="{t}Hold all messages{/t}" type="image"
40                                         title="{t}Hold all messages in selected servers queue{/t}">
41                                 {/if}
42                                 {if $unholdAll_W}
43                                 <input name="all_unhold" src="plugins/mail/images/mailq_unhold.png"             
44                                         value="{t}Release all messages{/t}"     type="image"
45                                         title="{t}Release all messages in selected servers queue{/t}">
46                                 {/if}
47                                 {if $requeueAll_W}
48                                 <input name="all_requeue" src="images/lists/reload.png"         
49                                         value="{t}Requeue all messages{/t}" type="image"
50                                         title="{t}Requeue all messages in selected servers queue{/t}">
51                                 {/if}
52                         </td>
53                 </tr>
54         </table>
55         </div>
56 </div>
57 <br>
59 {if !$query_allowed}
60         <b>{msgPool type=permView}</b>
61 {else}
63 {if $all_ok != true}
64 <b>{t}Search returned no results{/t}...</b>
65 {else}
67 <table style="border: 1px solid rgb(176, 176, 176); width: 100%; vertical-align: top; text-align: left;" summary=""
68  border="0" cellpadding="2" cellspacing="1" rules="cols">
69         <tr style="background-color: rgb(232, 232, 232); height: 26px; font-weight: bold;">
70                 <td style='width:20px'>
71                 <input type='checkbox' id='select_all' name='select_all' title='"._("Select all")."'
72                onClick="toggle_all_('^selected_.*$','select_all');"></td>
73                 <td><a href="{$plug}&amp;sort=MailID"           >{t}ID{/t}                      {if $OrderBy == "MailID"}       {$SortType}{/if}</a></td>
74                 <td><a href="{$plug}&amp;sort=Server"           >{t}Server{/t}          {if $OrderBy == "Server"}       {$SortType}{/if}</a></td>
75                 <td><a href="{$plug}&amp;sort=Size"                     >{t}Size{/t}            {if $OrderBy == "Size"}         {$SortType}{/if}</a></td>
76                 <td><a href="{$plug}&amp;sort=Arrival"          >{t}Arrival{/t}         {if $OrderBy == "Arrival"}      {$SortType}{/if}</a></td>
77                 <td><a href="{$plug}&amp;sort=Sender"           >{t}Sender{/t}          {if $OrderBy == "Sender"}       {$SortType}{/if}</a></td>
78                 <td><a href="{$plug}&amp;sort=Recipient"        >{t}Recipient{/t}       {if $OrderBy == "Recipient"}{$SortType}{/if}</a></td>
79                 <td><a href="{$plug}&amp;sort=Status"           >{t}Status{/t}          {if $OrderBy == "Status"}       {$SortType}{/if}</a></td>
80                 <td>&nbsp;</td>
81         </tr>
83 {counter start=0 assign=i start=1}
84 {foreach from=$entries item=val key=key}
85                         
86         {if ($i%2)==0}
87                 <tr style="height: 22px; background-color: rgb(236, 236, 236);">
88         {else}
89                 <tr style="height: 22px; background-color: rgb(245, 245, 245);">
90         {/if}
91                 <td><input id="selected_{$entries[$key].MailID}" type='checkbox' name='selected_{$entries[$key].MailID}_{$entries[$key].Server}' class='center'></td>
92                 <td >
93                         {if $entries[$key].Active == true}
94                                 <img class="center" src="plugins/mail/images/mailq_active.png" border=0 alt="{t}Active{/t}">
95                         {/if}
96                         {$entries[$key].MailID}</td>
97                 <td>{$entries[$key].ServerName}</td>
98                 <td>{$entries[$key].Size}</td>
99                 <td>{$entries[$key].Arrival|date_format:"%d.%m.%Y %H:%M:%S"}</td>
100                 <td>{$entries[$key].Sender}</td>
101                 <td>{$entries[$key].Recipient}</td>
102                 <td >{$entries[$key].Status}</td>
103                 <td style="text-align:right">
104                         {if $del_W}
105                                 <input type='image' name='del__{$entries[$key].MailID}__{$entries[$key].Server}' class="center" 
106                                         src="images/lists/trash.png" alt="{t}delete{/t}" title="{t}Delete this message{/t}">
107                         {else}
108                                 <img src='images/empty.png' alt=' '>
109                         {/if}
110                         {if $entries[$key].Hold == true}
112                                 {if $unhold_W}
113                                         <input type='image' name='unhold__{$entries[$key].MailID}__{$entries[$key].Server}' class="center"
114                                                 src="plugins/mail/images/mailq_unhold.png" alt="{t}unhold{/t}" title="{t}Release message{/t}">
115                                 {else}
116                                         <img src='images/empty.png' alt=' '>
117                                 {/if}
118                         {else}
119                                 {if $hold_W}
120                                         <input type='image' name='hold__{$entries[$key].MailID}__{$entries[$key].Server}' class="center"
121                                                 src="plugins/mail/images/mailq_hold.png" alt="{t}hold{/t}" title="{t}Hold message{/t}">
122                                 {else}
123                                         <img src='images/empty.png' alt=' '>
124                                 {/if}
125                         {/if}
126                         {if $requeue_W}
127                                 <input type='image' name='requeue__{$entries[$key].MailID}__{$entries[$key].Server}' class="center"
128                                         src="images/lists/reload.png" alt="{t}requeue{/t}" title="{t}Requeue this message{/t}">
129                         {else}
130                                 <img src='images/empty.png' alt=' '>
131                         {/if}
132                         {if $header_W}
133                                 <input type='image' name='header__{$entries[$key].MailID}__{$entries[$key].Server}' class="center"
134                                         src="plugins/mail/images/mailq_header.png" alt="{t}header{/t}" 
135                                         title="{t}Display header of this message{/t}">
136                         {else}
137                                 <img src='images/empty.png' alt=' '>
138                         {/if}
139                 </td>
140         </tr>
141         {counter}
142 {/foreach}
143 </table>
145  <table summary="" style="width:100%; vertical-align:top; text-align:center;" cellpadding=4 cellspacing=0 border=0>
146   <tr>
147    <td>{$range_selector}</td>
148   </tr>
149  </table>
151 {/if}
152 {/if}
154 <hr>
156 <script language="JavaScript" type="text/javascript">
157   <!-- // First input field on page
158         focus_field('search_for');
159   -->
160 </script>