4 Autochanger : <TMPL_VAR NAME=Name> (<TMPL_VAR NAME=nb_drive> Drives
5 <TMPL_IF NAME=nb_io><TMPL_VAR NAME=nb_io> IMPORT/EXPORT</TMPL_IF>)</h1>
8 <form action='?' method='get'>
9 <input type='hidden' name='ach' value='<TMPL_VAR NAME=name>'>
10 <TMPL_IF NAME="Update">
11 <font color='red'> You must run update slot, Autochanger status is different from bacula slots </font>
17 <div class='otherboxtitle'>
20 <div class='otherbox'>
21 <button type='submit' name='action' value='label_barcodes' class='formulaire'
22 title='run label barcodes'>Label<br/><img src='/bweb/label.png'>
25 <button type='submit' name='action' value='eject' class='formulaire'
26 title='put selected media on i/o'>Eject<br/>
27 <img src='/bweb/extern.png'>
29 <button type='submit' name='action' value='clear_io' class='formulaire'
30 title='Clear i/o'>Clear I/O<br/>
31 <img src='/bweb/intern.png'>
34 <button type='submit' name='action' value='update_slots' class='formulaire'
35 title='run update slots'>Update<br/>
36 <img src='/bweb/update.png'>
39 <button type='submit' name='action' value='ach_load' class='formulaire'
40 title='mount drive'>Mount<br/>
41 <img src='/bweb/load.png'>
43 <button type='submit' name='action' value='ach_unload' class='formulaire'
44 title='umount drive'>Umount<br/>
45 <img src='/bweb/unload.png'>
52 <table id='id_drive'></table> <br/>
56 <b> Content: </b><br/>
57 <table id='id_ach'></table>
61 <script language="JavaScript">
63 var header = new Array("Real Slot", "Slot", "Volume Name","Vol Bytes","Vol Status",
64 "Media Type","Pool Name","Last Written",
65 "When expire ?", "Select");
67 var data = new Array();
70 <TMPL_LOOP NAME=Slots>
71 chkbox = document.createElement('INPUT');
72 chkbox.type = 'checkbox';
74 chkbox.value = '<TMPL_VAR NAME=realslot>';
77 "<TMPL_VAR NAME=realslot>",
78 "<TMPL_VAR NAME=slot>",
79 "<TMPL_VAR NAME=volumename>",
80 "<TMPL_VAR NAME=volbytes>",
81 "<TMPL_VAR NAME=volstatus>",
82 "<TMPL_VAR NAME=mediatype>",
83 "<TMPL_VAR NAME=name>",
84 "<TMPL_VAR NAME=lastwritten>",
85 "<TMPL_VAR NAME=expire>",
102 // natural_compare: false,
103 even_cell_color: even_cell_color,
104 odd_cell_color: odd_cell_color,
105 header_color: header_color,
108 // rows_per_page: rows_per_page,
109 // disable_sorting: new Array(5,6)
113 var header = new Array("Index", "Drive Name", "Volume Name", "Select");
115 var data = new Array();
118 <TMPL_LOOP NAME=Drives>
119 chkbox = document.createElement('INPUT');
120 chkbox.type = 'checkbox';
121 chkbox.name = 'drive';
122 chkbox.value = '<TMPL_VAR NAME=index>';
124 data.push( new Array(
125 "<TMPL_VAR NAME=index>",
126 "<TMPL_VAR NAME=name>",
127 "<TMPL_VAR NAME=load>",
135 table_name: "id_drive",
136 table_header: header,
139 down_icon: down_icon,
140 prev_icon: prev_icon,
141 next_icon: next_icon,
144 // natural_compare: false,
145 even_cell_color: even_cell_color,
146 odd_cell_color: odd_cell_color,
147 header_color: header_color,
150 // rows_per_page: rows_per_page,
151 // disable_sorting: new Array(5,6)