Location: PHPKode > scripts > phpFlickrSynch > phpflickrsynch/backoffice/photodata.php
<?php
	require_once('../phpFlickrSynch.php');
	require_once('../_classes/class_FlickrToPortfolio.php');
	include '_include/header.php';
	
	$porid = $_REQUEST['porid'];
	
	$DBPHOTO = new TableFlickrPhoto();
	$photos = $DBPHOTO->getAllData($porid);	
?>
<h1>
	<span>phpFlickrSynch</span>
	<a href="./index.php" class="selected">Manage photo albums</a> 
    <a href="./groups.php">Manage photo groups</a>
</h1>

<h2>Photo data for photo album ID=<?php echo $porid;?></h2>

<table>
<?php		
	$row=0;	
	foreach ($photos as $key => $photo) {
		echo '<tr>';
		if ($row==0) {
			$row++;
			echo '<thead><tr>';
			foreach ($photo as $k => $val) {
				if (!is_integer($k)) {
					echo '<th>' . $k . '</th>';
				}
			}
			echo '</tr></thead>';
		}
		foreach ($photo as $k => $val) {
			if (!is_integer($k)) {
				
				switch($k) {
					case 'flickr_url':
						$val = '<a href="' . $val . '">' . $val . '</a>';
						break;
				}
				
				echo '<td>' . $val . '</td>';
			}
		}
		echo '</tr>';
	}
?>	
</table>
<?php
	include '_include/footer.php';	
?>
Return current item: phpFlickrSynch