| 406 |
$img = html_img($filename, $this->_thumb_width, $this->_thumb_height); |
$img = html_img($filename, $this->_thumb_width, $this->_thumb_height); |
| 407 |
|
|
| 408 |
$link = $this->_urldir . "/" . $file; |
$link = $this->_urldir . "/" . $file; |
| 409 |
$a = html_a($link, $img, "treenavnormal"); |
$a = html_a(htmlentities($link), $img, "treenavnormal"); |
| 410 |
|
|
| 411 |
$td = new TDtag( array("align" => "left"), $a); |
$td = new TDtag( array("align" => "left"), $a); |
| 412 |
return $td; |
return $td; |
| 450 |
$container->add("FIRST"); |
$container->add("FIRST"); |
| 451 |
} else { |
} else { |
| 452 |
//we aren't on the first page. |
//we aren't on the first page. |
| 453 |
$container->add( html_a($base_url."&".$this->_offsetVar."=0", "FIRST") ); |
$container->add( html_a(htmlentities($base_url."&".$this->_offsetVar."=0"), "FIRST", "thumblink") ); |
| 454 |
} |
} |
| 455 |
|
|
| 456 |
//render the "prev" link |
//render the "prev" link |
| 460 |
} else { |
} else { |
| 461 |
//we aren't on the first page. |
//we aren't on the first page. |
| 462 |
$page = $offset - 1; |
$page = $offset - 1; |
| 463 |
$container->add( html_a($base_url."&".$this->_offsetVar."=$page", "PREV") ); |
$container->add( html_a(htmlentities($base_url."&".$this->_offsetVar."=$page"), "PREV", "thumblink") ); |
| 464 |
} |
} |
| 465 |
|
|
| 466 |
//Render the "next" link |
//Render the "next" link |
| 470 |
} else { |
} else { |
| 471 |
//we aren't on the first page. |
//we aren't on the first page. |
| 472 |
$page = $offset + 1; |
$page = $offset + 1; |
| 473 |
$container->add( html_a($base_url."&".$this->_offsetVar."=$page", "NEXT")); |
$container->add( html_a(htmlentities($base_url."&".$this->_offsetVar."=$page"), "NEXT", "thumblink")); |
| 474 |
} |
} |
| 475 |
|
|
| 476 |
//Render the "Last" link |
//Render the "Last" link |
| 480 |
} else { |
} else { |
| 481 |
//we aren't on the first page. |
//we aren't on the first page. |
| 482 |
$page = $num_pages - 1; |
$page = $num_pages - 1; |
| 483 |
$container->add( html_a($base_url."&".$this->_offsetVar."=$page", "LAST")); |
$container->add( html_a(htmlentities($base_url."&".$this->_offsetVar."=$page"), "LAST", "thumblink")); |
| 484 |
} |
} |
| 485 |
|
|
| 486 |
return $container; |
return $container; |
| 698 |
class ImageThumbnailWidgetCSS extends CSSBuilder { |
class ImageThumbnailWidgetCSS extends CSSBuilder { |
| 699 |
|
|
| 700 |
function user_setup() { |
function user_setup() { |
| 701 |
$this->add_entry("#imagethumbnail", NULL, |
$this->add_entry(".imagethumbnail", "", |
| 702 |
array("margin" => "0px 0px 0px 0px", |
array("margin" => "0px 0px 0px 0px", |
| 703 |
"font-family" => "arial, helvetica, sans-serif", |
"font-family" => "arial, helvetica, sans-serif", |
| 704 |
"font-size" => "10pt", |
"font-size" => "10pt", |
| 705 |
"border" => "1px solid #999999") ); |
"border" => "1px solid #999999") ); |
| 706 |
|
|
| 707 |
$this->add_entry("#imagethumbnail", "legend", |
$this->add_entry(".imagethumbnail", "legend", |
| 708 |
array("font-size" => "10pt", |
array("font-size" => "10pt", |
| 709 |
"font-weight" => "bold", |
"font-weight" => "bold", |
| 710 |
"color" => "#000000")); |
"color" => "#000000")); |
| 711 |
|
|
| 712 |
$this->add_entry("#imagethumbnail", "a:active,a:link,a:visited", |
$this->add_entry(".imagethumbnail", "a.thumblink:active,a.thumblink:link,a.thumblink:visited", |
| 713 |
array("font-size" => "10pt", |
array("font-size" => "10pt", |
| 714 |
"font-weight" => "bold", |
"font-weight" => "bold", |
| 715 |
"color" => "#999999", |
"color" => "#999999", |
| 716 |
"background" => "#FFFFFF")); |
"background" => "#FFFFFF")); |
| 717 |
|
|
| 718 |
$this->add_entry("#imagethumbnail", "a:hover", |
$this->add_entry(".imagethumbnail", "a.thumblink:hover", |
| 719 |
array("font-size" => "10pt", |
array("font-size" => "10pt", |
| 720 |
"font-weight" => "bold", |
"font-weight" => "bold", |
| 721 |
"color" => "#4141FF", |
"color" => "#4141FF", |
| 722 |
"background" => "#eeeeee", |
"background" => "#eeeeee", |
| 723 |
"text-decoration" => "none")); |
"text-decoration" => "none")); |
| 724 |
$this->add_entry("#imagethumbnail", "table", |
$this->add_entry(".imagethumbnail", "table", |
| 725 |
array("padding-left" => "5px")); |
array("padding-left" => "5px")); |
| 726 |
} |
} |
| 727 |
} |
} |