4 <h1 class='newstitle'> Media : <TMPL_VAR volumename> <TMPL_VAR comment></h1>
7 <b> Informations</b><br/>
8 <table id='id_info_<TMPL_VAR volumename>'></table>
9 <b> Statistiques</b><br/>
10 <table id='id_media_<TMPL_VAR volumename>'></table>
12 <table id='id_jobs_<TMPL_VAR volumename>'></table>
14 <form action='?' method='get'>
15 <input type='hidden' name='media' value='<TMPL_VAR volumename>'>
16 <TMPL_IF online>
17 <button type="submit" class="bp" name='action' value='extern' onclick='return confirm("Voulez vous vraiment éjecter ce média ?");' title='Externaliser'> <img src='/bweb/extern.png' alt=''>Externaliser</button>
19 <button type="submit" class="bp" name='action' value='intern' title='Internaliser'> <img src='/bweb/intern.png' alt=''>Load</button>
21 <button type="submit" class="bp" name='action' value='update_media' title='Scanner'><img src='/bweb/edit.png' alt=''>Modifier</button>
22 <button type="submit" class="bp" name='action' value='purge' title='Purger'> <img src='/bweb/purge.png' onclick="return confirm('Voulez vous vraiment purger ce média ?')" alt=''>Purger</button>
23 <button type="submit" class="bp" name='action' value='prune' title='Prune'> <img src='/bweb/prune.png' alt=''>Prune</button>
25 <a href='#' onclick='document.getElementById("locationlog").style.visibility="visible";'><img title='Voir les déplacements' src='/bweb/zoom.png'></a>
30 <td valign='top'style="visibility:hidden;" id='locationlog'>
31 <div class='titlediv'>
32 <h1 class='newstitle'>Log sur les déplacements </h1>
36 <TMPL_VAR LocationLog>
41 <script type="text/javascript" language="JavaScript">
43 var header = new Array("Pool","Online","Active", "Localisation","Vol Statut", "Taille", "Expiration",
44 "Rétention","Temps maxi d'utilisation", "Nombre de jobs maxi :" );
46 var data = new Array();
49 img = document.createElement('IMG');
50 img.src = '/bweb/inflag<TMPL_VAR online>.png';
53 "<TMPL_VAR poolname>",
55 human_enabled("<TMPL_VAR enabled>"),
56 "<TMPL_VAR location>",
57 "<TMPL_VAR volstatus>",
58 human_size(<TMPL_VAR nb_bytes>),
60 human_sec(<TMPL_VAR volretention>),
61 human_sec(<TMPL_VAR voluseduration>),
62 "<TMPL_VAR maxvoljobs>"
68 table_name: "id_info_<TMPL_VAR volumename>",
77 header_color: header_color,
79 disable_sorting: new Array(1)
83 var header = new Array( "Nb montages", "Nb de recyclage", "Temps de lecture", "Temp d'écriture", "Erreurs");
85 var data = 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>"
97 table_name: "id_media_<TMPL_VAR volumename>",
100 down_icon: down_icon,
101 prev_icon: prev_icon,
102 next_icon: next_icon,
106 header_color: header_color,
107 // disable_sorting: new Array()
113 var header = new Array("JobId","Nom","Début","Type",
114 "Niveau","Fichiers","Taille","Statut");
116 var data = new Array();
121 a = document.createElement('A');
122 a.href='?action=job_zoom;jobid=<TMPL_VAR JobId>';
124 img = document.createElement("IMG");
125 img.src="/bweb/<TMPL_VAR status>.png";
126 img.title=jobstatus['<TMPL_VAR status>'];
130 data.push( new Array(
133 "<TMPL_VAR starttime>",
137 human_size(<TMPL_VAR bytes>),
145 table_name: "id_jobs_<TMPL_VAR volumename>",
146 table_header: header,
149 down_icon: down_icon,
150 prev_icon: prev_icon,
151 next_icon: next_icon,
154 // natural_compare: false,
155 even_cell_color: even_cell_color,
156 odd_cell_color: odd_cell_color,
157 header_color: header_color,
160 // disable_sorting: new Array(5,6),
161 rows_per_page: rows_per_page