<?php include("../assets/all.inc.php");?>
<head>
<title>Pic Database - PMDB</title>
<?php echo $meta;?>
</head>

<body>
<div id="wrapper">
<div id="header">
	<?php echo $header;?>
</div>

<div id="content">
	<h1>Bilder</h1>
	
	<div class="page wrap">	
		<!-- Start Pixlie -->
		<?php
		  $response_type = 'php';   //Ausgabe auf php umstellen
		  include('../pixlie.php'); //Einbinden von Pixlie
		  include('../plugins/pixlie/folderpic/folderpic.php'); //Einbinden von Folderpic
		?>
		
		<div class="pix_img w9">
		<!-- Start Breadcrumb2 -->
		<p>
		<?php
			$aPath = explode("/", $pixlie_table_env['query']);
			array_shift($aPath);
			$sPath = '';
			$lastvalue = '';
			foreach($aPath as $key => $value) {
			  $lastvalue .= '/'.$value;
			  if ( $key < count($aPath)-1 )
					$sPath .= ' &rsaquo; <a href="?'.$pixlie_config['http_var_name'].'='.urlencode(utf8_encode($lastvalue)).'">'.$value.'</a>';
				else
					$sPath .= ' &rsaquo; '.$value;
			}
			echo 'Du befindest dich hier: <a href="?'.$pixlie_config['http_var_name'].'=">Home</a>'.$sPath;
			?>
		</p>
		<!-- Start FolderPic -->
		<?php folderpic(); ?>
		
		<!-- Start Images -->
		<ul>
			<li>
			<?php foreach ($pixlie_table_file as $picture){ ?>
				<a class="lbgp1" rel="group" href="<?php echo $pixlie_table_env['path_pixlie'].$picture['link_get']; ?>_z<?php echo $picture['extension']; ?>" title="<?php echo $picture['name']; ?>" >
				<img src="<?php echo $pixlie_table_env['path_pixlie'].$picture['link_get']; ?>_x<?php echo $picture['extension']; ?>" alt="<?php echo $picture['name']; ?>" />
				</a>
			<?php } ?>
			</li>
		</ul>
		</div>
		
		<!-- Start Menu entfernt!-->
		<!-- End Pixlie -->
	</div>	
</div>

<div id="footer">
	<?php echo $footer;?>
</body>
</html>