]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/client_list.tpl
ebl Update btime to use pool filter
[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='groups' title='__View client groups__'> <img src='/bweb/zoom.png' alt=''>__View groups__</button>
16        <button type="submit" class="bp" name='action' value='client_status' title='__Show client status__'> <img src='/bweb/zoom.png' alt=''>__Status__ </button>
17        <button type="submit" class="bp" name='action' value='client_stats' title='__Client stats__'> <img src='/bweb/chart.png' alt=''>__Stats__ </button>
18         </div>
19
20 </form>
21  </div>
22
23 <script type="text/javascript" language="JavaScript">
24 var header = new Array("__Name__", "__Select__", "__Desc__", "__Auto Prune__", "__File Retention__", "__Job Retention__");
25
26 var data = new Array();
27 var chkbox ;
28
29 <TMPL_LOOP Clients>
30 chkbox = document.createElement('INPUT');
31 chkbox.type  = 'checkbox';
32 chkbox.name = 'client';
33 chkbox.value = '<TMPL_VAR Name>';
34
35 data.push( 
36   new Array( "<TMPL_VAR Name>", 
37              chkbox,
38              "<TMPL_VAR Uname>",
39              "<TMPL_VAR AutoPrune>",
40              human_sec(<TMPL_VAR FileRetention>),
41              human_sec(<TMPL_VAR JobRetention>)
42               )
43 ) ; 
44 </TMPL_LOOP>
45
46 nrsTable.setup(
47 {
48  table_name:     "id<TMPL_VAR ID>",
49  table_header: header,
50  table_data: data,
51  up_icon: up_icon,
52  down_icon: down_icon,
53  prev_icon: prev_icon,
54  next_icon: next_icon,
55  rew_icon:  rew_icon,
56  fwd_icon:  fwd_icon,
57 // natural_compare: false,
58  even_cell_color: even_cell_color,
59  odd_cell_color: odd_cell_color, 
60  header_color: header_color,
61  page_nav: true,
62  rows_per_page: rows_per_page,
63  disable_sorting: new Array(1)
64 }
65 );
66 </script>