]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_media_zoom.tpl
ebl update
[bacula/bacula] / gui / bweb / tpl / display_media_zoom.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> Media : <TMPL_VAR volumename></h1>
4  </div>
5  <div class='bodydiv'>
6     <b> Media Infos</b><br/>
7     <table id='id_info_<TMPL_VAR volumename>'></table>
8     <b> Media Stats</b><br/>
9     <table id='id_media_<TMPL_VAR volumename>'></table>
10     <b> Job List </b></br>
11     <table id='id_jobs_<TMPL_VAR volumename>'></table>
12     <b> Actions </b></br>
13    <form action='?' method='get'>
14       <input type='hidden' name='media' value='<TMPL_VAR volumename>'>
15 <TMPL_IF online>&nbsp;
16       <input type="image" name='action' value='extern' title='move out' src='/bweb/extern.png'>&nbsp;
17 <TMPL_ELSE>
18       <input type="image" name='action' value='intern' title='move in' src='/bweb/intern.png'>&nbsp;
19 </TMPL_IF>
20       <input type="image" name='action' value='update_media' title='Update' src='/bweb/edit.png'>&nbsp;
21       <input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png'>&nbsp;
22       <input type="image" name='action' value='prune' title='Prune' src='/bweb/prune.png'>
23    </form>
24  </div>
25
26
27
28 <script type="text/javascript" language="JavaScript">
29
30 var header = new Array("Pool","Online","Location","Vol Status", "Vol Bytes", "Expire",
31                        "Retention","Max use duration", "Max jobs" );
32
33 var data = new Array();
34 var img;
35
36 img = document.createElement('IMG');
37 img.src = '/bweb/inflag<TMPL_VAR online>.png';
38
39 data.push( new Array(
40 "<TMPL_VAR poolname>",
41 img,
42 "<TMPL_VAR location>",
43 "<TMPL_VAR volstatus>",
44 "<TMPL_VAR nb_bytes>",
45 "<TMPL_VAR expire>",
46 "<TMPL_VAR volretention>",
47 "<TMPL_VAR voluseduration>",
48 "<TMPL_VAR maxvoljobs>"
49  )
50 );
51
52 nrsTable.setup(
53 {
54  table_name:     "id_info_<TMPL_VAR volumename>",
55  table_header: header,
56  up_icon: up_icon,
57  down_icon: down_icon,
58  prev_icon: prev_icon,
59  next_icon: next_icon,
60  rew_icon:  rew_icon,
61  fwd_icon:  fwd_icon,
62  table_data: data,
63  header_color: header_color,
64  padding: 3,
65  disable_sorting: new Array(1)
66 }
67 );
68
69 var header = new Array( "Vol Mounts", "Read time", "Write time", "Errors");
70
71 var data = new Array();
72 data.push( new Array(
73 "<TMPL_VAR nb_mounts>",
74 "<TMPL_VAR volreadtime>",
75 "<TMPL_VAR volwritetime>",
76 "<TMPL_VAR nb_errors>"
77  )
78 );
79
80 nrsTable.setup(
81 {
82  table_name:     "id_media_<TMPL_VAR volumename>",
83  table_header: header,
84  up_icon: up_icon,
85  down_icon: down_icon,
86  prev_icon: prev_icon,
87  next_icon: next_icon,
88  rew_icon:  rew_icon,
89  fwd_icon:  fwd_icon,
90  table_data: data,
91  header_color: header_color,
92 // disable_sorting: new Array()
93  padding: 3
94 }
95 );
96
97
98 var header = new Array("JobId","Name","Start Time","Type",
99                        "Level", "Files", "Bytes", "Status");
100
101 var data = new Array();
102 var a;
103 var img;
104
105 <TMPL_LOOP jobs>
106 a = document.createElement('A');
107 a.href='?action=job_zoom;jobid=<TMPL_VAR JobId>';
108
109 img = document.createElement("IMG");
110 img.src="/bweb/<TMPL_VAR status>.png";
111 img.title=jobstatus['<TMPL_VAR status>']; 
112
113 a.appendChild(img);
114
115 data.push( new Array(
116 "<TMPL_VAR jobid>",
117 "<TMPL_VAR name>",
118 "<TMPL_VAR starttime>",
119 "<TMPL_VAR type>",
120 "<TMPL_VAR level>",
121 "<TMPL_VAR files>",
122 "<TMPL_VAR bytes>",
123 a
124  )
125 );
126 </TMPL_LOOP>
127
128 nrsTable.setup(
129 {
130  table_name:     "id_jobs_<TMPL_VAR volumename>",
131  table_header: header,
132  table_data: data,
133  up_icon: up_icon,
134  down_icon: down_icon,
135  prev_icon: prev_icon,
136  next_icon: next_icon,
137  rew_icon:  rew_icon,
138  fwd_icon:  fwd_icon,
139 // natural_compare: false,
140  even_cell_color: even_cell_color,
141  odd_cell_color: odd_cell_color, 
142  header_color: header_color,
143  page_nav: true,
144  padding: 3,
145 // disable_sorting: new Array(5,6),
146  rows_per_page: rows_per_page
147 }
148 );
149 </script>