Location: PHPKode > scripts > AutoSlider > autoslider/autoslider.php
<html>
<head>
<!--
*********************************************************************
AUTOSLIDER v0.9 ------------------------------------- 15 Dec 2000
      PHP script for simple automated slide presentations 
  Italian Network of Telepathology and University of Udine, Italy

Copyright (C) 2000-02  Vincenzo Della Mea, University of Udine, Italy.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (http://www.fsf.org/licenses/gpl.html)
as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.


*********************************************************************
-->

<title>
AutoSlider
</title>
<style type="text/css">
//<!--
body {  font-family: Arial, Helvetica, sans-serif; font-size: 12pt; background-color:white; color:blue;}
th   {  font-family: Arial, Helvetica,
sans-serif; font-size: 10pt; font-weight: bold; background-color: #D3DCE3;}
td   {  font-family: Arial, Helvetica, sans-serif; font-size: 12pt;}
form   {  font-family: Arial, Helvetica, sans-serif; font-size: 12pt}
h1   {  font-family: Verdana, Arial, Helvetica,
sans-serif; font-size: 18pt; font-weight: bold}
h2   {  font-family: Verdana, Arial, Helvetica,
sans-serif; font-size: 14pt; font-weight: bold}
a:link    {  font-family: Arial, Helvetica,
sans-serif; font-size: 12pt; text-decoration: none; color: blue}
a:visited {  font-family: Arial, Helvetica,
sans-serif; font-size: 12pt; text-decoration: none; color: blue}
a:hover   {  font-family: Arial, Helvetica,
sans-serif; font-size: 12pt; text-decoration: underline; color: red}
a:link.nav {  font-family: Verdana, Arial, Helvetica,
sans-serif; color: #000000}
a:visited.nav {  font-family: Verdana, Arial, Helvetica,
sans-serif; color: #000000}
a:hover.nav {  font-family: Verdana, Arial, Helvetica,
sans-serif; color: red;}
.nav {  font-family: Verdana, Arial, Helvetica,
sans-serif; color: #000000}
.small { font-size:small;}
//-->
</style>

</head>
<body>

<?php
// Please set the below variable with your specific address
$slidebase="http://www.telemed.uniud.it/slides/";

if (!isset($presentation)) die('No presentation specified</body></html>');
$u = $slidebase . $presentation . "/";
include($u . "conf.inc");

if (!isset($imagetype)) $imagetype = ".jpg";
if (!isset($last)) $last = 999999;
if (!isset($n)) {
	$n = 1;
	$prev = 1;
}
else $prev = $n-1;
$next = $n+1;
if ($next > $last) $next = $next - 1;
$urlnext = "$PHP_SELF?presentation=$presentation&n=$next&last=$last";
$urlprev = "$PHP_SELF?presentation=$presentation&n=$prev&last=$last";
$urlstart = "$PHP_SELF?presentation=$presentation&n=1&last=$last";
$img = $u . $n . $imagetype;
?>

<table border="2">
<tr>
<td align="left"><h1><?php echo $title ?></h1></td>
<td align="center">
<span class="small"><?php echo $author ?></span>
</td>

<td align="right">
<a href="<?php echo $urlprev ?>">
<img src="asg/prev.gif" alt="Previous" title="Previous slide" /></a>
<b><?php echo $n ?></b>
<a href="<?php echo $urlnext ?>"><img src="asg/next.gif" alt="Next"
title="Next slide" /></a>
<a href="<?php echo $urlstart ?>"><img src="asg/start.gif" alt="Start"
title="Start" /></a>
<a href="<?php echo $homepage ?>"><img src="asg/home.gif" alt="Home"
title="Go to home page"  /></a>
</td>
</tr>
<tr>
<td colspan="3" align="center">
<img src = "<?php echo $img ?>" />
</td>
</tr>
<tr>
<td colspan="3" align="center"><a
href="<?php echo $homepage ?>"><?php echo $homename ?></a></td></tr>
</table>
</body>
</html>


Return current item: AutoSlider