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