1 | {* $Id: history.tpl 2680 2008-10-07 19:18:55Z rub $ *} |
---|
2 | |
---|
3 | {include file='include/datepicker.inc.tpl'} |
---|
4 | |
---|
5 | {literal} |
---|
6 | <script type="text/javascript"> |
---|
7 | pwg_initialization_datepicker("#start_day", "#start_month", "#start_year", "#start_linked_date", null, null, "#end_linked_date"); |
---|
8 | pwg_initialization_datepicker("#end_day", "#end_month", "#end_year", "#end_linked_date", null, "#start_linked_date", null); |
---|
9 | </script> |
---|
10 | {/literal} |
---|
11 | |
---|
12 | <div class="titrePage"> |
---|
13 | <h2>{'History'|@translate} {$TABSHEET_TITLE}</h2> |
---|
14 | </div> |
---|
15 | |
---|
16 | <form class="filter" method="post" name="filter" action="{$F_ACTION}"> |
---|
17 | <fieldset> |
---|
18 | <legend>{'Filter'|@translate}</legend> |
---|
19 | <ul> |
---|
20 | <li><label>{'search_date_from'|@translate}</label></li> |
---|
21 | <li> |
---|
22 | <select id="start_day" name="start_day"> |
---|
23 | <option value="0">--</option> |
---|
24 | {section name=day start=1 loop=32} |
---|
25 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
26 | {/section} |
---|
27 | </select> |
---|
28 | <select id="start_month" name="start_month"> |
---|
29 | {html_options options=$month_list selected=$START_MONTH_SELECTED} |
---|
30 | </select> |
---|
31 | <input id="start_year" name="start_year" value="{$START_YEAR}" type="text" size="4" maxlength="4" > |
---|
32 | <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled"/> |
---|
33 | </li> |
---|
34 | </ul> |
---|
35 | <ul> |
---|
36 | <li><label>{'search_date_to'|@translate}</label></li> |
---|
37 | <li> |
---|
38 | <select id="end_day" name="end_day"> |
---|
39 | <option value="0">--</option> |
---|
40 | {section name=day start=1 loop=32} |
---|
41 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
42 | {/section} |
---|
43 | </select> |
---|
44 | <select id="end_month" name="end_month"> |
---|
45 | {html_options options=$month_list selected=$END_MONTH_SELECTED} |
---|
46 | </select> |
---|
47 | <input id="end_year" name="end_year" value="{$END_YEAR}" type="text" size="4" maxlength="4" > |
---|
48 | <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled"/> |
---|
49 | </li> |
---|
50 | </ul> |
---|
51 | |
---|
52 | <label> |
---|
53 | {'Element type'|@translate} |
---|
54 | <select name="types[]" multiple="multiple" size="4"> |
---|
55 | {html_options values=$type_option_values output=$type_option_values|translate selected=$type_option_selected} |
---|
56 | </select> |
---|
57 | </label> |
---|
58 | |
---|
59 | <label> |
---|
60 | {'User'|@translate} |
---|
61 | <select name="user"> |
---|
62 | <option value="-1">------------</option> |
---|
63 | {html_options options=$user_options selected=$user_options_selected} |
---|
64 | </select> |
---|
65 | </label> |
---|
66 | |
---|
67 | <label> |
---|
68 | {'Image id'|@translate} |
---|
69 | <input name="image_id" value="{$IMAGE_ID}" type="text" size="5"> |
---|
70 | </label> |
---|
71 | |
---|
72 | <label> |
---|
73 | {'File name'|@translate} |
---|
74 | <input name="filename" value="{$FILENAME}" type="text"> |
---|
75 | </label> |
---|
76 | |
---|
77 | <label> |
---|
78 | {'Thumbnails'|@translate} |
---|
79 | <select name="display_thumbnail"> |
---|
80 | {html_options values=$display_thumbnail_values output=$display_thumbnail_values|translate selected=$display_thumbnail_selected} |
---|
81 | </select> |
---|
82 | </label> |
---|
83 | |
---|
84 | <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" /> |
---|
85 | </fieldset> |
---|
86 | </form> |
---|
87 | |
---|
88 | {if isset($search_summary)} |
---|
89 | <fieldset> |
---|
90 | <legend>{'Summary'|@translate}</legend> |
---|
91 | |
---|
92 | <ul> |
---|
93 | <li>{$search_summary.NB_LINES}, {$search_summary.FILESIZE}</li> |
---|
94 | <li> |
---|
95 | {$search_summary.USERS} |
---|
96 | <ul> |
---|
97 | <li>{$search_summary.MEMBERS}</li> |
---|
98 | <li>{$search_summary.GUESTS}</li> |
---|
99 | </ul> |
---|
100 | </li> |
---|
101 | </ul> |
---|
102 | </fieldset> |
---|
103 | {/if} |
---|
104 | |
---|
105 | |
---|
106 | {if !empty($NAV_BAR)} |
---|
107 | <div class="navigationBar"> |
---|
108 | {$NAV_BAR} |
---|
109 | </div> |
---|
110 | {/if} |
---|
111 | |
---|
112 | |
---|
113 | <table class="table2" id="detailedStats"> |
---|
114 | <tr class="throw"> |
---|
115 | <th>{'Date'|@translate}</th> |
---|
116 | <th>{'time'|@translate}</th> |
---|
117 | <th>{'user'|@translate}</th> |
---|
118 | <th>{'IP'|@translate}</th> |
---|
119 | <th>{'image'|@translate}</th> |
---|
120 | <th>{'Element type'|@translate}</th> |
---|
121 | <th>{'section'|@translate}</th> |
---|
122 | <th>{'category'|@translate}</th> |
---|
123 | <th>{'tags'|@translate}</th> |
---|
124 | </tr> |
---|
125 | {if !empty($search_results) } |
---|
126 | {foreach from=$search_results item=detail name=res_loop} |
---|
127 | <tr class="{if $smarty.foreach.res_loop.index is odd}row1{else}row2{/if}"> |
---|
128 | <td class="hour">{$detail.DATE}</td> |
---|
129 | <td class="hour">{$detail.TIME}</td> |
---|
130 | <td>{$detail.USER}</td> |
---|
131 | <td>{$detail.IP}</td> |
---|
132 | <td>{$detail.IMAGE}</td> |
---|
133 | <td>{$detail.TYPE}</td> |
---|
134 | <td>{$detail.SECTION}</td> |
---|
135 | <td>{$detail.CATEGORY}</td> |
---|
136 | <td>{$detail.TAGS}</td> |
---|
137 | </tr> |
---|
138 | {/foreach} |
---|
139 | {/if} |
---|
140 | </table> |
---|
141 | |
---|
142 | |
---|
143 | {if !empty($NAV_BAR)} |
---|
144 | <div class="navigationBar"> |
---|
145 | {$NAV_BAR} |
---|
146 | </div> |
---|
147 | {/if} |
---|