]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_form_job.tpl
ebl adding db_client_groups
[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 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 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 <TMPL_IF db_clients>
70 <tr>
71   <td valign='top'> 
72     <h2>Clients</h2>
73     <select name='client' size='15' class='formulaire' multiple>
74 <TMPL_LOOP db_clients>
75       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
76 </TMPL_LOOP>
77     </select>
78   </td>
79 </tr>
80 </TMPL_IF>
81 <TMPL_IF db_client_groups>
82 <tr>
83   <td valign='top'>
84     <h2>Groups</h2>
85     <select name='client_group' size='10' class='formulaire' multiple>
86 <TMPL_LOOP db_client_groups>
87         <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
88 </TMPL_LOOP>
89     </select>
90   </td>
91 </tr>
92 </TMPL_IF>
93 <!--
94 <tr>
95   <td valign='top'> 
96     <h2>File Set</h2>
97     <select name='fileset' size='15' class='formulaire' multiple>
98 <TMPL_LOOP db_filesets>
99       <option id='client_<TMPL_VAR fileset>'><TMPL_VAR fileset></option>
100 </TMPL_LOOP>
101     </select>
102   </td>
103 </tr>
104 -->
105 </table>
106   <input type="image" name='action' value='job' src='/bweb/update.png'>
107
108 </form>
109 </div>
110 <script type="text/javascript" language="JavaScript">
111
112   <TMPL_LOOP qclients>
113      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
114   </TMPL_LOOP>
115
116   <TMPL_IF status>
117      document.getElementById('status_<TMPL_VAR status>').selected=true;
118   </TMPL_IF>
119
120   <TMPL_IF level>
121      document.getElementById('level_<TMPL_VAR level>').selected=true;
122   </TMPL_IF>
123
124   <TMPL_IF age>
125      document.getElementById('age_<TMPL_VAR age>').selected=true;
126   </TMPL_IF>
127
128   <TMPL_IF jobtype>
129      document.getElementById('jobtype_<TMPL_VAR jobtype>').selected=true;
130   </TMPL_IF>
131
132   <TMPL_LOOP qfilesets>
133      document.getElementById('fileset_' + <TMPL_VAR name>).selected = true;
134   </TMPL_LOOP>
135
136   <TMPL_LOOP qpools>
137      document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
138   </TMPL_LOOP>
139
140 </script>
141