--- nfo/php/libs/com.newsblob.phphtmllib/widgets/ImageThumbnailWidget.inc 2003/01/30 03:29:44 1.1.1.1
+++ nfo/php/libs/com.newsblob.phphtmllib/widgets/ImageThumbnailWidget.inc 2004/05/06 16:27:41 1.4
@@ -3,7 +3,7 @@
/**
* This contains the ImageThumbnailTable widget
*
- * $Id: ImageThumbnailWidget.inc,v 1.1.1.1 2003/01/30 03:29:44 jonen Exp $
+ * $Id: ImageThumbnailWidget.inc,v 1.4 2004/05/06 16:27:41 jonen Exp $
*
* @author Walter A. Boring IV
* @package phpHtmlLib
@@ -406,7 +406,7 @@
$img = html_img($filename, $this->_thumb_width, $this->_thumb_height);
$link = $this->_urldir . "/" . $file;
- $a = html_a($link, $img, "treenavnormal");
+ $a = html_a(htmlentities($link), $img, "treenavnormal");
$td = new TDtag( array("align" => "left"), $a);
return $td;
@@ -450,7 +450,7 @@
$container->add("FIRST");
} else {
//we aren't on the first page.
- $container->add( html_a($base_url."&".$this->_offsetVar."=0", "FIRST") );
+ $container->add( html_a(htmlentities($base_url."&".$this->_offsetVar."=0"), "FIRST", "thumblink") );
}
//render the "prev" link
@@ -460,7 +460,7 @@
} else {
//we aren't on the first page.
$page = $offset - 1;
- $container->add( html_a($base_url."&".$this->_offsetVar."=$page", "PREV") );
+ $container->add( html_a(htmlentities($base_url."&".$this->_offsetVar."=$page"), "PREV", "thumblink") );
}
//Render the "next" link
@@ -470,7 +470,7 @@
} else {
//we aren't on the first page.
$page = $offset + 1;
- $container->add( html_a($base_url."&".$this->_offsetVar."=$page", "NEXT"));
+ $container->add( html_a(htmlentities($base_url."&".$this->_offsetVar."=$page"), "NEXT", "thumblink"));
}
//Render the "Last" link
@@ -480,7 +480,7 @@
} else {
//we aren't on the first page.
$page = $num_pages - 1;
- $container->add( html_a($base_url."&".$this->_offsetVar."=$page", "LAST"));
+ $container->add( html_a(htmlentities($base_url."&".$this->_offsetVar."=$page"), "LAST", "thumblink"));
}
return $container;
@@ -698,30 +698,30 @@
class ImageThumbnailWidgetCSS extends CSSBuilder {
function user_setup() {
- $this->add_entry("#imagethumbnail", NULL,
+ $this->add_entry(".imagethumbnail", "",
array("margin" => "0px 0px 0px 0px",
"font-family" => "arial, helvetica, sans-serif",
"font-size" => "10pt",
"border" => "1px solid #999999") );
- $this->add_entry("#imagethumbnail", "legend",
+ $this->add_entry(".imagethumbnail", "legend",
array("font-size" => "10pt",
"font-weight" => "bold",
"color" => "#000000"));
- $this->add_entry("#imagethumbnail", "a:active,a:link,a:visited",
+ $this->add_entry(".imagethumbnail", "a.thumblink:active,a.thumblink:link,a.thumblink:visited",
array("font-size" => "10pt",
"font-weight" => "bold",
"color" => "#999999",
"background" => "#FFFFFF"));
- $this->add_entry("#imagethumbnail", "a:hover",
+ $this->add_entry(".imagethumbnail", "a.thumblink:hover",
array("font-size" => "10pt",
"font-weight" => "bold",
"color" => "#4141FF",
"background" => "#eeeeee",
"text-decoration" => "none"));
- $this->add_entry("#imagethumbnail", "table",
+ $this->add_entry(".imagethumbnail", "table",
array("padding-left" => "5px"));
}
}