#!/usr/local/bin/perl # Show form for comparing packages on multiple servers require './cluster-software-lib.pl'; &ui_print_header(undef, $text{'compare_title'}, ""); print "$text{'compare_desc'}
\n"; print &ui_form_start("compare.cgi", "post"); print "
$text{'compare_hosts'} | \n";
print &ui_radio("all", 1, [ [ 1, $text{'compare_all'} ],
[ 0, $text{'compare_sel'} ] ])," \n"; %smap = map { $_->{'id'}, $_ } &list_servers(); @sel = map { [ $_->{'id'}, &server_name($smap{$_->{'id'}}) ] } &list_software_hosts(); @groups = &servers::list_all_groups(); push(@sel, map { [ "group_".$_->{'name'}, &text('edit_group', $_->{'name'}) ] } @groups); print &ui_select("hosts", undef, \@sel, 5, 1); print " |
$text{'compare_showall'} | \n"; print &ui_radio("showall", 0, [ [ 1, $text{'compare_showall1'} ], [ 0, $text{'compare_showall0'} ] ]); print " |