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