]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_form_job.tpl
ebl add to cvs
[bacula/bacula] / gui / bweb / tpl / display_form_job.tpl
1 <br/>
2
3 <div class="otherboxtitle">
4   Filter &nbsp;
5 </div>
6 <div class="otherbox">
7 <form name='form1' action='?' method='GET'>
8 <table border='0'>
9 <tr>
10   <td valign='top'>
11     <h2>Level</h2>
12     <select name='level' class='formulaire'>
13       <option id='level_Any' value='Any'>Any</option>
14       <option id='level_F' value='F'>Full</option>
15       <option id='level_D' value='D'>Differential</option>
16       <option id='level_I' value='I'>Incremental</option>
17     </select>     
18   </td>
19 </tr>
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_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>Age</h2>
34     <select name='age' class='formulaire'>
35       <option id='age_604800'   value='604800'>This week</option>
36       <option id='age_2678400'  value='2678400'>Last 30 days</option>
37       <option id='age_15552000' value='15552000'>Last 6 month</option>
38     </select>     
39   </td>
40  </tr>
41  <tr>
42   <td valign='bottom'> 
43     <h2>Number of items</h2>
44     <input type='text' name='limit' value='<TMPL_VAR NAME=limit>' 
45         class='formulaire' size='4'>
46   </td>
47 </tr>
48 <tr>
49   <td valign='top'> 
50     <h2>Job Type</h2>
51     <select name='jobtype' class='formulaire'>
52       <option id='jobtype_any' value='all type'>Any</option>
53       <option id='jobtype_B' value='B'>Backup</option>
54       <option id='jobtype_R' value='R'>Restore</option>
55     </select>
56   </td>
57 </tr>
58 <tr>
59   <td valign='top'> 
60     <h2>Clients</h2>
61     <select name='client' size='15' class='formulaire' multiple>
62 <TMPL_LOOP NAME=db_clients>
63       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
64 </TMPL_LOOP>
65     </select>
66   </td>
67 </tr>
68 <!--
69 <tr>
70   <td valign='top'> 
71     <h2>File Set</h2>
72     <select name='fileset' size='15' class='formulaire' multiple>
73 <TMPL_LOOP NAME=db_filesets>
74       <option id='client_<TMPL_VAR fileset>'><TMPL_VAR NAME=fileset></option>
75 </TMPL_LOOP>
76     </select>
77   </td>
78 </tr>
79 -->
80 </table>
81   <button name='action' value='job' class='formulaire'>
82    <img src='/bweb/update.png'>
83   </button>
84
85 </div>
86 </form>
87 <script language="JavaScript">
88
89   <TMPL_LOOP qclients>
90      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
91   </TMPL_LOOP>
92
93   <TMPL_IF status>
94      document.getElementById('status_<TMPL_VAR status>').selected=true;
95   </TMPL_IF>
96
97   <TMPL_IF level>
98      document.getElementById('level_<TMPL_VAR level>').selected=true;
99   </TMPL_IF>
100
101   <TMPL_IF age>
102      document.getElementById('age_<TMPL_VAR age>').selected=true;
103   </TMPL_IF>
104
105   <TMPL_IF jobtype>
106      document.getElementById('jobtype_<TMPL_VAR jobtype>').selected=true;
107   </TMPL_IF>
108
109   <TMPL_LOOP qfilesets>
110      document.getElementById('fileset_' + <TMPL_VAR name>).selected = true;
111   </TMPL_LOOP>
112
113 </script>
114