]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_users.tpl
bacula-web: Replaced Get_human_file_size() function by Utils::Get_Human_Size
[bacula/bacula] / gui / bweb / tpl / display_users.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'>__Users__</h1>
4  </div>
5  <div class="bodydiv">
6    <form action='?' method='get'>
7     <table id='id<TMPL_VAR ID>'></table>
8     <button type="submit" class="bp" name='action' value='user_add' title='__Add__'> <img src='/bweb/add.png' alt=''>__Add__</button>
9     <button type="submit" class="bp" name='action' value='user_del' 
10      onclick="return confirm('Do you want to delete this user ?');" 
11      title='__Remove__'> <img src='/bweb/remove.png' alt=''>__Remove__ </button>
12     <button type="submit" class="bp" name='action' value='user_edit' title='__Edit__'> <img src='/bweb/edit.png' alt=''>__Edit__ </button>
13
14     <button type="submit" class="bp" name='action' value='client' title='__View clients__'> <img src='/bweb/zoom.png' alt=''>__View clients__</button>
15     <button type="submit" class="bp" name='action' value='job' title='__View jobs__'> <img src='/bweb/zoom.png' alt=''>__View jobs__</button>
16    </form>
17  </div>
18
19 <script type="text/javascript" language="JavaScript">
20
21 var header = new Array("__Username__","__Selection__");
22
23 var data = new Array();
24 var chkbox;
25
26 <TMPL_LOOP db_usernames>
27
28 chkbox = document.createElement('INPUT');
29 chkbox.type  = 'radio';
30 chkbox.name  = 'username';
31 chkbox.value = '<TMPL_VAR username>';
32
33 data.push( new Array(
34 "<TMPL_VAR username>",
35 chkbox
36  )
37 );
38 </TMPL_LOOP>
39
40 nrsTable.setup(
41 {
42  table_name:     "id<TMPL_VAR ID>",
43  table_header: header,
44  table_data: data,
45  up_icon: up_icon,
46  down_icon: down_icon,
47  prev_icon: prev_icon,
48  next_icon: next_icon,
49  rew_icon:  rew_icon,
50  fwd_icon:  fwd_icon,
51 // natural_compare: false,
52  even_cell_color: even_cell_color,
53  odd_cell_color: odd_cell_color, 
54  header_color: header_color,
55  page_nav: true,
56  padding: 3,
57 // disable_sorting: new Array(5,6),
58  rows_per_page: rows_per_page
59 }
60 );
61 </script>
62
63