]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_stats.tpl
ebl Add group stats
[bacula/bacula] / gui / bweb / tpl / display_stats.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> __Statistics__ (<TMPL_VAR label>)</h1>
4  </div>
5  <div class='bodydiv'>
6 <form action='?'>
7      <table id='id<TMPL_VAR ID>'></table>
8 </form>
9  </div>
10
11 <script type="text/javascript" language="JavaScript">
12 var header = new Array("__Name__", "__Nb Jobs__", "__Nb Bytes__", "__Nb Bytes__", "__Nb Files__", "__Nb Resto__");
13
14 var data = new Array();
15
16 <TMPL_LOOP stats>
17 data.push( 
18   new Array( "<TMPL_VAR name>", 
19              "<TMPL_VAR nb_job>",
20              human_size(<TMPL_VAR nb_byte>),
21              <TMPL_VAR nb_byte>,
22              "<TMPL_VAR nb_file>",
23              "<TMPL_VAR nb_resto>"
24              )
25 ) ; 
26 </TMPL_LOOP>
27 nrsTable.setup(
28 {
29  table_name:     "id<TMPL_VAR ID>",
30  table_header: header,
31  table_data: data,
32  up_icon: up_icon,
33  down_icon: down_icon,
34  prev_icon: prev_icon,
35  next_icon: next_icon,
36  rew_icon:  rew_icon,
37  fwd_icon:  fwd_icon,
38 // natural_compare: false,
39  even_cell_color: even_cell_color,
40  odd_cell_color: odd_cell_color, 
41  header_color: header_color,
42  page_nav: true,
43 // disable_sorting: new Array(1),
44  rows_per_page: rows_per_page
45 }
46 );
47 </script>