<?
require_once("conn.php");
require_once("includes.php");

//get the prices
$q1 = "select * from yellow_prices, yellow_priority where yellow_prices.PriorityLevel = yellow_priority.PriorityLevel order by PriceValue";
$r1 = mysql_query($q1) or die(mysql_error());

$col = "white";

while($a1 = mysql_fetch_array($r1))
{
	if($col == "white")
	{
		$col = "dddddd";
	}
	else
	{
		$col = "white";
	}

	$Prices .= "<tr bgcolor=$col>\n\t<td align=center>";
	
	if($_GET[SelectedPackage] == $a1[PriceID])
	{
		$Prices .= "<input type=radio name=\"SelectedPackage\" value=\"$a1[PriceID]\" checked>";
	}
	else
	{
		$Prices .= "<input type=radio name=\"SelectedPackage\" value=\"$a1[PriceID]\">";
	}

		
	$Prices .= "</td>\n\t<td>$a1[PackageName] ";

	$Prices .= "<sup><font color=#990000>$a1[PriorityName]</font></sup>";

	if($a1[Duration] == '1')
	{
		$Prices .= ", $a1[Duration] month";
	}
	else
	{
		$Prices .= ", $a1[Duration] months";
	}
	
	
	if($a1[PriceValue] > '0')
	{
		$Prices .= "<td align=right>$aset[Currencya]$a1[PriceValue]</td>\n</tr>\n";
	}
	else
	{
		$Prices .= "<td align=right>Free!</td>\n</tr>\n";
	}
}

if($_GET[e] == '1')
{
	$error = "Select a package, please!";
}


if(ereg("register.php", $_SERVER[HTTP_REFERER]))
{
	$NewAgentMessage = "<font face=verdana color=black size=2><b>Thank you for your registration!</b><br>";
}

//get the templates
require_once("templates/HeaderTemplate.php");
require_once("templates/PricesTemplate.php");
require_once("templates/FooterTemplate.php");

?>