} elsif ($action eq 'client_stats') {
foreach my $client (CGI::param('client')) {
- if ($client =~ m/$client_re/) {
+ if ($client =~ $client_re) {
$bweb->display_client_stats(clientname => $1,
age => $arg->{age});
}
$bweb->can_do('r_client_status');
my $b;
foreach my $client (CGI::param('client')) {
- if ($client =~ m/$client_re/) {
+ if ($client =~ $client_re) {
$client = $1;
$b = new Bconsole(pref => $conf)
unless ($b) ;
var header = new Array("Group Name", "Description", "Selection");
var data = new Array();
-var radiobox ;
+var chkbox ;
<TMPL_LOOP client_group>
-radiobox = document.createElement('INPUT');
-radiobox.type = 'radio';
-radiobox.name = 'client_group';
-radiobox.value = '<TMPL_VAR client_group_name>';
-radiobox.checked = <TMPL_IF here>1<TMPL_ELSE>0</TMPL_IF>;
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.name = 'client_group';
+chkbox.value = '<TMPL_VAR client_group_name>';
+chkbox.checked = <TMPL_IF here>1<TMPL_ELSE>0</TMPL_IF>;
data.push(
new Array( "<TMPL_VAR client_group_name>",
"<TMPL_VAR comment>",
- radiobox
+ chkbox
)
) ;
</TMPL_LOOP>
<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>
- <button type="submit" class="bp" name='action' value='client_edit' title='Client groups'> <img src='/bweb/edit.png' alt=''>Edit </button>
+ <button type="submit" class="bp" name='action' value='client_edit' title='Client groups'> <img src='/bweb/edit.png' alt=''>Edit groups </button>
</div>
</form>
var header = new Array("Group Name", "Description", "Selection");
var data = new Array();
-var radiobox ;
+var chkbox ;
<TMPL_LOOP client_group>
-radiobox = document.createElement('INPUT');
-radiobox.type = 'radio';
-radiobox.name = 'client_group';
-radiobox.value = '<TMPL_VAR client_group_name>';
-radiobox.checked = <TMPL_IF here>1<TMPL_ELSE>0</TMPL_IF>;
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.name = 'client_group';
+chkbox.value = '<TMPL_VAR client_group_name>';
+chkbox.checked = <TMPL_IF here>1<TMPL_ELSE>0</TMPL_IF>;
data.push(
new Array( "<TMPL_VAR client_group_name>",
"<TMPL_VAR comment>",
- radiobox
+ chkbox
)
) ;
</TMPL_LOOP>
<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='Mostrar estado del cliente'> <img src='/bweb/zoom.png' alt=''>Estado </button>
<button type="submit" class="bp" name='action' value='client_stats' title='EstadÃsticas del Cliente'> <img src='/bweb/chart.png' alt=''>Estado </button>
- <button type="submit" class="bp" name='action' value='client_edit' title='Client groups'> <img src='/bweb/edit.png' alt=''>Editar </button>
+ <button type="submit" class="bp" name='action' value='client_edit' title='Client groups'> <img src='/bweb/edit.png' alt=''>Edit groups </button>
</div>
</form>
var header = new Array("Group Name", "Description", "Sélection");
var data = new Array();
-var radiobox ;
+var chkbox ;
<TMPL_LOOP client_group>
-radiobox = document.createElement('INPUT');
-radiobox.type = 'radio';
-radiobox.name = 'client_group';
-radiobox.value = '<TMPL_VAR client_group_name>';
-radiobox.checked = <TMPL_IF here>1<TMPL_ELSE>0</TMPL_IF>;
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.name = 'client_group';
+chkbox.value = '<TMPL_VAR client_group_name>';
+chkbox.checked = <TMPL_IF here>1<TMPL_ELSE>0</TMPL_IF>;
data.push(
new Array( "<TMPL_VAR client_group_name>",
"<TMPL_VAR comment>",
- radiobox
+ chkbox
)
) ;
</TMPL_LOOP>
<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='Statistiques'> <img src='/bweb/zoom.png' alt=''>Statut </button>
<button type="submit" class="bp" name='action' value='client_stats' title='Statistiques'> <img src='/bweb/chart.png' alt=''>Stats </button>
- <button type="submit" class="bp" name='action' value='client_edit' title='Client groups'> <img src='/bweb/edit.png' alt=''>Modifier </button>
+ <button type="submit" class="bp" name='action' value='client_edit' title='Client groups'> <img src='/bweb/edit.png' alt=''>Edit groups </button>
</div>
</form>
+04Jan09
+ebl Fix group edition for client
03Jan09
ebl Use a special icon for Admin/Migration/Copy etc.. job
23Dec08
var header = new Array("__Group Name__", "__Description__", "__Selection__");
var data = new Array();
-var radiobox ;
+var chkbox ;
<TMPL_LOOP client_group>
-radiobox = document.createElement('INPUT');
-radiobox.type = 'radio';
-radiobox.name = 'client_group';
-radiobox.value = '<TMPL_VAR client_group_name>';
-radiobox.checked = <TMPL_IF here>1<TMPL_ELSE>0</TMPL_IF>;
+chkbox = document.createElement('INPUT');
+chkbox.type = 'checkbox';
+chkbox.name = 'client_group';
+chkbox.value = '<TMPL_VAR client_group_name>';
+chkbox.checked = <TMPL_IF here>1<TMPL_ELSE>0</TMPL_IF>;
data.push(
new Array( "<TMPL_VAR client_group_name>",
"<TMPL_VAR comment>",
- radiobox
+ chkbox
)
) ;
</TMPL_LOOP>
<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>
- <button type="submit" class="bp" name='action' value='client_edit' title='__Client groups__'> <img src='/bweb/edit.png' alt=''>__Edit__ </button>
+ <button type="submit" class="bp" name='action' value='client_edit' title='__Client groups__'> <img src='/bweb/edit.png' alt=''>__Edit groups__ </button>
</div>
</form>