<?php require_once('Connections/FMKickers_login.php'); ?>
<?php require_once('PayPal_Module/paypal.php'); ?>
<?php
$registration_find = $FMKickers_login->newFindCommand('Registrations');
$registration_findCriterions = array('registrationId'=>'=='.fmsEscape($_REQUEST['registrationId']),);
foreach($registration_findCriterions as $key=>$value) {
    $registration_find->AddFindCriterion($key,$value);
}

fmsSetPage($registration_find,'registration',10); 

$registration_result = $registration_find->execute(); 

if(FileMaker::isError($registration_result)) fmsTrapError($registration_result,"error.php"); 

fmsSetLastPage($registration_result,'registration',10); 

$registration_row = current($registration_result->getRecords());

$registration__Clinics_portal = fmsRelatedRecord($registration_row, 'Clinics');
$registration__Users_portal = fmsRelatedRecord($registration_row, 'Users');
$registration__PaymentDetails_portal = fmsRelatedRecord($registration_row, 'Payment Details');
 
 // FMStudio v1.0 - do not remove comment, needed for DreamWeaver support ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>FM Kickers</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table align="CENTER" width="750" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2"><img src="Images/fmkickers.png" width="760" height="152"></td>
  </tr>
  <tr>
    <td width="169" bgcolor="#D1D1D1" valign="TOP"><img src="Images/header1.jpg" width="169" height="140">      <p><a href="index.php">All Clinics<br />
    </a><a href="user_clinics.php">My Registrations  </a></p></td>
    <td class="main_area" width="587" valign="TOP"><h1>Registration Payment</h1>
    <p>Please pay for this registration:  
      <?php FMStudio_PayPal_BuyNow("sandbox@fmwebschool.com",$registration_row->getField('registrationId'),$registration_row->getField('Clinics::clinicName'),$registration_row->getField('Clinics::clinicPrice'),"1","","",$registration_row->getField('registrationId'),"http://mpetrov.fmgateway.com/FMKickers/user_clinics.php","http://mpetrov.fmgateway.com/FMKickers/paypal_notify.php",true,"USD/;/",""); ?></p></td>
  </tr>
  
  <tr>
    <td colspan="2"><img src="Images/footer.jpg" width="760" height="24"></td>
  </tr>
</table>
</body>
</html>
