]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/graph.tpl
ebl Use OK status by default on graph screen
[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 <tr>
69   <td> <h2> __Type__ </h2> 
70  <select name='graph' class='formulaire'>
71    <option id='job_size'     value='job_size' title="__Job size per job for the period__">__Job Size__</option>
72    <option id='job_duration' value='job_duration' title="__Job duration per job for the period__">__Job Duration__</option>
73    <option id='job_rate' value='job_rate' title="__Job rate per job for the period__">__Job Rate__</option>
74    <option id='job_file' value='job_file' title="__Number of backed files per job for the period__">__Job Files__</option>
75    <option id='job_count_phour' value='job_count_phour' title="__Number of jobs per hour for the period__">__Job per hour__</option>
76    <option id='job_count_pday' value='job_count_pday' title="__Number of jobs per day for the period__">__Job per day__</option>
77    <option id='job_avg_phour' value='job_avg_pday' title="__Average backup size per day for the period__">__Job avg B/hour__</option>
78    <option id='job_avg_pday' value='job_avg_pday' title="__Average backup size per hour for the period__">__Job avg B/day__</option>
79    <option id='job_sum_phour' value='job_sum_phour' title="__Job size per hour__">__Job total B/hour__</option>
80    <option id='job_sum_pday' value='job_sum_pday' title="__Job size per day__">__Job total B/day__</option>
81    <option id='job_count_hour' value='job_count_hour' title="__Number of jobs per hour for the period__">__Jobs Count (h)__</option>
82    <option id='job_count_day' value='job_count_day' title="__Number of jobs per day for the period__">__Jobs Count (d)__</option>
83    <option id='job_avg_hour' value='job_avg_hour' title="__Average backup size per hour for the period__">__Job avg size (h)__</option>
84    <option id='job_avg_day' value='job_avg_day' title="__Average backup size per day for the period__">__Job avg size (d)__</option>
85    <option id='job_sum_hour' value='job_sum_hour' title="__Job size per hour for the period__">__Job Bytes (h)__</option>
86    <option id='job_sum_day' value='job_sum_day' title="__Job size per day for the period__">__Job Bytes (d)__</option>
87    <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>
88    <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>
89
90  </select>
91   </td>
92   <td valign='bottom'> 
93     <h2>__Number of items__</h2>
94     <input type='text' name='limit' value='<TMPL_VAR limit>' 
95         class='formulaire' size='4'>
96   </td>
97 </tr>
98 <tr>
99 <td><h2> __Graph type__ </h2> 
100   <select name='gtype' class='formulaire'>
101     <option id='gtype_bars' value='bars'>__Bars__</option>
102 <!--  <option id='gtype_bars3d' value='bars3d'>__Bars3d__</option> -->
103     <option id='gtype_lines' value='lines'>__Lines__</option>
104     <option onclick='document.getElementById("job_time_size").selected=true;' id='gtype_balloon' value='balloon'>__Balloon__</option>
105     <option id='gtype_linespoints' value='linespoints'>__Lines points__</option>
106 </td>
107 <td>
108   <input type='submit' name='action' value='graph' class='formulaire'> 
109 </td>
110 </tr>
111 </table>
112         </div>
113
114 </form>
115 </td>
116 <td>
117
118  <div class="otherboxtitle">
119  __Current__ &nbsp;
120  </div>
121  <div class="otherbox">
122
123  <img usemap='imggraph' id='imggraph' 
124       alt='__Nothing to display, Try a bigger date range__'>
125  </div>
126
127 </td>
128 </table>
129  </div>
130
131 <script type="text/javascript" language="JavaScript">
132
133   <TMPL_LOOP qclients>
134      document.getElementById('client_' + <TMPL_VAR name>).selected = true;
135   </TMPL_LOOP>
136
137   <TMPL_IF status>
138      document.getElementById('status_<TMPL_VAR status>').selected=true;
139   </TMPL_IF>
140
141   <TMPL_IF level>
142      document.getElementById('level_<TMPL_VAR level>').selected=true;
143   </TMPL_IF>
144
145   <TMPL_IF age>
146      document.getElementById('age_<TMPL_VAR age>').selected=true;
147   </TMPL_IF>
148
149 <TMPL_IF qfilesets>
150   for (var i=0; i < document.form1.fileset.length; ++i) {
151   <TMPL_LOOP qfilesets>
152      if (document.form1.fileset[i].value == <TMPL_VAR name>) {
153         document.form1.fileset[i].selected = true;
154      }
155   </TMPL_LOOP>
156   }
157 </TMPL_IF>
158
159 <TMPL_IF qjobnames>
160   for (var i=0; i < document.form1.jobname.length; ++i) {
161   <TMPL_LOOP qjobnames>
162      if (document.form1.jobname[i].value == <TMPL_VAR name>) {
163         document.form1.jobname[i].selected = true;
164      }
165   </TMPL_LOOP>
166   }
167 </TMPL_IF>
168
169   <TMPL_IF graph>
170      document.getElementById('<TMPL_VAR graph>').selected=true;
171   </TMPL_IF>
172
173   <TMPL_IF gtype>
174      document.getElementById('gtype_<TMPL_VAR gtype>').selected=true;
175   </TMPL_IF>
176
177   <TMPL_IF url>
178    document.getElementById('imggraph').src='bgraph.pl?<TMPL_VAR url>'
179   </TMPL_IF>
180
181 </script>