]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_client_stats.tpl
bacula-web: Replaced Get_human_file_size() function by Utils::Get_Human_Size
[bacula/bacula] / gui / bweb / tpl / display_client_stats.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> __Client:__ <TMPL_VAR clientname> (<TMPL_VAR label>)</h1>
4  </div>
5  <div class='bodydiv'>
6 <form action='?'>
7      <table id='id<TMPL_VAR ID>'></table>
8      <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_duration;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data' > &nbsp;
9      <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_rate;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data'> &nbsp;
10      <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_size;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data'> &nbsp;
11 <!--    <div class="otherboxtitle">
12           __Actions__ &nbsp;
13         </div>
14         <div class="otherbox">
15        <h1>Actions</h1> 
16        <button type="submit" class="bp" name='action' value='job' title='__Show last job__'> <img src='/bweb/zoom.png' alt=''>__View last jobs__</button>
17        <button type="submit" class="bp" name='action' value='dsp_cur_job' title='__Show current job__'> <img src='/bweb/zoom.png' alt=''>__View current jobs__</button>
18        <button type="submit" class="bp" name='action' value='client_stat' title='__Client stats__'> <img src='/bweb/zoom.png' alt=''>__View stats__</button>
19         </div>
20 -->
21 </form>
22  </div>
23
24 <script type="text/javascript" language="JavaScript">
25 var header = new Array("__Name__", "__Nb Jobs__", "__Nb Bytes__", "__Nb Files__", "__Nb Errors__");
26
27 var data = new Array();
28
29 data.push( 
30   new Array( "<TMPL_VAR clientname>", 
31              "<TMPL_VAR nb_jobs>",
32              human_size(<TMPL_VAR nb_bytes>),
33              "<TMPL_VAR nb_files>",
34              "<TMPL_VAR nb_err>"
35              )
36 ) ; 
37
38 nrsTable.setup(
39 {
40  table_name:     "id<TMPL_VAR ID>",
41  table_header: header,
42  table_data: data,
43  up_icon: up_icon,
44  down_icon: down_icon,
45  prev_icon: prev_icon,
46  next_icon: next_icon,
47  rew_icon:  rew_icon,
48  fwd_icon:  fwd_icon,
49 // natural_compare: false,
50  even_cell_color: even_cell_color,
51  odd_cell_color: odd_cell_color, 
52  header_color: header_color,
53  page_nav: true,
54 // disable_sorting: new Array(1),
55  rows_per_page: rows_per_page
56 }
57 );
58 </script>