$conf->load();
my $bweb = new Bweb(info => $conf);
-my $arg = $bweb->get_form(qw/qiso_begin qiso_end qusage qpool qnojob
+$bweb->can_do('r_view_stat');
+
+my $arg = $bweb->get_form(qw/qiso_begin qiso_end qusage qpools qpoolusage qnojob
jclient_groups db_client_groups qclient_groups/);
+my ($filter1, undef) = $bweb->get_param('pool');
if (!$arg->{qiso_begin}) {
$arg->{qiso_begin} = strftime('\'%F %H:%M:00\'', localtime(time - 60*60*12));
}
use Digest::MD5 qw(md5_hex);
my $md5_rep = md5_hex("$arg->{qiso_begin}:$arg->{qiso_end}:$arg->{qusage}:" .
- "$arg->{jclient_groups}:$arg->{qpool};$arg->{qnojob}") ;
+ "$arg->{jclient_groups}:$arg->{qpoolusage};$arg->{qnojob}") ;
print CGI::header('text/html');
$bweb->display_begin();
AND Job.StartTime < $arg->{qiso_end}
AND ( $filter )
AND Job.Type = 'B'
-ORDER BY Job.JobId,Log.LogId,Log.Time
-";
+ $filter1
+ ORDER BY Job.JobId,Log.LogId,Log.Time ";
print STDERR $query if ($conf->{debug});
$top->add_job(label => $last_name,
data => $data);
}
-if ($arg->{qpool}) {
+if ($arg->{qpoolusage}) {
foreach my $d (sort keys %$pool) {
$top->add_job(label => $d,
data => $pool->{$d});
<TMPL_IF qusage>checked</TMPL_IF>
name="usage"> __Drive usage__<br/>
<input type='checkbox'
- <TMPL_IF qpool>checked</TMPL_IF>
- name="pool"> __Pool usage__<br/>
+ <TMPL_IF qpoolusage>checked</TMPL_IF>
+ name="poolusage"> __Pool usage__<br/>
<input type='checkbox'
<TMPL_IF qnojob>checked</TMPL_IF>
name="nojob"> __Hide Job__<br/>
</select>
</td>
</tr>
+</TMPL_IF>
+<TMPL_IF db_pools>
+<tr>
+ <td valign='top'>
+ <h2>__Pools__</h2>
+ <select name='pool' size='10' class='formulaire' multiple>
+<TMPL_LOOP db_pools>
+ <option id= 'pool_<TMPL_VAR name>'><TMPL_VAR name></option>
+</TMPL_LOOP>
+ </select>
+ </td>
+</tr>
</TMPL_IF>
</td>
</tr>
document.getElementById('group_' + <TMPL_VAR name>).selected = true;
</TMPL_LOOP>
+ <TMPL_LOOP qpools>
+ document.getElementById('pool_' + <TMPL_VAR name>).selected = true;
+ </TMPL_LOOP>
+
<TMPL_LOOP qclients>
document.getElementById('client_' + <TMPL_VAR name>).selected = true;
</TMPL_LOOP>
<!-- <h1>__Actions__</h1> -->
<button type="submit" class="bp" name='action' value='job' title="__Show last job__"> <img src='/bweb/zoom.png' alt=''>__Last jobs__</button>
<button type="submit" class="bp" name='action' value='dsp_cur_job' title='__Show current job__'> <img src='/bweb/zoom.png' alt=''>__Current jobs__</button>
+ <button type="submit" class="bp" name='action' value='groups' title='__View client groups__'> <img src='/bweb/zoom.png' alt=''>__View groups__</button>
<button type="submit" class="bp" name='action' value='client_status' title='__Show client status__'> <img src='/bweb/zoom.png' alt=''>__Status__ </button>
<button type="submit" class="bp" name='action' value='client_stats' title='__Client stats__'> <img src='/bweb/chart.png' alt=''>__Stats__ </button>
</div>