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