]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/help_intern_compute.tpl
Renamed cleanup goto target into bail_out which is the prefered name from the develop...
[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 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     <input type="hidden" name='enabled' value='yes'>
14     <button type="submit" class="bp" name='action' value='move_media'> 
15      <img src='/bweb/intern.png' alt=''>Load</button>
16    </td></tr>
17    </form>
18  </div>
19
20 <script type="text/javascript" language="JavaScript">
21
22 var header = new Array("__Volume Name__","__Vol Status__",
23                        "__Media Type__","__Pool Name__","__Last Written__", 
24                        "__When expire ?__", "__Select__");
25
26 var data = new Array();
27 var chkbox;
28
29 <TMPL_LOOP NAME=media>
30 chkbox = document.createElement('INPUT');
31 chkbox.type  = 'checkbox';
32 chkbox.name = 'media';
33 chkbox.value= '<TMPL_VAR volumename>';
34 chkbox.checked = 'on';
35
36 data.push( new Array(
37 "<TMPL_VAR volumename>",
38 "<TMPL_VAR volstatus>",
39 "<TMPL_VAR mediatype>",
40 "<TMPL_VAR name>",
41 "<TMPL_VAR lastwritten>",
42 "<TMPL_VAR expire>",
43 chkbox
44  )
45 );
46 </TMPL_LOOP>
47
48 nrsTable.setup(
49 {
50  table_name:     "compute",
51  table_header: header,
52  table_data: data,
53  up_icon: up_icon,
54  down_icon: down_icon,
55  prev_icon: prev_icon,
56  next_icon: next_icon,
57  rew_icon:  rew_icon,
58  fwd_icon:  fwd_icon,
59 // natural_compare: false,
60  even_cell_color: even_cell_color,
61  odd_cell_color: odd_cell_color, 
62  header_color: header_color,
63  page_nav: true,
64  padding: 3,
65 // disable_sorting: new Array(5,6)
66  rows_per_page: rows_per_page
67 }
68 );
69 </script>