]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_form_job.tpl
ebl Put default value to btime
[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_604800'   value='604800'>__1 week__</option>
60       <option id='age_2678400'  value='2678400'>__30 days__</option>
61       <option id='age_15552000' value='15552000'>__6 months__</option>
62     </select>     
63   </td>
64  </tr>
65 <TMPL_ELSE>
66 <tr>
67   <td valign='top'>
68     <h2>__Age__</h2>
69     <select name='age' class='formulaire'>
70       <option id='age_86400'   value='86400'>__Last 24h__</option>
71       <option id='age_604800'   value='604800'>__This week__</option>
72       <option id='age_2678400'  value='2678400'>__Last 30 days__</option>
73       <option id='age_15552000' value='15552000'>__Last 6 months__</option>
74     </select>     
75   </td>
76  </tr>
77 </TMPL_UNLESS>
78 <TMPL_IF view_time_slice>
79 <tr>
80   <td valign='top'>
81     <h2>__Time slice__</h2>
82     <select name='type' class='formulaire'>
83       <option id='slice_day'   value='day'>__Per days__</option>
84       <option id='slice_week'  value='week'>__Per weeks__</option>
85       <option id='slice_month' value='month'>__Per months__</option>
86     </select>     
87   </td>
88  </tr>
89 </TMPL_IF>
90  <tr>
91   <td valign='bottom'> 
92     <h2>__Number of items__</h2>
93     <input type='text' name='limit' value='<TMPL_VAR limit>' 
94         class='formulaire' size='4'>
95   </td>
96 </tr>
97 <TMPL_UNLESS hide_type>
98 <tr>
99   <td valign='top'> 
100     <h2>__Job Type__</h2>
101     <select name='jobtype' class='formulaire'>
102       <option id='jobtype_any' value='all type'>__Any__</option>
103       <option id='jobtype_B' value='B'>__Backup__</option>
104       <option id='jobtype_R' value='R'>__Restore__</option>
105     </select>
106   </td>
107 </tr>
108 </TMPL_UNLESS>
109 <TMPL_IF db_clients>
110 <tr>
111   <td valign='top'> 
112     <h2>__Clients__</h2>
113     <select name='client' size='15' class='formulaire' multiple>
114 <TMPL_LOOP db_clients>
115       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
116 </TMPL_LOOP>
117     </select>
118   </td>
119 </tr>
120 </TMPL_IF>
121 <TMPL_IF db_client_groups>
122 <tr>
123   <td valign='top'>
124     <h2>__Groups__</h2>
125     <select name='client_group' size='10' class='formulaire' multiple>
126 <TMPL_LOOP db_client_groups>
127         <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
128 </TMPL_LOOP>
129     </select>
130   </td>
131 </tr>
132 </TMPL_IF>
133 <!--
134 <tr>
135   <td valign='top'> 
136     <h2>__File Set__</h2>
137     <select name='fileset' size='15' class='formulaire' multiple>
138 <TMPL_LOOP db_filesets>
139       <option id='client_<TMPL_VAR fileset>'><TMPL_VAR fileset></option>
140 </TMPL_LOOP>
141     </select>
142   </td>
143 </tr>
144 -->
145 </table>
146   <button type="submit" class="bp" name='action' 
147     value='<TMPL_IF action><TMPL_VAR action><TMPL_ELSE>job</TMPL_IF>'>
148      <img src='/bweb/update.png' alt=''> </button>
149
150 </form>
151 </div>
152 <script type="text/javascript" language="JavaScript">
153
154   <TMPL_LOOP qclients>
155      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
156   </TMPL_LOOP>
157
158   <TMPL_LOOP qclient_groups>
159      document.getElementById('group_' + <TMPL_VAR name>).selected = true;
160   </TMPL_LOOP>
161
162   <TMPL_IF status>
163      document.getElementById('status_<TMPL_VAR status>').selected=true;
164   </TMPL_IF>
165
166   <TMPL_IF level>
167      document.getElementById('level_<TMPL_VAR level>').selected=true;
168   </TMPL_IF>
169
170   <TMPL_IF age>
171      document.getElementById('age_<TMPL_VAR age>').selected=true;
172   </TMPL_IF>
173
174   <TMPL_IF type>
175      document.getElementById('slice_<TMPL_VAR type>').selected=true;
176   </TMPL_IF>
177
178   <TMPL_IF jobtype>
179      document.getElementById('jobtype_<TMPL_VAR jobtype>').selected=true;
180   </TMPL_IF>
181
182   <TMPL_LOOP qfilesets>
183      document.getElementById('fileset_' + <TMPL_VAR name>).selected = true;
184   </TMPL_LOOP>
185
186   <TMPL_LOOP qpools>
187      document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
188   </TMPL_LOOP>
189
190 </script>
191