<?
include('_db.connection.php');
include('_public.setup.php');

$plan_result = mysql_query("SELECT * FROM plans WHERE plan_id = '$p'", $db);
$plan = mysql_fetch_object($plan_result);
?>
	<table width="100%">
		<tr>
			<td style="border: 1px solid #083C58; padding: 10px" bgcolor="#F8F8F8">
				<table>
					<tr>
						<td align="center"><font face="Verdana" style="font-size: 12;" color="#083C58"><b><? echo $plan->name; ?> Plan</td>
						<td></td>
					</tr>					
					<tr>																	
						<td></td>																		
						<td><font face="Verdana" style="font-size: 11;" color="#083C58">
						<? if($plan->space == "99999"){ ?>
							<b>Unlimited Disk Space<br>
						<?
							}
							else{
						 ?>
							<b><?php echo $plan->space; ?>mb</b> Disk Space<br>
						<?
							}
						?>																
					</tr>
					
					<tr>																	
						<td></td>																		
						<td><font face="Verdana" style="font-size: 11;" color="#083C58">
						<? if($plan->bandwidth == "99999"){ ?>
							<b>Unlimited Bandwidth<br>
						<?
							}
							else{
						 ?>	
							<b><?php echo $plan->bandwidth; ?>mb</b>/month Bandwidth<br>
						<?
							}
						?>
						</td>																	
					</tr>
					<?php
						if($plan->branding == 1){
					?>
					<tr>																	
						<td></td>																		
						<td><font face="Verdana" style="font-size: 11;" color="#083C58">Our Branding Shows On Your Images</td>																	
					</tr>
					<?
						}
						else{
					?>	
					<tr>																	
						<td></td>																		
						<td><font face="Verdana" style="font-size: 11;" color="#083C58">No Branding On Your Images</td>																	
					</tr>
					<?
						}
						if($plan->portfolio == 1){
					?>
					<tr>																	
						<td></td>																		
						<td><font face="Verdana" style="font-size: 11;" color="#083C58">Create Unlimited Image Portfolios</td>																	
					</tr>
					<?
						}
						if($plan->slideshow == 1){
					?>
					<tr>																	
						<td></td>																		
						<td><font face="Verdana" style="font-size: 11;" color="#083C58">Create Unlimited Slideshows</td>																	
					</tr>
					<?
						}
					?>
					<tr>																	
						<td></td>																		
						<td><font face="Verdana" style="font-size: 11;" color="#083C58">Only $<?php echo $plan->price; ?>/month</td>																	
					</tr>
					<tr>
						<td colspan="2">&nbsp;</td>
					</tr>
					<!--
					<tr>
						<td></td>
						<td><font face="Verdana" style="font-size: 11;" color="#083C58">Easily upload your images and share them with friends or family or build auction style galleries. </td>
					</tr>-->
				</table>
			</td>
		</tr>
		<tr>
			<td align="center"><font face="Verdana" style="font-size: 11;" color="#083C58"><a href="javascript:window.close();">[close]</a></td>
		</tr>
	</table>
<?
mysql_close($db);
print($close);
?>