]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_form_job.tpl
ebl remove Purged/Recycled status in update media
[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 <tr>
20  <td valign='top'>
21     <h2>Status</h2>
22     <select name='status' class='formulaire'>
23       <option id='status_Any' value='Any'>Any</option>
24       <option id='status_T'   value='T'>Ok</option>
25       <option id='status_f'   value='f'>Error</option>
26       <option id='status_A'   value='A'>Canceled</option>
27     </select>     
28   </td>
29 </tr>
30 <tr>
31   <td valign='top'>
32     <h2>Age</h2>
33     <select name='age' class='formulaire'>
34       <option id='age_604800'   value='604800'>This week</option>
35       <option id='age_2678400'  value='2678400'>Last 30 days</option>
36       <option id='age_15552000' value='15552000'>Last 6 month</option>
37     </select>     
38   </td>
39  </tr>
40  <tr>
41   <td valign='bottom'> 
42     <h2>Number of items</h2>
43     <input type='text' name='limit' value='<TMPL_VAR NAME=limit>' 
44         class='formulaire' size='4'>
45   </td>
46 </tr>
47 <tr>
48   <td valign='top'> 
49     <h2>Job Type</h2>
50     <select name='jobtype' class='formulaire'>
51       <option id='jobtype_any' value='all type'>Any</option>
52       <option id='jobtype_B' value='B'>Backup</option>
53       <option id='jobtype_R' value='R'>Restore</option>
54     </select>
55   </td>
56 </tr>
57 <tr>
58   <td valign='top'> 
59     <h2>Clients</h2>
60     <select name='client' size='15' class='formulaire' multiple>
61 <TMPL_LOOP NAME=db_clients>
62       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
63 </TMPL_LOOP>
64     </select>
65   </td>
66 </tr>
67 <!--
68 <tr>
69   <td valign='top'> 
70     <h2>File Set</h2>
71     <select name='fileset' size='15' class='formulaire' multiple>
72 <TMPL_LOOP NAME=db_filesets>
73       <option id='client_<TMPL_VAR fileset>'><TMPL_VAR NAME=fileset></option>
74 </TMPL_LOOP>
75     </select>
76   </td>
77 </tr>
78 -->
79 </table>
80   <input type="image" name='action' value='job' src='/bweb/update.png'>
81
82 </form>
83 </div>
84 <script type="text/javascript" language="JavaScript">
85
86   <TMPL_LOOP qclients>
87      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
88   </TMPL_LOOP>
89
90   <TMPL_IF status>
91      document.getElementById('status_<TMPL_VAR status>').selected=true;
92   </TMPL_IF>
93
94   <TMPL_IF level>
95      document.getElementById('level_<TMPL_VAR level>').selected=true;
96   </TMPL_IF>
97
98   <TMPL_IF age>
99      document.getElementById('age_<TMPL_VAR age>').selected=true;
100   </TMPL_IF>
101
102   <TMPL_IF jobtype>
103      document.getElementById('jobtype_<TMPL_VAR jobtype>').selected=true;
104   </TMPL_IF>
105
106   <TMPL_LOOP qfilesets>
107      document.getElementById('fileset_' + <TMPL_VAR name>).selected = true;
108   </TMPL_LOOP>
109
110 </script>
111