<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tr><td class="nav"><a href="index.php?section=home">Home</a>&nbsp;&gt;&nbsp;<a href="index.php?section=ads&theme=<?php echo $data["theme"] ?>">Advertisements</a>&nbsp;&gt;&nbsp;<a href="<?php echo $data["link"]; ?>"><?php echo $data["campaign"]["name"]; ?></a></td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td><table cellpadding="2" cellspacing="2" border="0" width="500" align="center">
		<tr><td colspan="6" class="lined blue_bcg white_body padded" align="center">Campaign Settings</td></tr>
		<tr><td colspan="6" class="form_cell"><table cellpadding="0" cellspacing="5" border="0" align="center">
			<tr><td class="body">Campaign Name</td><td class="highlight"><?php echo $data["campaign"]["name"]; ?></td></tr>
			<tr><td class="body">Campaign Type</td><td class="highlight"><?php echo $data["campaign"]["type"]; ?></td></tr>
			<tr><td class="body">Pricing</td><td class="highlight"><?php echo $data["campaign"][price]; ?></td></tr>
			<tr><td class="body">Current Balance</td><td class="highlight"><?php echo $data["campaign"][balance]; ?></td></tr>
			<tr><td class="body">Start Date</td><td class="highlight"><?php echo $data["campaign"][start]; ?></td></tr>
			<tr><td class="body">End Date</td><td class="highlight"><?php echo $data["campaign"][end]; ?></td></tr>
			<tr><td colspan="2" align="center"><?php
			admin_form_element( array ("type" => "button", "value" => "Back", "link" => "index.php?section=ads&theme=".$data["theme"]) );
			echo "&nbsp;";
			admin_form_element( array ("type" => "button", "value" => "Edit Campaign Settings", "link" => "index.php?section=ads&action=edit_campaign_settings&theme=".$data["theme"]."&cmp_id=".$data["cmp_id"]) );
			?></td></tr>
		</table></td></tr>
		<tr><td colspan="6" class="lined blue_bcg white_body padded" align="center">Banners</td></tr>
		<tr><td colspan="6" class="form_cell" align="center"><?php
		admin_form_element( array ("type" => "button", "value" => "Add New Banner", "link" => "index.php?section=ads&action=edit_banner&theme=".$data["theme"]."&cmp_id=".$data["cmp_id"]."&ret_link=".urlencode($data["link"])) );
		?></td></tr>
		<tr>
			<td class="list_header" align="center">Name</td>
			<td class="list_header" align="center">Type</td>
			<td class="list_header" align="center">Format</td>
			<td class="list_header" align="center">Impressions</td>
			<td class="list_header" align="center">Clicks</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php
		
			foreach($data["banners"] as $banner){
				?><tr>
					<td class="list_cell"><?php echo $banner["name"]; ?></td>
					<td class="list_cell"><?php echo $banner["type"]; ?></td>
					<td class="list_cell"><?php echo $banner["format"]; ?></td>
					<td class="list_cell"><?php echo $banner["impressions"]; ?></td>
					<td class="list_cell"><?php echo $banner["clicks"]; ?></td>
					<td class="list_cell" align="center"><?php
					admin_output_image("buttons/but_edit_small.gif",$banner["edit"],0,"edit");
					admin_output_image("buttons/but_delete_small.gif",$banner["delete"],0,"delete");
					?></td>
				</tr><?php
			}//foreach
		
		?>
	</table></td></tr>
</table>