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