]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/help_extern_compute.tpl
bacula-web: Replaced Get_human_file_size() function by Utils::Get_Human_Size
[bacula/bacula] / gui / bweb / tpl / help_extern_compute.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'>__Help to eject media (part 2/2)__</h1>
4  </div>
5  <div class='bodydiv'>
6   __Now, you can verify the selection and eject the media.__
7    <form action='?' method='get'>
8     <table id='compute'></table>
9     <table><tr>
10     <td style='align: left;'>
11     <button type="submit" class="bp" onclick='javascript:window.history.go(-2);' title='__Back__'> <img src='/bweb/prev.png' alt=''>__Back__</button>
12     </td><td style='align: right;'>
13     <button type="submit" class="bp" name='action' value='extern' title='__Eject selection__'> <img src='/bweb/extern.png' alt=''>__Eject__</button>
14    </td></tr>
15    </form>
16  </div>
17
18 <script type="text/javascript" language="JavaScript">
19
20 var header = new Array("__Volume Name__","__Vol Status__",
21                        "__Media Type__","__Pool Name__","__Last Written__", 
22                        "__When expire ?__", "__Select__");
23
24 var data = new Array();
25 var chkbox;
26
27 <TMPL_LOOP media>
28 chkbox = document.createElement('INPUT');
29 chkbox.type  = 'checkbox';
30 chkbox.value = '<TMPL_VAR volumename>';
31 chkbox.name  = 'media';
32 chkbox.checked = 'on';
33
34 data.push( new Array(
35 "<TMPL_VAR volumename>",
36 "<TMPL_VAR volstatus>",
37 "<TMPL_VAR mediatype>",
38 "<TMPL_VAR name>",
39 "<TMPL_VAR lastwritten>",
40 timestamp_to_iso("<TMPL_VAR expire>"),
41 chkbox
42  )
43 );
44 </TMPL_LOOP>
45
46 nrsTable.setup(
47 {
48  table_name:     "compute",
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  padding: 3,
63 // disable_sorting: new Array(5,6)
64  rows_per_page: rows_per_page
65 }
66 );
67 </script>