]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/help_extern_compute.tpl
ebl - change default config file format, use Data::Dumper now
[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 media.
7    <form action='?' method='get'>
8     <table id='compute'></table>
9     <table><tr>
10     <td style='align: left;'>
11     <button onclick='javascript:window.history.go(-2);' class='formulaire' title='Back'>
12       <img src='/bweb/prev.png'> &nbsp;
13     </button>
14     </td><td style='align: right;'>
15     <button name='action' value='extern' class='formulaire'>
16       <img src='/bweb/extern.png'>
17     </button>
18    </td></tr>
19    </form>
20  </div>
21
22 <script language="JavaScript">
23
24 var header = new Array("Volume Name","Vol Status",
25                        "Media Type","Pool Name","Last Written", 
26                        "When expire ?", "Select");
27
28 var data = new Array();
29 var chkbox;
30
31 <TMPL_LOOP NAME=Medias>
32 chkbox = document.createElement('INPUT');
33 chkbox.type  = 'checkbox';
34 chkbox.value = '<TMPL_VAR NAME=volumename>';
35 chkbox.name  = 'media';
36 chkbox.checked = 'on';
37
38 data.push( new Array(
39 "<TMPL_VAR NAME=volumename>",
40 "<TMPL_VAR NAME=volstatus>",
41 "<TMPL_VAR NAME=mediatype>",
42 "<TMPL_VAR NAME=name>",
43 "<TMPL_VAR NAME=lastwritten>",
44 "<TMPL_VAR NAME=expire>",
45 chkbox
46  )
47 );
48 </TMPL_LOOP>
49
50 nrsTable.setup(
51 {
52  table_name:     "compute",
53  table_header: header,
54  table_data: data,
55  up_icon: up_icon,
56  down_icon: down_icon,
57  prev_icon: prev_icon,
58  next_icon: next_icon,
59  rew_icon:  rew_icon,
60  fwd_icon:  fwd_icon,
61 // natural_compare: false,
62  even_cell_color: even_cell_color,
63  odd_cell_color: odd_cell_color, 
64  header_color: header_color,
65  page_nav: true,
66  padding: 3,
67  rows_per_page: rows_per_page,
68 // disable_sorting: new Array(5,6)
69 }
70 );
71 </script>