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