Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<?php
$image_dir = "./rome/small/";
$count = ( isset($_GET['pic']) ? (int)$_GET['pic'] : '000' );
$link = '<a href="./gallery.php?pic=%d">%s</a>';
$prev = ( file_exists($image_dir.'pic'. sprintf('%03d', $count - 1) .'.gif') && $count > 0 ? sprintf($link, $count - 1, 'Previous') : 'Previous' );
$next = ( file_exists($image_dir.'pic'. sprintf('%03d', $count + 1) .'.gif') ? sprintf($link, $count + 1, 'Next') : 'Next' );
?>
<html>
<head>
<title>Gallerie</title>
</head>
<body>
<p align="center"> </p>
<p align="center">Rome/Italy october 2007</p>
<p align="center"><img src="<?php echo $image_dir.'pic'.$count; ?>.gif" width="850" height="565" /></p>
<p align="center"> </p>
<div align="center">
<table width="200" border="0">
<tr>
<td><a href="<?php echo $prev; ?>">Prev</a></td>
<td><div align="right"><a href="<?php echo $next; ?>">Next</a></div></td>
</tr>
</table>
</div>
<p align="center"> </p>
</body>
</html>
?>
<?php
$image_dir = "./rome/small/";
$count = ( isset($_GET['pic']) ? (int)$_GET['pic'] : '000' );
$link = '<a href="./gallery.php?pic=%d">%s</a>';
$prev = ( file_exists($image_dir.'pic'. sprintf('%03d', $count - 1) .'.jpg') && $count > 0 ? sprintf($link, $count - 1, 'Previous') : 'Previous' );
$next = ( file_exists($image_dir.'pic'. sprintf('%03d', $count + 1) .'.jpg') ? sprintf($link, $count + 1, 'Next') : 'Next' );
?>
<html>
<head>
<title>Gallerie</title>
</head>
<body>
<p align="center"> </p>
<p align="center">Rome/Italy october 2007</p>
<p align="center"><img src="<?php echo $image_dir.'pic'.$count; ?>.gif" width="850" height="565" /></p>
<p align="center"> </p>
<div align="center">
<table width="200" border="0">
<tr>
<td>
<?php
if($prev==true)
{
echo "<a href=\"" . $image_dir . "/pic" . $count-1 . ".jpg\">Prev</a>"
}
else
{
echo "Geht nicht weiter zurück ;)";
}
?>
</td>
<td>
<?php
if($next==true)
{
echo "<a href=\"" . $image_dir . "/pic" . $count-+1 . ".jpg\">next</a>"
}
else
{
echo "Geht nicht weiter ;)";
}
?>
</td>
</tr>
</table>
</div>
<p align="center"> </p>
</body>
</html>
?>
<?php
$image_dir = "./pics/";
$count = ( isset($_GET['pic']) ? sprintf('%03d', $_GET['pic']) : '000' );
$link = '<a href="./test.php?pic=%d">%s</a>';
$prev = ( file_exists($image_dir.'pic'. sprintf('%03d', $count - 1) .'.jpg') && $count > 0 ? sprintf($link, $count - 1, 'Previous') : 'Previous' );
$next = ( file_exists($image_dir.'pic'. sprintf('%03d', $count + 1) .'.jpg') ? sprintf($link, $count + 1, 'Next') : 'Next' );
?>
<html>
<head>
<title>Gallerie</title>
</head>
<body>
<p align="center"> </p>
<p align="center">Rome/Italy october 2007</p>
<p align="center"><img src="<?php echo $image_dir.'pic'.$count; ?>.jpg" width="850" height="565" /></p>
<p align="center"> </p>
<div align="center">
<table width="200" border="0">
<tr>
<td><?php echo $prev; ?></td>
<td><div align="right"><?php echo $next; ?></div></td>
</tr>
</table>
</div>
<p align="center"> </p>
</body>
</html>
?>