1 |
diff -ru e-smith-hosts-1.14.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/hostentries.pm work+patched/e-smith-hosts-1.14.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/hostentries.pm |
2 |
--- e-smith-hosts-1.14.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/hostentries.pm 2006-06-22 11:01:11.000000000 -0400 |
3 |
+++ work+patched/e-smith-hosts-1.14.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/hostentries.pm 2006-06-22 11:05:18.000000000 -0400 |
4 |
@@ -135,20 +135,20 @@ |
5 |
return undef; |
6 |
} |
7 |
|
8 |
- print $q->start_table ({-CLASS => "sme-noborders"}),"\n"; |
9 |
- print $q->start_Tr,"\n"; |
10 |
- print $q->start_table ({-CLASS => "sme-border"}),"\n"; |
11 |
- |
12 |
- print $self->localise('ADD_HOSTNAME'); |
13 |
+ print $q->start_Tr,"<td>",$q->start_table ({-CLASS => "sme-noborders"}),"\n"; |
14 |
+ print $q->start_Tr,"<td>",$self->localise('ADD_HOSTNAME'),"</td>",$q->end_Tr,"\n"; |
15 |
|
16 |
my $hosts_db = esmith::HostsDB->open(); |
17 |
|
18 |
foreach my $d (@{$self->domains_list()}) |
19 |
{ |
20 |
+ print $q->start_Tr,"<td>","\n"; |
21 |
print $q->h3($self->localise('CURRENT_HOSTNAMES_FOR_DOMAIN', {domain => $d})),"\n"; |
22 |
+ print "</td>",$q->end_Tr,"\n"; |
23 |
|
24 |
if (my @hosts = $hosts_db->get_hosts_by_domain($d)) |
25 |
{ |
26 |
+ print $q->start_Tr,"<td>\n",$q->start_table ({-CLASS => "sme-border"}),"\n"; |
27 |
print $q->Tr (esmith::cgi::genSmallCell($q, $self->localise('HOSTNAME'),"header"), |
28 |
esmith::cgi::genSmallCell($q, $self->localise('LOCATION'),"header"), |
29 |
esmith::cgi::genSmallCell($q, $self->localise('IP_ADDRESS'),"header"), |
30 |
@@ -156,12 +156,16 @@ |
31 |
esmith::cgi::genSmallCell($q, $self->localise('ACTION'),"header",2)); |
32 |
$self->print_host_row($_) foreach @hosts; |
33 |
print $q->end_table, "\n"; |
34 |
+ print "</td>",$q->end_Tr,"\n"; |
35 |
} |
36 |
else |
37 |
{ |
38 |
+ print $q->start_Tr,"<td>\n"; |
39 |
print $self->localise('NO_HOSTS_FOR_THIS_DOMAIN'); |
40 |
+ print "</td>",$q->end_Tr,"\n"; |
41 |
} |
42 |
} |
43 |
+ print $q->end_table,"\n"; |
44 |
return undef; |
45 |
} |
46 |
|