Bweb - A Bacula web interface
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
The main author of Bweb is Eric Bollengier.
The main author of Bacula is Kern Sibbald, with contributions from
<html>
<head>
<title>Bweb - Bacula Web Interface</title>
-<link rel="SHORTCUT ICON" href="/bweb/favicon.ico">
+<link rel="SHORTCUT ICON" href="/bweb/favicon.ico"/>
<script type="text/javascript" language="JavaScript" src="/bweb/natcompare.js"></script>
<script type="text/javascript" language="JavaScript" src="/bweb/nrs_table.js"></script>
<script type="text/javascript" language="JavaScript" src="/bweb/bweb.js"></script>
<li> <a href="bweb.pl?action=about"> About </a> </li>
<li style="padding: 0.25em 2em;float: right;"> Logged as <TMPL_VAR NAME=loginname> </li>
<li style="float: right;white-space: nowrap;">
-<button type="submit" class="bp" class="button" title="Search media" onclick="search_media();"><img src="/bweb/tape.png" alt=''></button><button type="submit" title="Search client" onclick="search_client();" class='bp'><img src="/bweb/client.png" alt=''></button><input class='formulaire' style="margin: 0 2px 0 2px; padding: 0 0 0 0;" id='searchbox' type='text' size='8' value='search...' onclick="this.value='';" title="Search media or client"></li> </button>
+<button type="submit" class="bp" class="button" title="Search media" onclick="search_media();"><img src="/bweb/tape.png" alt=''></button><button type="submit" title="Search client" onclick="search_client();" class='bp'><img src="/bweb/client.png" alt=''></button><input class='formulaire' style="margin: 0 2px 0 2px; padding: 0 0 0 0;" id='searchbox' type='text' size='8' value='search...' onclick="this.value='';" title="Search media or client"></button></li>
</ul>
<form name="search" action="bweb.pl?" method='GET'>
<TMPL_IF qusage>checked</TMPL_IF>
name="usage"> Drive usage<br/>
<input type='checkbox'
- <TMPL_IF qpool>checked</TMPL_IF>
- name="pool"> Pool usage<br/>
+ <TMPL_IF qpoolusage>checked</TMPL_IF>
+ name="poolusage"> Pool usage<br/>
<input type='checkbox'
<TMPL_IF qnojob>checked</TMPL_IF>
name="nojob"> Hide Job<br/>
</select>
</td>
</tr>
+</TMPL_IF>
+<TMPL_IF db_pools>
+<tr>
+ <td valign='top'>
+ <h2>Pools</h2>
+ <select name='pool' size='10' class='formulaire' multiple>
+<TMPL_LOOP db_pools>
+ <option id= 'pool_<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
</TMPL_IF>
</td>
</tr>
document.getElementById('group_' + <TMPL_VAR name>).selected = true;
</TMPL_LOOP>
+ <TMPL_LOOP qpools>
+ document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
+
<TMPL_LOOP qclients>
document.getElementById('client_' + <TMPL_VAR name>).selected = true;
</TMPL_LOOP>
<option id='lang_es' value='es'>Spanish</option>
</select>
</td></tr>
+ <tr><td>default_age:</td>
+ <td> <input class="formulaire" type='text' value='<TMPL_VAR default_age>' title='24h15m' size='64' name='default_age'>
+ </td></tr>
<tr><td>display_log_time:</td>
<td> <input class="formulaire" title="Display log timestamp" type='checkbox' name='display_log_time' <TMPL_IF display_log_time> checked='checked' value='on' </TMPL_IF> >
</td></tr>
<tr><td title="use a wiki for jobs documentation?">wiki_url:</td> <td> <TMPL_VAR wiki_url> </td></tr>
<tr><td title="/path/to/your/template_dir">template_dir:</td> <td> <TMPL_VAR template_dir> </td></tr>
<tr><td title="Default language">language:</td> <td> <TMPL_VAR lang> </td></tr>
+ <tr><td title="Default Age">default_age:</td> <td> <TMPL_VAR default_age> </td></tr>
<tr><td title="display timestamp in job log">display_log_time:</td> <td> <TMPL_VAR display_log_time> </td></tr>
<tr><td title="user managment">security:</td> <td> <TMPL_VAR enable_security> </td></tr>
<tr><td title="user filter">security acl:</td> <td> <TMPL_VAR enable_security_acl> </td></tr>
<div class='bodydiv'>
<form action='?'>
<table id='id<TMPL_VAR ID>'></table>
- <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_duration;age=2592000;width=420;height=200" alt='Not enough data' >
- <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_rate;age=2592000;width=420;height=200" alt='Not enough data'>
- <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_size;age=2592000;width=420;height=200" alt='Not enough data'>
+ <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_duration;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data' >
+ <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_rate;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data'>
+ <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_size;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data'>
<!-- <div class="otherboxtitle">
Actions
</div>
<h2>Age</h2>
<select name='age' class='formulaire'>
<option id='age_86400' value='86400'>Last 24h</option>
- <option id='age_172800' value='237600'>This weekend</option>
+ <option id='age_237600' value='237600'>This weekend</option>
<option id='age_604800' value='604800'>This week</option>
<option id='age_2678400' value='2678400'>Last 30 days</option>
<option id='age_15552000' value='15552000'>Last 6 months</option>
<option id='jobtype_any' value='all type'>Any</option>
<option id='jobtype_B' value='B'>Backup</option>
<option id='jobtype_R' value='R'>Restore</option>
+ <option id='jobtype_D' value='D'>Admin</option>
</select>
</td>
</tr>
<tr><td>Job failed (<TMPL_VAR label>):</td>
<td <TMPL_IF nb_err> class='joberr' </TMPL_IF>>
+ <a href="?action=job;level=Any;status=f;age=<TMPL_VAR age>;jobtype=B">
<TMPL_VAR nb_err>
+ </a>
</td>
<td></td> <td></td>
<td></td> <td></td>
</select>
</td>
</tr>
+<TMPL_IF db_client_groups>
+<tr>
+ <td valign='top'>
+ <h2>Groups</h2>
+ <select name='client_group' size='10' class='formulaire' multiple>
+<TMPL_LOOP db_client_groups>
+ <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
+</TMPL_IF>
<tr>
<td> <h2> Type </h2>
<select name='graph' class='formulaire'>
document.getElementById('imggraph').src='bgraph.pl?<TMPL_VAR url>'
</TMPL_IF>
+ <TMPL_LOOP qclient_groups>
+ document.getElementById('group_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
</script>
<img src='/bweb/R.png' alt=''> Run now </button>
<button type="submit" class="bp" name='action' title='Disable' value='disable_job'>
<img src='/bweb/inflag0.png' alt=''> Disable </button>
+ <button type="submit" onsubmit='document.form1.level.value="all"' class="bp" name='action' value='job' title='view <TMPL_VAR Client> jobs'><img src='/bweb/zoom.png'>View jobs</button>
+<TMPL_IF wiki_url>
+ <a id='wiki' href="<TMPL_VAR wiki_url>" title='View doc'><img src='/bweb/doc.png' alt='View doc'></a>View doc
+</TMPL_IF>
<input type='hidden' name='pool' value=''>
<input type='hidden' name='level' value=''>
<input type='hidden' name='media' value=''>
+ <input type='hidden' name='client' value=''>
</form>
</div>
var data = new Array();
var chkbox;
+var wiki_url <TMPL_IF wiki_url>='<TMPL_VAR wiki_url>'</TMPL_IF>;
+
<TMPL_LOOP list>
chkbox = document.createElement('INPUT');
chkbox.type = 'radio';
document.form1.level.value = '<TMPL_VAR level>';
document.form1.pool.value = '<TMPL_VAR pool>';
document.form1.media.value = '<TMPL_VAR volume>';
+ document.form1.client.value = '<TMPL_VAR client>';
+ if (wiki_url) {
+ document.getElementById('wiki').href=wiki_url + '<TMPL_VAR client>';
+ }
} ;
data.push( new Array(
Bweb - A Bacula web interface
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
The main author of Bweb is Eric Bollengier.
The main author of Bacula is Kern Sibbald, with contributions from
<html>
<head>
<title>Bweb - Bacula Web Interface</title>
-<link rel="SHORTCUT ICON" href="/bweb/favicon.ico">
+<link rel="SHORTCUT ICON" href="/bweb/favicon.ico"/>
<script type="text/javascript" language="JavaScript" src="/bweb/natcompare.js"></script>
<script type="text/javascript" language="JavaScript" src="/bweb/nrs_table.js"></script>
<script type="text/javascript" language="JavaScript" src="/bweb/bweb.js"></script>
<li><a href="bweb.pl?action=job_group">Jobs by group</a>
<li><a href="bweb.pl?action=overview">Jobs overview</a>
<li><a href="bweb.pl?action=missing">Missing Jobs</a>
- <li><a href="bweb.pl?action=job">Últimos Jobs</a> </li>
- <li><a href="bweb.pl?action=running">Jobs en Ejecución</a>
- <li><a href="bweb.pl?action=next_job">Próximos Jobs</a> </li>
- <li><a href="bweb.pl?action=restore" title="Launch brestore">Recuperación</a> </li>
+ <li><a href="bweb.pl?action=job">Últimos Jobs</a> </li>
+ <li><a href="bweb.pl?action=running">Jobs en Ejecución</a>
+ <li><a href="bweb.pl?action=next_job">Próximos Jobs</a> </li>
+ <li><a href="bweb.pl?action=restore" title="Launch brestore">Recuperación</a> </li>
<li><a href="/bweb/bresto.html" title="Try bresto">Web Restore</a> </li>
</ul>
</li>
</TMPL_LOOP>
</ul>
</li>
- <li><a href="bweb.pl?action=graph"> Estadísticas </a>
+ <li><a href="bweb.pl?action=graph"> Estadísticas </a>
<ul>
- <li><a href="bweb.pl?action=graph"> Estadísticas </a>
+ <li><a href="bweb.pl?action=graph"> Estadísticas </a>
<li><a href="btime.pl"> Backup Timing </a>
<li><a href="bweb.pl?action=group_stats"> Groupes </a>
<!-- <li><a href="bperf.pl"> Perfs </a> -->
</ul>
</li>
- <li> <a href="bweb.pl?action=view_conf"> Configuración </a>
+ <li> <a href="bweb.pl?action=view_conf"> Configuración </a>
<TMPL_IF enable_security>
- <ul> <li> <a href="bweb.pl?action=view_conf"> Configuración </a>
+ <ul> <li> <a href="bweb.pl?action=view_conf"> Configuración </a>
<li> <a href="bweb.pl?action=users"> Manage users </a>
</ul>
</TMPL_IF>
<li> <a href="bweb.pl?action=about"> Acerca </a> </li>
<li style="padding: 0.25em 2em;float: right;"> Usuario <TMPL_VAR NAME=loginname> </li>
<li style="float: right;white-space: nowrap;">
-<button type="submit" class="bp" class="button" title="Search media" onclick="search_media();"><img src="/bweb/tape.png" alt=''></button><button type="submit" title="Search client" onclick="search_client();" class='bp'><img src="/bweb/client.png" alt=''></button><input class='formulaire' style="margin: 0 2px 0 2px; padding: 0 0 0 0;" id='searchbox' type='text' size='8' value='search...' onclick="this.value='';" title="Search media or client"></li> </button>
+<button type="submit" class="bp" class="button" title="Search media" onclick="search_media();"><img src="/bweb/tape.png" alt=''></button><button type="submit" title="Search client" onclick="search_client();" class='bp'><img src="/bweb/client.png" alt=''></button><input class='formulaire' style="margin: 0 2px 0 2px; padding: 0 0 0 0;" id='searchbox' type='text' size='8' value='search...' onclick="this.value='';" title="Search media or client"></button></li>
</ul>
<form name="search" action="bweb.pl?" method='GET'>
<TMPL_IF qusage>checked</TMPL_IF>
name="usage"> Drive usage<br/>
<input type='checkbox'
- <TMPL_IF qpool>checked</TMPL_IF>
- name="pool"> Pool usage<br/>
+ <TMPL_IF qpoolusage>checked</TMPL_IF>
+ name="poolusage"> Pool usage<br/>
<input type='checkbox'
<TMPL_IF qnojob>checked</TMPL_IF>
name="nojob"> Hide Job<br/>
</select>
</td>
</tr>
+</TMPL_IF>
+<TMPL_IF db_pools>
+<tr>
+ <td valign='top'>
+ <h2>Pools</h2>
+ <select name='pool' size='10' class='formulaire' multiple>
+<TMPL_LOOP db_pools>
+ <option id= 'pool_<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
</TMPL_IF>
</td>
</tr>
document.getElementById('group_' + <TMPL_VAR name>).selected = true;
</TMPL_LOOP>
+ <TMPL_LOOP qpools>
+ document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
+
<TMPL_LOOP qclients>
document.getElementById('client_' + <TMPL_VAR name>).selected = true;
</TMPL_LOOP>
<br/>
<div class='titlediv'>
<h1 class='newstitle'>
- Job ejecutándose <TMPL_VAR JobName> on <TMPL_VAR Client>
+ Job ejecutándose <TMPL_VAR JobName> on <TMPL_VAR Client>
</h1>
</div>
<div class='bodydiv'>
<option id='lang_es' value='es'>Spanish</option>
</select>
</td></tr>
+ <tr><td>default_age:</td>
+ <td> <input class="formulaire" type='text' value='<TMPL_VAR default_age>' title='24h15m' size='64' name='default_age'>
+ </td></tr>
<tr><td>display_log_time:</td>
<td> <input class="formulaire" title="Display log timestamp" type='checkbox' name='display_log_time' <TMPL_IF display_log_time> checked='checked' value='on' </TMPL_IF> >
</td></tr>
<tr><td title="use a wiki for jobs documentation?">wiki_url:</td> <td> <TMPL_VAR wiki_url> </td></tr>
<tr><td title="/path/to/your/template_dir">template_dir:</td> <td> <TMPL_VAR template_dir> </td></tr>
<tr><td title="Default language">language:</td> <td> <TMPL_VAR lang> </td></tr>
+ <tr><td title="Default Age">default_age:</td> <td> <TMPL_VAR default_age> </td></tr>
<tr><td title="display timestamp in job log">display_log_time:</td> <td> <TMPL_VAR display_log_time> </td></tr>
<tr><td title="user managment">security:</td> <td> <TMPL_VAR enable_security> </td></tr>
<tr><td title="user filter">security acl:</td> <td> <TMPL_VAR enable_security_acl> </td></tr>
<div class='bodydiv'>
<form action='?'>
<table id='id<TMPL_VAR ID>'></table>
- <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_duration;age=2592000;width=420;height=200" alt='Not enough data' >
- <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_rate;age=2592000;width=420;height=200" alt='Not enough data'>
- <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_size;age=2592000;width=420;height=200" alt='Not enough data'>
+ <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_duration;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data' >
+ <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_rate;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data'>
+ <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_size;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data'>
<!-- <div class="otherboxtitle">
Acciones
</div>
<option id='age_86400' value='86400'>1 day</option>
<option id='age_172800' value='172800'>2 days</option>
<option id='age_604800' value='604800'>Esta semana</option>
- <option id='age_2678400' value='2678400'>Últimos 30 dias</option>
- <option id='age_15552000' value='15552000'>Últimos 6 meses</option>
+ <option id='age_2678400' value='2678400'>Últimos 30 dias</option>
+ <option id='age_15552000' value='15552000'>Últimos 6 meses</option>
</select>
</td>
</tr>
<h2>Tiempo</h2>
<select name='age' class='formulaire'>
<option id='age_86400' value='86400'>Last 24h</option>
- <option id='age_172800' value='237600'>This weekend</option>
+ <option id='age_237600' value='237600'>This weekend</option>
<option id='age_604800' value='604800'>Esta Semana</option>
- <option id='age_2678400' value='2678400'>Últimos 30 días</option>
- <option id='age_15552000' value='15552000'>Últimos 6 meses</option>
+ <option id='age_2678400' value='2678400'>Últimos 30 días</option>
+ <option id='age_15552000' value='15552000'>Últimos 6 meses</option>
</select>
</td>
</tr>
</TMPL_IF>
<tr>
<td valign='bottom'>
- <h2>Número de items</h2>
+ <h2>Número de items</h2>
<input type='text' name='limit' value='<TMPL_VAR limit>'
class='formulaire' size='4'>
</td>
<select name='jobtype' class='formulaire'>
<option id='jobtype_any' value='all type'>Cualquiera</option>
<option id='jobtype_B' value='B'>Backup</option>
- <option id='jobtype_R' value='R'>Recuperación</option>
+ <option id='jobtype_R' value='R'>Recuperación</option>
+ <option id='jobtype_D' value='D'>Admin</option>
</select>
</td>
</tr>
<tr><td>Jobs fallados (<TMPL_VAR label>):</td>
<td <TMPL_IF nb_err> class='joberr' </TMPL_IF>>
+ <a href="?action=job;level=Any;status=f;age=<TMPL_VAR age>;jobtype=B">
<TMPL_VAR nb_err>
+ </a>
</td>
<td></td> <td></td>
<td></td> <td></td>
</select>
</td>
</tr>
+<TMPL_IF db_client_groups>
+<tr>
+ <td valign='top'>
+ <h2>Groupes</h2>
+ <select name='client_group' size='10' class='formulaire' multiple>
+<TMPL_LOOP db_client_groups>
+ <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
+</TMPL_IF>
<tr>
<td> <h2> Tipo </h2>
<select name='graph' class='formulaire'>
document.getElementById('imggraph').src='bgraph.pl?<TMPL_VAR url>'
</TMPL_IF>
+ <TMPL_LOOP qclient_groups>
+ document.getElementById('group_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
</script>
<img src='/bweb/R.png' alt=''> Ejecutar Ahora </button>
<button type="submit" class="bp" name='action' title='Desactivar' value='disable_job'>
<img src='/bweb/inflag0.png' alt=''> Desactivar </button>
+ <button type="submit" onsubmit='document.form1.level.value="all"' class="bp" name='action' value='job' title='view <TMPL_VAR Client> jobs'><img src='/bweb/zoom.png'>Ver jobs</button>
+<TMPL_IF wiki_url>
+ <a id='wiki' href="<TMPL_VAR wiki_url>" title='View doc'><img src='/bweb/doc.png' alt='View doc'></a>View doc
+</TMPL_IF>
<input type='hidden' name='pool' value=''>
<input type='hidden' name='level' value=''>
<input type='hidden' name='media' value=''>
+ <input type='hidden' name='client' value=''>
</form>
</div>
var data = new Array();
var chkbox;
+var wiki_url <TMPL_IF wiki_url>='<TMPL_VAR wiki_url>'</TMPL_IF>;
+
<TMPL_LOOP list>
chkbox = document.createElement('INPUT');
chkbox.type = 'radio';
document.form1.level.value = '<TMPL_VAR level>';
document.form1.pool.value = '<TMPL_VAR pool>';
document.form1.media.value = '<TMPL_VAR volume>';
+ document.form1.client.value = '<TMPL_VAR client>';
+ if (wiki_url) {
+ document.getElementById('wiki').href=wiki_url + '<TMPL_VAR client>';
+ }
} ;
data.push( new Array(
Bweb - A Bacula web interface
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
The main author of Bweb is Eric Bollengier.
The main author of Bacula is Kern Sibbald, with contributions from
<html>
<head>
<title>Bweb - Interface Web de Bacula</title>
-<link rel="SHORTCUT ICON" href="/bweb/favicon.ico">
+<link rel="SHORTCUT ICON" href="/bweb/favicon.ico"/>
<script type="text/javascript" language="JavaScript" src="/bweb/natcompare.js"></script>
<script type="text/javascript" language="JavaScript" src="/bweb/nrs_table.js"></script>
<script type="text/javascript" language="JavaScript" src="/bweb/bweb.js"></script>
<script type="text/javascript" language="JavaScript">
if (navigator.appName == 'Konqueror') {
- alert("Désolé, bweb fonctionne seulement avec mozilla.");
+ alert("Désolé, bweb fonctionne seulement avec mozilla.");
}
if ('Accueil' == ('_' + '_Main_' + '_')) {
document.write("<font color='red'>Update your configuration to use the correct tpl directory (You are using devel tpl)</font>");
</li>
<li style="padding: 0.25em 2em;">Jobs
<ul>
- <li><a href="bweb.pl?action=run_job">Jobs définis</a>
+ <li><a href="bweb.pl?action=run_job">Jobs définis</a>
<li><a href="bweb.pl?action=job_group">Jobs par groupe</a>
<li><a href="bweb.pl?action=overview">Jobs overview</a>
- <li><a href="bweb.pl?action=missing">Jobs absents</a>
+ <li><a href="bweb.pl?action=missing">Missing Jobs</a>
<li><a href="bweb.pl?action=job">Historique</a> </li>
<li><a href="bweb.pl?action=running">Jobs en cours</a>
<li><a href="bweb.pl?action=next_job">Prochains jobs</a> </li>
<li><a href="/bweb/bresto.html" title="Try bresto">Web Restore</a> </li>
</ul>
</li>
- <li style="padding: 0.25em 2em;">Médias
+ <li style="padding: 0.25em 2em;">Médias
<ul>
- <li><a href="bweb.pl?action=pool">Pools de média</a> </li>
+ <li><a href="bweb.pl?action=pool">Pools de média</a> </li>
<li><a href="bweb.pl?action=location">Localisations</a> </li>
<li><a href="bweb.pl?action=media">Tous les Medias</a><hr></li>
<li><a href="bweb.pl?action=add_media">Ajouter des Medias</a><hr></li>
<li> <a href="bweb.pl?action=about"> A propos </a> </li>
<li style="padding: 0.25em 2em;float: right;"> Logged as <TMPL_VAR NAME=loginname> </li>
<li style="float: right;white-space: nowrap;">
-<button type="submit" class="bp" class="button" title="Chercher un media" onclick="search_media();"><img src="/bweb/tape.png" alt=''></button><button type="submit" title="Chercher un client" onclick="search_client();" class='bp'><img src="/bweb/client.png" alt=''></button><input class='formulaire' style="margin: 0 2px 0 2px; padding: 0 0 0 0;" id='searchbox' type='text' size='8' value='search...' onclick="this.value='';" title="Chercher un media ou un client"></li> </button>
+<button type="submit" class="bp" class="button" title="Chercher un media" onclick="search_media();"><img src="/bweb/tape.png" alt=''></button><button type="submit" title="Chercher un client" onclick="search_client();" class='bp'><img src="/bweb/client.png" alt=''></button><input class='formulaire' style="margin: 0 2px 0 2px; padding: 0 0 0 0;" id='searchbox' type='text' size='8' value='search...' onclick="this.value='';" title="Chercher un media ou un client"></button></li>
</ul>
<form name="search" action="bweb.pl?" method='GET'>
<TMPL_IF qusage>checked</TMPL_IF>
name="usage"> Drive usage<br/>
<input type='checkbox'
- <TMPL_IF qpool>checked</TMPL_IF>
- name="pool"> Utilisation du pool<br/>
+ <TMPL_IF qpoolusage>checked</TMPL_IF>
+ name="poolusage"> Utilisation du pool<br/>
<input type='checkbox'
<TMPL_IF qnojob>checked</TMPL_IF>
name="nojob"> Cacher les jobs<br/>
</select>
</td>
</tr>
+</TMPL_IF>
+<TMPL_IF db_pools>
+<tr>
+ <td valign='top'>
+ <h2>Pools de média</h2>
+ <select name='pool' size='10' class='formulaire' multiple>
+<TMPL_LOOP db_pools>
+ <option id= 'pool_<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
</TMPL_IF>
</td>
</tr>
document.getElementById('group_' + <TMPL_VAR name>).selected = true;
</TMPL_LOOP>
+ <TMPL_LOOP qpools>
+ document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
+
<TMPL_LOOP qclients>
document.getElementById('client_' + <TMPL_VAR name>).selected = true;
</TMPL_LOOP>
</table>
<form name='form1' action='?' method='GET'>
<button type="submit" class="bp" name='action' value='dsp_cur_job'
-> <img src='/bweb/update.png' title='Rafraîchir' alt=''>Rafraîchir</button>
+> <img src='/bweb/update.png' title='Rafraîchir' alt=''>Rafraîchir</button>
<input type='hidden' name='client' value='<TMPL_VAR Client>'>
<input type='hidden' name='jobid' value='<TMPL_VAR JobId>'>
<button type="submit" class="bp" name='action' value='cancel_job'
<option id='lang_es' value='es'>Spanish</option>
</select>
</td></tr>
+ <tr><td>default_age:</td>
+ <td> <input class="formulaire" type='text' value='<TMPL_VAR default_age>' title='24h15m' size='64' name='default_age'>
+ </td></tr>
<tr><td>display_log_time:</td>
<td> <input class="formulaire" title="Afficher l'heure des logs" type='checkbox' name='display_log_time' <TMPL_IF display_log_time> checked='checked' value='on' </TMPL_IF> >
</td></tr>
<tr><td title="Utiliser un wiki pour documenter les jobs ?">wiki_url:</td> <td> <TMPL_VAR wiki_url> </td></tr>
<tr><td title="/path/to/your/template_dir">template_dir:</td> <td> <TMPL_VAR template_dir> </td></tr>
<tr><td title="Default language">language:</td> <td> <TMPL_VAR lang> </td></tr>
+ <tr><td title="Default Age">default_age:</td> <td> <TMPL_VAR default_age> </td></tr>
<tr><td title="display timestamp in job log">display_log_time:</td> <td> <TMPL_VAR display_log_time> </td></tr>
<tr><td title="user managment">security:</td> <td> <TMPL_VAR enable_security> </td></tr>
<tr><td title="user filter">security acl:</td> <td> <TMPL_VAR enable_security_acl> </td></tr>
<div class='bodydiv'>
<form action='?'>
<table id='id<TMPL_VAR ID>'></table>
- <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_duration;age=2592000;width=420;height=200" alt='Not enough data' >
- <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_rate;age=2592000;width=420;height=200" alt='Not enough data'>
- <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_size;age=2592000;width=420;height=200" alt='Not enough data'>
+ <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_duration;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data' >
+ <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_rate;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data'>
+ <img src="bgraph.pl?<TMPL_VAR grapharg>=<TMPL_VAR clientname>;graph=job_size;age=<TMPL_VAR age>;width=420;height=200" alt='Not enough data'>
<!-- <div class="otherboxtitle">
Actions
</div>
<TMPL_UNLESS hide_since>
<tr>
<td valign='top'>
- <h2>Depuis</h2>
+ <h2>Hier</h2>
<input type='text' id='since' name='since' size='22' title='YYYY-MM-DD'
value='<TMPL_VAR since>' class='formulaire'>
</td>
</tr>
<tr>
<td valign='top'>
- <h2>Période</h2>
+ <h2>Période</h2>
<select name='age' class='formulaire' onclick='document.getElementById("since").value="";'>
<option id='age_86400' value='86400'>1 day</option>
<option id='age_172800' value='172800'>2 days</option>
<TMPL_ELSE>
<tr>
<td valign='top'>
- <h2>Période</h2>
+ <h2>Période</h2>
<select name='age' class='formulaire'>
<option id='age_86400' value='86400'>Last 24h</option>
- <option id='age_172800' value='237600'>This weekend</option>
+ <option id='age_237600' value='237600'>This weekend</option>
<option id='age_604800' value='604800'>Cette semaine</option>
<option id='age_2678400' value='2678400'>30 derniers jours</option>
<option id='age_15552000' value='15552000'>Last 6 months</option>
<td valign='top'>
<h2>Time slice</h2>
<select name='type' class='formulaire'>
- <option id='slice_day' value='day'>Par jour</option>
- <option id='slice_week' value='week'>Par semaine</option>
- <option id='slice_month' value='month'>Par mois</option>
+ <option id='slice_day' value='day'>Per days</option>
+ <option id='slice_week' value='week'>Per weeks</option>
+ <option id='slice_month' value='month'>Per months</option>
</select>
</td>
</tr>
<option id='jobtype_any' value='all type'>Tous</option>
<option id='jobtype_B' value='B'>Backup</option>
<option id='jobtype_R' value='R'>Restauration</option>
+ <option id='jobtype_D' value='D'>Admin</option>
</select>
</td>
</tr>
<tr><td>Job en erreur (<TMPL_VAR label>):</td>
<td <TMPL_IF nb_err> class='joberr' </TMPL_IF>>
+ <a href="?action=job;level=Any;status=f;age=<TMPL_VAR age>;jobtype=B">
<TMPL_VAR nb_err>
+ </a>
</td>
<td></td> <td></td>
<td></td> <td></td>
</select>
</td>
</tr>
+<TMPL_IF db_client_groups>
+<tr>
+ <td valign='top'>
+ <h2>Groupes</h2>
+ <select name='client_group' size='10' class='formulaire' multiple>
+<TMPL_LOOP db_client_groups>
+ <option id= 'group_<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
+</TMPL_IF>
<tr>
<td> <h2> Type </h2>
<select name='graph' class='formulaire'>
document.getElementById('imggraph').src='bgraph.pl?<TMPL_VAR url>'
</TMPL_IF>
+ <TMPL_LOOP qclient_groups>
+ document.getElementById('group_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
</script>
<img src='/bweb/R.png' alt=''> Lancer maintenant </button>
<button type="submit" class="bp" name='action' title='Désactiver' value='disable_job'>
<img src='/bweb/inflag0.png' alt=''> Désactiver </button>
+ <button type="submit" onsubmit='document.form1.level.value="all"' class="bp" name='action' value='job' title='voir <TMPL_VAR Client> jobs'><img src='/bweb/zoom.png'>Voir les jobs</button>
+<TMPL_IF wiki_url>
+ <a id='wiki' href="<TMPL_VAR wiki_url>" title='Documentation'><img src='/bweb/doc.png' alt='Documentation'></a>Documentation
+</TMPL_IF>
<input type='hidden' name='pool' value=''>
<input type='hidden' name='level' value=''>
<input type='hidden' name='media' value=''>
+ <input type='hidden' name='client' value=''>
</form>
</div>
var data = new Array();
var chkbox;
+var wiki_url <TMPL_IF wiki_url>='<TMPL_VAR wiki_url>'</TMPL_IF>;
+
<TMPL_LOOP list>
chkbox = document.createElement('INPUT');
chkbox.type = 'radio';
document.form1.level.value = '<TMPL_VAR level>';
document.form1.pool.value = '<TMPL_VAR pool>';
document.form1.media.value = '<TMPL_VAR volume>';
+ document.form1.client.value = '<TMPL_VAR client>';
+ if (wiki_url) {
+ document.getElementById('wiki').href=wiki_url + '<TMPL_VAR client>';
+ }
} ;
data.push( new Array(