]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_location.tpl
ebl release file on sf
[bacula/bacula] / gui / bweb / tpl / display_location.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'>Locations</h1>
4  </div>
5  <div class="bodydiv">
6    <form action='?' method='get'>
7     <table id='id<TMPL_VAR ID>'></table>
8     <input type="image" name='action' value='location_add' title='Add a location' src='/bweb/add.png'>&nbsp;
9     <input type="image" name='action' value='location_del' title='Remove a location' src='/bweb/remove.png'>&nbsp;
10     <input type="image" name='action' value='location_edit' title='Edit a location' src='/bweb/edit.png'>&nbsp;
11
12     <input type="image" name='action' value='media' title='Show content'
13      src='/bweb/zoom.png'>
14    </form>
15  </div>
16
17 <script type="text/javascript" language="JavaScript">
18
19 var header = new Array("Name","Enabled", "Cost", "Nb volumes", "Select");
20
21 var data = new Array();
22 var chkbox;
23
24 var img;
25
26 <TMPL_LOOP Locations>
27 img = document.createElement('IMG');
28 img.src = '/bweb/inflag<TMPL_VAR enabled>.png';
29
30 chkbox = document.createElement('INPUT');
31 chkbox.type  = 'radio';
32 chkbox.name  = 'location';
33 chkbox.value = '<TMPL_VAR Location>';
34
35 data.push( new Array(
36 "<TMPL_VAR Location>",
37 img,
38 "<TMPL_VAR Cost>",
39 "<TMPL_VAR name=volnum>",
40 chkbox
41  )
42 );
43 </TMPL_LOOP>
44
45 nrsTable.setup(
46 {
47  table_name:     "id<TMPL_VAR ID>",
48  table_header: header,
49  table_data: data,
50  up_icon: up_icon,
51  down_icon: down_icon,
52  prev_icon: prev_icon,
53  next_icon: next_icon,
54  rew_icon:  rew_icon,
55  fwd_icon:  fwd_icon,
56 // natural_compare: false,
57  even_cell_color: even_cell_color,
58  odd_cell_color: odd_cell_color, 
59  header_color: header_color,
60  page_nav: true,
61  padding: 3,
62 // disable_sorting: new Array(5,6),
63  rows_per_page: rows_per_page
64 }
65 );
66 </script>