]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/lang/fr/tpl/display_media.tpl
Merge in changes from trunk
[bacula/bacula] / gui / bweb / lang / fr / tpl / display_media.tpl
1  <div class='titlediv'>
2   <h1 class='newstitle'> 
3    Médias
4   </h1>
5  </div>
6  <div class='bodydiv'>
7
8 <TMPL_IF Pool>
9 <h2>
10 Pool : <a href="?action=pool;pool=<TMPL_VAR Pool>">
11          <TMPL_VAR Pool>
12        </a>
13 </h2>
14 </TMPL_IF>
15 <TMPL_IF Location>
16 <h2>
17 Localisation : <TMPL_VAR location>
18 </h2>
19 </TMPL_IF>
20
21    <form action='?action=test' method='get'>
22     <table id='id_pool_<TMPL_VAR ID>'></table>
23       <input type="image" name='action' value='extern' title='Externaliser' src='/bweb/extern.png' onclick='return confirm("Voulez vous vraiment éjecter les médias sélectionnés ?");'>&nbsp;
24       <input type="image" name='action' value='intern' title='Internaliser' src='/bweb/intern.png'>&nbsp;
25       <input type="image" name='action' value='update_media' title='Mettre à jour' src='/bweb/edit.png'>&nbsp;
26       <input type="image" name='action' value='media_zoom' title='Informations' src='/bweb/zoom.png'>&nbsp;
27 <!--
28       <input type="image" name='action' value='purge' title='Purger' src='/bweb/purge.png'>&nbsp;
29 -->
30       <input type="image" name='action' value='prune' title='Prune' src='/bweb/prune.png'>
31    </form>
32  </div>
33
34 <script type="text/javascript" language="JavaScript">
35
36 var header = new Array("Nom du volume","En ligne","Taille", "Utilisation", "Statut",
37                        "Pool", "Type",
38                        "Dernière écriture", "Expiration", "Sélection");
39
40 var data = new Array();
41 var img;
42 var chkbox;
43 var d;
44
45 <TMPL_LOOP media>
46 d = percent_usage(<TMPL_VAR volusage>);
47
48 img = document.createElement('IMG');
49 img.src = '/bweb/inflag<TMPL_VAR online>.png';
50
51 chkbox = document.createElement('INPUT');
52 chkbox.type  = 'checkbox';
53 chkbox.name = 'media';
54 chkbox.value = '<TMPL_VAR volumename>';
55
56 data.push( new Array(
57 "<TMPL_VAR volumename>",
58 img,
59 human_size(<TMPL_VAR volbytes>),
60 d,
61 "<TMPL_VAR volstatus>",
62 "<TMPL_VAR poolname>",
63 "<TMPL_VAR mediatype>",
64 "<TMPL_VAR lastwritten>",
65 "<TMPL_VAR expire>",
66 chkbox
67  )
68 );
69 </TMPL_LOOP>
70
71 nrsTable.setup(
72 {
73  table_name:     "id_pool_<TMPL_VAR ID>",
74  table_header: header,
75  table_data: data,
76  up_icon: up_icon,
77  down_icon: down_icon,
78  prev_icon: prev_icon,
79  next_icon: next_icon,
80  rew_icon:  rew_icon,
81  fwd_icon:  fwd_icon,
82  even_cell_color: even_cell_color,
83  odd_cell_color: odd_cell_color, 
84  header_color: header_color,
85  page_nav: true,
86  padding: 3,
87  rows_per_page: rows_per_page,
88  disable_sorting: new Array(1,3,9)
89 }
90 );
91 </script>