<?php
	/***********************************************************************************
	*   Filename    : register_thanks.php
   	*
	*   Copyright Keysoft Pty Ltd 2009
	***********************************************************************************/

	/******************** Global Settings ********************/
	require_once '../phpobjects/common/global.php';	

	/********************* Page Settings *********************/
	$gaPage['title'] = 'Petsafe.com.au';
	$gaPage['root_directory'] = '..';
	$gaPage['colour'] = 'orange';

	
	/********************* Page Defaults *********************/
	fDefaultParameter('err_code', $_GET, '');
	fDefaultParameter('id', $_GET, '');
	
	$pet_id = 1;
	$owner_id = 205;
	$owner_email = "jmuffett@keysoft.com.au"; 

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
	<?php 
		require '../phpobjects/templates/common/page_head.php'; 
	?>
</head>

<?php
		require '../phpobjects/templates/common/page_header.php';
/*********************** Page Start **********************/
?>



<br/><h2 class="orangeheading">Test</h2><br/>


<br/><br/>
<table class="tbl" width="100%" border="0" cellspacing="0" cellpadding="5">
	<tr class="tr1_green">
		<td>
			<form name="form<?php echo $pet_id; ?>" method="post" action="../pages/pets_certificate.php" target="_blank">
				<input type="hidden" name="petid" value="<?php echo $pet_id; ?>" />
				<input type="hidden" name="mid" value="<?php echo $owner_id; ?>" />
				<input type="hidden" name="owner_email" value="<?php echo $owner_email; ?>" />
				<input type="hidden" name="email" value="true" />
				<input type="submit" name="button" value="Email Certificate" <?php if($owner_email == ""){echo 'disabled="disabled"'; } ?> />
					
				<?php
					if($owner_email == ''){
						echo '<span style="color:red;">No email address was found.</span>';
					}else{
						echo '( ' . $owner_email . ' )';
					}
				?>
			</form>
		</td>
	</tr>
</table>



<?php
/************************ Page End ***********************/

 require '../phpobjects/templates/common/page_footer.php';
?>

</html>
<?php 
// fCleanup(); 
?>