<table cellpadding="2" cellspacing="2" border="0" width="500" align="center">
	<tr><td class="lined blue_bcg white_body padded" align="center">Enable/Disable</td></tr>
	<tr><td class="grey-lined padded" align="center"><?php
	if($data["getpaid"][enabled])
		admin_form_element( array ("type" => "button", "value" => "Disable", "link" => "index.php?section=getpaid&action=getpaid_switch&theme=".$data["theme"]) ); 
	else
		admin_form_element( array ("type" => "button", "value" => "Enable", "link" => "index.php?section=getpaid&action=getpaid_switch&theme=".$data["theme"]) ); 
	?></td></tr>
	<tr><td class="lined blue_bcg white_body padded" align="center">Membership Packages</td></tr>					
	<tr><td class="grey-lined body padded" align="center" valign="top"><table cellpadding="2" cellspacing="2" border="0" width="100%">
	<?php if(count($data["getpaid"][membership]) == 0){ ?>		
		<tr><td class="body" align="center">No packages found.</td></tr>
		<tr><td class="body" align="center"><?php admin_form_element( array ("type" => "button", "value" => "Create Package", "link" => "index.php?section=getpaid&action=getpaid_create_package&theme=".$data["theme"]) ); ?></td></tr>
	<?php 
	}//if
	else {
		?><tr>
			<td class="list_header" align="center">Name</td>
			<td class="list_header" align="center">Price</td>
			<td class="list_header" align="center">Action</td>
		</tr><?php
		while(list($key,$package) = each($data["getpaid"][membership])){
			?><tr><td class="list_cell"><?php echo $package["name"]; ?></td><td class="list_cell"><?php echo extract_package_price($package["price"],$package["currency"],$package["interval"],$package["period"]); ?></td>
			<td class="list_cell" align="center"><?php
			admin_output_image("buttons/but_edit_small.gif","index.php?section=getpaid&action=getpaid_create_package&package_id=".$key."&theme=".$data["theme"],0,"edit");
			admin_output_image("buttons/but_delete_small.gif","index.php?section=getpaid&action=getpaid_delete_package&package_id=".$key."&theme=".$data["theme"],0,"delete");
			?></td></tr><?php
		}//while
		?><tr><td colspan="3" class="body" align="center"><?php admin_form_element( array ("type" => "button", "value" => "Create Package", "link" => "index.php?section=getpaid&action=getpaid_create_package&theme=".$data["theme"]) ); ?></td></tr><?php
	}//else
	?>
	</table></td></tr>
	<tr><td class="lined blue_bcg white_body padded" align="center">Payment Systems</td></tr>
	<tr><td class="grey-lined body padded" align="center"><table cellpadding="2" cellspacing="2" border="0" width="100%">
	<?php
	if(count($data["getpaid"][systems]) == 0){
		?><tr><td class="body" align="center">No payment systems found.</td></tr>
		<tr><td class="body" align="center"><?php admin_form_element( array ("type" => "button", "value" => "Add Payment System", "link" => "index.php?section=getpaid&action=getpaid_system&theme=".$data["theme"]) ); ?></td></tr><?php
	}//if
	else{
		?><tr>
			<td class="list_header" align="center">Name</td>
			<td class="list_header" align="center">Action</td>
		</tr><?php
		while(list($key,$system) = each($data["getpaid"][systems])){
			?><tr><td class="list_cell"><?php echo $system["name"]; ?></td>
			<td class="list_cell" align="center"><?php
			admin_output_image("buttons/but_edit_small.gif","index.php?section=getpaid&action=getpaid_system&system_id=".$key."&theme=".$data["theme"],0,"edit");
			admin_output_image("buttons/but_delete_small.gif","index.php?section=getpaid&action=getpaid_delete_system&system_id=".$key."&theme=".$data["theme"],0,"delete");
			?></td></tr><?php
		}//while
		?><tr><td colspan="2" class="body" align="center"><?php admin_form_element( array ("type" => "button", "value" => "Add Payment System", "link" => "index.php?section=getpaid&action=getpaid_system&theme=".$data["theme"]) ); ?></td></tr><?php
	}//else
	?>
	</table></td></tr>
	<tr><td class="lined blue_bcg white_body padded" align="center">Featured Status Fees</td></tr>
	<tr><td class="grey-lined body padded" align="center"><table cellpadding="2" cellspacing="2" border="0" width="100%">
	<tr>
		<td class="list_header" align="center">Module</td>
		<td class="list_header" align="center">Action</td>
	</tr>
	<?php
	$modules = array(
		"blogs" => "Blogs",
		"classifieds" => "Classifieds",
		"events" => "Events",
		"clubs" => "Clubs"
	);
	while(list($key,$val) = each($modules)){
		?><tr><td class="list_cell"><?php echo $val; ?></td>
		<td class="list_cell" align="center"><?php
		admin_output_image("buttons/but_edit_small.gif","index.php?section=getpaid&action=getpaid_featured&module=".$key."&theme=".$data["theme"],0,"edit");
		?></td></tr><?php
	}//while
	?>
	</table></td></tr>
</table>