Bweb works well with 1.39 release or later.
-1) install perl lib
+1) install Perl lib
2) copy your files
-3) intialise your configuration file
+3) initialize your configuration file
4) do some sql stuff (for postgresql users)
5) use the -n option on bconsole so that it works with Expect
6) get bacula log more useful
8) using sudo with autochanger
9) using bfileview.pl
10) accessing to bweb
+11) setting mysql read-only account
+12) get more statistics
################ FILE COPY #####################################
- # you must get bweb cvs files
- cvs -d:pserver:anonymous@bacula.cvs.sourceforge.net:/cvsroot/bacula login
- cvs -z3 -d:pserver:anonymous@bacula.cvs.sourceforge.net:/cvsroot/bacula co -P gui
- cd gui
+ # you must get bweb svn files
+ svn checkout https://bacula.svn.sourceforge.net/svnroot/bacula/trunk/gui/bweb bweb
# or get them from the released tar files or from the apt or rpms.
- # first, copy the bweb perl library into your PERL5 INC path
+ #
+ # Once you have the gui directory loaded, follow the instructions below
+ # or edit the environment variables in the file install_bweb
+ # then execute it. install_web does everything to the next
+ # set of #######'s.
+ #
+
+ # first, copy the bweb Perl library into your PERL5 INC path
+ perl Makefile.PL
+ make install
+ # or
install -m 644 -o root -g root bweb/lib/*.pm /usr/share/perl5
# copy the bweb perl program to your cgi location
# copy the bweb graphics elements (bweb elements must reside in /bweb)
mkdir /var/www/bweb
- install -m 644 -o root -g root bweb/html/*.{js,png,css,gif,ico} /var/www/bweb
+ install -m 644 -o root -g root bweb/html/*.{js,png,css,gif,ico,html} /var/www/bweb
# done !
- WARNING : Your www-data user must be able to execute bconsole and able
+ WARNING : Your www-data (or wwwrun on SuSE) user must be able to execute bconsole and able
to read the bconsole.conf file!
You can create an bconsole group for that.
- perl modules
- DBI (with mysql or postgresql support DBD::Pg and DBD::mysql)
- - Gd::Graph
- - Gd
+ - GD::Graph
+ - GD
- HTML::Template
- CGI
- Expect
apt-get install libgd-graph-perl libhtml-template-perl libexpect-perl
apt-get install libdbd-mysql-perl libdbd-pg-perl libdbi-perl libtime-modules-perl
+ Note: the best way to test if you have all the dependencies
+ fullfilled for Perl is to:
+
+ cd /var/www/cgi-bin/bweb
+ ./bweb.pl
+
+ you might also want to try:
+
+ ./bgraph.pl
+
+ To make sure the graphing modules are loaded. However, running it
+ will spray binary graphics data on your terminal. Otherwise, you will
+ get an error.
+
+ That should show you if any of the pre-requisites are missing.
+ On SuSE 10.2, I was able to load all the appropriate modules via rpms,
+ with the exception of Expect and Time::ParseDate, which I loaded manually
+ using perl.
+
+ If you experience problems, always consult the Apache error_log
+ file.
+
################ APACHE CONFIGURATION ##########################
-It could be a good idea to protect your bweb installation.
+It could be a good idea to protect your bweb installation (optional).
Put this in your httpd.conf, and add user with htpasswd
Require valid-user
</Directory>
+On SuSE 10.2, the following in /etc/apache2/default-server.conf works.
+However, it is not secure:
+
+Directory "/srv/www/cgi-bin/bweb">
+ AllowOverride None
+ Options +ExecCGI -Includes
+ Order allow,deny
+ Allow from all
+</Directory>
+
################ CONFIGURATION #################################
+Note, this is automatically installed by the install_bweb script.
+
/etc/bacula/bweb.conf looks like : (you can edit it inside bweb)
$VAR1 = bless( {
'graph_font' => '/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf',
################ BRESTORE ######################################
If you want to use brestore with bweb, you must associate a mime type
-text/brestore with your brestore.pl.
+text/brestore with your brestore.pl, and you must install brestore.
+See gui/brestore/README for instructions on installing brestore.pl.
################ POSTGRESQL NOTES ##############################
If you want to use PostgreSQL instead of MySQL, you must add
a function to the PostgreSQL Bacula database to get Bweb to work.
-psql -u bacula bacula < script/bweb-postgresql.sql
+psql -U bacula bacula < script/bweb-postgresql.sql
+
+Tips: PL must be enable in your cluster, you can do this with postgres user
+postgres:~$ echo 'CREATE PROCEDURAL LANGUAGE plpgsql;' | psql bacula
################ BCONSOLE NOTES ################################
You must use bconsole without conio/readline support. For that, use
-the bconsole -n option.
+the bconsole -n option. This is done automatically with the standard
+configuration file. In addition, please ensure that the binary
+bconsole file can be executed by your web server. It is normally
+located in /usr/bin/bconsole (or some such file), and must have
+modes 755 or it will not be executable by your web server. The
+normal Bacula installation usually sets mode 750.
################ BACULA LOG ####################################
-To use Bweb log engine you MUST use catalog message type.
+If you want Bweb to be able to show listings of the Job output,
+you must add a "catalog = all, !skipped, !saved" to your
+messages resource in bacula-dir.conf and restart your Bacula
+server. This is shown below:
Messages {
Name = Standard
You have to remove "<!-- Remove this to activate bfileview" and "-->" from
tpl/display_job_zoom.tpl.
-You must use brestore.pl -b to initialise the database, and
+You must use brestore.pl -b to initialize the database, and
you can use bfileview.pl mode=batch jobid=xxx where=/ to compute tree size.
At this time, it's a good idea to schedule brestore.pl -b after your
ALTER TABLE brestore_pathvisibility ADD Size int8;
ALTER TABLE brestore_pathvisibility ADD Files int4;
-################ ACCESSING TO BWEB ###############################
+################ ACCESSING TO BWEB ############################
Now, you are able to launch firefox/mozilla and go on
http://your-server/bweb
+################ SETTING MYSQL ACCOUNT ########################
+
+At this time, Bweb needs a write access to :
+- Location
+- LocationLog
+- Media::LocationId
+- Media::Comment
+- Media::RecyclePoolId (it will change soon)
+
+If your doesn't use Location feature, you can use ReadOnly access
+for all tables, or setup something like :
+
+GRANT SELECT ON bacula.* TO 'bweb'@'%' IDENTIFIED BY 'password';
+GRANT INSERT,UPDATE,DELETE ON bacula.Location
+ TO 'bweb'@'%' IDENTIFIED BY 'password';
+GRANT INSERT,UPDATE,DELETE ON bacula.LocationLog
+ TO 'bweb'@'%' IDENTIFIED BY 'password';
+GRANT UPDATE (LocationId,Comment,RecyclePoolId) ON bacula.Media
+ TO 'bweb'@'%' IDENTIFIED BY 'password';
+
+################ GET MORE STATISTICS ###########################
+
+You keep Jobs informations across retention into a job_old table.
+You have to setup stat_job_table = job_old in bweb configuration.
+
+CREATE TABLE job_old (LIKE Job);
+
+And run this on crontab when you want :
+INSERT INTO job_old
+ (SELECT * FROM Job WHERE JobId NOT IN (SELECT JobId FROM job_old) );
+
+################################################################
+
Enjoy !
Release Notes for bweb 2.0
+2007/03/01
+ - Add display_time_log option to get timestamp in display_log
+ - Add Warning filter on display_job (see jobstatus=T and joberrors > 0)
+
+2007/02/28
+ - Add limit and offset params to display_log
+
+2007/02/25
+ - Update INSTALL notes (GRANT options for mysql)
+ - You can choose a other table than Job to do your statistics
+ Job is purged by Media or Job retention, it's not very useful
+ to follow trends.
+
+2007/02/14
+ - Add EndTime to display_job if you want add it to your tpl
+
+2007/01/25
+ - Add spanish translation, thanks to Santiago Alberch <caesarneron@gmail.com>
+
+2007/01/15
+ - fix do_update_media timeout bug
+
+2007/01/09
+ - fix stats bug on main page
+
+2007/01/01
+ - Add an index.html page on /bweb
+
2006/12/31
- Move /etc/bweb/config to /etc/bacula/bweb.conf
exit 0;
}
-unless (-w $base_fich) {
- $bweb->error("$base_fich is not writable");
+unless ($base_fich and -w $base_fich) {
+ $bweb->error("fv_write_path ($base_fich) is not writable." .
+ " See Bweb configuration.");
exit 0;
}
=head1 LICENSE
Bweb - A Bacula web interface
- Bacula® - The Network Backup Solution
+ Bacula® - The Network Backup Solution
Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- Bacula® is a registered trademark of John Walker.
+ Bacula® is a registered trademark of John Walker.
The licensor of Bacula is the Free Software Foundation Europe
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zurich,
Switzerland, email:ftf@fsfeurope.org.
use CGI;
use POSIX qw/strftime/;
+use File::Basename qw/basename dirname/;
my $conf = new Bweb::Config(config_file => $Bweb::config_file);
$conf->load();
-
my $bweb = new Bweb(info => $conf);
$bweb->connect_db();
my $dbh = $bweb->{dbh};
my $debug = $bweb->{debug};
+# Job table keep use Media or Job retention, so it's quite enought
+# for good statistics
+# CREATE TABLE job_old (LIKE Job);
+# INSERT INTO job_old
+# (SELECT * FROM Job WHERE JobId NOT IN (SELECT JobId FROM job_old) );
+my $jobt = $conf->{stat_job_table} || 'Job';
+
my $graph = CGI::param('graph') || 'job_size';
my $legend = CGI::param('legend') || 'on' ;
$legend = ($legend eq 'on')?1:0;
-my $arg = $bweb->get_form(qw/width height limit offset age
+my $arg = $bweb->get_form(qw/width height limit offset age where jobid
jfilesets level status jjobnames jclients/);
my ($limitq, $label) = $bweb->get_limit(age => $arg->{age},
limit => $arg->{limit},
offset=> $arg->{offset},
- order => 'Job.StartTime ASC',
+ order => "$jobt.StartTime ASC",
);
my $statusq='';
if ($arg->{status} and $arg->{status} ne 'Any') {
- $statusq = " AND Job.JobStatus = '$arg->{status}' ";
+ $statusq = " AND $jobt.JobStatus = '$arg->{status}' ";
}
my $levelq='';
if ($arg->{level} and $arg->{level} ne 'Any') {
- $levelq = " AND Job.Level = '$arg->{level}' ";
+ $levelq = " AND $jobt.Level = '$arg->{level}' ";
}
my $filesetq='';
my $jobnameq='';
if ($arg->{jjobnames}) {
- $jobnameq = " AND Job.Name IN ($arg->{jjobnames}) ";
+ $jobnameq = " AND $jobt.Name IN ($arg->{jjobnames}) ";
} else {
$arg->{jjobnames} = 'all'; # skip warning
}
my $query = "
SELECT
- UNIX_TIMESTAMP(Job.StartTime) AS starttime,
+ UNIX_TIMESTAMP($jobt.StartTime) AS starttime,
Client.Name AS clientname,
- Job.Name AS jobname,
- Job.JobBytes AS jobbytes
-FROM Job, Client, FileSet
-WHERE Job.ClientId = Client.ClientId
- AND Job.FileSetId = FileSet.FileSetId
- AND Job.Type = 'B'
+ $jobt.Name AS jobname,
+ $jobt.JobBytes AS jobbytes
+FROM $jobt, Client, FileSet
+WHERE $jobt.ClientId = Client.ClientId
+ AND $jobt.FileSetId = FileSet.FileSetId
+ AND $jobt.Type = 'B'
$clientq
$statusq
$filesetq
my $query = "
SELECT
- UNIX_TIMESTAMP(Job.StartTime) AS starttime,
+ UNIX_TIMESTAMP($jobt.StartTime) AS starttime,
Client.Name AS clientname,
+ $jobt.Name AS jobname,
+ $jobt.JobFiles AS jobfiles
+FROM $jobt, Client, FileSet
+WHERE $jobt.ClientId = Client.ClientId
+ AND $jobt.FileSetId = FileSet.FileSetId
+ AND $jobt.Type = 'B'
+ $clientq
+ $statusq
+ $filesetq
+ $levelq
+ $jobnameq
+$limitq
+";
+
+ print STDERR $query if ($debug);
+
+ my $obj = get_graph('title' => "Job Files : $arg->{jclients}/$arg->{jjobnames}",
+ 'y_label' => 'Number Files',
+ 'y_min_value' => 0,
+ );
+
+ my $all = $dbh->selectall_arrayref($query) ;
+
+ my ($d, $ret) = make_tab($all);
+ if ($legend) {
+ $obj->set_legend(keys %$ret);
+ }
+ print $obj->plot([$d, values %$ret])->png;
+}
+
+# it works only with postgresql at this time
+# we dont use $jobt because we use File, so job is in Job table
+elsif ($graph eq 'file_histo' and $arg->{where}) {
+
+ my $dir = $dbh->quote(dirname($arg->{where}) . '/');
+ my $file = $dbh->quote(basename($arg->{where}));
+
+ my $query = "
+SELECT UNIX_TIMESTAMP(Job.StartTime) AS starttime,
+ Client.Name AS client,
Job.Name AS jobname,
- Job.JobFiles AS jobfiles
-FROM Job, Client, FileSet
+ base64_decode_lstat(8,LStat) AS lstat
+
+FROM Job, Client, FileSet, Filename, Path, File
WHERE Job.ClientId = Client.ClientId
AND Job.FileSetId = FileSet.FileSetId
AND Job.Type = 'B'
+ AND File.JobId = Job.JobId
+ AND File.FilenameId = Filename.FilenameId
+ AND File.PathId = Path.PathId
+ AND Path.Path = $dir
+ AND Filename.Name = $file
$clientq
$statusq
$filesetq
print STDERR $query if ($debug);
- my $obj = get_graph('title' => "Job Files : $arg->{jclients}/$arg->{jjobnames}",
- 'y_label' => 'Number Files',
+ my $all = $dbh->selectall_arrayref($query) ;
+
+ my $obj = get_graph('title' => "File size : $arg->{where}",
+ 'y_label' => 'File size',
+ 'y_min_value' => 0,
'y_min_value' => 0,
+ 'y_number_format' => \&Bweb::human_size,
);
+
+ my ($d, $ret) = make_tab($all);
+ if ($legend) {
+ $obj->set_legend(keys %$ret);
+ }
+ print $obj->plot([$d, values %$ret])->png;
+}
+
+# it works only with postgresql at this time
+# TODO: use brestore_missing_path
+elsif ($graph eq 'rep_histo' and $arg->{where}) {
+
+ my $dir = $arg->{where};
+ $dir .= '/' if ($dir !~ m!/$!);
+ $dir = $dbh->quote($dir);
+
+ my $query = "
+SELECT UNIX_TIMESTAMP(Job.StartTime) AS starttime,
+ Client.Name AS client,
+ Job.Name AS jobname,
+ brestore_pathvisibility.size AS size
+
+FROM Job, Client, FileSet, Path, brestore_pathvisibility
+WHERE Job.ClientId = Client.ClientId
+ AND Job.FileSetId = FileSet.FileSetId
+ AND Job.Type = 'B'
+ AND Job.JobId = brestore_pathvisibility.JobId
+ AND Path.PathId = brestore_pathvisibility.PathId
+ AND Path.Path = $dir
+ $clientq
+ $statusq
+ $filesetq
+ $levelq
+ $jobnameq
+$limitq
+";
+
+ print STDERR $query if ($debug);
+
my $all = $dbh->selectall_arrayref($query) ;
+ my $obj = get_graph('title' => "Directory size : $arg->{where}",
+ 'y_label' => 'Directory size',
+ 'y_min_value' => 0,
+ 'y_min_value' => 0,
+ 'y_number_format' => \&Bweb::human_size,
+ );
+
+
my ($d, $ret) = make_tab($all);
if ($legend) {
$obj->set_legend(keys %$ret);
my $query = "
SELECT
- UNIX_TIMESTAMP(Job.StartTime) AS starttime,
+ UNIX_TIMESTAMP($jobt.StartTime) AS starttime,
Client.Name AS clientname,
- Job.Name AS jobname,
- Job.JobBytes /
+ $jobt.Name AS jobname,
+ $jobt.JobBytes /
($bweb->{sql}->{SEC_TO_INT}(
$bweb->{sql}->{UNIX_TIMESTAMP}(EndTime)
- $bweb->{sql}->{UNIX_TIMESTAMP}(StartTime)) + 0.01)
AS rate
-FROM Job, Client, FileSet
-WHERE Job.ClientId = Client.ClientId
- AND Job.FileSetId = FileSet.FileSetId
- AND Job.Type = 'B'
+FROM $jobt, Client, FileSet
+WHERE $jobt.ClientId = Client.ClientId
+ AND $jobt.FileSetId = FileSet.FileSetId
+ AND $jobt.Type = 'B'
$clientq
$statusq
$filesetq
my $query = "
SELECT
- UNIX_TIMESTAMP(Job.StartTime) AS starttime,
+ UNIX_TIMESTAMP($jobt.StartTime) AS starttime,
Client.Name AS clientname,
- Job.Name AS jobname,
+ $jobt.Name AS jobname,
$bweb->{sql}->{SEC_TO_INT}( $bweb->{sql}->{UNIX_TIMESTAMP}(EndTime)
- $bweb->{sql}->{UNIX_TIMESTAMP}(StartTime))
AS duration
-FROM Job, Client, FileSet
-WHERE Job.ClientId = Client.ClientId
- AND Job.FileSetId = FileSet.FileSetId
- AND Job.Type = 'B'
+FROM $jobt, Client, FileSet
+WHERE $jobt.ClientId = Client.ClientId
+ AND $jobt.FileSetId = FileSet.FileSetId
+ AND $jobt.Type = 'B'
$clientq
$statusq
$filesetq
if ($t eq 'sum' or $t eq 'avg') {
push @arg, ('y_number_format' => \&Bweb::human_size);
}
+
+ my $stime = $bweb->{sql}->{"STARTTIME_$d"};
+ $stime =~ s/Job\./$jobt\./;
my $query = "
SELECT
- " . ($per_t?"":"UNIX_TIMESTAMP") . "(" . $bweb->{sql}->{"STARTTIME_$d"} . ") AS A,
+ " . ($per_t?"":"UNIX_TIMESTAMP") . "($stime) AS A,
$t(JobBytes) AS nb
-FROM Job, Client, FileSet
-WHERE Job.ClientId = Client.ClientId
- AND Job.FileSetId = FileSet.FileSetId
- AND Job.Type = 'B'
+FROM $jobt, Client, FileSet
+WHERE $jobt.ClientId = Client.ClientId
+ AND $jobt.FileSetId = FileSet.FileSetId
+ AND $jobt.Type = 'B'
$clientq
$statusq
$filesetq
$bweb->help_extern_compute();
} elsif ($action eq 'extern') {
- $bweb->eject_media();
+ print "<div style='float: left;'>";
+ my @achs = $bweb->eject_media();
+ for my $ach (@achs) {
+ CGI::param('ach', $ach);
+ $bweb->update_slots();
+ }
+ print "</div><div style='float: left;margin-left: 20px;'>";
$bweb->move_media();
+ print "</div>";
} elsif ($action eq 'move_email') {
$bweb->move_email();
-// Copyright (C) 2006 Eric Bollengier
-// All rights reserved.
+// Bweb - A Bacula web interface
+// Bacula® - The Network Backup Solution
//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2 of the License, or
-// any later version.
+// Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
+// The main author of Bweb is Eric Bollengier.
+// The main author of Bacula is Kern Sibbald, with contributions from
+// many others, a complete list can be found in the file AUTHORS.
+//
+// This program is Free Software; you can redistribute it and/or
+// modify it under the terms of version two of the GNU General Public
+// License as published by the Free Software Foundation plus additions
+// that are listed in the file LICENSE.
+//
+// This program is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+// 02110-1301, USA.
+//
+// Bacula® is a registered trademark of John Walker.
+// The licensor of Bacula is the Free Software Foundation Europe
+// (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zurich,
+// Switzerland, email:ftf@fsfeurope.org.
var even_cell_color = "#FFFFFF";
var odd_cell_color = "#EEEEEE";
--- /dev/null
+<br/>
+<div class='titlediv'>
+ <h1 class='newstitle'> Acerca </h1>
+</div>
+<div class='bodydiv'>
+<pre>
+ Bweb - A Bacula web interface
+ Bacula® - The Network Backup Solution
+
+ Copyright (C) 2000-2006 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
+ many others, a complete list can be found in the file AUTHORS.
+
+ This program is Free Software; you can redistribute it and/or
+ modify it under the terms of version two of the GNU General Public
+ License as published by the Free Software Foundation plus additions
+ that are listed in the file LICENSE.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+ Bacula® is a registered trademark of John Walker.
+ The licensor of Bacula is the Free Software Foundation Europe
+ (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zurich,
+ Switzerland, email:ftf@fsfeurope.org.
+
+ nrsTable Copyright 2005 New Roads School (GPL)
+ kaiska css Copyright Willy Morin (BWL)
+</pre>
+</div>
--- /dev/null
+<br/>
+<div class='titlediv'>
+ <h1 class='newstitle'><TMPL_UNLESS name>Nueva</TMPL_UNLESS> Autochanger </h1>
+</div>
+<div class='bodydiv'>
+ Tiene que crear una Ubicación, la cual deberá tener el mismo nombre.<br/><br/>
+
+ <form name='form1' action="?" method='get'>
+ <table>
+ <tr><td>Nombre :</td>
+ <td>
+ <select name='ach' class='formulaire' id='ach'>
+<TMPL_LOOP devices><option value='<TMPL_VAR name>'><TMPL_VAR name></option></TMPL_LOOP>
+ </select>
+ </td>
+ </tr>
+ <tr><td>Pre-comando :</td>
+ <td> <input class="formulaire" type='text' id='precmd' value='sudo'
+ title='can be "sudo" or "ssh storage@storagehost"...' name='precmd'>
+ </td>
+ </tr>
+ <tr><td>Comando mtx :</td>
+ <td> <input class="formulaire" type='text' name='mtxcmd' size='32'
+ value='/usr/sbin/mtx' id='mtxcmd'>
+ </td>
+ </tr>
+ <tr><td>Device :</td>
+ <td> <input class="formulaire" type='text' name='device'
+ value='/dev/changer' id='device'>
+ </td>
+ </tr>
+ <tr><td><b>Drives</b></td><td/></tr>
+ <TMPL_LOOP devices>
+ <tr>
+ <td><input class='formulaire' type='checkbox' id='drive_<TMPL_VAR name>'
+ name='drives' value='<TMPL_VAR name>'><TMPL_VAR name>
+ </td>
+ <td>index <input type='text' title='drive index' class='formulaire'
+ id='index_<TMPL_VAR name>' value=''
+ name='index_<TMPL_VAR name>' size='3'>
+ </td>
+ </tr>
+ </TMPL_LOOP>
+ </table>
+ <input type="image" name='action' value='ach_add' src='/bweb/save.png'>
+ </form>
+</div>
+
+<script type="text/javascript" language="JavaScript">
+ <TMPL_IF name>
+ for (var i=0; i < document.form1.ach.length; ++i) {
+ if (document.form1.ach[i].value == '<TMPL_VAR name>') {
+ document.form1.ach[i].selected = true;
+ }
+ }
+ </TMPL_IF>
+ <TMPL_IF mtxcmd>
+ document.getElementById('mtxcmd').value='<TMPL_VAR mtxcmd>';
+ </TMPL_IF>
+ <TMPL_IF precmd>
+ document.getElementById('precmd').value='<TMPL_VAR precmd>';
+ </TMPL_IF>
+ <TMPL_IF device>
+ document.getElementById('device').value='<TMPL_VAR device>';
+ </TMPL_IF>
+ <TMPL_IF drives>
+ <TMPL_LOOP drives>
+ document.getElementById('drive_<TMPL_VAR name>').checked=true;
+ document.getElementById('index_<TMPL_VAR name>').value=<TMPL_VAR index>;
+ </TMPL_LOOP>
+ </TMPL_IF>
+</script>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'>
+Autochanger : <TMPL_VAR Name> (<TMPL_VAR nb_drive> Drives
+<TMPL_IF nb_io><TMPL_VAR nb_io> IMPORT/EXPORT</TMPL_IF>)</h1>
+ </div>
+ <div class='bodydiv'>
+ <form action='?' method='get'>
+ <input type='hidden' name='ach' value='<TMPL_VAR name>'>
+ <TMPL_IF "Update">
+ <font color='red'> Debe ejecutar el comando update slot, El estado del Autochanger es diferente al de las slots de bacula </font>
+ <br/>
+ </TMPL_IF>
+ <table border='0'>
+ <tr>
+ <td valign='top'>
+ <div class='otherboxtitle'>
+ Tools
+ </div>
+ <div class='otherbox'>
+<label>
+<input type="image" name='action' value='label_barcodes'
+ title='run label barcodes' src='/bweb/label.png'>Label
+</label>
+<TMPL_IF nb_io>
+<label>
+<input type="image" name='action' value='eject'
+ title='put selected media on i/o' src='/bweb/extern.png'>
+Exportar
+</label>
+<label>
+<input type="image" name='action' value='clear_io'
+ title='Clear i/o' src='/bweb/intern.png'>
+Limpiar I/O
+</label>
+</TMPL_IF>
+<label>
+<input type="image" name='action' value='update_slots'
+ title='run update slots' src='/bweb/update.png'>
+Actualizar
+</label>
+<br/><br/>
+<label>
+<input type="image" name='action' value='ach_load'
+ title='mount drive' src='/bweb/load.png'>
+Montar
+</label>
+<label>
+<input type="image" name='action' value='ach_unload'
+ title='umount drive' src='/bweb/unload.png'>
+Desmontar
+</label>
+
+ </div>
+ <td width='200'/>
+ <td>
+ <b> Drives: </b><br/>
+ <table id='id_drive'></table> <br/>
+ </td>
+ </tr>
+ </table>
+ <b> Contenido: </b><br/>
+ <table id='id_ach'></table>
+ </form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Slot Real", "Slot", "Nombre Volumen","Bytes Vol","Estado Vol",
+ "Tipo Medio","Nombre Pool","Fecha Escritura",
+ "Expiración", "Selección");
+
+var data = new Array();
+var chkbox;
+
+<TMPL_LOOP Slots>
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.name = 'slot';
+chkbox.value = '<TMPL_VAR realslot>';
+
+data.push( new Array(
+"<TMPL_VAR realslot>",
+"<TMPL_VAR slot>",
+"<TMPL_VAR volumename>",
+human_size(<TMPL_VAR volbytes>),
+"<TMPL_VAR volstatus>",
+"<TMPL_VAR mediatype>",
+"<TMPL_VAR name>",
+"<TMPL_VAR lastwritten>",
+"<TMPL_VAR expire>",
+chkbox
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id_ach",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+// page_nav: true,
+// rows_per_page: rows_per_page,
+// disable_sorting: new Array(5,6)
+ padding: 3
+}
+);
+
+var header = new Array("Index", "Nombre Drive", "Nombre Volumen", "Selección");
+
+var data = new Array();
+var chkbox;
+
+<TMPL_LOOP Drives>
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.name = 'drive';
+chkbox.value = '<TMPL_VAR index>';
+
+data.push( new Array(
+"<TMPL_VAR index>",
+"<TMPL_VAR name>",
+"<TMPL_VAR load>",
+chkbox
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id_drive",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+// page_nav: true,
+// rows_per_page: rows_per_page,
+// disable_sorting: new Array(5,6),
+ padding: 3
+}
+);
+
+</script>
--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+<head>
+<title>Bweb - Bacula Web Interface</title>
+<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>
+<link type="text/css" rel="stylesheet" href="/bweb/style.css"/>
+<link type="text/css" rel="stylesheet" href="/bweb/kaiska.css"/>
+<link type="text/css" rel="stylesheet" href="/bweb/bweb.css"/>
+</head>
+<body>
+
+<script type="text/javascript" language="JavaScript">
+if (navigator.appName == 'Konqueror') {
+ alert("Sorry at this moment, bweb works only with mozilla.");
+}
+</script>
+
+<ul id="menu">
+ <li><a href="bweb.pl?">Principal</a> </li>
+ <li><a href="bweb.pl?action=client">Clientes</a></li>
+ <li><a href="bweb.pl?action=run_job">Jobs</a>
+ <ul>
+ <li><a href="bweb.pl?action=run_job">Jobs Definidos</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>
+ </ul>
+ </li>
+ <li style="padding: 0.25em 2em;">Medios
+ <ul>
+ <li><a href="bweb.pl?action=pool">Pools</a> </li>
+ <li><a href="bweb.pl?action=location">Ubicaciones</a> </li>
+ <li><a href="bweb.pl?action=media">Todos los Medios</a><hr></li>
+ <li><a href="bweb.pl?action=extern_media">Expulsar Medio</a> </li>
+ <li><a href="bweb.pl?action=intern_media">Cargar Medio</a> </li>
+ </ul>
+ </li>
+<TMPL_IF achs>
+ <li style="padding: 0.25em 2em;">Libreria
+ <ul>
+<TMPL_LOOP achs>
+ <li><a href="bweb.pl?action=ach_view;ach=<TMPL_VAR name>"><TMPL_VAR name></a></li>
+</TMPL_LOOP>
+ </ul>
+ </li>
+</TMPL_IF>
+ <li><a href="bweb.pl?action=graph"> EstadÃsticas </a></li>
+ <li> <a href="bweb.pl?action=view_conf"> Configuración </a> </li>
+ <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;">
+<input type="image" class="button" title="buscar medio" onclick="search_media();" src="/bweb/tape.png"><input type="image" title="buscar cliente" onclick="search_client();" src="/bweb/client.png"> <input class='formulaire' style="margin: 0 2px 0 2px; padding: 0 0 0 0;" id='searchbox' type='text' size='8' value="buscar..." onclick="this.value='';" title="buscar por medio o cliente"></li>
+</ul>
+
+<form name="search" action="bweb.pl?" method='GET'>
+ <input type="hidden" name="action" value="">
+ <input type="hidden" name="re_media" value="">
+ <input type="hidden" name="re_client" value="">
+</form>
+
+<div style="clear: left;">
+<div style="float: left;">
--- /dev/null
+<br/>
+<div class='titlediv'>
+ <h1 class='newstitle'>
+ Mover medio
+ </h1>
+ </div>
+ <div class='bodydiv'>
+
+<form action="?" method='GET'>
+<table>
+<tr>
+<td><b>Para: </b></td><td><input class='formulaire' name='email' value='<TMPL_VAR email>'></td>
+</tr><tr>
+<td><b>Asunto: </b></td><td><input class='formulaire' name='subject' value='[BACULA] Mover medio a <TMPL_VAR newlocation>' size='80'></td>
+</tr><tr>
+<td></td>
+<td>
+<textarea name='content' class='formulaire' cols='80' rows='32'>
+Estimado,
+
+Puede mover este medio a <TMPL_VAR newlocation>
+Medio :
+<TMPL_LOOP Medias>
+ - <TMPL_VAR VolumeName> (<TMPL_VAR location>)
+</TMPL_LOOP>
+
+Cuando finalice, puede actualizar la ubicacion del medio ?
+(puede usar este link : <TMPL_VAR url>).
+
+Gracias
+</textarea>
+</td></tr></table>
+<input class='formulaire' type='submit' name='action' value='move_email'>
+</form>
+<br>
+<a href="<TMPL_VAR url>"><img alt='update now' src='/bweb/update.png'>Actualizar Ahora</a>
+</div>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'>
+ Job ejecutándose <TMPL_VAR JobName> en <TMPL_VAR Client>
+ </h1>
+ </div>
+ <div class='bodydiv'>
+
+<table>
+ <tr>
+ <td> <b> Nombre Job: </b> <td> <td> <TMPL_VAR jobname> (<TMPL_VAR jobid>) <td>
+ </tr>
+ <tr>
+ <td> <b> Archivo en proceso: </b> <td> <td> <TMPL_VAR "processing file"> </td>
+ </tr>
+ <tr>
+ <td> <b> Velocidad: </b> <td> <td> <TMPL_VAR "bytes/sec"> B/s</td>
+ </tr>
+ <tr>
+ <td> <b> Archivos Examinados: </b> <td> <td> <TMPL_VAR "files examined"></td>
+ </tr>
+ <tr>
+ <td> <b> Bytes: </b> <td> <td> <TMPL_VAR bytes></td>
+ </tr>
+</table>
+<form name='form1' action='?' method='GET'>
+<input type="image" name='action' value='dsp_cur_job'
+ src='/bweb/update.png' title='refresh'>
+<input type='hidden' name='client' value='<TMPL_VAR Client>'>
+<input type='hidden' name='jobid' value='<TMPL_VAR JobId>'>
+<input type="image" name='action' value='cancel_job'
+ onclick="return confirm('Do you want to cancel this job ?')"
+ title='Cancel job' src='/bweb/cancel.png'>
+</form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+ bweb_add_refresh();
+</script>
+
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Clientes</h1>
+ </div>
+ <div class='bodydiv'>
+<form action='?' method='GET'>
+ <table id='id<TMPL_VAR NAME=ID>'></table>
+ <div class="otherboxtitle">
+ Acciones
+ </div>
+ <div class="otherbox">
+<!-- <h1>Acciones</h1> -->
+ <label>
+ <input type="image" name='action' value='job' title='Mostrar últimos jobs' src='/bweb/zoom.png'>Últimos Jobs</label>
+ <label>
+ <input type="image" name='action' value='dsp_cur_job' title='Mostrar job actual' src='/bweb/zoom.png'>Jobs Actuales</label>
+ <label>
+ <input type="image" name='action' value='client_status' title='Mostrar estado del cliente' src='/bweb/zoom.png'>Estado</label>
+ <label>
+ <input type="image" name='action' value='client_stats' title='EstadÃsticas del Cliente' src='/bweb/chart.png'>EstadÃsticas</label>
+ </label>
+ </div>
+
+</form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+var header = new Array("Nombre", "Selección", "Descripción", "Auto Prune", "Retención Archivos", "Retención Jobs");
+
+var data = new Array();
+var chkbox ;
+
+<TMPL_LOOP NAME=Clients>
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.name = 'client';
+chkbox.value = '<TMPL_VAR NAME=Name>';
+
+data.push(
+ new Array( "<TMPL_VAR NAME=Name>",
+ chkbox,
+ "<TMPL_VAR NAME=Uname>",
+ "<TMPL_VAR NAME=AutoPrune>",
+ human_sec(<TMPL_VAR NAME=FileRetention>),
+ human_sec(<TMPL_VAR NAME=JobRetention>)
+ )
+) ;
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id<TMPL_VAR NAME=ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ rows_per_page: rows_per_page,
+ disable_sorting: new Array(1)
+}
+);
+</script>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'> <TMPL_VAR title> : <TMPL_VAR name></h1>
+ </div>
+ <div class='bodydiv'>
+ <pre id='log' style='font-size: 10px'>
+<TMPL_VAR content>
+ </pre>
+ </div>
--- /dev/null
+<br/>
+<div class='titlediv'>
+ <h1 class='newstitle'> Configuración </h1>
+</div>
+<div class='bodydiv'>
+ <form action="?" method='post'>
+ <table>
+ <tr> <td><b>SQL Connection</b></td> <td/></tr>
+
+ <tr><td>DBI :</td>
+ <td>
+ <input class="formulaire" type='text' value='<TMPL_VAR dbi>' size='64' name='dbi'>
+ </td>
+ </tr>
+ <tr><td>Usuario :</td>
+ <td> <input class="formulaire" type='text' value='<TMPL_VAR user>' name='user'>
+ </td>
+ </tr>
+ <tr><td>Clave :</td>
+ <td> <input class="formulaire" type='password' value='<TMPL_VAR password>' name='password'>
+ </td></tr>
+
+ <tr> <td><b>Opciones Generales</b></td> <td/></tr>
+
+ <tr><td>email_media :</td>
+ <td> <input class="formulaire" type='text' value='<TMPL_VAR email_media>' name='email_media'>
+ </td></tr>
+ </td></tr>
+
+ <tr> <td><b>Configuración Bweb</b></td> <td/></tr>
+
+ <tr><td>graph_font :</td>
+ <td> <input class="formulaire" type='text' value='<TMPL_VAR graph_font>' size='64' name='graph_font'>
+ </td></tr>
+ <tr><td>template_dir :</td>
+ <td> <input class="formulaire" type='text' value='<TMPL_VAR template_dir>' size='64' name='template_dir'>
+ </td></tr>
+ <tr><td>fv_write_path :</td>
+ <td> <input class="formulaire" title="Este directorio debe tener permisos de escritura para el usuario apache y debe ser accesible en /bweb/fv" type='text' value='<TMPL_VAR fv_write_path>' size='64' name='fv_write_path'>
+ </td></tr>
+ <tr><td>stat_job_table :</td>
+ <td> <input class="formulaire" title="You can choose the Job table that you want to use to get statistics" type='text' value='<TMPL_IF stat_job_table><TMPL_VAR stat_job_table><TMPL_ELSE>Job</TMPL_IF>' size='64' name='stat_job_table'>
+ <tr><td>bconsole :</td>
+ <td> <input class="formulaire" type='text' value='<TMPL_VAR bconsole>' size='64' name='bconsole'>
+ </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>debug :</td>
+ <td> <input class="formulaire" type='checkbox' name='debug' <TMPL_IF debug> checked='checked' value='on' </TMPL_IF> >
+ </td></tr>
+ </table>
+ <input type="image" name='action' value='apply_conf' src='/bweb/save.png'>
+ </form>
+</div>
--- /dev/null
+<br/>
+<div class='titlediv'>
+ <h1 class='newstitle'> Configuración </h1>
+</div>
+<div class='bodydiv'>
+ <table>
+ <tr> <td><b>Conexión SQL</b></td> <td/></tr>
+ <tr><td>DBI :</td> <td> <TMPL_VAR dbi> </td></tr>
+ <tr><td>Ususario :</td> <td> <TMPL_VAR user> </td></tr>
+ <tr><td>Clave :</td> <td> xxxxx </td></tr>
+ <tr> <td><b>Opciones Generales</b></td> <td/></tr>
+ <tr><td>email_media :</td> <td> <TMPL_VAR email_media> </td></tr>
+ <tr> <td><b>Configuración Bweb</b></td> <td/></tr>
+ <tr><td>config_file :</td> <td> <TMPL_VAR config_file> </td></tr>
+ <tr><td title="/path/a/tu/template_dir">template_dir :</td> <td> <TMPL_VAR template_dir> </td></tr>
+ <tr><td title="/path/a/a/font.ttf">graph_font :</td> <td> <TMPL_VAR graph_font> </td></tr>
+ <tr><td title="Este directorio debe tener permisos de escritura para el usuario apache y debe ser accesible en /bweb/fv">fv_write_path :</td> <td> <TMPL_VAR fv_write_path> </td></tr>
+ <tr><td title="You can choose the Job table that you want to use to get statistics">stat_job_table :</td> <td> <TMPL_IF stat_job_table><TMPL_VAR stat_job_table><TMPL_ELSE>Job</TMPL_IF> </td></tr>
+ <tr><td title="/path/a/bconsole -n -c /path/to/bconsole.conf">bconsole :</td> <td> <TMPL_VAR bconsole> </td></tr>
+ <tr><td title="display timestamp in job log">display_log_time :</td> <td> <TMPL_VAR display_log_time> </td></tr>
+ <tr><td>debug :</td> <td> <TMPL_VAR debug> </td></tr>
+ <TMPL_IF achs>
+ <tr> <td><b>Libreria</b></td> <td/></tr>
+ <tr>
+ <td>
+ <form action='?' method='GET'>
+ <table border='0'>
+ <TMPL_LOOP achs>
+ <tr>
+ <td>
+<label>
+ <input type='radio' name='ach' value='<TMPL_VAR name>'><TMPL_VAR name>
+</label>
+ </td>
+ </tr>
+ </TMPL_LOOP>
+ </table>
+ <td>
+
+ <input type="image" name="action" value="ach_edit" title="editar" src='/bweb/edit.png'>
+ <input type="image" name='action' value='ach_del' title='borrar' src='/bweb/remove.png'>
+ <input type='image' name='action' value='ach_view' title='ver' src='/bweb/zoom.png'>
+ </form>
+ </td>
+ </tr>
+ </TMPL_IF achs>
+ <tr>
+ <td><hr></td><td></td>
+ </tr>
+ </table>
+
+ <form action='?' method='GET'>
+ <label>
+ <input name='action' value='edit_conf' type="image" title='Edit' src='/bweb/edit.png'> Editar
+ </label>
+ <label>
+ <input name='action' value='ach_add' type="image" title='Add an autochanger' src='/bweb/add.png'> Agregar libreria
+ </label>
+ </form>
+
+ <TMPL_IF error>
+ info : <TMPL_VAR error> </br>
+ </TMPL_IF>
+</div>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'> ültimos jobs de <TMPL_VAR clientname> (<TMPL_VAR Filter>)
+ </h1>
+ </div>
+ <div class='bodydiv'>
+
+ <table id='id<TMPL_VAR ID>'></table>
+
+<a href="bgraph.pl?client=<TMPL_VAR clientname>;action=job_size;status=T">
+ <img src="/bweb/chart.png" alt="backup size" title="backup size evolution"/>
+ </a>
+<a href="bgraph.pl?client=<TMPL_VAR clientname>;action=job_duration;status=T">
+ <img src="/bweb/chart.png" alt="backup duration" title="backup time evolution"/>
+ </a>
+<a href="bgraph.pl?client=<TMPL_VAR clientname>;action=job_rate;status=T">
+ <img src="/bweb/chart.png" alt="backup rate" title="backup rate evolution"/>
+ </a>
+ </div>
+
+
+<script type="text/javascript" language="JavaScript">
+var header = new Array("IdJob", "Nombre Job", "File Set", "Nivel", "Tiempo Inicio",
+ "Archivos Job", "Bytes Job", "Errors");
+
+var data = new Array();
+
+<TMPL_LOOP Jobs>
+data.push( new Array(
+"<TMPL_VAR JobId>",
+"<TMPL_VAR JobName>",
+"<TMPL_VAR FileSet>",
+"<TMPL_VAR Level>",
+"<TMPL_VAR StartTime>",
+"<TMPL_VAR JobFiles>",
+human_size(<TMPL_VAR JobBytes>),
+"<TMPL_VAR JobErrors>"
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id<TMPL_VAR ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: true,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ rows_per_page: rows_per_page,
+ disable_sorting: new Array(5,6)
+}
+);
+
+// get newest job first
+nrsTables['id<TMPL_VAR ID>'].fieldSort(0);
+</script>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Cliente : <TMPL_VAR NAME=clientname> (<TMPL_VAR NAME=label>)</h1>
+ </div>
+ <div class='bodydiv'>
+<form action='?'
+ <table id='id<TMPL_VAR NAME=ID>'></table>
+ <img src="bgraph.pl?client=<TMPL_VAR NAME=clientname>;graph=job_duration;age=2592000;width=420;height=200" alt='Not enough data' >
+ <img src="bgraph.pl?client=<TMPL_VAR NAME=clientname>;graph=job_rate;age=2592000;width=420;height=200" alt='Not enough data'>
+ <img src="bgraph.pl?client=<TMPL_VAR NAME=clientname>;graph=job_size;age=2592000;width=420;height=200" alt='Not enough data'>
+<!-- <div class="otherboxtitle">
+ Actions
+ </div>
+ <div class="otherbox">
+ <h1>Acciones</h1>
+ <input type="image" name='action' value='job' title='Mostrar último job'
+ src='/bweb/zoom.png'>
+ <input type="image" name='action' value='dsp_cur_job' title='Mostrar job actual' src='/bweb/zoom.png'>
+ <input type="image" name='action' value='client_stat' title='EstadÃsticas Cliente' src='/bweb/zoom.png'>
+ </div>
+-->
+</form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+var header = new Array("Nombre", "Nb Jobs", "Nb Bytes", "Nb Files", "Nb Errors");
+
+var data = new Array();
+
+data.push(
+ new Array( "<TMPL_VAR NAME=clientname>",
+ "<TMPL_VAR NAME=nb_jobs>",
+ human_size(<TMPL_VAR NAME=nb_bytes>),
+ "<TMPL_VAR NAME=nb_files>",
+ "<TMPL_VAR NAME=nb_err>"
+ )
+) ;
+
+nrsTable.setup(
+{
+ table_name: "id<TMPL_VAR NAME=ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+// disable_sorting: new Array(1),
+ rows_per_page: rows_per_page
+}
+);
+</script>
--- /dev/null
+<br/>
+<div class="otherboxtitle">
+ Filter
+</div>
+<div class="otherbox">
+<form name='form1' action='?' method='GET'>
+<table border='0'>
+<tr>
+ <td valign='top'>
+ <h2>Nivel</h2>
+ <select name='level' class='formulaire'>
+ <option id='level_Any' value='Any'>Cualquiera</option>
+ <option id='level_F' value='F'>Completo</option>
+ <option id='level_D' value='D'>Diferencial</option>
+ <option id='level_I' value='I'>Incremental</option>
+ </select>
+ </td>
+</tr>
+<tr>
+ <td valign='top'>
+ <h2>Estado</h2>
+ <select name='status' class='formulaire'>
+ <option id='status_Any' value='Any'>Cualquiera</option>
+ <option id='status_T' value='T'>Ok</option>
+ <option id='status_W' value='W'>Warning</option>
+ <option id='status_f' value='f'>Error</option>
+ <option id='status_A' value='A'>Cancelados</option>
+ </select>
+ </td>
+</tr>
+<tr>
+ <td valign='top'>
+ <h2>Pool</h2>
+ <select name='pool' class='formulaire'>
+ <option id='pool_all' value=''>Todos</option>
+<TMPL_LOOP NAME=db_pools>
+ <option id='pool_<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
+<tr>
+ <td valign='top'>
+ <h2>Tiempo</h2>
+ <select name='age' class='formulaire'>
+ <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>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td valign='bottom'>
+ <h2>Number of items</h2>
+ <input type='text' name='limit' value='<TMPL_VAR NAME=limit>'
+ class='formulaire' size='4'>
+ </td>
+</tr>
+<tr>
+ <td valign='top'>
+ <h2>Tipo Job</h2>
+ <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>
+ </select>
+ </td>
+</tr>
+<tr>
+ <td valign='top'>
+ <h2>Clientes</h2>
+ <select name='client' size='15' class='formulaire' multiple>
+<TMPL_LOOP NAME=db_clients>
+ <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
+<!--
+<tr>
+ <td valign='top'>
+ <h2>FileSet</h2>
+ <select name='fileset' size='15' class='formulaire' multiple>
+<TMPL_LOOP NAME=db_filesets>
+ <option id='client_<TMPL_VAR fileset>'><TMPL_VAR NAME=fileset></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
+-->
+</table>
+ <input type="image" name='action' value='job' src='/bweb/update.png'>
+
+</form>
+</div>
+<script type="text/javascript" language="JavaScript">
+
+ <TMPL_LOOP qclients>
+ document.getElementById('client_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
+
+ <TMPL_IF status>
+ document.getElementById('status_<TMPL_VAR status>').selected=true;
+ </TMPL_IF>
+
+ <TMPL_IF level>
+ document.getElementById('level_<TMPL_VAR level>').selected=true;
+ </TMPL_IF>
+
+ <TMPL_IF age>
+ document.getElementById('age_<TMPL_VAR age>').selected=true;
+ </TMPL_IF>
+
+ <TMPL_IF jobtype>
+ document.getElementById('jobtype_<TMPL_VAR jobtype>').selected=true;
+ </TMPL_IF>
+
+ <TMPL_LOOP qfilesets>
+ document.getElementById('fileset_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
+
+ <TMPL_LOOP qpools>
+ document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
+
+</script>
+
--- /dev/null
+<div class="otherboxtitle">
+ Filter
+</div>
+<div class="otherbox">
+<form name='form1' action='?' method='GET'>
+<table border='0'>
+<tr>
+ <td valign='top'>
+ <h2>Tipo Medio</h2>
+ <select name='mediatype' class='formulaire'>
+ <option id='mediatype_all' value=''></option>
+<TMPL_LOOP NAME=db_mediatypes>
+ <option id='mediatype_<TMPL_VAR mediatype>'><TMPL_VAR mediatype></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
+<tr>
+ <td valign='top'>
+ <h2>Ubicación</h2>
+ <select name='location' class='formulaire'>
+ <option id='location_all>' value=''></option>
+<TMPL_LOOP NAME=db_locations>
+ <option id='location_<TMPL_VAR location>'><TMPL_VAR location></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
+<tr>
+ <td valign='top'>
+ <h2>Estado</h2>
+ <select name='volstatus' class='formulaire'>
+ <option id='volstatus_All' value=''></option>
+ <option id='volstatus_Append' value='Append'>Abierta</option>
+ <option id='volstatus_Full' value='Full'>Llena</option>
+ <option id='volstatus_Error' value='Error'>Error</option>
+ <option id='volstatus_Used' value='Used'>Usada</option>
+ <option id='volstatus_Purged' value='Purged'>Purgada</option>
+ </select>
+ </td>
+</tr>
+<tr>
+ <td valign='top'>
+ <h2>Pool</h2>
+ <select name='pool' class='formulaire'>
+ <option id='pool_all>' value=''></option>
+<TMPL_LOOP NAME=db_pools>
+ <option id='pool_<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
+ <tr>
+ <td valign='bottom'>
+ <h2>Nombre</h2>
+ <input type='text' name='re_media'
+ <TMPL_IF qre_media>value=<TMPL_VAR qre_media></TMPL_IF>
+ class='formulaire' size='8'>
+ </td>
+</tr>
+ <tr>
+ <td valign='bottom'>
+ <h2>Number of items</h2>
+ <input type='text' name='limit' value='<TMPL_VAR limit>'
+ class='formulaire' size='4'>
+ </td>
+</tr>
+
+</table>
+ <input type="image" name='action' value='media' src='/bweb/update.png'>
+
+</form>
+</div>
+<script type="text/javascript" language="JavaScript">
+ <TMPL_IF volstatus>
+ document.getElementById('volstatus_<TMPL_VAR volstatus>').selected=true;
+ </TMPL_IF>
+
+ <TMPL_LOOP qmediatypes>
+ document.getElementById('mediatype_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
+
+ <TMPL_LOOP qpools>
+ document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
+ <TMPL_LOOP qlocations>
+ document.getElementById('location_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
+
+</script>
+
--- /dev/null
+ <div class='titlediv'>
+ <h1 class='newstitle'> Últimos Jobs (<TMPL_VAR Filter>)</h1>
+ </div>
+ <div class='bodydiv'>
+ <table id='id<TMPL_VAR ID>'></table>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+<TMPL_IF status>
+document.getElementById('status_<TMPL_VAR status>').checked = true;
+</TMPL_IF>
+
+
+
+var header = new Array("IdJob",
+ "Cliente",
+ "Nombre Job",
+ "FileSet",
+// "Pool",
+ "Nivel",
+ "Inicio",
+ "Duración",
+ "Archivos Job",
+ "Bytes Job",
+ "Errores",
+ "Estado");
+
+var data = new Array();
+
+<TMPL_LOOP Jobs>
+a = document.createElement('A');
+a.href='?action=job_zoom;jobid=<TMPL_VAR JobId>';
+
+img = document.createElement("IMG");
+img.src=bweb_get_job_img("<TMPL_VAR JobStatus>", <TMPL_VAR joberrors>);
+img.title=jobstatus['<TMPL_VAR JobStatus>'];
+
+a.appendChild(img);
+
+data.push( new Array(
+"<TMPL_VAR JobId>",
+"<TMPL_VAR Client>",
+"<TMPL_VAR JobName>",
+"<TMPL_VAR FileSet>",
+//"<TMPL_VAR Pool>",
+"<TMPL_VAR Level>",
+"<TMPL_VAR StartTime>",
+"<TMPL_VAR Duration>",
+"<TMPL_VAR JobFiles>",
+human_size(<TMPL_VAR JobBytes>),
+"<TMPL_VAR joberrors>",
+a
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id<TMPL_VAR ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: true,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ rows_per_page: rows_per_page,
+ disable_sorting: new Array(10),
+ padding: 3
+}
+);
+
+// get newest backup first
+nrsTables['id<TMPL_VAR ID>'].fieldSort(0);
+</script>
--- /dev/null
+ <div class='titlediv'>
+ <h1 class='newstitle'>Información acerca jobs</h1>
+ </div>
+ <div class="bodydiv">
+ <table id='id0'></table>
+ <table><td>
+ <form action='bweb.pl?'>
+ <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
+ <label>
+ <input type="image" name='action' value='delete' title='delete this job'
+ onclick="return confirm('¿ Seguro quiere borrar este job del catálogo ?');"
+ src='/bweb/purge.png'> Borrar
+ </label>
+ </form>
+ </td><td>
+ <form action='bweb.pl?'>
+ <TMPL_LOOP volumes>
+ <input type='hidden' name='media' value='<TMPL_VAR VolumeName>'>
+ </TMPL_LOOP>
+ <label>
+ <input type="image" name='action' value='media' title='view media'
+ src='/bweb/zoom.png'>Ver medio
+ </label>
+ </form>
+ </td>
+ <td>
+ <form action='bweb.pl?'>
+ <input type='hidden' name='client' value='<TMPL_VAR Client>'>
+ <label>
+ <input type="image" name='action' value='job' title='view <TMPL_VAR Client> jobs' src='/bweb/zoom.png'>Ver jobs
+ </label>
+ </form>
+ </td>
+ <td>
+ <form action='bweb.pl?'>
+ <input type='hidden' name='age' value='2678400'>
+ <input type='hidden' name='client' value='<TMPL_VAR Client>'>
+ <input type='hidden' name='jobname' value='<TMPL_VAR jobname>'>
+ <label>
+ <input type="image" name='action' value='graph' title='view trends'
+ src='/bweb/chart.png'> Ver estadÃsticas
+ </label>
+ </form>
+ </td>
+ <td>
+ <form action='bweb.pl?'>
+ <input type='hidden' name='fileset' value='<TMPL_VAR FileSet>'>
+ <label>
+ <input type="image" name='action' value='fileset_view' title='view fileset'
+ src='/bweb/zoom.png'> Ver FileSet
+ </label>
+ </form>
+ </td>
+<!-- Remove this to activate bfileview -->
+ <td>
+ <form action='bfileview.pl?'>
+ <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
+ <input type='hidden' name='where' value='/'>
+ <label>
+ <input type="image" name='action' value='bfileview' title='view file usage'
+ src='/bweb/colorscm.png' onclick='if (<TMPL_VAR JobFiles> > 50000) { return confirm("Puede demorar, ¿ Seguro quiere continuar ?")} else { return 1; }'> Ver uso de archivos
+ </label>
+ </form>
+ </td>
+<!-- -->
+ </table>
+</div>
+
+<script type="text/javascript" language='JavaScript'>
+var header = new Array("IdJob",
+ "Cliente",
+ "Nombre Job",
+ "FileSet",
+ "Nivel",
+ "Inicio",
+ "Duración",
+ "Archivos Job",
+ "Bytes Job",
+ "Errores",
+ "Pool",
+ "Nombre Volumen",
+ "Estado");
+
+var data = new Array();
+
+img = document.createElement("IMG");
+img.src=bweb_get_job_img("<TMPL_VAR JobStatus>", <TMPL_VAR joberrors>);
+img.title=jobstatus['<TMPL_VAR JobStatus>'];
+
+data.push( new Array(
+"<TMPL_VAR JobId>",
+"<TMPL_VAR Client>",
+"<TMPL_VAR JobName>",
+"<TMPL_VAR FileSet>",
+"<TMPL_VAR Level>",
+"<TMPL_VAR StartTime>",
+"<TMPL_VAR duration>",
+"<TMPL_VAR JobFiles>",
+human_size(<TMPL_VAR JobBytes>),
+"<TMPL_VAR joberrors>",
+"<TMPL_VAR poolname>",
+"<TMPL_LOOP volumes><TMPL_VAR VolumeName>\n</TMPL_LOOP>",
+img
+ )
+);
+
+nrsTable.setup(
+{
+ table_name: "id0",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: true,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ rows_per_page: rows_per_page,
+// disable_sorting: new Array(6)
+ padding: 3
+}
+);
+
+</script>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'>Ubicaciones</h1>
+ </div>
+ <div class="bodydiv">
+ <form action='?' method='get'>
+ <table id='id<TMPL_VAR ID>'></table>
+ <input type="image" name='action' value='location_add' title='Agregar Ubicación' src='/bweb/add.png'>
+ <input type="image" name='action' value='location_del' title='Remover Ubicación' src='/bweb/remove.png'>
+ <input type="image" name='action' value='location_edit' title='Editar Ubicación' src='/bweb/edit.png'>
+
+ <input type="image" name='action' value='media' title='Mostrar contenido'
+ src='/bweb/zoom.png'>
+ </form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Nombre","Activado", "Cost", "Nb volumes", "Selección");
+
+var data = new Array();
+var chkbox;
+
+var img;
+
+<TMPL_LOOP Locations>
+img = document.createElement('IMG');
+img.src = '/bweb/inflag<TMPL_VAR enabled>.png';
+
+chkbox = document.createElement('INPUT');
+chkbox.type = 'radio';
+chkbox.name = 'location';
+chkbox.value = '<TMPL_VAR Location>';
+
+data.push( new Array(
+"<TMPL_VAR Location>",
+img,
+"<TMPL_VAR Cost>",
+"<TMPL_VAR name=volnum>",
+chkbox
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id<TMPL_VAR ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ padding: 3,
+// disable_sorting: new Array(5,6),
+ rows_per_page: rows_per_page
+}
+);
+</script>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Log : <TMPL_VAR name> en <TMPL_VAR client> (<TMPL_VAR jobid>)</h1>
+ </div>
+ <div class='bodydiv'>
+ <pre id='log'>
+<TMPL_VAR lines>
+ </pre>
+ </div>
--- /dev/null
+ <div class='titlediv'>
+ <h1 class='newstitle'>
+ Medios
+ </h1>
+ </div>
+ <div class='bodydiv'>
+
+<TMPL_IF Pool>
+<h2>
+Pool : <a href="?action=pool;pool=<TMPL_VAR Pool>">
+ <TMPL_VAR Pool>
+ </a>
+</h2>
+</TMPL_IF>
+<TMPL_IF Location>
+<h2>
+Location : <TMPL_VAR location>
+</h2>
+</TMPL_IF>
+
+ <form action='?action=test' method='get'>
+ <table id='id_pool_<TMPL_VAR ID>'></table>
+ <input type="image" name='action' value='extern' title='Move out' src='/bweb/extern.png' onclick='return confirm("¿Seguro quiere expulsar el medio seleccionado?");'>
+ <input type="image" name='action' value='intern' title='Move in' src='/bweb/intern.png'>
+ <input type="image" name='action' value='update_media' title='Update medium' src='/bweb/edit.png'>
+ <input type="image" name='action' value='media_zoom' title='Informations' src='/bweb/zoom.png'>
+<!--
+ <input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png'>
+-->
+ <input type="image" name='action' value='prune' title='Prune' src='/bweb/prune.png'>
+ </form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Nombre Volumen","Online","Bytes Vol", "Uso Vol", "Estado Vol",
+ "Pool", "Tipo Medio",
+ "Fecha Escritura", "Expiración", "Selección");
+
+var data = new Array();
+var img;
+var chkbox;
+var d;
+
+<TMPL_LOOP Medias>
+d = percent_usage(<TMPL_VAR volusage>);
+
+img = document.createElement('IMG');
+img.src = '/bweb/inflag<TMPL_VAR online>.png';
+
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.name = 'media';
+chkbox.value = '<TMPL_VAR volumename>';
+
+data.push( new Array(
+"<TMPL_VAR volumename>",
+img,
+human_size(<TMPL_VAR volbytes>),
+d,
+"<TMPL_VAR volstatus>",
+"<TMPL_VAR poolname>",
+"<TMPL_VAR mediatype>",
+"<TMPL_VAR lastwritten>",
+"<TMPL_VAR expire>",
+chkbox
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id_pool_<TMPL_VAR ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ padding: 3,
+ rows_per_page: rows_per_page,
+ disable_sorting: new Array(1,3,9)
+}
+);
+</script>
--- /dev/null
+<table>
+<td valign='top'>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Medium : <TMPL_VAR volumename> <TMPL_VAR comment></h1>
+ </div>
+ <div class='bodydiv'>
+ <b> Medium Infos</b><br/>
+ <table id='id_info_<TMPL_VAR volumename>'></table>
+ <b> Medium Stats</b><br/>
+ <table id='id_media_<TMPL_VAR volumename>'></table>
+ <b> Job List </b></br>
+ <table id='id_jobs_<TMPL_VAR volumename>'></table>
+ <b> Actions </b></br>
+ <form action='?' method='get'>
+ <input type='hidden' name='media' value='<TMPL_VAR volumename>'>
+<TMPL_IF online>
+ <input type="image" name='action' value='extern' onclick='return confirm("Do you want to eject this medium ?");' title='move out' src='/bweb/extern.png'>
+<TMPL_ELSE>
+ <input type="image" name='action' value='intern' title='move in' src='/bweb/intern.png'>
+</TMPL_IF>
+ <input type="image" name='action' value='update_media' title='Update' src='/bweb/edit.png'>
+ <input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png' onclick="return confirm('Do you want to purge this volume ?')">
+ <input type="image" name='action' value='prune' title='Prune' src='/bweb/prune.png'>
+<TMPL_IF Locationlog>
+ <a href='#' onclick='document.getElementById("locationlog").style.visibility="visible";'><img title='View location log' src='/bweb/zoom.png'></a>
+</TMPL_IF>
+ </form>
+ </div>
+</td>
+<td valign='top'style="visibility:hidden;" id='locationlog'>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Location log </h1>
+ </div>
+ <div class='bodydiv'>
+<pre>
+ <TMPL_VAR LocationLog>
+</pre>
+ </div>
+</td>
+</table>
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Pool","Online","Location","Vol Status", "Vol Bytes", "Expire",
+ "Retention","Max use duration", "Max jobs" );
+
+var data = new Array();
+var img;
+
+img = document.createElement('IMG');
+img.src = '/bweb/inflag<TMPL_VAR online>.png';
+
+data.push( new Array(
+"<TMPL_VAR poolname>",
+img,
+"<TMPL_VAR location>",
+"<TMPL_VAR volstatus>",
+human_size(<TMPL_VAR nb_bytes>),
+"<TMPL_VAR expire>",
+human_sec(<TMPL_VAR volretention>),
+human_sec(<TMPL_VAR voluseduration>),
+"<TMPL_VAR maxvoljobs>"
+ )
+);
+
+nrsTable.setup(
+{
+ table_name: "id_info_<TMPL_VAR volumename>",
+ table_header: header,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+ table_data: data,
+ header_color: header_color,
+ padding: 3,
+ disable_sorting: new Array(1)
+}
+);
+
+var header = new Array( "Vol Mounts", "Recycle count", "Read time", "Write time", "Errors");
+
+var data = new Array();
+data.push( new Array(
+"<TMPL_VAR nb_mounts>",
+"<TMPL_VAR recyclecount>",
+human_sec(<TMPL_VAR volreadtime>),
+human_sec(<TMPL_VAR volwritetime>),
+"<TMPL_VAR nb_errors>"
+ )
+);
+
+nrsTable.setup(
+{
+ table_name: "id_media_<TMPL_VAR volumename>",
+ table_header: header,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+ table_data: data,
+ header_color: header_color,
+// disable_sorting: new Array()
+ padding: 3
+}
+);
+
+
+var header = new Array("IdJob","Nombre","Inicio","Tipo",
+ "Nivel", "Archivos", "Bytes", "Estado");
+
+var data = new Array();
+var a;
+var img;
+
+<TMPL_LOOP jobs>
+a = document.createElement('A');
+a.href='?action=job_zoom;jobid=<TMPL_VAR JobId>';
+
+img = document.createElement("IMG");
+img.src="/bweb/<TMPL_VAR status>.png";
+img.title=jobstatus['<TMPL_VAR status>'];
+
+a.appendChild(img);
+
+data.push( new Array(
+"<TMPL_VAR jobid>",
+"<TMPL_VAR name>",
+"<TMPL_VAR starttime>",
+"<TMPL_VAR type>",
+"<TMPL_VAR level>",
+"<TMPL_VAR files>",
+human_size(<TMPL_VAR bytes>),
+a
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id_jobs_<TMPL_VAR volumename>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ padding: 3,
+// disable_sorting: new Array(5,6),
+ rows_per_page: rows_per_page
+}
+);
+</script>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'>Pools</h1>
+ </div>
+ <div class="bodydiv">
+ <form action='?' method='get'>
+ <table id='id<TMPL_VAR ID>'></table>
+ <input type="image" type='submit' name='action' value='media' title='Mostrar contenido' src='/bweb/zoom.png'>
+<TMPL_LOOP MediaType>
+ <input type='hidden' name='mediatype' value=<TMPL_VAR name>>
+</TMPL_LOOP>
+ </form>
+ <br/>
+ Nota: Para modificar las propiedades de un pool, se debe editar la configuración de Bacula
+ y aplicar el comando "reload", Luego se debe ejecutar "update pool=mypool" con la bconsole.
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Nombre","Reciclado","Retención","Use Duration",
+ "Máx Jobs/Volumen","Máx Archivos/Volumen",
+ "Máx Tamaño/Volumen","Nb volumes", "Estado Volumen", "Uso", "Selección");
+
+var data = new Array();
+var chkbox;
+var img;
+var img2;
+
+<TMPL_LOOP Pools>
+
+img = percent_display([
+<TMPL_IF nb_recycle>{ name: "Reciclado", nb: <TMPL_VAR nb_recycle> },</TMPL_IF>
+<TMPL_IF nb_purged> { name: "Purgado", nb: <TMPL_VAR nb_purged> },</TMPL_IF>
+<TMPL_IF nb_append> { name: "Abierto", nb: <TMPL_VAR nb_append> },</TMPL_IF>
+<TMPL_IF nb_full> { name: "Lleno", nb: <TMPL_VAR nb_full> }, </TMPL_IF>
+<TMPL_IF nb_disabled> { name: "Disactivado", nb: <TMPL_VAR nb_disabled> }, </TMPL_IF>
+<TMPL_IF nb_error> { name: "Error", nb: <TMPL_VAR nb_error> }, </TMPL_IF>
+<TMPL_IF nb_archive>{ name: "Archivado", nb: <TMPL_VAR nb_archive> },</TMPL_IF>
+<TMPL_IF nb_used> { name: "Usado", nb: <TMPL_VAR nb_used> }, </TMPL_IF>
+<TMPL_IF NAME='nb_read-only'> { name: "Lectura", nb: <TMPL_VAR NAME='nb_read-only'> }, </TMPL_IF>
+{}
+]);
+
+chkbox = document.createElement('INPUT');
+chkbox.type = 'radio';
+chkbox.value = '<TMPL_VAR Name>';
+chkbox.name = 'pool';
+
+img2 = percent_usage(<TMPL_VAR poolusage>);
+
+data.push( new Array(
+"<TMPL_VAR Name>",
+"<TMPL_VAR Recycle>",
+human_sec(<TMPL_VAR VolRetention>),
+human_sec(<TMPL_VAR VolUseDuration>),
+"<TMPL_VAR MaxVolJobs>",
+"<TMPL_VAR MaxVolFiles>",
+human_size(<TMPL_VAR MaxVolBytes>),
+"<TMPL_VAR VolNum>",
+img,
+img2,
+chkbox
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id<TMPL_VAR ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ padding: 3,
+// disable_sorting: new Array(5,6),
+ rows_per_page: rows_per_page
+}
+);
+</script>
--- /dev/null
+</div>
+<div style="float: right;"></div>
+</div>
+</body>
+</html>
--- /dev/null
+<h1>Un error ha ocurrido :</h1>
+<pre>
+<TMPL_VAR NAME=error>
+</pre>
--- /dev/null
+ <div class='titlediv'>
+ <h1 class='newstitle'>
+ FileSet <TMPL_VAR fileset>
+ </h1>
+ </div>
+ <div class='bodydiv'>
+
+ <img src="/bweb/add.png" alt="included"> Incluido :
+ <pre>
+<TMPL_LOOP I><TMPL_VAR file>
+</TMPL_LOOP></pre>
+
+ <img src="/bweb/remove.png" alt="excluded"> Excluido :
+ <pre>
+<TMPL_LOOP E><TMPL_VAR file>
+</TMPL_LOOP></pre>
+
+Nota: Cuidado, este es el fileset actual, puede haber cambiado...
+
+ </div>
--- /dev/null
+<div class='titlediv'>
+ <h1 class='newstitle'> Información acerca <TMPL_VAR filename> </h1>
+</div>
+<div class='bodydiv'>
+ <table>
+ <tr><td>size : </td> <td> <TMPL_VAR size> </td></tr>
+ <tr><td>ctime :</td> <td> <TMPL_VAR atime> </td></tr>
+ <tr><td>mtime :</td> <td> <TMPL_VAR mtime> </td></tr>
+ <tr><td>atime :</td> <td> <TMPL_VAR atime> </td></tr>
+ <tr><td>md5 : </td> <td> <TMPL_VAR md5> </td></tr>
+ </table>
+</div>
--- /dev/null
+
+<script type="text/javascript" language="JavaScript">
+bweb_add_refresh();
+</script>
+<div class='titlediv'>
+ <h1 class="newstitle">
+ Informaciones
+ </h1>
+</div>
+<div class="bodydiv">
+ <table>
+ <tr><td>Cantidad Clientes:</td> <td> <TMPL_VAR nb_client> </td>
+ <td>Bytes Almacenados:</td> <td> <TMPL_VAR nb_bytes> </td>
+ <td>Cantidad Medios:</td> <td> <TMPL_VAR nb_media> </td>
+ </tr>
+ <tr><td>Tamaño Base de Datos:</td> <td> <TMPL_VAR db_size> </td>
+ <td>Cantidad Pools:</td> <td> <TMPL_VAR nb_pool> </td>
+ <td>Cantidad Jobs:</td> <td> <TMPL_VAR nb_job> </td>
+ </tr>
+ <tr><td>Jobs fallados (<TMPL_VAR label>):</td>
+
+<td <TMPL_IF nb_err> class='joberr' </TMPL_IF>>
+ <TMPL_VAR nb_err>
+</td>
+ <td></td> <td></td>
+ <td></td> <td></td>
+ </tr>
+
+ </table>
+</div>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'>EstadÃsticas</h1>
+ </div>
+ <div class='bodydiv'>
+<table border='0'>
+<td>
+<form name='form1' action='?' method='GET'>
+ <div class="otherboxtitle">
+ Options
+ </div>
+ <div class="otherbox">
+<table border='0'>
+<tr>
+ <td valign='top'>
+ <h2>Nivel</h2>
+ <select name='level' class='formulaire'>
+ <option id='level_Any' value='Any'>Cualquiera</option>
+ <option id='level_F' value='F'>Completo</option>
+ <option id='level_D' value='D'>Diferencial</option>
+ <option id='level_I' value='I'>Incremental</option>
+ </select>
+ </td><td valign='top'>
+ <h2>Estado</h2>
+ <select name='status' class='formulaire'>
+ <option id='status_Any' value='Any'>Cualquiera</option>
+ <option id='status_T' value='T'>Ok</option>
+ <option id='status_f' value='f'>Error</option>
+ <option id='status_A' value='A'>Cancelado</option>
+ </select>
+ </td>
+</tr>
+<tr>
+ <td valign='top'>
+ <h2>Tiempo</h2>
+ <select name='age' class='formulaire'>
+ <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>
+ </select>
+ </td>
+ <td valign='top'>
+ <h2>Tamaño</h2>
+ Ancho: <input class='formulaire' type='text'
+ name='width' value='<TMPL_VAR width>' size='4'><br/>
+ Alto: <input type='text' class='formulaire'
+ name='height' value='<TMPL_VAR height>' size='4'><br/>
+ </td>
+</tr>
+<tr>
+ <td valign='top'>
+ <h2>Clients</h2>
+ <select name='client' size='15' class='formulaire' multiple>
+<TMPL_LOOP NAME=db_clients>
+ <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+ <td valign='top'>
+ <h2>Nombre Job</h2>
+ <select name='jobname' size='15' class='formulaire' multiple>
+<TMPL_LOOP NAME=db_jobnames>
+ <option><TMPL_VAR NAME=jobname></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
+<tr>
+ <td> <h2> Tipo </h2>
+ <select name='graph' class='formulaire'>
+ <option id='job_size' value='job_size' title="Job size per job for the period">Tamaño Job</option>
+ <option id='job_duration' value='job_duration' title="Job duration per job for the period">Duración Job</option>
+ <option id='job_rate' value='job_rate' title="Job rate per job for the period">Velocidad Job</option>
+ <option id='job_file' value='job_file' title="Number of backed files per job for the period">Archivos Job</option>
+ <option id='job_count_phour' value='job_count_phour' title="Number of jobs per hour for the period">Job por hora</option>
+ <option id='job_count_pday' value='job_count_pday' title="Number of jobs per day for the period">Job por dia</option>
+ <option id='job_avg_phour' value='job_avg_pday' title="Average backup size per day for the period">Job avg B/hour</option>
+ <option id='job_avg_pday' value='job_avg_pday' title="Average backup size per hour for the period">Job avg B/day</option>
+ <option id='job_sum_phour' value='job_sum_phour' title="Job size per hour">Job total B/hour</option>
+ <option id='job_sum_pday' value='job_sum_pday' title="Job size per day">Job total B/day</option>
+ <option id='job_count_hour' value='job_count_hour' title="Number of jobs per hour for the period">Jobs Count (h)</option>
+ <option id='job_count_day' value='job_count_day' title="Number of jobs per day for the period">Jobs Count (d)</option>
+ <option id='job_avg_hour' value='job_avg_hour' title="Average backup size per hour for the period">Job avg size (h)</option>
+ <option id='job_avg_day' value='job_avg_day' title="Average backup size per day for the period">Job avg size (d)</option>
+ <option id='job_sum_hour' value='job_sum_hour' title="Job size per hour for the period">Job Bytes (h)</option>
+ <option id='job_sum_day' value='job_sum_day' title="Job size per day for the period">Job Bytes (d)</option>
+ </select>
+ </td>
+ <td valign='bottom'>
+ <h2>Número de items</h2>
+ <input type='text' name='limit' value='<TMPL_VAR NAME=limit>'
+ class='formulaire' size='4'>
+ </td>
+</tr>
+<tr>
+<td><h2> Tipo de Gráfico </h2>
+ <select name='gtype' class='formulaire'>
+ <option id='gtype_bars' value='bars'>Barras</option>
+<!-- <option id='gtype_bars3d' value='bars3d'>Barras3d</option> -->
+ <option id='gtype_lines' value='lines'>LÃneas</option>
+ <option id='gtype_linespoints' value='linespoints'>LÃneas y puntos</option>
+</td>
+<td>
+ <input type='hidden' name='action' value='graph'>
+ <input type='submit' name='_action' value='graficar' class='formulaire'>
+</td>
+</tr>
+</table>
+ </div>
+
+</form>
+</td>
+<td>
+
+ <div class="otherboxtitle">
+ Current
+ </div>
+ <div class="otherbox">
+ <img src='bgraph.pl?<TMPL_VAR NAME=url>' alt='Nothing to display, Try a bigger date range'>
+ </div>
+
+</td>
+</table>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+ <TMPL_LOOP qclients>
+ document.getElementById('client_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
+
+ <TMPL_IF status>
+ document.getElementById('status_<TMPL_VAR status>').selected=true;
+ </TMPL_IF>
+
+ <TMPL_IF level>
+ document.getElementById('level_<TMPL_VAR level>').selected=true;
+ </TMPL_IF>
+
+ <TMPL_IF age>
+ document.getElementById('age_<TMPL_VAR age>').selected=true;
+ </TMPL_IF>
+
+<TMPL_IF qfilesets>
+ for (var i=0; i < document.form1.fileset.length; ++i) {
+ <TMPL_LOOP qfilesets>
+ if (document.form1.fileset[i].value == <TMPL_VAR name>) {
+ document.form1.fileset[i].selected = true;
+ }
+ </TMPL_LOOP>
+ }
+</TMPL_IF>
+
+<TMPL_IF qjobnames>
+ for (var i=0; i < document.form1.jobname.length; ++i) {
+ <TMPL_LOOP qjobnames>
+ if (document.form1.jobname[i].value == <TMPL_VAR name>) {
+ document.form1.jobname[i].selected = true;
+ }
+ </TMPL_LOOP>
+ }
+</TMPL_IF>
+
+ <TMPL_IF graph>
+ document.getElementById('<TMPL_VAR graph>').selected=true;
+ </TMPL_IF>
+
+ <TMPL_IF gtype>
+ document.getElementById('gtype_<TMPL_VAR gtype>').selected=true;
+ </TMPL_IF>
+
+</script>
--- /dev/null
+<br/>
+<div class='titlediv'>
+ <h1 class='newstitle'> Ayuda para expulsar medios (part 1/2)</h1>
+</div>
+<div class='bodydiv'>
+Se seleccionará el mejor candidato para expulsar. Se le pedirá
+realizar su selección en la próxima pantalla.
+ <form action="?" method='GET'>
+ <table>
+ <tr><td>Pool:</td>
+ <td><select name='pool' class='formulaire' multiple>
+<TMPL_LOOP NAME=db_pools>
+ <option><TMPL_VAR NAME=name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+ </tr>
+ <tr><td>Tipo Medio:</td>
+ <td><select name='mediatype' class='formulaire' multiple>
+<TMPL_LOOP NAME=db_mediatypes>
+ <option><TMPL_VAR NAME=mediatype></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+ </tr>
+ <tr><td> Ubicación : </td>
+ <td><select name='location' class='formulaire'>
+ <TMPL_LOOP NAME=db_locations>
+ <option id='loc_<TMPL_VAR NAME=location>' value='<TMPL_VAR NAME=location>'><TMPL_VAR NAME=location></option>
+ </TMPL_LOOP>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>Número de medio <br/> a expulsar:</td>
+ <td> <input type='text' name='limit' size='3' class='formulaire'
+ value='10'> </td>
+ </tr>
+ <tr>
+ <td><input type="image" name='action' value='compute_extern_media' title='Siguiente' src='/bweb/next.png'>
+ </td><td/>
+ </tr>
+ </table>
+ </form>
+</div>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Ayuda para expulsar medios (part 2/2)</h1>
+ </div>
+ <div class='bodydiv'>
+ Ahora puede verificar la selección y expulsar el medio.
+ <form action='?' method='get'>
+ <table id='compute'></table>
+ <table><tr>
+ <td style='align: left;'>
+ <input type="image" onclick='javascript:window.history.go(-2);' title='Volver' src='/bweb/prev.png'>
+ </td><td style='align: right;'>
+ <input type="image" name='action' value='extern' src='/bweb/extern.png' title='Expulsar selección'>
+ </td></tr>
+ </form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Nombre Volumen","Estado Volumen",
+ "Tipo Medio","Nombre Pool","Fecha Escritura",
+ "Expiración", "Selección");
+
+var data = new Array();
+var chkbox;
+
+<TMPL_LOOP NAME=Medias>
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.value = '<TMPL_VAR NAME=volumename>';
+chkbox.name = 'media';
+chkbox.checked = 'on';
+
+data.push( new Array(
+"<TMPL_VAR NAME=volumename>",
+"<TMPL_VAR NAME=volstatus>",
+"<TMPL_VAR NAME=mediatype>",
+"<TMPL_VAR NAME=name>",
+"<TMPL_VAR NAME=lastwritten>",
+"<TMPL_VAR NAME=expire>",
+chkbox
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "compute",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ padding: 3,
+// disable_sorting: new Array(5,6)
+ rows_per_page: rows_per_page
+}
+);
+</script>
--- /dev/null
+<br/>
+<div class='titlediv'>
+ <h1 class='newstitle'> Ayuda para cargar medios (part 1/2)</h1>
+</div>
+<div class="bodydiv">
+Se seleccionará el mejor candidato para cargar. Se le pedirá
+realizar su selección en la próxima pantalla.
+ <form action="?" method='GET'>
+ <table>
+ <tr><td>Pool:</td>
+ <td><select name='pool' class='formulaire' multiple>
+<TMPL_LOOP db_pools>
+ <option><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+ </tr>
+ <tr><td>Tipo Medio:</td>
+ <td><select name='mediatype' class='formulaire' multiple>
+<TMPL_LOOP db_mediatypes>
+ <option><TMPL_VAR mediatype></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+ </tr>
+ <tr><td>
+ Ubicación :
+ </td><td><select name='location' class='formulaire'>
+ <TMPL_LOOP db_locations>
+ <option value='<TMPL_VAR location>'><TMPL_VAR location></option>
+ </TMPL_LOOP>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td>Expiración :</td>
+ <td> <input type='checkbox' name='expired' class='formulaire'
+ checked> </td>
+ </tr>
+ <tr>
+ <td>Número de medio <br/> a cargar:</td>
+ <td> <input type='text' name='limit' class='formulaire'
+ size='3' value='10'> </td>
+ </tr>
+ <tr>
+ <td><input type="image" name='action' value='compute_intern_media'
+ title='Siguiente' src='/bweb/next.png'>
+ </td><td/>
+ </tr>
+ </table>
+ </form>
+</div>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Ayuda para cargar medios (part 2/2)</h1>
+ </div>
+ <div class='bodydiv'>
+ Ahora puede verificar la selección y cargar el medio
+ <form action='?' method='get'>
+ <table id='compute'></table>
+ <table><tr>
+ <td style='align: left;'>
+ <input type="image" onclick='javascript:window.history.go(-2);' title='Volver' src='/bweb/prev.png'>
+ </td><td style='align: right;'>
+ <input type="image" name='action' value='move_media' title='Cargar selección' src='/bweb/intern.png'>
+ </td></tr>
+ </form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Nombre Volumen","Estado Volumen",
+ "Tipo de Medio","Nombre Pool","Fecha Escritura",
+ "Expiración", "Selección");
+
+var data = new Array();
+var chkbox;
+
+<TMPL_LOOP NAME=Medias>
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.name = 'media';
+chkbox.value= '<TMPL_VAR NAME=volumename>';
+chkbox.checked = 'on';
+
+data.push( new Array(
+"<TMPL_VAR NAME=volumename>",
+"<TMPL_VAR NAME=volstatus>",
+"<TMPL_VAR NAME=mediatype>",
+"<TMPL_VAR NAME=name>",
+"<TMPL_VAR NAME=lastwritten>",
+"<TMPL_VAR NAME=expire>",
+chkbox
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "compute",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ padding: 3,
+// disable_sorting: new Array(5,6)
+ rows_per_page: rows_per_page
+}
+);
+</script>
--- /dev/null
+<br/>
+<div class='titlediv'>
+ <h1 class='newstitle'> Install notes </h1>
+</div>
+<div class='bodydiv'>
+
+
+
+</div>
--- /dev/null
+<br/>
+<div class='titlediv'>
+ <h1 class='newstitle'> Nueva Ubicación </h1>
+</div>
+<div class='bodydiv'>
+ <form action="?" method='get'>
+ <table>
+ <tr><td>Ubicación :</td>
+ <td>
+ <input class="formulaire" type='text' value='' size='32' name='location'>
+ </td>
+ </tr>
+ <tr><td>Cost :</td>
+ <td> <input class="formulaire" type='text' value='10' name='cost' size='3'>
+ </td>
+ </tr>
+ <tr><td>Activado :</td>
+ <td> <input class="formulaire" type='checkbox' value='10' name='enabled'>
+ </td>
+ </tr>
+ </table>
+ <input type="image" name='action' value='location_add' title="save"
+ src='/bweb/save.png'>
+ </form>
+
+Tips: It's a good idea to have a location per autochanger.
+
+</div>
--- /dev/null
+<br/>
+<div class='titlediv'>
+ <h1 class='newstitle'> Ubicación : <TMPL_VAR Location></h1>
+</div>
+<div class='bodydiv'>
+ <form action="?" method='get'>
+ <input type='hidden' name='location' value='<TMPL_VAR location>'>
+ <table>
+ <tr><td>Ubicación :</td>
+ <td>
+ <input class="formulaire" type='text' value='<TMPL_VAR location>' size='32' name='newlocation'>
+ </td>
+ </tr>
+ <tr><td>Cost :</td>
+ <td> <input class="formulaire" type='text' value='<TMPL_VAR cost>' name='cost' size='3'>
+ </td>
+ </tr>
+ <tr><td>Activado :</td>
+ <td> <input class="formulaire" type='checkbox' name='enabled' <TMPL_IF enabled> checked </TMPL_IF> >
+ </td>
+ </tr>
+ </table>
+ <input type="image" name='action' value='location_save'
+ src='/bweb/save.png'>
+ </form>
+</div>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'>Mover Medio</h1>
+ </div>
+ <div class="bodydiv">
+ <form action='?' method='get'>
+ <table id='id<TMPL_VAR NAME=ID>'></table>
+ <table border='0'>
+ <tr><td> Nueva Ubicación: </td><td>
+<select name='newlocation' class='formulaire'>
+ <TMPL_LOOP NAME=db_locations>
+ <option value='<TMPL_VAR NAME=location>'><TMPL_VAR NAME=location></option>
+ </TMPL_LOOP>
+</select>
+ </td></tr><tr><td> Estado: </td><td>
+<select name='volstatus' class='formulaire'>
+ <option value=''>No Actualizar</option>
+ <option value='Append'>Listo</option>
+ <option value='Archive'>Archivado</option>
+ <option value='Disabled'>Desactivado</option>
+ <option value='Cleaning'>Limpieza</option>
+ <option value='Error'>Error</option>
+ <option value='Full'>Lleno</option>
+ <option value='Purged'>Purgado</option>
+ <option value='Read-Only'>ectura</option>
+ <option value='Recycle'>Reciclado</option>
+ <option value='Used'>Usado</option>
+</select>
+ </td><tr><td> Usuario: </td><td>
+<input type='text' name='user' value='<TMPL_VAR loginname>' class='formulaire'>
+ </td></tr>
+ </td></tr><tr><td> Comentario: </td><td>
+<textarea name="comment" class='formulaire'></textarea>
+ </td></tr>
+ </table>
+ <label>
+ <input type="image" type='submit' name='action' value='change_location' src='/bweb/apply.png'> Mover
+ </label>
+ </form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Nombre Volumen", "Ubicación", "Selección");
+
+var data = new Array();
+var chkbox;
+
+<TMPL_LOOP NAME=medias>
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.value = '<TMPL_VAR name=volumename>';
+chkbox.name = 'media';
+chkbox.checked = 1;
+
+data.push( new Array(
+"<TMPL_VAR NAME=volumename>",
+"<TMPL_VAR NAME=location>",
+chkbox
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id<TMPL_VAR NAME=ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ padding: 3,
+// disable_sorting: new Array(5,6),
+ rows_per_page: rows_per_page
+}
+);
+</script>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Jobs Definidos: </h1>
+ </div>
+ <div class='bodydiv'>
+ <form name='form1' action='?' method='GET'>
+ <table border='0'>
+
+ <tr><td>Nombre Job: </td><td>
+ <select name='job'>
+ <TMPL_LOOP jobs>
+ <option value='<TMPL_VAR name>'>
+ <TMPL_VAR name>
+ </option>
+ </TMPL_LOOP>
+ </select>
+ </td></tr>
+ </table>
+ <br/>
+ <label>
+ <input type="image" name='action' value='enable_job' title='Activar'
+ src='/bweb/inflag1.png'> Activado
+ </label>
+ <label>
+ <input type="image" name='action' value='disable_job' title='Desactivar'
+ src='/bweb/inflag0.png'> Desactivado
+ </label>
+ <label>
+ <input type="image" name='action' value='run_job_mod' title='Ejecutar Ahora'
+ src='/bweb/R.png'> Ejecutar Ahora
+ </label>
+ </form>
+ </div>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Ejecutar Job : <TMPL_VAR job> on <TMPL_VAR client></h1>
+ </div>
+ <div class='bodydiv'>
+ <form name='form1' action='?' method='GET'>
+ <table border='0'>
+
+ <tr><td>Nombre del Job: </td><td>
+ <select name='job'>
+ <TMPL_LOOP jobs>
+ <option value='<TMPL_VAR name>'>
+ <TMPL_VAR name>
+ </option>
+ </TMPL_LOOP>
+ </select>
+ </td></tr><tr><td>Pool: </td><td>
+
+ <select name='pool'>
+ <option value=''></option>
+ <TMPL_LOOP pools>
+ <option value='<TMPL_VAR name>'>
+ <TMPL_VAR name>
+ </option>
+ </TMPL_LOOP>
+ </select>
+ </td></tr><tr><td>Cliente: </td><td>
+
+ <select name='client'>
+ <TMPL_LOOP clients>
+ <option value='<TMPL_VAR name>'>
+ <TMPL_VAR name>
+ </option>
+ </TMPL_LOOP>
+ </select>
+
+ </td></tr><tr><td>FileSet: </td><td>
+ <select name='fileset'>
+ <TMPL_LOOP filesets>
+ <option value='<TMPL_VAR name>'>
+ <TMPL_VAR name>
+ </option>
+ </TMPL_LOOP>
+ </select>
+
+ </td></tr><tr><td>Almacenamiento: </td><td>
+ <select name='storage'>
+ <TMPL_LOOP storages>
+ <option value='<TMPL_VAR name>'>
+ <TMPL_VAR name>
+ </option>
+ </TMPL_LOOP>
+ </select>
+
+ </td></tr><tr><td>Nivel: </td><td>
+ <select name='level'>
+ <option id='level_Incremental' value='Incremental'>Incremental</option>
+ <option id='level_Full' value='Full'>Completo</option>
+ <option id='level_Differential' value='Differential'>Diferencial</option>
+ </select>
+
+ </td></tr><tr id='more1' style="visibility:hidden"><td>Hora Inicio: </td><td>
+ <input class='formulaire'
+ type='text' title='YYYY-MM-DD HH:MM:SS'
+ size='17' name='when' value='<TMPL_VAR when>'>
+
+ </td></tr><tr id='more2' style="visibility:hidden"><td>Prioridad: </td><td>
+ <input class='formulaire' type='text'
+ size='3' name='priority' value='<TMPL_VAR priority>'>
+
+ </td></tr>
+ </table>
+ <br/>
+ <label onclick='
+ document.getElementById("more1").style.visibility="visible";
+ document.getElementById("more2").style.visibility="visible";'>
+ <img title='Muestra más opciones' src='/bweb/add.png'>Más opciones</label>
+ <label>
+ <input type="image" name='action' value='run_job_now' title='Ejecutar job'
+ src='/bweb/R.png'>Ejecutar Ahora
+ </label>
+ <label>
+ <input type="image" name='action' value='fileset_view' title='Ver FileSet'
+ src='/bweb/zoom.png'>Ver FileSet
+ </label>
+ </form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+ <TMPL_IF job>
+ ok=1;
+ for(var i=0; ok && i < document.form1.job.length; i++) {
+ if (document.form1.job[i].value == '<TMPL_VAR job>') {
+ document.form1.job[i].selected=true;
+ ok=0;
+ }
+ }
+ </TMPL_IF>
+ <TMPL_IF client>
+ ok=1;
+ for(var i=0; ok && i < document.form1.client.length; i++) {
+ if (document.form1.client[i].value == '<TMPL_VAR client>') {
+ document.form1.client[i].selected=true;
+ ok=0;
+ }
+ }
+ </TMPL_IF>
+ <TMPL_IF pool>
+ ok=1;
+ for(var i=0; ok && i < document.form1.pool.length; i++) {
+ if (document.form1.pool[i].value == '<TMPL_VAR pool>') {
+ document.form1.pool[i].selected=true;
+ ok=0;
+ }
+ }
+ </TMPL_IF>
+ <TMPL_IF storage>
+ ok=1;
+ for(var i=0; ok && i < document.form1.storage.length; i++) {
+ if (document.form1.storage[i].value == '<TMPL_VAR storage>') {
+ document.form1.storage[i].selected=true;
+ ok=0;
+ }
+ }
+ </TMPL_IF>
+ <TMPL_IF level>
+<!-- document.getElementById('level_<TMPL_VAR level>').selected=true; -->
+ </TMPL_IF>
+ <TMPL_IF fileset>
+ ok=1;
+ for(var i=0; ok && i < document.form1.fileset.length; i++) {
+ if (document.form1.fileset[i].value == '<TMPL_VAR fileset>') {
+ document.form1.fileset[i].selected=true;
+ ok=0;
+ }
+ }
+ </TMPL_IF>
+</script>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Jobs en Ejecución </h1>
+ </div>
+ <div class='bodydiv'>
+ <form action='?' method='GET'>
+ <table id='id<TMPL_VAR NAME=ID>'></table>
+ <br/>
+<label>
+<input type='image' name='action' value='dsp_cur_job'
+ title='Ver job' src='/bweb/zoom.png'>
+</label>
+<label>
+<input type="image" type='submit' name='action' value='cancel_job'
+ onclick="return confirm('Esta seguro que quiere cancelar el Job?')"
+ title='Cancelar job' src='/bweb/cancel.png'>
+</label>
+ </form>
+
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+var header = new Array("JobId",
+ "Cliente",
+ "Nombre Job",
+ "Nivel",
+ "Inicio",
+ "Duración",
+// "Archivos Job",
+// "Bytes Job",
+ "Estado",
+ "Selección"
+ );
+
+var data = new Array();
+var chkbox;
+var img;
+
+<TMPL_LOOP NAME=Jobs>
+a = document.createElement('A');
+a.href='?action=dsp_cur_job;jobid=<TMPL_VAR JobId>';
+
+img = document.createElement("IMG");
+img.src = '/bweb/<TMPL_VAR NAME=JobStatus>.png';
+img.title = jobstatus['<TMPL_VAR NAME=JobStatus>'];
+
+a.appendChild(img);
+
+chkbox = document.createElement('INPUT');
+chkbox.type = 'radio';
+chkbox.name = 'jobid';
+chkbox.value = '<TMPL_VAR NAME=jobid>';
+
+data.push( new Array(
+"<TMPL_VAR NAME=JobId>",
+"<TMPL_VAR NAME=ClientName>",
+"<TMPL_VAR NAME=JobName>",
+joblevel['<TMPL_VAR NAME=Level>'],
+"<TMPL_VAR NAME=StartTime>",
+"<TMPL_VAR NAME=duration>",
+//"<TMPL_VAR NAME=JobFiles>",
+//"<TMPL_VAR NAME=JobBytes>",
+a,
+chkbox
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id<TMPL_VAR NAME=ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: true,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ rows_per_page: rows_per_page,
+// disable_sorting: new Array(6)
+ padding: 3
+}
+);
+
+// get newest backup first
+nrsTables['id<TMPL_VAR NAME=ID>'].fieldSort(0);
+
+bweb_add_refresh();
+
+</script>
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Próximos Jobs </h1>
+ </div>
+ <div class='bodydiv'>
+ <form action='?' method='GET'>
+ <table id='id<TMPL_VAR ID>'></table>
+ <label>
+ <input type="image" name='action' value='run_job_mod'
+ src='/bweb/R.png' title='Ejecutar Ahora'> Ejecutar Ahora
+ </label>
+ <label>
+ <input type="image" name='action' value='disable_job'
+ src='/bweb/inflag0.png' title='Desactivar'> Desactivar
+ </label>
+ </form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Programado",
+ "Nivel",
+ "Tipo",
+ "Prioridad",
+ "Nombre",
+ "Volumen",
+ "Selección");
+
+var data = new Array();
+var chkbox;
+
+<TMPL_LOOP list>
+chkbox = document.createElement('INPUT');
+chkbox.type = 'radio';
+chkbox.name = 'job';
+chkbox.value = '<TMPL_VAR name>';
+
+data.push( new Array(
+"<TMPL_VAR date>",
+"<TMPL_VAR level>",
+"<TMPL_VAR type>",
+"<TMPL_VAR priority>",
+"<TMPL_VAR name>",
+"<TMPL_VAR volume>",
+chkbox
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id<TMPL_VAR ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: true,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ rows_per_page: rows_per_page,
+// disable_sorting: new Array(6),
+ padding: 3
+}
+);
+</script>
--- /dev/null
+<div class='titlediv'>
+ <h1 class='newstitle'> EstadÃsticas </h1>
+</div>
+<div class='bodydiv'>
+<a href='?action=job;age=172800;jobtype=B'>
+<img width='450' height='200' src='bgraph.pl?age=2678400;width=450;height=200;graph=job_sum_day;limit=500;action=graph;legend=off' alt='Nothing to display'>
+</a>
+</div>
+
--- /dev/null
+<br/>
+ <div class='titlediv'>
+ <h1 class='newstitle'>Actualizar Ubicación del Medio</h1>
+ </div>
+ <div class="bodydiv">
+ <form action='?' method='get'>
+ <table id='id<TMPL_VAR NAME=ID>'></table>
+ New location : <select class='formulaire' name='newlocation'>
+ <TMPL_LOOP NAME=db_locations>
+ <option id='loc_<TMPL_VAR NAME=location>' value='<TMPL_VAR NAME=location>'><TMPL_VAR NAME=location></option>
+ </TMPL_LOOP>
+ </select>
+ <input type="image" name='action' value='save_location' src='/bweb/apply.png'>
+ </form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Nombre del Volumen", "Ubicación", "Selección");
+
+var data = new Array();
+var chkbox;
+
+<TMPL_LOOP NAME=medias>
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.value = '<TMPL_VAR name=volumename>';
+chkbox.name = 'media';
+chkbox.checked = 1;
+
+data.push( new Array(
+"<TMPL_VAR NAME=volumename>",
+"<TMPL_VAR NAME=location>",
+chkbox
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name: "id<TMPL_VAR NAME=ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon: rew_icon,
+ fwd_icon: fwd_icon,
+// natural_compare: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color,
+ header_color: header_color,
+ page_nav: true,
+ padding: 3,
+// disable_sorting: new Array(5,6)
+ rows_per_page: rows_per_page
+}
+);
+
+<TMPL_IF qnewlocation>
+ document.getElementById('loc_' + <TMPL_VAR qnewlocation>).selected=true;
+</TMPL_IF>
+
+</script>
--- /dev/null
+<br/>
+<div class='titlediv'>
+ <h1 class='newstitle'> Actualizar Medio <TMPL_VAR volumename></h1>
+</div>
+<div class='bodydiv'>
+ <form name='form1' action="?" method='GET'>
+ <table>
+ <tr><td>Nombre del Volumen:</td>
+ <td><input type='text' name='media' class='formulaire' value='<TMPL_VAR volumename>' title='Change this to update an other media'>
+ </td>
+ </tr>
+ <tr><td>Pool:</td>
+ <td><select name='pool' class='formulaire'>
+<TMPL_LOOP db_pools>
+ <option value='<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+ </tr>
+ <tr><td>Estado:</td>
+ <td><select name='volstatus' class='formulaire'>
+ <option value='Append'>Listo</option>
+ <option value='Archive'>Archivado</option>
+ <option value='Disabled'>Desactivado</option>
+ <option value='Cleaning'>Limpieza</option>
+ <option value='Error'>Error</option>
+ <option value='Full'>Lleno</option>
+ <option value='Read-Only'>Lectura</option>
+ <option value='Used'>Usado</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr><td>Slot:</td>
+ <td>
+ <input class='formulaire' type='text'
+ name='slot' value='<TMPL_VAR slot>'>
+ </td>
+ </tr>
+
+ <tr><td>Cargado:</td>
+ <td>
+ <input class='formulaire' type='checkbox'
+ name='inchanger' <TMPL_IF inchanger>checked</TMPL_IF>>
+ </td>
+ </tr>
+
+ <tr><td> Ubicación : </td>
+ <td><select name='location' class='formulaire'>
+ <option value=''></option>
+ <TMPL_LOOP db_locations>
+ <option value='<TMPL_VAR location>'><TMPL_VAR location></option>
+ </TMPL_LOOP>
+ </select>
+ </td>
+ </tr>
+ <tr><td> PerÃodo de Retención: </td>
+ <td>
+ <input class='formulaire' type='text' title='ex: 3 days, 1 month'
+ name='volretention' value='<TMPL_VAR volretention>'>
+ </td>
+ </tr>
+ <tr><td> Use duration: </td>
+ <td>
+ <input class='formulaire' type='text' title='ex: 3 days, 1 month'
+ name='voluseduration' value='<TMPL_VAR voluseduration>'>
+ </td>
+ </tr>
+ <tr><td> Jobs Máximos: </td>
+ <td>
+ <input class='formulaire' type='text' title='ex: 10'
+ name='maxvoljobs' value='<TMPL_VAR maxvoljobs>'>
+ </td>
+ </tr>
+ <tr><td> Archivos Máximos: </td>
+ <td>
+ <input class='formulaire' type='text' title='ex: 10000'
+ name='maxvolfiles' value='<TMPL_VAR maxvolfiles>'>
+ </td>
+ </tr>
+ <tr><td> Bytes Máximos: </td>
+ <td>
+ <input class='formulaire' type='text' title='ex: 10M, 11G'
+ name='maxvolbytes' value='<TMPL_VAR maxvolbytes>'>
+ </td>
+ </tr>
+ <tr><td>Recycle Pool:</td>
+ <td><select name='poolrecycle' class='formulaire'>
+<TMPL_LOOP db_pools>
+ <option value='<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+ </tr>
+ <tr><td> Comentario: </td>
+ <td>
+ <input class='formulaire' type='text' title='a comment'
+ name='comment' value='<TMPL_VAR comment>'>
+ </td>
+ </tr>
+
+ </table>
+<table>
+ <td>
+ <label>
+ <input type="image" name='action' value='do_update_media' src='/bweb/apply.png'> Apply
+ </label>
+ <label>
+ <input type="image" name='action' title='Update from pool'
+ value='update_from_pool' src='/bweb/update.png'> Actualizar del Pool
+ </label>
+ </form>
+ </td>
+ <td>
+ <form action='?' method='GET'>
+ <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
+ <label>
+ <input type="image" name='action' value='media'
+ src='/bweb/zoom.png'> Ver Pool
+ </label>
+ </form>
+ </td>
+</table>
+</div>
+
+<script type="text/javascript" language='JavaScript'>
+var ok=1;
+for (var i=0; ok && i < document.form1.pool.length; ++i) {
+ if (document.form1.pool[i].value == '<TMPL_VAR poolname>') {
+ document.form1.pool[i].selected = true;
+ ok=0;
+ }
+}
+
+ok=1;
+for (var i=0; ok && i < document.form1.pool.length; ++i) {
+ if (document.form1.poolrecycle[i].value == '<TMPL_VAR poolrecycle>') {
+ document.form1.poolrecycle[i].selected = true;
+ ok=0;
+ }
+}
+
+ok=1;
+for (var i=0; ok && i < document.form1.location.length; ++i) {
+ if (document.form1.location[i].value == '<TMPL_VAR location>') {
+ document.form1.location[i].selected = true;
+ ok=0;
+ }
+}
+
+ok=1;
+for (var i=0; ok && i < document.form1.volstatus.length; ++i) {
+ if (document.form1.volstatus[i].value == '<TMPL_VAR volstatus>') {
+ document.form1.volstatus[i].selected = true;
+ ok=0;
+ }
+}
+
+</script>
<tr><td>fv_write_path :</td>
<td> <input class="formulaire" title="Ce répertoire doit être accessible en écriture pour apache et être sous /bweb/fv" type='text' value='<TMPL_VAR fv_write_path>' size='64' name='fv_write_path'>
</td></tr>
+ <tr><td>stat_job_table :</td>
+ <td> <input class="formulaire" title="Vous pouvez choisir une autre table que Job pour calculer vos statisques" type='text' value='<TMPL_IF stat_job_table><TMPL_VAR stat_job_table><TMPL_ELSE>Job</TMPL_IF>' size='64' name='stat_job_table'>
+ </td></tr>
<tr><td>bconsole :</td>
<td> <input class="formulaire" title="/chemin/vers/bconsole -n -c /chemin/vers/bconsole.conf" type='text' value='<TMPL_VAR NAME=bconsole>' size='64' name='bconsole'>
</td></tr>
+ <tr><td>display_log_time :</td>
+ <td> <input class="formulaire" title="affiche les heures dans les logs" type='checkbox' name='display_log_time' <TMPL_IF display_log_time> checked='checked' value='on' </TMPL_IF> >
+ </td></tr>
<tr><td>debug :</td>
- <td> <input class="formulaire" type='checkbox' name='debug'>
+ <td> <input class="formulaire" type='checkbox' name='debug' <TMPL_IF debug> checked='checked' value='on' </TMPL_IF> >
</td></tr>
</table>
<input type="image" name='action' value='apply_conf' src='/bweb/save.png'>
<tr><td title="/chemin/vers/votre/template_dir">template_dir :</td> <td> <TMPL_VAR template_dir> </td></tr>
<tr><td title="/chemin/vers/une/font.ttf">graph_font :</td> <td> <TMPL_VAR graph_font> </td></tr>
<tr><td title="Ce répertoire doit être accessible en ecriture pour apache et être sous /bweb/fv">fv_write_path :</td> <td> <TMPL_VAR fv_write_path> </td></tr>
+ <tr><td title="Vous pouvez utiliser une autre table que Job pour vos statistiques">stat_job_table :</td> <td> <TMPL_IF stat_job_table><TMPL_VAR stat_job_table><TMPL_ELSE>Job</TMPL_IF> </td></tr>
<tr><td title="/chemin/vers/bconsole -n -c /chemin/vers/bconsole.conf">bconsole :</td> <td> <TMPL_VAR bconsole> </td></tr>
+ <tr><td title="affiche les heures dans le log des jobs">display_log_time :</td> <td> <TMPL_VAR display_log_time> </td></tr>
<tr><td>debug :</td> <td> <TMPL_VAR debug> </td></tr>
<TMPL_IF achs>
<tr> <td><b>Robotique (Autochanger)</b></td> <td/></tr>
<select name='status' class='formulaire'>
<option id='status_Any' value='Any'>Tous</option>
<option id='status_T' value='T'>Ok</option>
+ <option id='status_W' value='W'>Warning</option>
<option id='status_f' value='f'>Erreur</option>
<option id='status_A' value='A'>Annulé</option>
</select>
</div>
<div class='bodydiv'>
- <img src="/bweb/add.png" alt="included"> Ce qui est inclu :
+ <img src="/bweb/add.png" alt="included"> Ce qui est inclus :
<pre>
<TMPL_LOOP I><TMPL_VAR file>
</TMPL_LOOP></pre>
- <img src="/bweb/remove.png" alt="excluded"> Ce qui est exclu :
+ <img src="/bweb/remove.png" alt="excluded"> Ce qui est exclus :
<pre>
<TMPL_LOOP E><TMPL_VAR file>
</TMPL_LOOP></pre>
-Tips : Attention, ceci est le FileSet courant, sur une ancienne sauvegarde, il peut avoir changé.
+Tips : Attention ceci est le FileSet courant. Il peut avoir changà sur une ancienne sauvegarde.
</div>
<td> <input class="formulaire" type='text' value='10' name='cost' size='3'>
</td>
</tr>
- <tr><td>Enabled :</td>
+ <tr><td>En ligne :</td>
<td> <input class="formulaire" type='checkbox' value='10' name='enabled'>
</td>
</tr>
our %k_re = ( dbi => qr/^(dbi:(Pg|mysql):(?:\w+=[\w\d\.-]+;?)+)$/i,
user => qr/^([\w\d\.-]+)$/i,
password => qr/^(.*)$/i,
- fv_write_path => qr!^([/\w\d\.-]+)$!,
+ fv_write_path => qr!^([/\w\d\.-]*)$!,
template_dir => qr!^([/\w\d\.-]+)$!,
debug => qr/^(on)?$/,
email_media => qr/^([\w\d\.-]+@[\d\w\.-]+)$/,
bconsole => qr!^(.+)?$!,
syslog_file => qr!^(.+)?$!,
log_dir => qr!^(.+)?$!,
+ stat_job_table => qr!^(\w*)$!,
+ display_log_time => qr!^(on)?$!,
);
=head1 FUNCTION
sub transfer
{
my ($self, $src, $dst) = @_ ;
- print "<pre>$self->{precmd} $self->{mtxcmd} -f $self->{device} transfer $src $dst</pre>\n";
+ if ($self->{debug}) {
+ print "<pre>$self->{precmd} $self->{mtxcmd} -f $self->{device} transfer $src $dst</pre>\n";
+ }
my $out = `$self->{precmd} $self->{mtxcmd} -f $self->{device} transfer $src $dst 2>&1`;
if ($? == 0) {
my $content = $self->get_slot($src);
- print "$content ($src) => $dst<br/>";
$self->{slot}->[$src] = 'empty';
$self->set_slot($dst, $content);
return 1;
if ($self->slot_is_full($slot))
{
my $free = $self->slot_get_first_free() ;
- print "want to move $slot to $free\n";
+ print "move $slot to $free :\n";
if ($free) {
- $self->transfer($slot, $free) || print "$self->{error}\n";
+ if ($self->transfer($slot, $free)) {
+ print "<img src='/bweb/T.png' alt='ok'><br/>\n";
+ } else {
+ print "<img src='/bweb/E.png' alt='ok' title='$self->{error}'><br/>\n";
+ }
} else {
- $self->{error} = "E : Can't find free slot";
+ $self->{error} = "<img src='/bweb/E.png' alt='ok' title='E : Can t find free slot'><br/>\n";
}
}
}
} else { # empty or no label
push @{ $param }, {realslot => $slot,
- volstatus => 'Unknow',
+ volstatus => 'Unknown',
volumename => $self->{slot}->[$slot]} ;
}
} else { # empty
$ret{status} = $1;
if ($1 eq 'f') {
$limit .= "AND Job.JobStatus IN ('f','E') ";
- } else {
+ } elsif ($1 eq 'W') {
+ $limit .= "AND Job.JobStatus = 'T' AND Job.JobErrors > 0 ";
+ } else {
$limit .= "AND Job.JobStatus = '$1' ";
}
}
Job.Name AS jobname,
Level AS level,
StartTime AS starttime,
+ EndTime AS endtime,
Pool.Name AS poolname,
JobFiles AS jobfiles,
JobBytes AS jobbytes,
}
my $newloc = CGI::param('newlocation');
- my $user = CGI::param('user') || 'unknow';
+ my $user = CGI::param('user') || 'unknown';
my $comm = CGI::param('comment') || '';
$comm = $self->dbh_quote("$user: $comm");
$self->display({ email => $self->{info}->{email_media},
url => $url,
newlocation => $newloc,
- # [ { volumename => 'vol1' }, { volumename => 'vol2'Â },..]
+ # [ { volumename => 'vol1' }, { volumename => 'vol2'\81Â },..]
medias => [ values %$medias ],
},
"change_location.tpl");
"running_job.tpl") ;
}
+# return the autochanger list to update
sub eject_media
{
my ($self) = @_;
+ my %ret;
my $arg = $self->get_form('jmedias');
unless ($arg->{jmedias}) {
foreach my $vol (values %$all) {
my $a = $self->ach_get($vol->{location});
next unless ($a) ;
+ $ret{$vol->{location}} = 1;
unless ($a->{have_status}) {
$a->status();
print "eject $vol->{volumename} from $vol->{storage} : ";
if ($a->send_to_io($vol->{slot})) {
- print "ok</br>";
+ print "<img src='/bweb/T.png' alt='ok'><br/>";
} else {
- print "err</br>";
+ print "<img src='/bweb/E.png' alt='err'><br/>";
}
}
+ return keys %ret;
}
sub move_email
return undef;
}
- $a->{bweb} = $self;
+ $a->{bweb} = $self;
+ $a->{debug} = $self->{debug};
return $a;
}
$update .= " pool=$arg->{pool} " ;
}
- $arg->{volretention} ||= 0 ;
- if ($arg->{volretention}) {
+ if (defined $arg->{volretention}) {
$update .= " volretention=\"$arg->{volretention}\" " ;
}
- $arg->{voluseduration} ||= 0 ;
- if ($arg->{voluseduration}) {
+ if (defined $arg->{voluseduration}) {
$update .= " voluse=\"$arg->{voluseduration}\" " ;
}
- $arg->{maxvoljobs} ||= 0;
- if ($arg->{maxvoljobs}) {
+ if (defined $arg->{maxvoljobs}) {
$update .= " maxvoljobs=$arg->{maxvoljobs} " ;
}
- $arg->{maxvolfiles} ||= 0;
- if ($arg->{maxvolfiles}) {
+ if (defined $arg->{maxvolfiles}) {
$update .= " maxvolfiles=$arg->{maxvolfiles} " ;
}
- $arg->{maxvolbytes} ||= 0;
- if ($arg->{maxvolbytes}) {
+ if (defined $arg->{maxvolbytes}) {
$update .= " maxvolbytes=$arg->{maxvolbytes} " ;
}
{
my ($self) = @_;
- my $arg = $self->get_form('jobid');
+ my $arg = $self->get_form('jobid', 'limit', 'offset');
unless ($arg->{jobid}) {
return $self->error("Can't get jobid");
}
- my $t = CGI::param('time') || '';
+ if ($arg->{limit} == 100) {
+ $arg->{limit} = 1000;
+ }
+
+ my $t = CGI::param('time') || $self->{info}->{display_log_time} || '';
my $query = "
SELECT Job.Name as name, Client.Name as clientname
OR (Log.JobId = 0 AND Time >= (SELECT StartTime FROM Job WHERE JobId=$arg->{jobid})
AND Time <= (SELECT COALESCE(EndTime,NOW()) FROM Job WHERE JobId=$arg->{jobid})
)
- ORDER BY LogId;
+ ORDER BY LogId
+ LIMIT $arg->{limit}
+ OFFSET $arg->{offset}
";
my $log = $self->dbh_selectall_arrayref($query);
jobid => $arg->{jobid},
name => $row->{name},
client => $row->{clientname},
+ offset => $arg->{offset},
+ limit => $arg->{limit},
}, 'display_log.tpl');
}
return $self->error("Can't find autochanger name");
}
+ my $a = $self->ach_get($arg->{ach});
+ unless ($a) {
+ return $self->error("Can't find autochanger name in configuration");
+ }
+
+ my $storage = $a->get_drive_name($arg->{drive});
+ unless ($storage) {
+ return $self->error("Can't get your drive name");
+ }
+
my $slots = '';
my $t = 300 ;
if ($arg->{slots}) {
my $b = new Bconsole(pref => $self->{info}, timeout => $t,log_stdout => 1);
print "<h1>This command can take long time, be patient...</h1>";
print "<pre>" ;
- $b->label_barcodes(storage => $arg->{ach},
+ $b->label_barcodes(storage => $storage,
drive => $arg->{drive},
pool => 'Scratch',
slots => $slots) ;
$b->close();
print "</pre>";
+
+ $self->dbh_do("
+ UPDATE Media
+ SET LocationId = (SELECT LocationId
+ FROM Location
+ WHERE Location = '$arg->{ach}'),
+
+ RecyclePoolId = PoolId
+
+ WHERE Media.PoolId = (SELECT PoolId
+ FROM Pool
+ WHERE Name = 'Scratch')
+ AND (LocationId = 0 OR LocationId IS NULL)
+");
+
}
sub purge
<script type="text/javascript" language="JavaScript">
if (navigator.appName == 'Konqueror') {
- alert("Sorry at this moment, bweb works only with mozilla.");
+ alert("Sorry at this moment, bweb works only with mozilla.");
}
</script>
<li><a href="bweb.pl?action=restore" title="Launch brestore">Restore</a> </li>
</ul>
</li>
- <li style="padding: 0.25em 2em;">Medias
+ <li style="padding: 0.25em 2em;">Media
<ul>
<li><a href="bweb.pl?action=pool">Pools</a> </li>
<li><a href="bweb.pl?action=location">Locations</a> </li>
- <li><a href="bweb.pl?action=media">All Medias</a><hr></li>
- <li><a href="bweb.pl?action=extern_media">Eject Medias</a> </li>
- <li><a href="bweb.pl?action=intern_media">Load Medias</a> </li>
+ <li><a href="bweb.pl?action=media">All Media</a><hr></li>
+ <li><a href="bweb.pl?action=extern_media">Eject Media</a> </li>
+ <li><a href="bweb.pl?action=intern_media">Load Media</a> </li>
</ul>
</li>
<TMPL_IF achs>
</td></tr>
<tr><td>fv_write_path :</td>
<td> <input class="formulaire" title="This folder must be writable by apache user and must be accessible on /bweb/fv" type='text' value='<TMPL_VAR fv_write_path>' size='64' name='fv_write_path'>
+ <tr><td>stat_job_table :</td>
+ <td> <input class="formulaire" title="You can choose the Job table that you want to use to get statistics" type='text' value='<TMPL_IF stat_job_table><TMPL_VAR stat_job_table><TMPL_ELSE>Job</TMPL_IF>' size='64' name='stat_job_table'>
</td></tr>
<tr><td>bconsole :</td>
<td> <input class="formulaire" type='text' value='<TMPL_VAR bconsole>' size='64' name='bconsole'>
</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>debug :</td>
- <td> <input class="formulaire" type='checkbox' name='debug'>
+ <td> <input class="formulaire" type='checkbox' name='debug' <TMPL_IF debug> checked='checked' value='on' </TMPL_IF> >
</td></tr>
</table>
<input type="image" name='action' value='apply_conf' src='/bweb/save.png'>
<tr><td title="/path/to/your/template_dir">template_dir :</td> <td> <TMPL_VAR template_dir> </td></tr>
<tr><td title="/path/to/a/font.ttf">graph_font :</td> <td> <TMPL_VAR graph_font> </td></tr>
<tr><td title="This folder must be writable by apache user and must be accessible on /bweb/fv">fv_write_path :</td> <td> <TMPL_VAR fv_write_path> </td></tr>
+ <tr><td title="You can choose the Job table that you want to use to get statistics">stat_job_table :</td> <td> <TMPL_IF stat_job_table><TMPL_VAR stat_job_table><TMPL_ELSE>Job</TMPL_IF> </td></tr>
<tr><td title="/path/to/bconsole -n -c /path/to/bconsole.conf">bconsole :</td> <td> <TMPL_VAR bconsole> </td></tr>
+ <tr><td title="display timestamp in job log">display_log_time :</td> <td> <TMPL_VAR display_log_time> </td></tr>
<tr><td>debug :</td> <td> <TMPL_VAR debug> </td></tr>
<TMPL_IF achs>
<tr> <td><b>Autochanger</b></td> <td/></tr>
odd_cell_color: odd_cell_color,
header_color: header_color,
page_nav: true,
- rows_per_page: rows_per_page,
-// disable_sorting: new Array(1)
+// disable_sorting: new Array(1),
+ rows_per_page: rows_per_page
}
);
</script>
<select name='status' class='formulaire'>
<option id='status_Any' value='Any'>Any</option>
<option id='status_T' value='T'>Ok</option>
+ <option id='status_W' value='W'>Warning</option>
<option id='status_f' value='f'>Error</option>
<option id='status_A' value='A'>Canceled</option>
</select>
</label>
</form>
</td>
-<!-- Remove this to activate bfileview
+<!-- Remove this to activate bfileview -->
<td>
<form action='bfileview.pl?'>
<input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
<input type='hidden' name='where' value='/'>
<label>
<input type="image" name='action' value='bfileview' title='view file usage'
- src='/bweb/colorscm.png' onclick='if (<TMPL_VAR JobFiles> > 5000) { return confirm("It could take long time, do you want to continue ?")} else { return 1;Â }'> View file usage
+ src='/bweb/colorscm.png' onclick='if (<TMPL_VAR JobFiles> > 50000) { return confirm("It could take long time, do you want to continue ?")} else { return 1;Â }'> View file usage
</label>
</form>
</td>
--->
+<!-- -->
</table>
</div>
<table id='id_pool_<TMPL_VAR ID>'></table>
<input type="image" name='action' value='extern' title='Move out' src='/bweb/extern.png' onclick='return confirm("Do you want to eject selected media ?");'>
<input type="image" name='action' value='intern' title='Move in' src='/bweb/intern.png'>
- <input type="image" name='action' value='update_media' title='Update media' src='/bweb/edit.png'>
- <input type="image" name='action' value='media_zoom' title='Informations' src='/bweb/zoom.png'>
+ <input type="image" name='action' value='update_media' title='Update medium' src='/bweb/edit.png'>
+ <input type="image" name='action' value='media_zoom' title='Information' src='/bweb/zoom.png'>
<!--
<input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png'>
-->
<script type="text/javascript" language="JavaScript">
var header = new Array("Volume Name","Online","Vol Bytes", "Vol Usage", "Vol Status",
- "Pool", "Media Type",
- "Last Written", "When expire ?", "Select");
+ "Pool", "Media Type",
+ "Last Written", "When expire ?", "Select");
var data = new Array();
var img;
<table>
<td valign='top'>
<div class='titlediv'>
- <h1 class='newstitle'> Media : <TMPL_VAR volumename> <TMPL_VAR comment></h1>
+ <h1 class='newstitle'> Medium : <TMPL_VAR volumename> <TMPL_VAR comment></h1>
</div>
<div class='bodydiv'>
- <b> Media Infos</b><br/>
+ <b> Medium Infos</b><br/>
<table id='id_info_<TMPL_VAR volumename>'></table>
- <b> Media Stats</b><br/>
+ <b> Medium Stats</b><br/>
<table id='id_media_<TMPL_VAR volumename>'></table>
<b> Job List </b></br>
<table id='id_jobs_<TMPL_VAR volumename>'></table>
<form action='?' method='get'>
<input type='hidden' name='media' value='<TMPL_VAR volumename>'>
<TMPL_IF online>
- <input type="image" name='action' value='extern' onclick='return confirm("Do you want to eject this media ?");' title='move out' src='/bweb/extern.png'>
+ <input type="image" name='action' value='extern' onclick='return confirm("Do you want to eject this medium ?");' title='move out' src='/bweb/extern.png'>
<TMPL_ELSE>
<input type="image" name='action' value='intern' title='move in' src='/bweb/intern.png'>
</TMPL_IF>
</TMPL_LOOP>
</form>
<br/>
- Tips: To modify pool properties, you have to edit your bacula configuration
- and reload it. After, you have to run "update pool=mypool" on bconsole.
+ Tips: To modify pool properties, you have to edit your Bacula configuration
+ and reload it. After, you have to run "update pool=mypool" with bconsole.
</div>
<script type="text/javascript" language="JavaScript">
var header = new Array("Name","Recycle","Retention","Use Duration",
- "Max job per volume","Max file per volume",
+ "Max jobs per volume","Max files per volume",
"Max volume size","Nb volumes", "Vol Status", "Usage", "Select");
var data = new Array();
-<h1>An error as occured :</h1>
+<h1>An error has occurred :</h1>
<pre>
<TMPL_VAR NAME=error>
-</pre>
\ No newline at end of file
+</pre>
<TMPL_LOOP E><TMPL_VAR file>
</TMPL_LOOP></pre>
-Tips: Warning, this is the current fileset, it could have change...
+Tips: Warning, this is the current fileset, it could have changed ...
</div>
<div class='titlediv'>
- <h1 class='newstitle'> Informations about <TMPL_VAR filename> </h1>
+ <h1 class='newstitle'> Information about <TMPL_VAR filename> </h1>
</div>
<div class='bodydiv'>
<table>
</script>
<div class='titlediv'>
<h1 class="newstitle">
- Informations
+ Information
</h1>
</div>
<div class="bodydiv">
<table border='0'>
<td>
<form name='form1' action='?' method='GET'>
- <div class="otherboxtitle">
+ <div class="otherboxtitle">
Options
</div>
<div class="otherbox">
<td valign='top'>
<h2>Size</h2>
Width: <input class='formulaire' type='text'
- name='width' value='<TMPL_VAR width>' size='4'><br/>
+ name='width' value='<TMPL_VAR width>' size='4'><br/>
Height: <input type='text' class='formulaire'
- name='height' value='<TMPL_VAR height>' size='4'><br/>
+ name='height' value='<TMPL_VAR height>' size='4'><br/>
</td>
</tr>
<tr>
<option id='job_size' value='job_size' title="Job size per job for the period">Job Size</option>
<option id='job_duration' value='job_duration' title="Job duration per job for the period">Job Duration</option>
<option id='job_rate' value='job_rate' title="Job rate per job for the period">Job Rate</option>
- <option id='job_file' value='job_file' title="Number of backped file per job for the period">Job Files</option>
- <option id='job_count_phour' value='job_count_phour' title="Number of job per hour for the period">Job per hour</option>
- <option id='job_count_pday' value='job_count_pday' title="Number of job per day for the period">Job per day</option>
+ <option id='job_file' value='job_file' title="Number of backed files per job for the period">Job Files</option>
+ <option id='job_count_phour' value='job_count_phour' title="Number of jobs per hour for the period">Job per hour</option>
+ <option id='job_count_pday' value='job_count_pday' title="Number of jobs per day for the period">Job per day</option>
<option id='job_avg_phour' value='job_avg_pday' title="Average backup size per day for the period">Job avg B/hour</option>
<option id='job_avg_pday' value='job_avg_pday' title="Average backup size per hour for the period">Job avg B/day</option>
<option id='job_sum_phour' value='job_sum_phour' title="Job size per hour">Job total B/hour</option>
<option id='job_sum_pday' value='job_sum_pday' title="Job size per day">Job total B/day</option>
- <option id='job_count_hour' value='job_count_hour' title="Number of job per hour for the period">Jobs Count (h)</option>
- <option id='job_count_day' value='job_count_day' title="Number of job per day for the period">Jobs Count (d)</option>
+ <option id='job_count_hour' value='job_count_hour' title="Number of jobs per hour for the period">Jobs Count (h)</option>
+ <option id='job_count_day' value='job_count_day' title="Number of jobs per day for the period">Jobs Count (d)</option>
<option id='job_avg_hour' value='job_avg_hour' title="Average backup size per hour for the period">Job avg size (h)</option>
<option id='job_avg_day' value='job_avg_day' title="Average backup size per day for the period">Job avg size (d)</option>
<option id='job_sum_hour' value='job_sum_hour' title="Job size per hour for the period">Job Bytes (h)</option>
<td valign='bottom'>
<h2>Number of items</h2>
<input type='text' name='limit' value='<TMPL_VAR NAME=limit>'
- class='formulaire' size='4'>
+ class='formulaire' size='4'>
</td>
</tr>
<tr>
</TMPL_IF>
</script>
-
<br/>
<div class='titlediv'>
- <h1 class='newstitle'> Help to eject media (part 1/2)</h1>
+ <h1 class='newstitle'> Help ejecting media (part 1/2)</h1>
</div>
<div class='bodydiv'>
-This tool will select for you best candidate to eject. You will
-be asked for choose inside the selection in the next screen.
+This tool will select the best candidates to eject. You will
+be asked to make your selection on the next screen.
<form action="?" method='GET'>
<table>
<tr><td>Pool:</td>
<h1 class='newstitle'> Help to eject media (part 2/2)</h1>
</div>
<div class='bodydiv'>
- Now, you can verify the selection and eject media.
+ Now, you can verify the selection and eject the media.
<form action='?' method='get'>
<table id='compute'></table>
<table><tr>
<script type="text/javascript" language="JavaScript">
var header = new Array("Volume Name","Vol Status",
- "Media Type","Pool Name","Last Written",
+ "Media Type","Pool Name","Last Written",
"When expire ?", "Select");
var data = new Array();
<br/>
<div class='titlediv'>
- <h1 class='newstitle'> Help to load media (part 1/2)</h1>
+ <h1 class='newstitle'> Help loading media (part 1/2)</h1>
</div>
<div class="bodydiv">
-This tool will select for you best candidate to load. You will
-be asked for choose inside the selection in the next screen.
+This tool will select the best candidates to load. You will
+be asked to make your selection on the next screen.
<form action="?" method='GET'>
<table>
<tr><td>Pool:</td>
<tr>
<td>Expired :</td>
<td> <input type='checkbox' name='expired' class='formulaire'
- checked> </td>
+ checked> </td>
</tr>
<tr>
<td>Number of media <br/> to load:</td>
<td> <input type='text' name='limit' class='formulaire'
- size='3' value='10'> </td>
+ size='3' value='10'> </td>
</tr>
<tr>
<td><input type="image" name='action' value='compute_intern_media'
- title='Next' src='/bweb/next.png'>
+ title='Next' src='/bweb/next.png'>
</td><td/>
</tr>
</table>
<h1 class='newstitle'> Help to load media (part 2/2)</h1>
</div>
<div class='bodydiv'>
- Now, you can verify the selection and load media.
+ Now, you can verify the selection and load the media.
<form action='?' method='get'>
<table id='compute'></table>
<table><tr>
<script type="text/javascript" language="JavaScript">
var header = new Array("Volume Name","Vol Status",
- "Media Type","Pool Name","Last Written",
+ "Media Type","Pool Name","Last Written",
"When expire ?", "Select");
var data = new Array();
header_color: header_color,
page_nav: true,
padding: 3,
- rows_per_page: rows_per_page,
-// disable_sorting: new Array(5,6)
+// disable_sorting: new Array(5,6),
+ rows_per_page: rows_per_page
}
);
</script>
</label>
<label>
<input type="image" type='submit' name='action' value='cancel_job'
- onclick="return confirm('Do you want to cancel selected job ?')"
+ onclick="return confirm('Do you want to cancel the selected job?')"
title='Cancel job' src='/bweb/cancel.png'>
</label>
</form>
<script type="text/javascript" language="JavaScript">
var header = new Array("JobId",
- "Client",
- "Job Name",
+ "Client",
+ "Job Name",
"Level",
"Start Time",
"Duration",
// "Job Files",
// "Job Bytes",
- "Status",
- "Select"
- );
+ "Status",
+ "Select"
+ );
var data = new Array();
var chkbox;
</div>
<div class='bodydiv'>
<a href='?action=job;age=172800;jobtype=B'>
-<img src='bgraph.pl?age=2678400;width=450;height=200;graph=job_sum_day;limit=500;action=graph;legend=off' alt='Nothing to display'>
+<img width='450' height='200' src='bgraph.pl?age=2678400;width=450;height=200;graph=job_sum_day;limit=500;action=graph;legend=off' alt='Nothing to display'>
</a>
</div>
<form name='form1' action="?" method='GET'>
<table>
<tr><td>Volume Name:</td>
- <td><input type='text' name='media' class='formulaire' value='<TMPL_VAR volumename>' title='Change this to update an other media'>
+ <td><input type='text' name='media' class='formulaire' value='<TMPL_VAR volumename>' title='Change this to update an other volume'>
</td>
</tr>
<tr><td>Pool:</td>