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' 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>
23 </td><td valign='top'>
25 <select name='status' class='formulaire'>
26 <option id='status_Any' value='Any'>Any</option>
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>
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 month</option>
44 Width: <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/>
53 <select name='client' size='15' class='formulaire' multiple>
54 <TMPL_LOOP NAME=db_clients>
55 <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
61 <select name='jobname' size='15' class='formulaire' multiple>
62 <TMPL_LOOP NAME=db_jobnames>
63 <option><TMPL_VAR NAME=jobname></option>
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>
90 <h2>Number of items</h2>
91 <input type='text' name='limit' value='<TMPL_VAR NAME=limit>'
92 class='formulaire' size='4'>
96 <td><h2> Graph type </h2>
97 <select name='gtype' class='formulaire'>
98 <option id='gtype_bars' value='bars'>Bars</option>
99 <!-- <option id='gtype_bars3d' value='bars3d'>Bars3d</option> -->
100 <option id='gtype_lines' value='lines'>Lines</option>
101 <option id='gtype_linespoints' value='linespoints'>Lines points</option>
104 <input type='submit' name='action' value='graph' class='formulaire'>
114 <div class="otherboxtitle">
117 <div class="otherbox">
118 <img src='bgraph.pl?<TMPL_VAR NAME=url>' alt='Nothing to display, Try a bigger date range'>
125 <script type="text/javascript" language="JavaScript">
128 document.getElementById('client_' + <TMPL_VAR name>).selected = true;
132 document.getElementById('status_<TMPL_VAR status>').selected=true;
136 document.getElementById('level_<TMPL_VAR level>').selected=true;
140 document.getElementById('age_<TMPL_VAR age>').selected=true;
144 for (var i=0; i < document.form1.fileset.length; ++i) {
145 <TMPL_LOOP qfilesets>
146 if (document.form1.fileset[i].value == <TMPL_VAR name>) {
147 document.form1.fileset[i].selected = true;
154 for (var i=0; i < document.form1.jobname.length; ++i) {
155 <TMPL_LOOP qjobnames>
156 if (document.form1.jobname[i].value == <TMPL_VAR name>) {
157 document.form1.jobname[i].selected = true;
164 document.getElementById('<TMPL_VAR graph>').selected=true;
168 document.getElementById('gtype_<TMPL_VAR gtype>').selected=true;