Location: PHPKode > projects > ZitPG (Zoom It! Photo Gallery) > zitpg_v0.04/popup_photo.php
<?php

	/*---------------------------------------------------------*\
	 | ZitPG v0.04                                             |
	 | http://zoomit.vertigoproject.net                        |
	 +---------------------------------------------------------+
	 | Copyright©2004|2005 Aldemar Bernal                      |
	 | hide@address.com                              |
	 +---------------------------------------------------------+
	 | License                                                 |
	 |                                                         |
	 | This program is an open source project and you can use  |
	 | or distribute it in your website but always keeping its |
	 | original copyright information and license.             |
	 |                                                         |
	 | If you want to know more about this license, please     |
	 | refer to the license.txt file or go to the official     |
	 | LGPL Website http://www.gnu.org/licenses/lgpl.txt       |
	 +---------------------------------------------------------+
	 | File: popup_photo.php                                   |
	 | Description: Shows a photo in full size.                |
	\*---------------------------------------------------------*/


	include_once('configuration.php');
	include_once('classes/db_based_class.php');
	include_once('classes/db_based_interface.php');
	include_once('classes/album_comment.php');
	include_once('classes/album.php');
    include_once('classes/news.php');
    include_once('classes/news_comment.php');
	include_once('classes/photo_comment.php');
	include_once('classes/photo_rating.php');
	include_once('classes/photo.php');
	include_once('classes/user.php');


	$i_photo = new photo($_GET["id_photo"]);
	$i_album = $i_photo->get_album();

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>:: Zoom It! :: <?php echo $i_photo->name; ?> : <?php echo $i_album->name; ?></title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<style type="text/css">
			<!--
			body {
				margin-left: 1px;
				margin-top: 5px;
				margin-right: 1px;
				margin-bottom: 1px;
				background-color: #000000;
				background-image: url(media/site/loading.gif);
				background-position: center;
				background-repeat: no-repeat;
			}
			-->
		</style>
	    <script language="JavaScript" type="text/JavaScript">
			<!--
			function MM_findObj(n, d) { //v4.01
			  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
				d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
			  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
			  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
			  if(!x && d.getElementById) x=d.getElementById(n); return x;
			}
			
			function MM_changeProp(objName,x,theProp,theValue) { //v6.0
			  var obj = MM_findObj(objName);
			  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
				if (theValue == true || theValue == false)
				  eval("obj."+theProp+"="+theValue);
				else eval("obj."+theProp+"='"+theValue+"'");
			  }
			}
			//-->
        </script>
	</head>
	<body onLoad="window.resizeTo(<?php echo $i_photo->get_photo_width() + 45; ?>,<?php echo $i_photo->get_photo_height() + 100; ?>)">
		<div align="center">
			<img align="absmiddle" src="<?php echo $i_photo->photo_url; ?>" alt="<?php echo $i_photo->name; ?>" name="photo" width="<?php echo $i_photo->get_photo_width(); ?>" height="<?php echo $i_photo->get_photo_height(); ?>" id="photo" onClick="//MM_changeProp('photo','','src','abdc.jpg','IMG')">
		</div>
	</body>
</html>
Return current item: ZitPG (Zoom It! Photo Gallery)