From bc184315aec2f54c2da20dbea2d80761b29504d5 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Thu, 17 Apr 2008 01:02:33 +0200 Subject: Added dynamic screenshot functionality. The new page in german is now functionaly complete. A content review needs to be done now. --- doc/web/homepage/page-php-classes.inc | 64 +++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 doc/web/homepage/page-php-classes.inc (limited to 'doc/web/homepage/page-php-classes.inc') diff --git a/doc/web/homepage/page-php-classes.inc b/doc/web/homepage/page-php-classes.inc new file mode 100644 index 0000000..7ad2341 --- /dev/null +++ b/doc/web/homepage/page-php-classes.inc @@ -0,0 +1,64 @@ +title = $title; + $this->vers_string = $vname; + $this->vers_number = $vnum; + $this->datefmt = $datefmt; + } +} + + +class Menu +{ + var $urls; + + function Menu($entries) + { + $this->urls = $entries; + } +} + + +class Screenshots +{ + var $images; + + function Screenshots($imgNames) + { + $this->images = $imgNames; + } + + function RandomImg() + { + $idx = array_rand($this->images); + $this->MakeAnchor($this->images[$idx]); + } + + + function AllImg() + { + foreach($this->images as $img) { + $this->MakeAnchor($img); + } + } + + function MakeAnchor($img) + { + echo "\"$img\"/\n"; + } + + function FullImage($img) + { + $img = basename($img); + echo "\"img/${img}.jpg\"/\n"; + } +} +?> -- cgit v1.2.3