]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/btime.tpl
ebl Update btime to use pool filter
[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 <TMPL_IF db_client_groups>
43 <tr>
44   <td valign='top'>
45     <h2>__Groups__</h2>
46     <select name='client_group' size='10' class='formulaire' multiple>
47 <TMPL_LOOP db_client_groups>
48         <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
49 </TMPL_LOOP>
50     </select>
51   </td>
52 </tr>
53 </TMPL_IF>
54 <TMPL_IF db_pools>
55 <tr>
56   <td valign='top'>
57     <h2>__Pools__</h2>
58     <select name='pool' size='10' class='formulaire' multiple>
59 <TMPL_LOOP db_pools>
60         <option id= 'pool_<TMPL_VAR name>'><TMPL_VAR name></option>
61 </TMPL_LOOP>
62     </select>
63   </td>
64 </tr>
65 </TMPL_IF>
66   </td>
67 </tr>
68 <!--
69   <td valign='top'>
70     <h2>__Level__</h2>
71     <select name='level' class='formulaire'>
72       <option id='level_Any' value='Any'>__Any__</option>
73       <option id='level_F' value='F'>__Full__</option>
74       <option id='level_D' value='D'>__Differential__</option>
75       <option id='level_I' value='I'>__Incremental__</option>
76     </select>     
77   </td><td valign='top'>
78     <h2>__Status__</h2>
79     <select name='status' class='formulaire'>
80       <option id='status_Any' value='Any'>__Any__</option>
81       <option id='status_T'   value='T'>__Ok__</option>
82       <option id='status_f'   value='f'>__Error__</option>
83       <option id='status_A'   value='A'>__Canceled__</option>
84     </select>   
85   </td>
86 </tr>
87 <tr>
88   <td valign='top'>
89     <h2>__Age__</h2>
90     <select name='age' class='formulaire'>
91       <option id='age_604800'   value='604800'>__This week__</option>
92       <option id='age_2678400'  value='2678400'>__Last 30 days__</option>
93       <option id='age_15552000' value='15552000'>__Last 6 months__</option>
94     </select>     
95   </td>
96   <td  valign='top'>
97     <h2>__Size__</h2>
98      __Width:__ &nbsp;<input class='formulaire' type='text' 
99                          name='width' value='<TMPL_VAR width>' size='4'><br/>
100      __Height:__  <input type='text' class='formulaire' 
101                 name='height' value='<TMPL_VAR height>' size='4'><br/>
102   </td>
103 </tr>
104 <tr>
105   <td valign='top'> 
106     <h2>__Clients__</h2>
107     <select name='client' size='15' class='formulaire' multiple>
108 <TMPL_LOOP NAME=db_clients>
109       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
110 </TMPL_LOOP>
111     </select>
112   </td>
113   <td valign='top'> 
114     <h2>__Job Name__</h2>
115     <select name='jobname' size='15' class='formulaire' multiple>
116 <TMPL_LOOP NAME=db_jobnames>
117       <option><TMPL_VAR NAME=jobname></option>
118 </TMPL_LOOP>
119     </select>
120   </td>
121 </tr>
122 -->
123 <tr>
124 <td>
125   <input type='submit' name='action' value='graph' class='formulaire'> 
126 </td>
127 </tr>
128 </table>
129         </div>
130
131 </form>
132 </td>
133 <td>
134
135  <div class="otherboxtitle">
136  __Current__ &nbsp;
137  </div>
138  <div class="otherbox">
139  <img src='<TMPL_VAR result>' alt='__Nothing to display, Try a bigger date range__'>
140  </div>
141
142 </td>
143 </table>
144  </div>
145
146 <script type="text/javascript" language="JavaScript">
147
148   <TMPL_LOOP qclient_groups>
149      document.getElementById('group_' + <TMPL_VAR name>).selected = true;
150   </TMPL_LOOP>
151
152   <TMPL_LOOP qpools>
153      document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
154   </TMPL_LOOP>
155
156   <TMPL_LOOP qclients>
157      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
158   </TMPL_LOOP>
159
160   <TMPL_IF status>
161      document.getElementById('status_<TMPL_VAR status>').selected=true;
162   </TMPL_IF>
163
164   <TMPL_IF level>
165      document.getElementById('level_<TMPL_VAR level>').selected=true;
166   </TMPL_IF>
167
168   <TMPL_IF age>
169      document.getElementById('age_<TMPL_VAR age>').selected=true;
170   </TMPL_IF>
171
172 <TMPL_IF qfilesets>
173   for (var i=0; i < document.form1.fileset.length; ++i) {
174   <TMPL_LOOP qfilesets>
175      if (document.form1.fileset[i].value == <TMPL_VAR name>) {
176         document.form1.fileset[i].selected = true;
177      }
178   </TMPL_LOOP>
179   }
180 </TMPL_IF>
181
182 <TMPL_IF qjobnames>
183   for (var i=0; i < document.form1.jobname.length; ++i) {
184   <TMPL_LOOP qjobnames>
185      if (document.form1.jobname[i].value == <TMPL_VAR name>) {
186         document.form1.jobname[i].selected = true;
187      }
188   </TMPL_LOOP>
189   }
190 </TMPL_IF>
191 </script>
192