]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/graph.tpl
bweb: Update some GPL2 notice to AGPL
[bacula/bacula] / gui / bweb / tpl / graph.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'>__Statistics__</h1>
4  </div>
5  <div class='bodydiv'>
6 <table border='0'>
7 <td>
8 <form name='form1' action='?' method='GET'>
9         <div class="otherboxtitle">
10           __Options__ &nbsp;
11         </div>
12         <div class="otherbox">
13 <table border='0'>
14 <tr>
15   <td valign='top'>
16     <h2>__Level__</h2>
17     <select name='level' class='formulaire'>
18       <option id='level_Any' title='__Any level (grouped)__' value='Any'>__Any__</option>
19       <option id='level_All' title='__All levels (separated)__' value='All'>__All__</option>
20       <option id='level_F' value='F'>__Full__</option>
21       <option id='level_D' value='D'>__Differential__</option>
22       <option id='level_I' value='I'>__Incremental__</option>
23     </select>     
24   </td><td valign='top'>
25     <h2>__Status__</h2>
26     <select name='status' class='formulaire'>
27       <option id='status_T'   value='T'>__Ok__</option>
28       <option id='status_f'   value='f'>__Error__</option>
29       <option id='status_A'   value='A'>__Canceled__</option>
30       <option id='status_Any' value='Any'>__Any__</option>
31     </select>   
32   </td>
33 </tr>
34 <tr>
35   <td valign='top'>
36     <h2>__Age__</h2>
37     <select name='age' class='formulaire'>
38       <option id='age_604800'   value='604800'>__This week__</option>
39       <option id='age_2678400'  value='2678400'>__Last 30 days__</option>
40       <option id='age_15552000' value='15552000'>__Last 6 months__</option>
41     </select>     
42   </td>
43   <td  valign='top'>
44     <h2>__Size__</h2>
45      __Width:__ &nbsp;<input class='formulaire' type='text' 
46                          name='width' value='<TMPL_VAR width>' size='4'><br/>
47      __Height:__  <input type='text' class='formulaire' 
48                 name='height' value='<TMPL_VAR height>' size='4'><br/>
49   </td>
50 </tr>
51 <tr>
52   <td valign='top'> 
53     <h2>__Clients__</h2>
54     <select name='client' size='15' class='formulaire' multiple>
55 <TMPL_LOOP db_clients>
56       <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
57 </TMPL_LOOP>
58     </select>
59   </td>
60   <td valign='top'> 
61     <h2>__Job Name__</h2>
62     <select name='jobname' size='15' class='formulaire' multiple>
63 <TMPL_LOOP db_jobnames>
64       <option><TMPL_VAR jobname></option>
65 </TMPL_LOOP>
66     </select>
67   </td>
68 </tr>
69 <TMPL_IF db_client_groups>
70 <tr>
71   <td valign='top'>
72     <h2>__Groups__</h2>
73     <select name='client_group' size='10' class='formulaire' multiple>
74 <TMPL_LOOP db_client_groups>
75         <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
76 </TMPL_LOOP>
77     </select>
78   </td>
79 </tr>
80 </TMPL_IF>
81 <tr>
82   <td> <h2> __Type__ </h2> 
83  <select name='graph' class='formulaire'>
84    <option id='job_size'     value='job_size' title="__Job size per job for the period__">__Job Size__</option>
85    <option id='job_duration' value='job_duration' title="__Job duration per job for the period__">__Job Duration__</option>
86    <option id='job_rate' value='job_rate' title="__Job rate per job for the period__">__Job Rate__</option>
87    <option id='job_file' value='job_file' title="__Number of backed files per job for the period__">__Job Files__</option>
88    <option id='job_count_phour' value='job_count_phour' title="__Number of jobs per hour for the period__">__Job per hour__</option>
89    <option id='job_count_pday' value='job_count_pday' title="__Number of jobs per day for the period__">__Job per day__</option>
90    <option id='job_avg_phour' value='job_avg_pday' title="__Average backup size per day for the period__">__Job avg B/hour__</option>
91    <option id='job_avg_pday' value='job_avg_pday' title="__Average backup size per hour for the period__">__Job avg B/day__</option>
92    <option id='job_sum_phour' value='job_sum_phour' title="__Job size per hour__">__Job total B/hour__</option>
93    <option id='job_sum_pday' value='job_sum_pday' title="__Job size per day__">__Job total B/day__</option>
94    <option id='job_count_hour' value='job_count_hour' title="__Number of jobs per hour for the period__">__Jobs Count (h)__</option>
95    <option id='job_count_day' value='job_count_day' title="__Number of jobs per day for the period__">__Jobs Count (d)__</option>
96    <option id='job_avg_hour' value='job_avg_hour' title="__Average backup size per hour for the period__">__Job avg size (h)__</option>
97    <option id='job_avg_day' value='job_avg_day' title="__Average backup size per day for the period__">__Job avg size (d)__</option>
98    <option id='job_sum_hour' value='job_sum_hour' title="__Job size per hour for the period__">__Job Bytes (h)__</option>
99    <option id='job_sum_day' value='job_sum_day' title="__Job size per day for the period__">__Job Bytes (d)__</option>
100    <option onclick='document.getElementById("gtype_balloon").selected=true;' id='job_time_nb' value='job_time_nb' title="__Display Job duration, size and files with balloons__">__Time,size,files__</option>
101    <option onclick='document.getElementById("gtype_balloon").selected=true;' id='job_time_size' value='job_time_size' title="__Display Job duration, files and size with balloons__">__Time,files,size__</option>
102
103  </select>
104   </td>
105   <td valign='bottom'> 
106     <h2>__Number of items__</h2>
107     <input type='text' name='limit' value='<TMPL_VAR limit>' 
108         class='formulaire' size='4'>
109   </td>
110 </tr>
111 <tr>
112 <td><h2> __Graph type__ </h2> 
113   <select name='gtype' class='formulaire'>
114     <option id='gtype_bars' value='bars'>__Bars__</option>
115 <!--  <option id='gtype_bars3d' value='bars3d'>__Bars3d__</option> -->
116     <option id='gtype_lines' value='lines'>__Lines__</option>
117     <option onclick='document.getElementById("job_time_size").selected=true;' id='gtype_balloon' value='balloon'>__Balloon__</option>
118     <option id='gtype_linespoints' value='linespoints'>__Lines points__</option>
119 </td>
120 <td>
121   <input type='submit' name='action' value='graph' class='formulaire'> 
122 </td>
123 </tr>
124 </table>
125         </div>
126
127 </form>
128 </td>
129 <td>
130
131  <div class="otherboxtitle">
132  __Current__ &nbsp;
133  </div>
134  <div class="otherbox">
135
136  <img usemap='#imggraph' id='imggraph'
137       alt='__Nothing to display, Try a bigger date range__'>
138  </div>
139
140 </td>
141 </table>
142  </div>
143
144 <script type="text/javascript" language="JavaScript">
145
146   <TMPL_LOOP qclients>
147      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
148   </TMPL_LOOP>
149
150   <TMPL_IF status>
151      document.getElementById('status_<TMPL_VAR status>').selected=true;
152   </TMPL_IF>
153
154   <TMPL_IF level>
155      document.getElementById('level_<TMPL_VAR level>').selected=true;
156   </TMPL_IF>
157
158   <TMPL_IF age>
159      document.getElementById('age_<TMPL_VAR age>').selected=true;
160   </TMPL_IF>
161
162 <TMPL_IF qfilesets>
163   for (var i=0; i < document.form1.fileset.length; ++i) {
164   <TMPL_LOOP qfilesets>
165      if (document.form1.fileset[i].value == <TMPL_VAR name>) {
166         document.form1.fileset[i].selected = true;
167      }
168   </TMPL_LOOP>
169   }
170 </TMPL_IF>
171
172 <TMPL_IF qjobnames>
173   for (var i=0; i < document.form1.jobname.length; ++i) {
174   <TMPL_LOOP qjobnames>
175      if (document.form1.jobname[i].value == <TMPL_VAR name>) {
176         document.form1.jobname[i].selected = true;
177      }
178   </TMPL_LOOP>
179   }
180 </TMPL_IF>
181
182   <TMPL_IF graph>
183      document.getElementById('<TMPL_VAR graph>').selected=true;
184   </TMPL_IF>
185
186   <TMPL_IF gtype>
187      document.getElementById('gtype_<TMPL_VAR gtype>').selected=true;
188   </TMPL_IF>
189
190   <TMPL_IF url>
191    document.getElementById('imggraph').src='bgraph.pl?<TMPL_VAR url>'
192   </TMPL_IF>
193
194   <TMPL_LOOP qclient_groups>
195      document.getElementById('group_' + <TMPL_VAR name>).selected = true;
196   </TMPL_LOOP>
197 </script>