diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2008-04-17 01:02:33 +0200 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2008-04-17 01:02:33 +0200 |
commit | bc184315aec2f54c2da20dbea2d80761b29504d5 (patch) | |
tree | 5976f8ec4355ec309bd6f3c3739fad292fd92182 | |
parent | ec470074557ed3c6aa486e3a6ae12e537cdfff68 (diff) | |
download | vdr-plugin-live-bc184315aec2f54c2da20dbea2d80761b29504d5.tar.gz vdr-plugin-live-bc184315aec2f54c2da20dbea2d80761b29504d5.tar.bz2 |
Added dynamic screenshot functionality.
The new page in german is now functionaly complete.
A content review needs to be done now.
-rw-r--r-- | doc/web/homepage/de/download.php | 5 | ||||
-rw-r--r-- | doc/web/homepage/de/index.php | 6 | ||||
-rw-r--r-- | doc/web/homepage/de/install_0-1-0.inc | 12 | ||||
-rw-r--r-- | doc/web/homepage/de/install_0-2-0.inc | 12 | ||||
-rw-r--r-- | doc/web/homepage/de/install_devel.inc | 12 | ||||
-rw-r--r-- | doc/web/homepage/de/news.php | 5 | ||||
-rw-r--r-- | doc/web/homepage/de/screenshots.php | 16 | ||||
-rw-r--r-- | doc/web/homepage/de/settings-de.inc | 43 | ||||
-rw-r--r-- | doc/web/homepage/page-php-classes.inc | 64 |
9 files changed, 130 insertions, 45 deletions
diff --git a/doc/web/homepage/de/download.php b/doc/web/homepage/de/download.php index f87450c..0a8ade1 100644 --- a/doc/web/homepage/de/download.php +++ b/doc/web/homepage/de/download.php @@ -5,7 +5,10 @@ <?php include ("../html-header.inc") ?> </head> <body> - <?php include ("settings-de.inc"); ?> + <?php + include ("../page-php-classes.inc"); + include ("settings-de.inc"); + ?> <div class="page_header"> <?php include ("../page-header.inc"); ?> </div> diff --git a/doc/web/homepage/de/index.php b/doc/web/homepage/de/index.php index 03aecd7..f58d202 100644 --- a/doc/web/homepage/de/index.php +++ b/doc/web/homepage/de/index.php @@ -5,7 +5,10 @@ <?php include ("../html-header.inc") ?> </head> <body> - <?php include ("settings-de.inc"); ?> + <?php + include ("../page-php-classes.inc"); + include ("settings-de.inc"); + ?> <div class="page_header"> <?php include ("../page-header.inc"); ?> </div> @@ -19,6 +22,7 @@ <a name="about"></a> <div class="boxheader"><div><div>Über LIVE</div></div></div> <div style="border: 1px solid black; padding: 0px 10px"> + <div class="screenshots" style="float: right; border: 0; padding-top: 15px"><?php $screenshots->RandomImg(); ?></div> <p> LIVE, das <strong><em>LIVE Interactive VDR Environment</em></strong>, ermöglicht die komfortable Bedienung des VDR und mancher seiner Plugins diff --git a/doc/web/homepage/de/install_0-1-0.inc b/doc/web/homepage/de/install_0-1-0.inc index 389c8dd..04cef78 100644 --- a/doc/web/homepage/de/install_0-1-0.inc +++ b/doc/web/homepage/de/install_0-1-0.inc @@ -7,6 +7,12 @@ <td><div class="withmargin">URL</div></td> </tr> <tr> + <td><div class="withmargin">VDR</td> + <td><div class="withmargin">1.4.3</td> + <td><div class="withmargin"><= 1.5.7</td> + <td><div class="withmargin"><a href="http://www.cadsoft.de/vdr/download.htm">http://www.cadsoft.de/vdr/download.htm</a></div></td> + </tr> + <tr> <td><div class="withmargin">Tntnet</div></td> <td><div class="withmargin">1.5.3</div></td> <td><div class="withmargin">>= 1.5.3</div></td> @@ -19,12 +25,6 @@ <td><div class="withmargin"><a href="http://www.tntnet.org/download.html">http://www.tntnet.org/download.html</a></div></td> </tr> <tr> - <td><div class="withmargin">VDR</td> - <td><div class="withmargin">1.4.3</td> - <td><div class="withmargin">>= 1.4.7</td> - <td><div class="withmargin"><a href="http://www.cadsoft.de/vdr/download.htm">http://www.cadsoft.de/vdr/download.htm</a></div></td> - </tr> - <tr> <td><div class="withmargin">boost</div></td> <td><div class="withmargin">1.32.0</div></td> <td><div class="withmargin"></div></td> diff --git a/doc/web/homepage/de/install_0-2-0.inc b/doc/web/homepage/de/install_0-2-0.inc index 083bb8b..eeb997c 100644 --- a/doc/web/homepage/de/install_0-2-0.inc +++ b/doc/web/homepage/de/install_0-2-0.inc @@ -7,6 +7,12 @@ <td><div class="withmargin">URL</div></td> </tr> <tr> + <td><div class="withmargin">VDR</td> + <td><div class="withmargin">1.4.0</td> + <td><div class="withmargin">>= 1.4.7</td> + <td><div class="withmargin"><a href="http://www.cadsoft.de/vdr/download.htm">http://www.cadsoft.de/vdr/download.htm</a></div></td> + </tr> + <tr> <td><div class="withmargin">Tntnet</div></td> <td><div class="withmargin">1.5.3</div></td> <td><div class="withmargin">>= 1.6.1</div></td> @@ -18,12 +24,6 @@ <td><div class="withmargin">>= 1.4.7</div></td> <td><div class="withmargin"><a href="http://www.tntnet.org/download.html">http://www.tntnet.org/download.html</a></div></td> </tr> - <tr> - <td><div class="withmargin">VDR</td> - <td><div class="withmargin">1.4.0</td> - <td><div class="withmargin">>= 1.4.7</td> - <td><div class="withmargin"><a href="http://www.cadsoft.de/vdr/download.htm">http://www.cadsoft.de/vdr/download.htm</a></div></td> - </tr> <tr class="spacer"> <td colspan="4"></td> </tr> diff --git a/doc/web/homepage/de/install_devel.inc b/doc/web/homepage/de/install_devel.inc index 083bb8b..eeb997c 100644 --- a/doc/web/homepage/de/install_devel.inc +++ b/doc/web/homepage/de/install_devel.inc @@ -7,6 +7,12 @@ <td><div class="withmargin">URL</div></td> </tr> <tr> + <td><div class="withmargin">VDR</td> + <td><div class="withmargin">1.4.0</td> + <td><div class="withmargin">>= 1.4.7</td> + <td><div class="withmargin"><a href="http://www.cadsoft.de/vdr/download.htm">http://www.cadsoft.de/vdr/download.htm</a></div></td> + </tr> + <tr> <td><div class="withmargin">Tntnet</div></td> <td><div class="withmargin">1.5.3</div></td> <td><div class="withmargin">>= 1.6.1</div></td> @@ -18,12 +24,6 @@ <td><div class="withmargin">>= 1.4.7</div></td> <td><div class="withmargin"><a href="http://www.tntnet.org/download.html">http://www.tntnet.org/download.html</a></div></td> </tr> - <tr> - <td><div class="withmargin">VDR</td> - <td><div class="withmargin">1.4.0</td> - <td><div class="withmargin">>= 1.4.7</td> - <td><div class="withmargin"><a href="http://www.cadsoft.de/vdr/download.htm">http://www.cadsoft.de/vdr/download.htm</a></div></td> - </tr> <tr class="spacer"> <td colspan="4"></td> </tr> diff --git a/doc/web/homepage/de/news.php b/doc/web/homepage/de/news.php index 9ee2a2e..3c96aef 100644 --- a/doc/web/homepage/de/news.php +++ b/doc/web/homepage/de/news.php @@ -5,7 +5,10 @@ <?php include ("../html-header.inc") ?> </head> <body> - <?php include ("settings-de.inc"); ?> + <?php + include ("../page-php-classes.inc"); + include ("settings-de.inc"); + ?> <div class="page_header"> <?php include ("../page-header.inc"); ?> </div> diff --git a/doc/web/homepage/de/screenshots.php b/doc/web/homepage/de/screenshots.php index 154daa5..2c1dac2 100644 --- a/doc/web/homepage/de/screenshots.php +++ b/doc/web/homepage/de/screenshots.php @@ -5,7 +5,10 @@ <?php include ("../html-header.inc") ?> </head> <body> - <?php include ("settings-de.inc"); ?> + <?php + include ("../page-php-classes.inc"); + include ("settings-de.inc"); + ?> <div class="page_header"> <?php include ("../page-header.inc"); ?> </div> @@ -16,9 +19,17 @@ <div class="inhalt"> <div style="width: 800px; margin-top: 15px"> - <a name="screenshots"></a> <div class="boxheader"><div><div>Screenshots</div></div></div> <div class="screenshots"> + <?php + if (isset($_GET["img"])) { + $screenshots->FullImage($_GET["img"]); + } + else { + $screenshots->AllImg(); + } + ?> +<!-- <a href="img/whatson.jpg"><img src="img/whatson_thumb.jpg" alt="whats on"></img></a> <a href="img/schedule.jpg"><img src="img/schedule_thumb.jpg" alt="whats on"></img></a> <a href="img/timers.jpg"><img src="img/timers_thumb.jpg" alt="whats on"></img></a> @@ -27,6 +38,7 @@ <a href="img/recordings.jpg"><img src="img/recordings_thumb.jpg" alt="whats on"></img></a> <a href="img/remote.jpg"><img src="img/remote_thumb.jpg" alt="whats on"></img></a> <a href="img/setup.jpg"><img src="img/setup_thumb.jpg" alt="whats on"></img></a> +--> </div> </div> diff --git a/doc/web/homepage/de/settings-de.inc b/doc/web/homepage/de/settings-de.inc index 67e6440..eb1c606 100644 --- a/doc/web/homepage/de/settings-de.inc +++ b/doc/web/homepage/de/settings-de.inc @@ -1,24 +1,23 @@ - <?php - // Settings for german version: -class Status { - var $title = "LIVE Plugin Status"; - var $vers_string = "Aktuelle stabile Version"; - var $vers_number = "0.2.0"; - var $datefmt = "d.m.Y"; -} +<?php + // Settings for german version: +$status = new Status("LIVE Plugin Status", + "Aktuelle stabile Version", + "0.2.0", + "d.m.Y"); -$status = new Status; +$menu = new Menu(array("index.php" => "Über Live", + "news.php" => "Neuerungen", + "download.php" => "Download", + "screenshots.php" => "Screenshots", + "index.php#links" => "Links und Kontakt" + )); -class Menu { - var $urls = array( - "index.php" => "Über Live", - "news.php" => "Neuerungen", - "download.php" => "Download", - "screenshots.php" => "Screenshots", - "index.php#links" => "Links und Kontakt" - ); -} - -$menu = new Menu; - - ?> +$screenshots = new Screenshots(array("whatson", + "schedule", + "timers", + "searchepg", + "edit_searchtimer", + "recordings", + "remote", + "setup")); +?> 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 @@ +<?php +class Status +{ + var $title; + var $vers_string; + var $vers_number; + var $datefmt; + + function Status($title, $vname, $vnum, $datefmt) + { + $this->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 "<a href=\"screenshots.php?img=$img\"><img src=\"img/${img}_thumb.jpg\" alt=\"$img\"/></a>\n"; + } + + function FullImage($img) + { + $img = basename($img); + echo "<a href=\"screenshots.php\"><img src=\"img/${img}.jpg\" alt=\"img/${img}.jpg\"/ style=\"width: 770px\"></a>\n"; + } +} +?> |