]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/help_extern_compute.tpl
ebl release file on sf
[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     <input type="image" onclick='javascript:window.history.go(-2);' title='Back' src='/bweb/prev.png'>
12     </td><td style='align: right;'>
13     <input type="image" name='action' value='extern' src='/bweb/extern.png' title='Eject selection'>
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 NAME=Medias>
28 chkbox = document.createElement('INPUT');
29 chkbox.type  = 'checkbox';
30 chkbox.value = '<TMPL_VAR NAME=volumename>';
31 chkbox.name  = 'media';
32 chkbox.checked = 'on';
33
34 data.push( new Array(
35 "<TMPL_VAR NAME=volumename>",
36 "<TMPL_VAR NAME=volstatus>",
37 "<TMPL_VAR NAME=mediatype>",
38 "<TMPL_VAR NAME=name>",
39 "<TMPL_VAR NAME=lastwritten>",
40 "<TMPL_VAR NAME=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>