Ticket #44: list-cache.tpl.2.diff

File list-cache.tpl.2.diff, 12.2 KB (added by dmorton, 12 years ago)
Line 
11,146c1,130
2< {include file="html_head.tpl"}
3< {if $message}
4< <div align="center">
5< <table border="0" cellspacing="2" cellpadding="2">
6<
7< <tr>
8< <td class="messagebox" align="center">
9< {$message}
10< </td>
11< </tr>
12<
13< </table>
14< </div><br>
15< {/if}
16<
17< <form method="get" action="list-cache.php{$msid}cache_type={$cache_type}" name="search">
18<
19< <table border="0" cellspacing="2" cellpadding="2" width="100%">
20< <tr>
21< <td class="{$header_class}" colspan="{$cols}" align="center">
22< {$lang.text_search}
23< <input type="hidden" name="cache_type" value="{$cache_type}" />
24< <input type="text" name="searchfor" value="{$searchfor}"/>
25< <input type="submit" value="{$lang.button_search}" />
26< </td>
27< </tr>
28< </table>
29< </form>
30<
31<
32<
33< <form method="post" action="list-cache.php{$msid}cache_type={$cache_type}" name="cache">
34<
35< {literal}
36< <SCRIPT Language="JavaScript">
37<       
38<       function AllSpam()
39<       {
40<               for(var i=0;i<document.cache.elements.length;i++)
41<               {
42<               if(document.cache.elements[i].type == "radio" && document.cache.elements[i].id == "spam")
43<               {
44<                       document.cache.elements[i].checked = true;
45<               }
46<               }
47<               document.cache.CheckAllHam.checked = false
48<               document.cache.CheckAllDelete.checked = false
49<       
50<       }
51<       
52<       function AllHam()
53<       {
54<               for(var i=0;i<document.cache.elements.length;i++)
55<               {
56<               if(document.cache.elements[i].type == "radio" && document.cache.elements[i].id == "ham")
57<               {
58<                       document.cache.elements[i].checked = true;
59<               }
60<               }
61<               document.cache.CheckAllSpam.checked = false
62<               document.cache.CheckAllDelete.checked = false
63<       
64<       }
65<       
66<       function AllDelete()
67<       {
68<               for(var i=0;i<document.cache.elements.length;i++)
69<               {
70<               if(document.cache.elements[i].type == "radio" && document.cache.elements[i].id == "delete")
71<               {
72<                       document.cache.elements[i].checked = true;
73<               }
74<               }
75<               document.cache.CheckAllSpam.checked = false
76<               document.cache.CheckAllHam.checked = false
77<       
78<       }
79<       
80< </SCRIPT>
81< {/literal}
82< <div align="center">
83< <table border="0" cellspacing="2" cellpadding="2" width="100%">
84<
85< <tr>
86< <th class="{$banner_class}" colspan="{$cols}" align="center">
87< {$header_text} {* ( {$data.from} - {$data.to} {$lang.text_of} {$data.numrows} ) *}
88< </th>
89< </tr>  {* pager stuff *}
90< <tr>
91< <td class="{$header_class}" colspan="{$cols}" align="center">
92< <input type="submit" name="submit" value="{$lang.button_confirm}">
93< </td>
94< </tr>
95<
96< {if $pages.total > 1}
97< <tr>
98< <td class="{$body_class}" colspan="{$cols}" align="center">
99< {$links}
100< </td>
101< </tr>
102< {/if}
103< {* end of pager stuff *}
104<
105< <tr>
106< <td class="{$header_class}" align="center">
107< {if $cache_type == 'virus'}
108< {$lang.text_virus}
109< {elseif $cache_type == 'attachment'}
110< {$lang.text_file_name}
111< {else}
112< <a href="list-cache.php{$msid}cache_type={$cache_type}&amp;{$searchadd}&sort={$sortby.score}">{$lang.text_score}</a>
113< {/if}
114< </td>
115< <td class="{$header_class}" align="center" width="150">
116< <a href="list-cache.php{$msid}cache_type={$cache_type}&amp;{$searchadd}&sort={$sortby.date}">{$lang.text_received}</a></td>
117< <td class="{$header_class}" align="center">
118< <a href="list-cache.php{$msid}cache_type={$cache_type}&amp;{$searchadd}&sort={$sortby.from}">{$lang.text_from}</a></td>
119< {if $need_to}
120<
121< <td class="{$header_class}" align="center">{$lang.text_to}</td>
122< {/if}
123< <td class="{$header_class}" align="center">
124< <a href="list-cache.php{$msid}cache_type={$cache_type}&amp;{$searchadd}&sort={$sortby.subject}">{$lang.text_subject}</a></td>
125<  <td class="{$header_class}" align="center"><input type=radio name="CheckAllSpam" value="All Spam" onClick="if (this.checked) AllSpam();" {if $def_rb == 'spam'}checked{/if}>{$lang.text_spam}</td>
126< <td class="{$header_class}" align="center"> <input type=radio name="CheckAllHam" value="All Ham" onClick="if (this.checked) AllHam();" {if $def_rb == 'ham'}checked{/if}>{$lang.text_ham}</td>
127< <td class="{$header_class}" align="center"> <input type=radio name="CheckAllDelete" value="All Delete" onClick="if (this.checked) AllDelete();" {if $def_rb == 'delete'}checked{/if}>{$lang.text_delete}</td>
128< </tr>
129< {section name=hamloop loop=$row}
130< {strip}
131<
132< <tr class="{cycle values=$body_class,$alt_body_class }">
133< <td align="center"><b>
134< {if $cache_type == 'virus'}
135< {$row[hamloop].virus_name}
136< {elseif $cache_type == 'attachment'}
137< {$row[hamloop].file}
138< {else}
139< {$row[hamloop].score}
140< {/if}
141< </b></td>
142< <td align="center" onmouseover="show_tooltip(this, event, '{$row[hamloop].received_date|escape:"javascript"|escape}')" onmouseout="hide_tooltip()">
143< {$row[hamloop].received_date|truncate:$truncate_subject:"...":true|escape}</td>
144< <td align="center" onmouseover="show_tooltip(this, event, '{$row[hamloop].sender_email|escape:"javascript|escape"}')" onmouseout="hide_tooltip()">
145< {$row[hamloop].sender_email|truncate:$truncate_email:"...":true|escape}</td>
146< {if $need_to}
147< <td align="center" onmouseover="show_tooltip(this, event, '{foreach from=$row[hamloop].recipient_email item=recip_to}{$recip_to|escape} {/foreach}')" onmouseout="hide_tooltip()">
148---
149> {include file="html_head.tpl"}
150> {if $message}
151> <div align="center">
152> <table border="0" cellspacing="2" cellpadding="2">
153>
154> <tr>
155> <td class="messagebox" align="center">
156> {$message}
157> </td>
158> </tr>
159>
160> </table>
161> </div><br>
162> {/if}
163>
164> <form method="post" action="list-cache.php{$msid}cache_type={$cache_type}" name="cache">
165>
166> {literal}
167> <SCRIPT Language="JavaScript">
168>       
169>       function AllSpam()
170>       {
171>               for(var i=0;i<document.cache.elements.length;i++)
172>               {
173>               if(document.cache.elements[i].type == "radio" && document.cache.elements[i].id == "spam")
174>               {
175>                       document.cache.elements[i].checked = true;
176>               }
177>               }
178>               document.cache.CheckAllHam.checked = false
179>               document.cache.CheckAllDelete.checked = false
180>       
181>       }
182>       
183>       function AllHam()
184>       {
185>               for(var i=0;i<document.cache.elements.length;i++)
186>               {
187>               if(document.cache.elements[i].type == "radio" && document.cache.elements[i].id == "ham")
188>               {
189>                       document.cache.elements[i].checked = true;
190>               }
191>               }
192>               document.cache.CheckAllSpam.checked = false
193>               document.cache.CheckAllDelete.checked = false
194>       
195>       }
196>       
197>       function AllDelete()
198>       {
199>               for(var i=0;i<document.cache.elements.length;i++)
200>               {
201>               if(document.cache.elements[i].type == "radio" && document.cache.elements[i].id == "delete")
202>               {
203>                       document.cache.elements[i].checked = true;
204>               }
205>               }
206>               document.cache.CheckAllSpam.checked = false
207>               document.cache.CheckAllHam.checked = false
208>       
209>       }
210>       
211> </SCRIPT>
212> {/literal}
213> <div align="center">
214> <table border="0" cellspacing="2" cellpadding="2" width="100%">
215>
216> <tr>
217> <th class="{$banner_class}" colspan="{$cols}" align="center">
218> {$header_text} {* ( {$data.from} - {$data.to} {$lang.text_of} {$data.numrows} ) *}
219> </th>
220> </tr>  {* pager stuff *}
221> <tr>
222> <td class="{$header_class}" colspan="{$cols}" align="center">
223> <input type="submit" name="submit" value="{$lang.button_confirm}">
224> </td>
225> </tr>
226>
227> {if $pages.total > 1}
228> <tr>
229> <td class="{$body_class}" colspan="{$cols}" align="center">
230> {$links}
231> </td>
232> </tr>
233> {/if}
234> {* end of pager stuff *}
235>
236> <tr>
237> <td class="{$header_class}" align="center">
238> {if $cache_type == 'virus'}
239> {$lang.text_virus}
240> {elseif $cache_type == 'attachment'}
241> {$lang.text_file_name}
242> {else}
243> <a href="list-cache.php{$msid}cache_type={$cache_type}&amp;sort={$sortby.score}">{$lang.text_score}</a>
244> {/if}
245> </td>
246> <td class="{$header_class}" align="center" width="150">
247> <a href="list-cache.php{$msid}cache_type={$cache_type}&amp;sort={$sortby.date}">{$lang.text_received}</a></td>
248> <td class="{$header_class}" align="center">
249> <a href="list-cache.php{$msid}cache_type={$cache_type}&amp;sort={$sortby.from}">{$lang.text_from}</a></td>
250> {if $need_to}
251>
252> <td class="{$header_class}" align="center">{$lang.text_to}</td>
253> {/if}
254> <td class="{$header_class}" align="center">
255> <a href="list-cache.php{$msid}cache_type={$cache_type}&amp;sort={$sortby.subject}">{$lang.text_subject}</a></td>
256>  <td class="{$header_class}" align="center"><input type=radio name="CheckAllSpam" value="All Spam" onClick="if (this.checked) AllSpam();" {if $def_rb == 'spam'}checked{/if}>{$lang.text_spam}</td>
257> <td class="{$header_class}" align="center"> <input type=radio name="CheckAllHam" value="All Ham" onClick="if (this.checked) AllHam();" {if $def_rb == 'ham'}checked{/if}>{$lang.text_ham}</td>
258> <td class="{$header_class}" align="center"> <input type=radio name="CheckAllDelete" value="All Delete" onClick="if (this.checked) AllDelete();" {if $def_rb == 'delete'}checked{/if}>{$lang.text_delete}</td>
259> </tr>
260> {section name=hamloop loop=$row}
261> {strip}
262>
263> <tr class="{cycle values=$body_class,$alt_body_class }">
264> <td align="center"><b>
265> {if $cache_type == 'virus'}
266> {$row[hamloop].virus_name}
267> {elseif $cache_type == 'attachment'}
268> {$row[hamloop].file}
269> {else}
270> {$row[hamloop].score}
271> {/if}
272> </b></td>
273> <td align="center" onmouseover="show_tooltip(this, event, '{$row[hamloop].received_date|escape:"javascript"|escape}')" onmouseout="hide_tooltip()">
274> {$row[hamloop].received_date|truncate:$truncate_subject:"...":true|escape}</td>
275> <td align="center" onmouseover="show_tooltip(this, event, '{$row[hamloop].sender_email|escape:"javascript|escape"}')" onmouseout="hide_tooltip()">
276> {$row[hamloop].sender_email|truncate:$truncate_email:"...":true|escape}</td>
277> {if $need_to}
278> <td align="center" onmouseover="show_tooltip(this, event, '{foreach from=$row[hamloop].recipient_email item=recip_to}{$recip_to|escape} {/foreach}')" onmouseout="hide_tooltip()">
279149,198c133,182
280<               {/foreach}
281< </td>
282< {/if}
283< <td align="left">
284< <a href="view.php{$msid}id={$row[hamloop].id}&cache_type={$cache_type}" onmouseover="show_tooltip(this, event, '{$row[hamloop].subject|escape:"javascript"|escape}')" onmouseout="hide_tooltip()">
285< {$row[hamloop].subject|truncate:$truncate_subject:"...":true|escape}
286< </a>
287< </td>
288<
289< <td align="center">
290< <input type="radio" id="spam" name="cache_item[multiple][{$row[hamloop].id}]" value="spam" {if $def_rb == 'spam'}checked{/if}>
291< </td>
292<
293< <td align="center">
294< <input type="radio" id="ham" name="cache_item[multiple][{$row[hamloop].id}]" value="ham" {if $def_rb == 'ham'}checked{/if}>
295< </td>
296<
297< <td align="center">
298< <input type="radio" id="delete" name="cache_item[multiple][{$row[hamloop].id}]" value="delete" {if $def_rb == 'delete'}checked{/if}>
299< </td>
300<
301< </tr>
302<
303< {/strip}
304< {/section}
305<
306< {* pager stuff *}
307< <tr>
308< <td class="{$header_class}" colspan="{$cols}" align="center">
309< <input type="submit" name="submit" value="{$lang.button_confirm}">
310< </td>
311< </tr>
312< {if $pages.total > 1}
313< <tr>
314< <td class="{$body_class}" colspan="{$cols}" align="center">
315< {$links}
316< </td>
317< </tr>
318< {/if}
319< {* end of pager stuff *}
320<
321< </table>
322< </div>
323<
324< <div align="center">
325< <a href="welcome.php{$msid}">[{$lang.link_welcome}]</a>
326< </div>
327<
328< </form>
329< {include file="html_foot.tpl"}
330---
331>               {/foreach}
332> </td>
333> {/if}
334> <td align="left">
335> <a href="view.php{$msid}id={$row[hamloop].id}&cache_type={$cache_type}" onmouseover="show_tooltip(this, event, '{$row[hamloop].subject|escape:"javascript"|escape}')" onmouseout="hide_tooltip()">
336> {$row[hamloop].subject|truncate:$truncate_subject:"...":true|escape}
337> </a>
338> </td>
339>
340> <td align="center">
341> <input type="radio" id="spam" name="cache_item[multiple][{$row[hamloop].id}]" value="spam" {if $def_rb == 'spam'}checked{/if}>
342> </td>
343>
344> <td align="center">
345> <input type="radio" id="ham" name="cache_item[multiple][{$row[hamloop].id}]" value="ham" {if $def_rb == 'ham'}checked{/if}>
346> </td>
347>
348> <td align="center">
349> <input type="radio" id="delete" name="cache_item[multiple][{$row[hamloop].id}]" value="delete" {if $def_rb == 'delete'}checked{/if}>
350> </td>
351>
352> </tr>
353>
354> {/strip}
355> {/section}
356>
357> {* pager stuff *}
358> <tr>
359> <td class="{$header_class}" colspan="{$cols}" align="center">
360> <input type="submit" name="submit" value="{$lang.button_confirm}">
361> </td>
362> </tr>
363> {if $pages.total > 1}
364> <tr>
365> <td class="{$body_class}" colspan="{$cols}" align="center">
366> {$links}
367> </td>
368> </tr>
369> {/if}
370> {* end of pager stuff *}
371>
372> </table>
373> </div>
374>
375> <div align="center">
376> <a href="welcome.php{$msid}">[{$lang.link_welcome}]</a>
377> </div>
378>
379> </form>
380> {include file="html_foot.tpl"}