]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_media_zoom.tpl
ebl Add FileSet view action
[bacula/bacula] / gui / bweb / tpl / display_media_zoom.tpl
1 <table>
2 <td valign='top'>
3  <div class='titlediv'>
4   <h1 class='newstitle'> Media : <TMPL_VAR volumename></h1>
5  </div>
6  <div class='bodydiv'>
7     <b> Media Infos</b><br/>
8     <table id='id_info_<TMPL_VAR volumename>'></table>
9     <b> Media 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       <input type="image" name='action' value='extern' title='move out' src='/bweb/extern.png'>&nbsp;
18 <TMPL_ELSE>
19       <input type="image" name='action' value='intern' title='move in' src='/bweb/intern.png'>&nbsp;
20 </TMPL_IF>
21       <input type="image" name='action' value='update_media' title='Update' src='/bweb/edit.png'>&nbsp;
22       <input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png'>&nbsp;
23       <input type="image" name='action' value='prune' title='Prune' src='/bweb/prune.png'>&nbsp;
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","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 "<TMPL_VAR location>",
56 "<TMPL_VAR volstatus>",
57 "<TMPL_VAR nb_bytes>",
58 "<TMPL_VAR expire>",
59 "<TMPL_VAR volretention>",
60 "<TMPL_VAR voluseduration>",
61 "<TMPL_VAR maxvoljobs>"
62  )
63 );
64
65 nrsTable.setup(
66 {
67  table_name:     "id_info_<TMPL_VAR volumename>",
68  table_header: header,
69  up_icon: up_icon,
70  down_icon: down_icon,
71  prev_icon: prev_icon,
72  next_icon: next_icon,
73  rew_icon:  rew_icon,
74  fwd_icon:  fwd_icon,
75  table_data: data,
76  header_color: header_color,
77  padding: 3,
78  disable_sorting: new Array(1)
79 }
80 );
81
82 var header = new Array( "Vol Mounts", "Read time", "Write time", "Errors");
83
84 var data = new Array();
85 data.push( new Array(
86 "<TMPL_VAR nb_mounts>",
87 "<TMPL_VAR volreadtime>",
88 "<TMPL_VAR volwritetime>",
89 "<TMPL_VAR nb_errors>"
90  )
91 );
92
93 nrsTable.setup(
94 {
95  table_name:     "id_media_<TMPL_VAR volumename>",
96  table_header: header,
97  up_icon: up_icon,
98  down_icon: down_icon,
99  prev_icon: prev_icon,
100  next_icon: next_icon,
101  rew_icon:  rew_icon,
102  fwd_icon:  fwd_icon,
103  table_data: data,
104  header_color: header_color,
105 // disable_sorting: new Array()
106  padding: 3
107 }
108 );
109
110
111 var header = new Array("JobId","Name","Start Time","Type",
112                        "Level", "Files", "Bytes", "Status");
113
114 var data = new Array();
115 var a;
116 var img;
117
118 <TMPL_LOOP jobs>
119 a = document.createElement('A');
120 a.href='?action=job_zoom;jobid=<TMPL_VAR JobId>';
121
122 img = document.createElement("IMG");
123 img.src="/bweb/<TMPL_VAR status>.png";
124 img.title=jobstatus['<TMPL_VAR status>']; 
125
126 a.appendChild(img);
127
128 data.push( new Array(
129 "<TMPL_VAR jobid>",
130 "<TMPL_VAR name>",
131 "<TMPL_VAR starttime>",
132 "<TMPL_VAR type>",
133 "<TMPL_VAR level>",
134 "<TMPL_VAR files>",
135 "<TMPL_VAR bytes>",
136 a
137  )
138 );
139 </TMPL_LOOP>
140
141 nrsTable.setup(
142 {
143  table_name:     "id_jobs_<TMPL_VAR volumename>",
144  table_header: header,
145  table_data: data,
146  up_icon: up_icon,
147  down_icon: down_icon,
148  prev_icon: prev_icon,
149  next_icon: next_icon,
150  rew_icon:  rew_icon,
151  fwd_icon:  fwd_icon,
152 // natural_compare: false,
153  even_cell_color: even_cell_color,
154  odd_cell_color: odd_cell_color, 
155  header_color: header_color,
156  page_nav: true,
157  padding: 3,
158 // disable_sorting: new Array(5,6),
159  rows_per_page: rows_per_page
160 }
161 );
162 </script>