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