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