]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/bweb/tpl/ach_content.tpl
ebl Release 2.0.2 on sf
[bacula/bacula] / gui / bweb / bweb / tpl / ach_content.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> 
4 Autochanger : <TMPL_VAR Name> (<TMPL_VAR nb_drive> Drives
5 <TMPL_IF nb_io><TMPL_VAR nb_io> IMPORT/EXPORT</TMPL_IF>)</h1>
6  </div>
7  <div class='bodydiv'>
8    <form action='?' method='get'>
9     <input type='hidden' name='ach' value='<TMPL_VAR name>'>
10     <TMPL_IF "Update">
11     <font color='red'> You must run update slot, Autochanger status is different from bacula slots </font>
12     <br/>
13     </TMPL_IF>
14     <table border='0'>
15     <tr>
16     <td valign='top'>
17     <div class='otherboxtitle'>
18      Tools
19     </div>
20     <div class='otherbox'>
21 <label>
22 <input type="image" name='action' value='label_barcodes'
23         title='run label barcodes' src='/bweb/label.png'>Label
24 </label>
25 <TMPL_IF nb_io>
26 <label>
27 <input type="image" name='action' value='eject'
28         title='put selected media on i/o' src='/bweb/extern.png'>
29 Eject
30 </label>
31 <label>
32 <input type="image" name='action' value='clear_io'
33         title='Clear i/o' src='/bweb/intern.png'>
34 Clear I/O
35 </label>
36 </TMPL_IF>
37 <label>
38 <input type="image" name='action' value='update_slots'
39         title='run update slots' src='/bweb/update.png'>
40 Update
41 </label>
42 <br/><br/>
43 <label>
44 <input type="image" name='action' value='ach_load'
45         title='mount drive' src='/bweb/load.png'>
46 Mount
47 </label>
48 <label>
49 <input type="image" name='action' value='ach_unload'
50         title='umount drive' src='/bweb/unload.png'>
51 Umount
52 </label>
53
54    </div>
55     <td width='200'/>
56     <td>
57     <b> Drives: </b><br/>
58     <table id='id_drive'></table> <br/>
59     </td>
60     </tr>
61     </table>
62     <b> Content: </b><br/>
63     <table id='id_ach'></table>
64    </form>
65  </div>
66
67 <script type="text/javascript" language="JavaScript">
68
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");
72
73 var data = new Array();
74 var chkbox;
75
76 <TMPL_LOOP Slots>
77 chkbox = document.createElement('INPUT');
78 chkbox.type  = 'checkbox';
79 chkbox.name = 'slot';
80 chkbox.value = '<TMPL_VAR realslot>';
81
82 data.push( new Array(
83 "<TMPL_VAR realslot>",
84 "<TMPL_VAR slot>",
85 "<TMPL_VAR volumename>",
86 human_size(<TMPL_VAR volbytes>),
87 "<TMPL_VAR volstatus>",
88 "<TMPL_VAR mediatype>",
89 "<TMPL_VAR name>",
90 "<TMPL_VAR lastwritten>",
91 "<TMPL_VAR expire>",
92 chkbox
93  )
94 );
95 </TMPL_LOOP>
96
97 nrsTable.setup(
98 {
99  table_name:     "id_ach",
100  table_header: header,
101  table_data: data,
102  up_icon: up_icon,
103  down_icon: down_icon,
104  prev_icon: prev_icon,
105  next_icon: next_icon,
106  rew_icon:  rew_icon,
107  fwd_icon:  fwd_icon,
108 // natural_compare: false,
109  even_cell_color: even_cell_color,
110  odd_cell_color: odd_cell_color, 
111  header_color: header_color,
112 // page_nav: true,
113 // rows_per_page: rows_per_page,
114 // disable_sorting: new Array(5,6)
115  padding: 3
116 }
117 );
118
119 var header = new Array("Index", "Drive Name", "Volume Name", "Select");
120
121 var data = new Array();
122 var chkbox;
123
124 <TMPL_LOOP Drives>
125 chkbox = document.createElement('INPUT');
126 chkbox.type  = 'checkbox';
127 chkbox.name = 'drive';
128 chkbox.value = '<TMPL_VAR index>';
129
130 data.push( new Array(
131 "<TMPL_VAR index>",
132 "<TMPL_VAR name>",
133 "<TMPL_VAR load>",
134 chkbox
135  )
136 );
137 </TMPL_LOOP>
138
139 nrsTable.setup(
140 {
141  table_name:     "id_drive",
142  table_header: header,
143  table_data: data,
144  up_icon: up_icon,
145  down_icon: down_icon,
146  prev_icon: prev_icon,
147  next_icon: next_icon,
148  rew_icon:  rew_icon,
149  fwd_icon:  fwd_icon,
150 // natural_compare: false,
151  even_cell_color: even_cell_color,
152  odd_cell_color: odd_cell_color, 
153  header_color: header_color,
154 // page_nav: true,
155 // rows_per_page: rows_per_page,
156 // disable_sorting: new Array(5,6),
157  padding: 3
158 }
159 );
160
161 </script>