]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_media.tpl
ebl add to cvs
[bacula/bacula] / gui / bweb / tpl / display_media.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> 
4    Media
5   </h1>
6  </div>
7  <div class='bodydiv'>
8
9 <TMPL_IF Pool>
10 <h2>
11 Pool : <a href="?action=pool;pool=<TMPL_VAR Pool>">
12          <TMPL_VAR Pool>
13        </a>
14 </h2>
15 </TMPL_IF>
16 <TMPL_IF Location>
17 <h2>
18 Location : <TMPL_VAR location>
19 </h2>
20 </TMPL_IF>
21
22    <form action='?action=test' method='get'>
23     <table id='id_pool_<TMPL_VAR ID>'></table>
24       <button class='formulaire' type='submit' name='action' value='extern'><img src='/bweb/extern.png'></button>
25       <button class='formulaire' type='submit' name='action' value='intern'><img src='/bweb/intern.png'></button> 
26       <button class='formulaire' type='submit' name='action' value='update_media' title='Update media'><img src='/bweb/edit.png'></button> 
27       <button class='formulaire' type='submit' name='action' value='media_zoom' title='Informations'><img src='/bweb/zoom.png'></button>
28 <!--
29       <button class='formulaire' type='submit' name='action' value='purge' title='Purge'><img src='/bweb/purge.png'></button>
30 -->
31       <button class='formulaire' type='submit' name='action' value='prune' title='Prune'><img src='/bweb/prune.png'></button>
32    </form>
33  </div>
34
35 <script language="JavaScript">
36
37 var header = new Array("Volume Name","Online","Vol Bytes","Vol Status",
38                        "Pool", "Media Type",
39                        "Last Written", "When expire ?", "Select");
40
41 var data = new Array();
42 var img;
43 var chkbox;
44
45 <TMPL_LOOP Medias>
46 img = document.createElement('IMG');
47 img.src = '/bweb/inflag<TMPL_VAR online>.png';
48
49 chkbox = document.createElement('INPUT');
50 chkbox.type  = 'checkbox';
51 chkbox.name = 'media';
52 chkbox.value = '<TMPL_VAR volumename>';
53
54 data.push( new Array(
55 "<TMPL_VAR volumename>",
56 img,
57 "<TMPL_VAR volbytes>",
58 "<TMPL_VAR volstatus>",
59 "<TMPL_VAR poolname>",
60 "<TMPL_VAR mediatype>",
61 "<TMPL_VAR lastwritten>",
62 "<TMPL_VAR expire>",
63 chkbox
64  )
65 );
66 </TMPL_LOOP>
67
68 nrsTable.setup(
69 {
70  table_name:     "id_pool_<TMPL_VAR ID>",
71  table_header: header,
72  table_data: data,
73  up_icon: up_icon,
74  down_icon: down_icon,
75  prev_icon: prev_icon,
76  next_icon: next_icon,
77  rew_icon:  rew_icon,
78  fwd_icon:  fwd_icon,
79  even_cell_color: even_cell_color,
80  odd_cell_color: odd_cell_color, 
81  header_color: header_color,
82  page_nav: true,
83  padding: 3,
84  rows_per_page: rows_per_page,
85  disable_sorting: new Array(1,8)
86 }
87 );
88 </script>