]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/help_intern_compute.tpl
ebl remove Purged/Recycled status in update media
[bacula/bacula] / gui / bweb / tpl / help_intern_compute.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> Help to load media (part 2/2)</h1>
4  </div>
5  <div class='bodydiv'>
6   Now, you can verify the selection and load 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='move_media'
14      src='/bweb/intern.png'>
15    </td></tr>
16    </form>
17  </div>
18
19 <script type="text/javascript" language="JavaScript">
20
21 var header = new Array("Volume Name","Vol Status",
22                        "Media Type","Pool Name","Last Written", 
23                        "When expire ?", "Select");
24
25 var data = new Array();
26 var chkbox;
27
28 <TMPL_LOOP NAME=Medias>
29 chkbox = document.createElement('INPUT');
30 chkbox.type  = 'checkbox';
31 chkbox.name = 'media';
32 chkbox.value= '<TMPL_VAR NAME=volumename>';
33 chkbox.checked = 'on';
34
35 data.push( new Array(
36 "<TMPL_VAR NAME=volumename>",
37 "<TMPL_VAR NAME=volstatus>",
38 "<TMPL_VAR NAME=mediatype>",
39 "<TMPL_VAR NAME=name>",
40 "<TMPL_VAR NAME=lastwritten>",
41 "<TMPL_VAR NAME=expire>",
42 chkbox
43  )
44 );
45 </TMPL_LOOP>
46
47 nrsTable.setup(
48 {
49  table_name:     "compute",
50  table_header: header,
51  table_data: data,
52  up_icon: up_icon,
53  down_icon: down_icon,
54  prev_icon: prev_icon,
55  next_icon: next_icon,
56  rew_icon:  rew_icon,
57  fwd_icon:  fwd_icon,
58 // natural_compare: false,
59  even_cell_color: even_cell_color,
60  odd_cell_color: odd_cell_color, 
61  header_color: header_color,
62  page_nav: true,
63  padding: 3,
64 // disable_sorting: new Array(5,6)
65  rows_per_page: rows_per_page
66 }
67 );
68 </script>