<?php
include "manager/conn.php";
include "photogallery_function.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Heron's Walk : Property Pictures</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript" src="js.js"></script>
<SCRIPT LANGUAGE="JavaScript">
function openSWIN()
{
popwin = open("",'NewWin','height=500,width=700,toolbars=no,menubar=no,scrollbars=no') 
}
</script>
</head>
<body>
<div id="main">
<div id="top">
<img src="images/index_08.png" width="850" height="17" alt=""/>
</div>
<div id="wrapper">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="250" id="left">
<?php include "left_menu.php";?>
       </td>
     <td width="530" id="right">
     <!--flash area -->   
      
	<?php include "header.php";?> 
  <!--flash area ends--> 
  <div id="gallery">
  <h5> Property Pictures</h5>
  <p>(click to view larger pics) </p>
  

  <!--gallery starts--> 
  <table width="480" border="0">
  <tr>
        <?php 
		 
		  if(count($photo_array) >0){
			$tr=0;
			$maxcol=3;
					
		    for($cl=0;$cl<count($photo_array[$tr]);$cl++){?>
    <td><table width="150" border="0" >
  <tr>
    <td width="150"><a href="view_photo.php?imgname=<?php echo $photo_array[$tr][$cl]['image'];?>&name=<?php echo $photo_array[$tr][$cl]['imgname'];?>" target="NewWin" onClick="openSWIN()"><img src="manager/smallthumbnail/<?php echo $photo_array[$tr][$cl]['image'];?>" border="0"/></a></td>
    </tr>
  <tr>
      <td width="150" align="center"><a href="view_photo.php?imgname=<?php echo $photo_array[$tr][$cl]['image'];?>&name=<?php echo $photo_array[$tr][$cl]['imgname'];?>" target="NewWin" onClick="openSWIN()"><?php echo $photo_array[$tr][$cl]['imgname'];?></a></td>
    </tr>
  <tr>
    <td width="150">&nbsp;</td>
    </tr>
</table></td>
    
            <?php
			  if($cl==($maxcol - 1))
			  {	 
			  $tr=$tr + 1;
			  $cl=-1;
			  
			  echo "</tr>";	
			  echo "<tr>";			   
			  }
			  else {
			  echo '<td width="15">&nbsp;</td>';
			  }
			}
			
			
			}
			?>
    </tr>
 
</table>
<p align="center"><?php echo $navigation;?></p>

  <!--gallery ends--> 
<p>&nbsp; </p>
  </div>
     </td>
  </tr>
</table>
<?php include "footer.php";?>
<div id="bot">
<img src="images/index_09.png" width="850" height="18" alt=""/>
</div>
</div>
</body>
</html>