HTML header
This commit is contained in:
parent
9ee81d8cd8
commit
799f209ded
|
@ -27,6 +27,16 @@ my $sth
|
|||
);
|
||||
$sth->execute();
|
||||
my $locks = $sth->fetchall_arrayref();
|
||||
|
||||
|
||||
binmode STDOUT, ":encoding(UTF-8)";
|
||||
say "<!DOCTYPE html";
|
||||
say "<html>";
|
||||
say "<head>";
|
||||
say "<meta charset='UTF-8'/>";
|
||||
say "</head>";
|
||||
say "<body>";
|
||||
|
||||
if (@$locks) {
|
||||
say "<table>";
|
||||
say "<tr>";
|
||||
|
@ -48,6 +58,9 @@ if (@$locks) {
|
|||
} else {
|
||||
say "<p>No locks \N{WHITE SMILING FACE}</p>";
|
||||
}
|
||||
say "</body>";
|
||||
say "</html>";
|
||||
exit(0);
|
||||
|
||||
sub xmlencode {
|
||||
my ($s) = @_;
|
||||
|
|
Loading…
Reference in New Issue