3 <h1 class='newstitle'>__Statistics__</h1>
8 <form name='form1' action='?' method='GET'>
9 <div class="otherboxtitle">
12 <div class="otherbox">
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>
24 </td><td valign='top'>
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>
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>
45 __Width:__ <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/>
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>
62 <select name='jobname' size='15' class='formulaire' multiple>
63 <TMPL_LOOP db_jobnames>
64 <option><TMPL_VAR jobname></option>
69 <TMPL_IF db_client_groups>
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>
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>
106 <h2>__Number of items__</h2>
107 <input type='text' name='limit' value='<TMPL_VAR limit>'
108 class='formulaire' size='4'>
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>
121 <input type='submit' name='action' value='graph' class='formulaire'>
131 <div class="otherboxtitle">
134 <div class="otherbox">
136 <img usemap='#imggraph' id='imggraph'
137 alt='__Nothing to display, Try a bigger date range__'>
144 <script type="text/javascript" language="JavaScript">
147 document.getElementById('client_' + <TMPL_VAR name>).selected = true;
151 document.getElementById('status_<TMPL_VAR status>').selected=true;
155 document.getElementById('level_<TMPL_VAR level>').selected=true;
159 document.getElementById('age_<TMPL_VAR age>').selected=true;
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;
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;
183 document.getElementById('<TMPL_VAR graph>').selected=true;
187 document.getElementById('gtype_<TMPL_VAR gtype>').selected=true;
191 document.getElementById('imggraph').src='bgraph.pl?<TMPL_VAR url>'
194 <TMPL_LOOP qclient_groups>
195 document.getElementById('group_' + <TMPL_VAR name>).selected = true;