Skip to content

Commit 5af3c70

Browse files
committed
make output of webDescription() valid HTML5
1 parent e906394 commit 5af3c70

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/nusoap.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5520,7 +5520,7 @@ function webDescription()
55205520
$PHP_SELF = '';
55215521
}
55225522

5523-
$b = '
5523+
$b = '<!DOCTYPE html>
55245524
<html><head><title>NuSOAP: ' . $this->serviceName . '</title>
55255525
<style type="text/css">
55265526
body { font-family: arial; color: #000000; background-color: #ffffff; margin: 0px 0px 0px 0px; }
@@ -5541,12 +5541,11 @@ function webDescription()
55415541
padding-top: 10px; padding-bottom: 10px;}
55425542
.hidden {
55435543
position: absolute; visibility: hidden; z-index: 200; left: 250px; top: 100px;
5544-
font-family: arial; overflow: hidden; width: 600;
5545-
padding: 20px; font-size: 10px; background-color: #999999;
5546-
layer-background-color:#FFFFFF; }
5547-
a,a:active { color: charcoal; font-weight: bold; }
5544+
font-family: arial; overflow: hidden; width: 600px;
5545+
padding: 20px; font-size: 10px; background-color: #999999; }
5546+
a,a:active { color: #36454f; font-weight: bold; }
55485547
a:visited { color: #666666; font-weight: bold; }
5549-
a:hover { color: cc3300; font-weight: bold; }
5548+
a:hover { color: #cc3300; font-weight: bold; }
55505549
</style>
55515550
<script language="JavaScript" type="text/javascript">
55525551
<!--
@@ -5604,13 +5603,13 @@ function popout(){ // Hides message
56045603
Click on an operation name to view it&apos;s details.</p>
56055604
<ul>';
56065605
foreach ($this->getOperations() as $op => $data) {
5607-
$b .= "<li><a href='#' onclick=\"popout();popup('$op')\">$op</a></li>";
5606+
$b .= "<li><a href='#' onclick=\"popout();popup('$op')\">$op</a>";
56085607
// create hidden div
56095608
$b .= "<div id='$op' class='hidden'>
5610-
<a href='#' onclick='popout()'><font color='#ffffff'>Close</font></a><br><br>";
5609+
<a href='#' onclick='popout()'><span style=\"color: #ffffff\">Close</span></a><br><br>";
56115610
foreach ($data as $donnie => $marie) { // loop through opdata
56125611
if ($donnie == 'input' || $donnie == 'output') { // show input/output data
5613-
$b .= "<font color='white'>" . ucfirst($donnie) . ':</font><br>';
5612+
$b .= '<span style="color: white">' . ucfirst($donnie) . ':</span><br>';
56145613
foreach ($marie as $captain => $tenille) { // loop through data
56155614
if ($captain == 'parts') { // loop thru parts
56165615
$b .= "&nbsp;&nbsp;$captain:<br>";
@@ -5624,13 +5623,13 @@ function popout(){ // Hides message
56245623
}
56255624
}
56265625
} else {
5627-
$b .= "<font color='white'>" . ucfirst($donnie) . ":</font> $marie<br>";
5626+
$b .= '<span style="color: white">' . ucfirst($donnie) . ":</span> $marie<br>";
56285627
}
56295628
}
5630-
$b .= '</div>';
5629+
$b .= '</div></li>';
56315630
}
56325631
$b .= '
5633-
<ul>
5632+
</ul>
56345633
</div>
56355634
</div></body></html>';
56365635
return $b;

0 commit comments

Comments
 (0)