/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/widgets/ImageThumbnailWidget.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/widgets/ImageThumbnailWidget.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jonen, Thu Jan 30 03:29:44 2003 UTC revision 1.2 by jonen, Sat Feb 22 21:08:23 2003 UTC
# Line 406  class ImageThumbnailWidget extends BaseW Line 406  class ImageThumbnailWidget extends BaseW
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;
# Line 450  class ImageThumbnailWidget extends BaseW Line 450  class ImageThumbnailWidget extends BaseW
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
# Line 460  class ImageThumbnailWidget extends BaseW Line 460  class ImageThumbnailWidget extends BaseW
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
# Line 470  class ImageThumbnailWidget extends BaseW Line 470  class ImageThumbnailWidget extends BaseW
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
# Line 480  class ImageThumbnailWidget extends BaseW Line 480  class ImageThumbnailWidget extends BaseW
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;
# Line 698  class ImageThumbnailWidget extends BaseW Line 698  class ImageThumbnailWidget extends BaseW
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  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed