Location: PHPKode > scripts > SelectaPix Image Gallery > popup.php
<?php
/* +----------------------------------------------------------------------+
   |SelectaPix Open Source Gallery	                                      |
   +----------------------------------------------------------------------+
   | Copyright (c) 2004 OutOfTheTrees			                          |
   |                                                                      |
   | http://www.outofthetrees.co.uk/index.php                             |
   | 												                      |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.0 of the GPL license,       |
   | that is bundled with this package in the file LICENSE, and is        |
   | available through the world-wide-web at the following url:           |
   | http://www.outofthetrees.co.uk/license/2_0.txt.                      |
   | If you did not receive a copy of the SelectaPix license and are 	  |
   | unable to obtain it through the world-wide-web, please send a note   |
   | to hide@address.com so we can mail you a copy immediately.|
   +----------------------------------------------------------------------+ */
require_once("includes/inc_global_fns.php");
$page = new Page($f);
$image = $f->conn->query($page->get_image_data($_GET['imageID']));
$size = GetImageSize($page->site_path.$page->img_dir.$image[0]['image_url']);
$width = $size[0];
$height = $size[1];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-gb">
<head>
<title><?php echo $image[0]['caption']; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css" media="all">@import url(assets/popup.css);</style>
</head>
<body>
<?php
	echo "<h3>".$image[0]['caption']."</h3>\n";
  	echo "<img src=\"".$page->site_url.$page->img_dir.$image[0]['image_url']."\" height=\"".$height."\" width=\"".$width."\" alt=\"".$image[0]['caption']."\" />\n";
	echo "<p>".$image[0]['description']."</p>\n";
?>
<p><a href="#" onclick="window.close();">Close window</a></p>
<p class="back">Not viewing this page in a pop-up window?<br />
<a href="index.php?albumID=<?php echo $f->util->ForceInt($_GET['albumID'], 0); ?>">
Click here to return to the previous page</a></p>
</body>
</html>
<?php
$f->Unload();
unset($f);
?>
Return current item: SelectaPix Image Gallery