]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/btime.tpl
ebl Add bypool option
[bacula/bacula] / gui / bweb / tpl / btime.tpl
1  <div class='titlediv'>
2   <h1 class='newstitle'>__Timing Statistics__</h1>
3  </div>
4  <div class='bodydiv'>
5 <table border='0' valign='top'>
6 <td>
7 <form name='form1' action='?' method='GET'>
8         <div class="otherboxtitle" valign='top'>
9           __Options__ &nbsp;
10         </div>
11         <div class="otherbox">
12 <table border='0'>
13 <tr>
14   <td>
15     <h2>__Time limits__</h2>
16      <table>
17       <tr><td> __Begin:__ </td> <td><input class='formulaire' type='text' 
18            id='iso_begin' name='iso_begin' title='YYYY-MM-DD HH:MM' 
19            <TMPL_IF qiso_begin> value=<TMPL_VAR qiso_begin> </TMPL_IF> 
20            size='16'>
21       </td></tr>
22       <tr><td> __End:__ </td><td> <input type='text' class='formulaire' 
23         id='iso_end' name='iso_end' title='YYYY-MM-DD HH:MM'
24         <TMPL_IF qiso_end> value=<TMPL_VAR qiso_end> </TMPL_IF>
25         size='16'>
26       </td></tr>
27      </table>
28   </td>
29 </tr>
30 <tr>
31   <td>
32     <h2>__Graph__</h2>
33       <input type='checkbox' 
34              <TMPL_IF qusage>checked</TMPL_IF> 
35              name="usage"> __Drive usage__<br/>
36       <input type='checkbox' 
37              <TMPL_IF qpoolusage>checked</TMPL_IF> 
38              name="poolusage"> __Pool usage__<br/>
39       <input type='checkbox' 
40              <TMPL_IF qnojob>checked</TMPL_IF> 
41              name="nojob"> __Hide Job__<br/>
42       <input type='checkbox' 
43              <TMPL_IF qbypool>checked</TMPL_IF> 
44              name="bypool"> __Order by Pool__<br/>
45 <TMPL_IF db_client_groups>
46 <tr>
47   <td valign='top'>
48     <h2>__Groups__</h2>
49     <select name='client_group' size='10' class='formulaire' multiple>
50 <TMPL_LOOP db_client_groups>
51         <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
52 </TMPL_LOOP>
53     </select>
54   </td>
55 </tr>
56 </TMPL_IF>
57 <TMPL_IF db_pools>
58 <tr>
59   <td valign='top'>
60     <h2>__Pools__</h2>
61     <select name='pool' size='10' class='formulaire' multiple>
62 <TMPL_LOOP db_pools>
63         <option id= 'pool_<TMPL_VAR name>'><TMPL_VAR name></option>
64 </TMPL_LOOP>
65     </select>
66   </td>
67 </tr>
68 </TMPL_IF>
69   </td>
70 </tr>
71 <!--
72   <td valign='top'>
73     <h2>__Level__</h2>
74     <select name='level' class='formulaire'>
75       <option id='level_Any' value='Any'>__Any__</option>
76       <option id='level_F' value='F'>__Full__</option>
77       <option id='level_D' value='D'>__Differential__</option>
78       <option id='level_I' value='I'>__Incremental__</option>
79     </select>     
80   </td><td valign='top'>
81     <h2>__Status__</h2>
82     <select name='status' class='formulaire'>
83       <option id='status_Any' value='Any'>__Any__</option>
84       <option id='status_T'   value='T'>__Ok__</option>
85       <option id='status_f'   value='f'>__Error__</option>
86       <option id='status_A'   value='A'>__Canceled__</option>
87     </select>   
88   </td>
89 </tr>
90 <tr>
91   <td valign='top'>
92     <h2>__Age__</h2>
93     <select name='age' class='formulaire'>
94       <option id='age_604800'   value='604800'>__This week__</option>
95       <option id='age_2678400'  value='2678400'>__Last 30 days__</option>
96       <option id='age_15552000' value='15552000'>__Last 6 months__</option>
97     </select>     
98   </td>
99   <td  valign='top'>
100     <h2>__Size__</h2>
101      __Width:__ &nbsp;<input class='formulaire' type='text' 
102                          name='width' value='<TMPL_VAR width>' size='4'><br/>
103      __Height:__  <input type='text' class='formulaire' 
104                 name='height' value='<TMPL_VAR height>' size='4'><br/>
105   </td>
106 </tr>
107 <tr>
108   <td valign='top'> 
109     <h2>__Clients__</h2>
110     <select name='client' size='15' class='formulaire' multiple>
111 <TMPL_LOOP NAME=db_clients>
112       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
113 </TMPL_LOOP>
114     </select>
115   </td>
116   <td valign='top'> 
117     <h2>__Job Name__</h2>
118     <select name='jobname' size='15' class='formulaire' multiple>
119 <TMPL_LOOP NAME=db_jobnames>
120       <option><TMPL_VAR NAME=jobname></option>
121 </TMPL_LOOP>
122     </select>
123   </td>
124 </tr>
125 -->
126 <tr>
127 <td>
128   <input type='submit' name='action' value='graph' class='formulaire'> 
129 </td>
130 </tr>
131 </table>
132         </div>
133
134 </form>
135 </td>
136 <td>
137
138  <div class="otherboxtitle">
139  __Current__ &nbsp;
140  </div>
141  <div class="otherbox">
142  <img src='<TMPL_VAR result>' alt='__Nothing to display, Try a bigger date range__'>
143  </div>
144
145 </td>
146 </table>
147  </div>
148
149 <script type="text/javascript" language="JavaScript">
150
151   <TMPL_LOOP qclient_groups>
152      document.getElementById('group_' + <TMPL_VAR name>).selected = true;
153   </TMPL_LOOP>
154
155   <TMPL_LOOP qpools>
156      document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
157   </TMPL_LOOP>
158
159   <TMPL_LOOP qclients>
160      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
161   </TMPL_LOOP>
162
163   <TMPL_IF status>
164      document.getElementById('status_<TMPL_VAR status>').selected=true;
165   </TMPL_IF>
166
167   <TMPL_IF level>
168      document.getElementById('level_<TMPL_VAR level>').selected=true;
169   </TMPL_IF>
170
171   <TMPL_IF age>
172      document.getElementById('age_<TMPL_VAR age>').selected=true;
173   </TMPL_IF>
174
175 <TMPL_IF qfilesets>
176   for (var i=0; i < document.form1.fileset.length; ++i) {
177   <TMPL_LOOP qfilesets>
178      if (document.form1.fileset[i].value == <TMPL_VAR name>) {
179         document.form1.fileset[i].selected = true;
180      }
181   </TMPL_LOOP>
182   }
183 </TMPL_IF>
184
185 <TMPL_IF qjobnames>
186   for (var i=0; i < document.form1.jobname.length; ++i) {
187   <TMPL_LOOP qjobnames>
188      if (document.form1.jobname[i].value == <TMPL_VAR name>) {
189         document.form1.jobname[i].selected = true;
190      }
191   </TMPL_LOOP>
192   }
193 </TMPL_IF>
194 </script>
195