tidy appdb html to make it validate - try 4

This commit is contained in:
Jeff Zaroyko
2008-02-23 12:06:24 +11:00
committed by Chris Morgan
parent ccbc842d5c
commit 16949bb71c
50 changed files with 414 additions and 411 deletions

View File

@@ -141,8 +141,8 @@ function html_imagebutton($text, $url, $extra = "")
static $i = 1;
$i++;
$img1 = apidb_url("util/button.php?text=".urlencode($text)."&pressed=0");
$img2 = apidb_url("util/button.php?text=".urlencode($text)."&pressed=1");
$img1 = apidb_url("util/button.php?text=".urlencode($text)."&pressed=0");
$img2 = apidb_url("util/button.php?text=".urlencode($text)."&pressed=1");
$java = "onMouseDown = 'document.img$i.src = \"$img2\"; return true;' ";
$java .= "onMouseUp = 'document.img$i.src = \"$img1\"; return true;' ";
@@ -238,7 +238,7 @@ function html_back_link($howmany = 1, $url = "")
{
$url = 'javascript:history.back('.$howmany.');';
}
return '<p>&nbsp;&nbsp; <a href="'.$url.'">&lt;&lt; Back</a></p>'."\n";
return '<p>&nbsp;&nbsp; <a href="'.htmlentities($url).'">&lt;&lt; Back</a></p>'."\n";
}