]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/client_list.tpl
ebl update for translation
[bacula/bacula] / gui / bweb / tpl / client_list.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'>__Clients__</h1>
4  </div>
5  <div class='bodydiv'>
6 <form name="client" action='?' method='GET'>
7      <table id='id<TMPL_VAR ID>'></table>
8         <div class="otherboxtitle">
9           __Actions__ &nbsp;
10         </div>
11         <div class="otherbox">
12 <!--        <h1>__Actions__</h1> -->    
13        <button type="submit" class="bp" name='action' value='job' title="__Show last job__"> <img src='/bweb/zoom.png' alt=''>__Last jobs__</button>
14        <button type="submit" class="bp" name='action' value='dsp_cur_job' title='__Show current job__'> <img src='/bweb/zoom.png' alt=''>__Current jobs__</button>
15        <button type="submit" class="bp" name='action' value='client_status' title='__Show client status__'> <img src='/bweb/zoom.png' alt=''>__Status__ </button>
16        <button type="submit" class="bp" name='action' value='client_stats' title='__Client stats__'> <img src='/bweb/chart.png' alt=''>__Stats__ </button>
17         </div>
18
19 </form>
20  </div>
21
22 <script type="text/javascript" language="JavaScript">
23 var header = new Array("__Name__", "__Select__", "__Desc__", "__Auto Prune__", "__File Retention__", "__Job Retention__");
24
25 var data = new Array();
26 var chkbox ;
27
28 <TMPL_LOOP Clients>
29 chkbox = document.createElement('INPUT');
30 chkbox.type  = 'checkbox';
31 chkbox.name = 'client';
32 chkbox.value = '<TMPL_VAR Name>';
33
34 data.push( 
35   new Array( "<TMPL_VAR Name>", 
36              chkbox,
37              "<TMPL_VAR Uname>",
38              "<TMPL_VAR AutoPrune>",
39              human_sec(<TMPL_VAR FileRetention>),
40              human_sec(<TMPL_VAR JobRetention>)
41               )
42 ) ; 
43 </TMPL_LOOP>
44
45 nrsTable.setup(
46 {
47  table_name:     "id<TMPL_VAR ID>",
48  table_header: header,
49  table_data: data,
50  up_icon: up_icon,
51  down_icon: down_icon,
52  prev_icon: prev_icon,
53  next_icon: next_icon,
54  rew_icon:  rew_icon,
55  fwd_icon:  fwd_icon,
56 // natural_compare: false,
57  even_cell_color: even_cell_color,
58  odd_cell_color: odd_cell_color, 
59  header_color: header_color,
60  page_nav: true,
61  rows_per_page: rows_per_page,
62  disable_sorting: new Array(1)
63 }
64 );
65 </script>