\n"; print &ui_buttons_start(); # Show button to list files, if possible @opts = map { [ $_->{'id'}, ($_->{'desc'} || $_->{'realhost'} || $_->{'host'}) ] } @got; if (!$pinfo[8]) { $ssel = &ui_select("server", undef, \@opts); print &ui_buttons_row("list_pack.cgi", $text{'edit_list'}, $text{'edit_listdesc'}, &ui_hidden("package", $pinfo[0]). &ui_hidden("search", $in{'search'}), $ssel); } # Show button to un-install, if possible if (!$pinfo[7]) { $ssel = &ui_select("server", undef, [ [ -1, $text{'edit_all'} ], @opts ]); print &ui_buttons_row("delete_pack.cgi", $text{'edit_uninst'}, $text{'edit_uninstdesc'}, &ui_hidden("package", $pinfo[0]). &ui_hidden("search", $in{'search'}), $ssel); } print &ui_buttons_end(); # Show hosts with the package print &ui_hr(); print &ui_subheading($text{'edit_hosts'}); @icons = map { "/servers/images/$_->{'type'}.svg" } @got; @links = map { "edit_host.cgi?id=$_->{'id'}" } @got; @titles = map { ($_->{'desc'} ? $_->{'desc'} : $_->{'realhost'} ? "$_->{'realhost'}:$_->{'port'}" : "$_->{'host'}:$_->{'port'}"). ($version{$_} ? "$text{'edit_ver'} $version{$_}" : "") } @got; &icons_table(\@links, \@titles, \@icons); print ""; &remote_finished(); if ($in{'search'}) { &ui_print_footer("search.cgi?search=$in{'search'}", $text{'search_return'}); } else { &ui_print_footer("", $text{'index_return'}); }