]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/update_location.tpl
ebl release file on sf
[bacula/bacula] / gui / bweb / tpl / update_location.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'>Update media location</h1>
4  </div> 
5  <div class="bodydiv">
6    <form action='?' method='get'>
7     <table id='id<TMPL_VAR NAME=ID>'></table>
8     New location : <select class='formulaire' name='newlocation'>
9    <TMPL_LOOP NAME=db_locations>
10       <option id='loc_<TMPL_VAR NAME=location>' value='<TMPL_VAR NAME=location>'><TMPL_VAR NAME=location></option>
11    </TMPL_LOOP>
12   </select>
13   <input type="image" name='action' value='save_location' src='/bweb/apply.png'>
14    </form>
15  </div>
16
17 <script type="text/javascript" language="JavaScript">
18
19 var header = new Array("Volume Name", "Location", "Select");
20
21 var data = new Array();
22 var chkbox;
23
24 <TMPL_LOOP NAME=medias>
25 chkbox = document.createElement('INPUT');
26 chkbox.type  = 'checkbox';
27 chkbox.value = '<TMPL_VAR name=volumename>';
28 chkbox.name  = 'media';
29 chkbox.checked = 1;
30
31 data.push( new Array(
32 "<TMPL_VAR NAME=volumename>",
33 "<TMPL_VAR NAME=location>",
34 chkbox
35  )
36 );
37 </TMPL_LOOP>
38
39 nrsTable.setup(
40 {
41  table_name:     "id<TMPL_VAR NAME=ID>",
42  table_header: header,
43  table_data: data,
44  up_icon: up_icon,
45  down_icon: down_icon,
46  prev_icon: prev_icon,
47  next_icon: next_icon,
48  rew_icon:  rew_icon,
49  fwd_icon:  fwd_icon,
50 // natural_compare: false,
51  even_cell_color: even_cell_color,
52  odd_cell_color: odd_cell_color, 
53  header_color: header_color,
54  page_nav: true,
55  padding: 3,
56 // disable_sorting: new Array(5,6)
57  rows_per_page: rows_per_page
58 }
59 );
60
61 <TMPL_IF qnewlocation>
62  document.getElementById('loc_' + <TMPL_VAR qnewlocation>).selected=true;
63 </TMPL_IF>
64
65 </script>