]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_media_zoom.tpl
Renamed cleanup goto target into bail_out which is the prefered name from the develop...
[bacula/bacula] / gui / bweb / tpl / display_media_zoom.tpl
1 <table>
2 <td valign='top'>
3  <div class='titlediv'>
4   <h1 class='newstitle'> __Volume:__ <TMPL_VAR volumename> <TMPL_VAR comment></h1>
5  </div>
6  <div class='bodydiv'>
7     <b> __Volume Infos__</b><br/>
8     <table id='id_info_<TMPL_VAR volumename>'></table>
9     <b> __Volume Stats__</b><br/>
10     <table id='id_media_<TMPL_VAR volumename>'></table>
11     <b> __Job List__ </b></br>
12     <table id='id_jobs_<TMPL_VAR volumename>'></table>
13     <b> __Actions__ </b></br>
14    <form action='?' method='get'>
15       <input type='hidden' name='media' value='<TMPL_VAR volumename>'>
16 <TMPL_IF online>&nbsp;
17       <button type="submit" class="bp" name='action' value='extern' onclick='return confirm("__Do you want to eject this volume ?__");' title='__move out__'> <img src='/bweb/extern.png' alt=''>__Eject__</button>
18 <TMPL_ELSE>
19       <button type="submit" class="bp" name='action' value='intern' title='__move in__'> <img src='/bweb/intern.png' alt=''>__Load__</button>
20 </TMPL_IF>
21       <button type="submit" class="bp" name='action' value='update_media' title='__Update__'><img src='/bweb/edit.png' alt=''>__Edit__</button>
22       <button type="submit" class="bp" name='action' value='purge' title='__Purge__'> <img src='/bweb/purge.png' onclick="return confirm('__Do you want to purge this volume?__')" alt=''>__Purge__</button>
23       <button type="submit" class="bp" name='action' value='prune' title='__Prune__'> <img src='/bweb/prune.png' alt=''>__Prune__</button>
24 <TMPL_IF Locationlog>
25       <a href='#' onclick='document.getElementById("locationlog").style.visibility="visible";'><img title='__View location log__' src='/bweb/zoom.png'></a>
26 </TMPL_IF>
27    </form>
28  </div>
29 </td>
30 <td valign='top'style="visibility:hidden;" id='locationlog'>
31  <div class='titlediv'>
32   <h1 class='newstitle'>__Location log__ </h1>
33  </div>
34  <div class='bodydiv'>
35 <pre>
36  <TMPL_VAR LocationLog>
37 </pre>
38  </div>
39 </td>
40 </table>
41 <script type="text/javascript" language="JavaScript">
42
43 var header = new Array("__Pool__","__Online__","__Enabled__", "__Location__","__Vol Status__", "__Vol Bytes__", "__Expire__",
44                        "__Retention__","__Max use duration__", "__Max jobs__" );
45
46 var data = new Array();
47 var img;
48
49 img = document.createElement('IMG');
50 img.src = '/bweb/inflag<TMPL_VAR online>.png';
51
52 data.push( new Array(
53 "<TMPL_VAR poolname>",
54 img,
55 human_enabled("<TMPL_VAR enabled>"),
56 "<TMPL_VAR location>",
57 "<TMPL_VAR volstatus>",
58 human_size(<TMPL_VAR nb_bytes>),
59 "<TMPL_VAR expire>",
60 human_sec(<TMPL_VAR volretention>),
61 human_sec(<TMPL_VAR voluseduration>),
62 "<TMPL_VAR maxvoljobs>"
63  )
64 );
65
66 nrsTable.setup(
67 {
68  table_name:     "id_info_<TMPL_VAR volumename>",
69  table_header: header,
70  up_icon: up_icon,
71  down_icon: down_icon,
72  prev_icon: prev_icon,
73  next_icon: next_icon,
74  rew_icon:  rew_icon,
75  fwd_icon:  fwd_icon,
76  table_data: data,
77  header_color: header_color,
78  padding: 3,
79  disable_sorting: new Array(1)
80 }
81 );
82
83 var header = new Array( "__Vol Mounts__", "__Recycle count__", "__Read time__", "__Write time__", "__Errors__");
84
85 var data = new Array();
86 data.push( new Array(
87 "<TMPL_VAR nb_mounts>",
88 "<TMPL_VAR recyclecount>",
89 human_sec(<TMPL_VAR volreadtime>),
90 human_sec(<TMPL_VAR volwritetime>),
91 "<TMPL_VAR nb_errors>"
92  )
93 );
94
95 nrsTable.setup(
96 {
97  table_name:     "id_media_<TMPL_VAR volumename>",
98  table_header: header,
99  up_icon: up_icon,
100  down_icon: down_icon,
101  prev_icon: prev_icon,
102  next_icon: next_icon,
103  rew_icon:  rew_icon,
104  fwd_icon:  fwd_icon,
105  table_data: data,
106  header_color: header_color,
107 // disable_sorting: new Array()
108  padding: 3
109 }
110 );
111
112
113 var header = new Array("JobId","__Name__","__Start Time__","__Type__",
114                        "__Level__","__Files__","__Bytes__","__Status__");
115
116 var data = new Array();
117 var a;
118 var img;
119
120 <TMPL_LOOP jobs>
121 a = document.createElement('A');
122 a.href='?action=job_zoom;jobid=<TMPL_VAR JobId>';
123
124 img = document.createElement("IMG");
125 img.src="/bweb/<TMPL_VAR status>.png";
126 img.title=jobstatus['<TMPL_VAR status>']; 
127
128 a.appendChild(img);
129
130 data.push( new Array(
131 "<TMPL_VAR jobid>",
132 "<TMPL_VAR name>",
133 "<TMPL_VAR starttime>",
134 "<TMPL_VAR type>",
135 "<TMPL_VAR level>",
136 "<TMPL_VAR files>",
137 human_size(<TMPL_VAR bytes>),
138 a
139  )
140 );
141 </TMPL_LOOP>
142
143 nrsTable.setup(
144 {
145  table_name:     "id_jobs_<TMPL_VAR volumename>",
146  table_header: header,
147  table_data: data,
148  up_icon: up_icon,
149  down_icon: down_icon,
150  prev_icon: prev_icon,
151  next_icon: next_icon,
152  rew_icon:  rew_icon,
153  fwd_icon:  fwd_icon,
154 // natural_compare: false,
155  even_cell_color: even_cell_color,
156  odd_cell_color: odd_cell_color, 
157  header_color: header_color,
158  page_nav: true,
159  padding: 3,
160 // disable_sorting: new Array(5,6),
161  rows_per_page: rows_per_page
162 }
163 );
164 </script>