]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/client_list.tpl
ebl Replace <input type='image'> with button
[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 action='?' method='GET'>
7      <table id='id<TMPL_VAR NAME=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 jobsView 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 NAME=Clients>
29 chkbox = document.createElement('INPUT');
30 chkbox.type  = 'checkbox';
31 chkbox.name = 'client';
32 chkbox.value = '<TMPL_VAR NAME=Name>';
33
34 data.push( 
35   new Array( "<TMPL_VAR NAME=Name>", 
36              chkbox,
37              "<TMPL_VAR NAME=Uname>",
38              "<TMPL_VAR NAME=AutoPrune>",
39              human_sec(<TMPL_VAR NAME=FileRetention>),
40              human_sec(<TMPL_VAR NAME=JobRetention>)
41               )
42 ) ; 
43 </TMPL_LOOP>
44
45 nrsTable.setup(
46 {
47  table_name:     "id<TMPL_VAR NAME=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>