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'>
22 <input type="image" name='action' value='label_barcodes'
23 title='run label barcodes' src='/bweb/label.png'>Label
27 <input type="image" name='action' value='eject'
28 title='put selected media on i/o' src='/bweb/extern.png'>
32 <input type="image" name='action' value='clear_io'
33 title='Clear i/o' src='/bweb/intern.png'>
38 <input type="image" name='action' value='update_slots'
39 title='run update slots' src='/bweb/update.png'>
44 <input type="image" name='action' value='ach_load'
45 title='mount drive' src='/bweb/load.png'>
49 <input type="image" name='action' value='ach_unload'
50 title='umount drive' src='/bweb/unload.png'>
58 <table id='id_drive'></table> <br/>
62 <b> Content: </b><br/>
63 <table id='id_ach'></table>
67 <script type="text/javascript" language="JavaScript">
69 var header = new Array("Real Slot", "Slot", "Volume Name","Vol Bytes","Vol Status",
70 "Media Type","Pool Name","Last Written",
71 "When expire ?", "Select");
73 var data = new Array();
76 <TMPL_LOOP NAME=Slots>
77 chkbox = document.createElement('INPUT');
78 chkbox.type = 'checkbox';
80 chkbox.value = '<TMPL_VAR NAME=realslot>';
83 "<TMPL_VAR NAME=realslot>",
84 "<TMPL_VAR NAME=slot>",
85 "<TMPL_VAR NAME=volumename>",
86 "<TMPL_VAR NAME=volbytes>",
87 "<TMPL_VAR NAME=volstatus>",
88 "<TMPL_VAR NAME=mediatype>",
89 "<TMPL_VAR NAME=name>",
90 "<TMPL_VAR NAME=lastwritten>",
91 "<TMPL_VAR NAME=expire>",
100 table_header: header,
103 down_icon: down_icon,
104 prev_icon: prev_icon,
105 next_icon: next_icon,
108 // natural_compare: false,
109 even_cell_color: even_cell_color,
110 odd_cell_color: odd_cell_color,
111 header_color: header_color,
113 // rows_per_page: rows_per_page,
114 // disable_sorting: new Array(5,6)
119 var header = new Array("Index", "Drive Name", "Volume Name", "Select");
121 var data = new Array();
124 <TMPL_LOOP NAME=Drives>
125 chkbox = document.createElement('INPUT');
126 chkbox.type = 'checkbox';
127 chkbox.name = 'drive';
128 chkbox.value = '<TMPL_VAR NAME=index>';
130 data.push( new Array(
131 "<TMPL_VAR NAME=index>",
132 "<TMPL_VAR NAME=name>",
133 "<TMPL_VAR NAME=load>",
141 table_name: "id_drive",
142 table_header: header,
145 down_icon: down_icon,
146 prev_icon: prev_icon,
147 next_icon: next_icon,
150 // natural_compare: false,
151 even_cell_color: even_cell_color,
152 odd_cell_color: odd_cell_color,
153 header_color: header_color,
155 // rows_per_page: rows_per_page,
156 // disable_sorting: new Array(5,6),