]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_form_job.tpl
ebl Add weekend period
[bacula/bacula] / gui / bweb / tpl / display_form_job.tpl
1 <br/>
2 <div class="otherboxtitle">
3   __Filter__ &nbsp;
4 </div>
5 <div class="otherbox">
6 <form name='form1' action='?' method='GET'>
7 <table border='0'>
8 <tr>
9   <td valign='top'>
10     <h2>__Level__</h2>
11     <select name='level' class='formulaire'>
12       <option id='level_Any' value='Any'>__Any__</option>
13       <option id='level_F' value='F'>__Full__</option>
14       <option id='level_D' value='D'>__Differential__</option>
15       <option id='level_I' value='I'>__Incremental__</option>
16     </select>     
17   </td>
18 </tr>
19 <TMPL_UNLESS hide_status>
20 <tr>
21  <td valign='top'>
22     <h2>__Status__</h2>
23     <select name='status' class='formulaire'>
24       <option id='status_Any' value='Any'>__Any__</option>
25       <option id='status_T'   value='T'>__Ok__</option>
26       <option id='status_W'   value='W'>__Warning__</option>
27       <option id='status_f'   value='f'>__Error__</option>
28       <option id='status_A'   value='A'>__Canceled__</option>
29     </select>     
30   </td>
31 </tr>
32 </TMPL_UNLESS>
33 <TMPL_IF db_pools>
34 <tr>
35  <td valign='top'>
36     <h2>__Pool__</h2>
37     <select name='pool' class='formulaire'>
38       <option id='pool_all' value=''>__All__</option>
39 <TMPL_LOOP db_pools>
40       <option id='pool_<TMPL_VAR name>'><TMPL_VAR name></option>
41 </TMPL_LOOP>
42     </select>
43   </td>
44 </tr>
45 </TMPL_IF>
46 <TMPL_UNLESS hide_since>
47 <tr>
48   <td valign='top'>
49     <h2>__Since__</h2>
50     <input type='text' id='since' name='since' size='17' title='YYYY-MM-DD'
51      value='<TMPL_VAR since>' class='formulaire'>
52   </td>
53  </tr>
54 <tr>
55   <td valign='top'>
56     <h2>__Age__</h2>
57     <select name='age' class='formulaire' onclick='document.getElementById("since").value="";'>
58       <option id='age_86400'   value='86400'>__1 day__</option>
59       <option id='age_172800'   value='172800'>__2 days__</option>
60       <option id='age_604800'   value='604800'>__1 week__</option>
61       <option id='age_2678400'  value='2678400'>__30 days__</option>
62       <option id='age_15552000' value='15552000'>__6 months__</option>
63     </select>     
64   </td>
65  </tr>
66 <TMPL_ELSE>
67 <tr>
68   <td valign='top'>
69     <h2>__Age__</h2>
70     <select name='age' class='formulaire'>
71       <option id='age_86400'   value='86400'>__Last 24h__</option>
72       <option id='age_172800'   value='172800'>__This weekend__</option>
73       <option id='age_604800'   value='604800'>__This week__</option>
74       <option id='age_2678400'  value='2678400'>__Last 30 days__</option>
75       <option id='age_15552000' value='15552000'>__Last 6 months__</option>
76     </select>     
77   </td>
78  </tr>
79 </TMPL_UNLESS>
80 <TMPL_IF view_time_slice>
81 <tr>
82   <td valign='top'>
83     <h2>__Time slice__</h2>
84     <select name='type' class='formulaire'>
85       <option id='slice_day'   value='day'>__Per days__</option>
86       <option id='slice_week'  value='week'>__Per weeks__</option>
87       <option id='slice_month' value='month'>__Per months__</option>
88     </select>     
89   </td>
90  </tr>
91 </TMPL_IF>
92  <tr>
93   <td valign='bottom'> 
94     <h2>__Number of items__</h2>
95     <input type='text' name='limit' value='<TMPL_VAR limit>' 
96         class='formulaire' size='4'>
97   </td>
98 </tr>
99 <TMPL_UNLESS hide_type>
100 <tr>
101   <td valign='top'> 
102     <h2>__Job Type__</h2>
103     <select name='jobtype' class='formulaire'>
104       <option id='jobtype_any' value='all type'>__Any__</option>
105       <option id='jobtype_B' value='B'>__Backup__</option>
106       <option id='jobtype_R' value='R'>__Restore__</option>
107     </select>
108   </td>
109 </tr>
110 </TMPL_UNLESS>
111 <TMPL_IF db_clients>
112 <tr>
113   <td valign='top'> 
114     <h2>__Clients__</h2>
115     <select name='client' size='15' class='formulaire' multiple>
116 <TMPL_LOOP db_clients>
117       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
118 </TMPL_LOOP>
119     </select>
120   </td>
121 </tr>
122 </TMPL_IF>
123 <TMPL_IF db_client_groups>
124 <tr>
125   <td valign='top'>
126     <h2>__Groups__</h2>
127     <select name='client_group' size='10' class='formulaire' multiple>
128 <TMPL_LOOP db_client_groups>
129         <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
130 </TMPL_LOOP>
131     </select>
132   </td>
133 </tr>
134 </TMPL_IF>
135 <!--
136 <tr>
137   <td valign='top'> 
138     <h2>__File Set__</h2>
139     <select name='fileset' size='15' class='formulaire' multiple>
140 <TMPL_LOOP db_filesets>
141       <option id='client_<TMPL_VAR fileset>'><TMPL_VAR fileset></option>
142 </TMPL_LOOP>
143     </select>
144   </td>
145 </tr>
146 -->
147 </table>
148   <button type="submit" class="bp" name='action' 
149     value='<TMPL_IF action><TMPL_VAR action><TMPL_ELSE>job</TMPL_IF>'>
150      <img src='/bweb/update.png' alt=''> </button>
151
152 </form>
153 </div>
154 <script type="text/javascript" language="JavaScript">
155
156   <TMPL_LOOP qclients>
157      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
158   </TMPL_LOOP>
159
160   <TMPL_LOOP qclient_groups>
161      document.getElementById('group_' + <TMPL_VAR name>).selected = true;
162   </TMPL_LOOP>
163
164   <TMPL_IF status>
165      document.getElementById('status_<TMPL_VAR status>').selected=true;
166   </TMPL_IF>
167
168   <TMPL_IF level>
169      document.getElementById('level_<TMPL_VAR level>').selected=true;
170   </TMPL_IF>
171
172   <TMPL_IF age>
173      document.getElementById('age_<TMPL_VAR age>').selected=true;
174   </TMPL_IF>
175
176   <TMPL_IF type>
177      document.getElementById('slice_<TMPL_VAR type>').selected=true;
178   </TMPL_IF>
179
180   <TMPL_IF jobtype>
181      document.getElementById('jobtype_<TMPL_VAR jobtype>').selected=true;
182   </TMPL_IF>
183
184   <TMPL_LOOP qfilesets>
185      document.getElementById('fileset_' + <TMPL_VAR name>).selected = true;
186   </TMPL_LOOP>
187
188   <TMPL_LOOP qpools>
189      document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
190   </TMPL_LOOP>
191
192 </script>
193