<?php require_once('Connections/FMKickers_login.php'); ?>
<?php include_once('Calendar_Module/calendar.php'); ?>
<?php
$clinic_find = $FMKickers_login->newFindCommand('Clinics');
$clinic_findCriterions = array('clinicId'=>'=='.fmsEscape($_REQUEST['clinicId']),);
foreach($clinic_findCriterions as $key=>$value) {
    $clinic_find->AddFindCriterion($key,$value);
}

fmsSetPage($clinic_find,'clinic',10); 

$clinic_result = $clinic_find->execute(); 

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

fmsSetLastPage($clinic_result,'clinic',10); 

$clinic_row = current($clinic_result->getRecords());

 
 // 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" />
<?php FMStudio_Calendar_Init('en','skins/aqua/theme','childBirthdate'); ?>
</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>Register for a Clinic</h1>
      <p>Clinic Name: <?php echo $clinic_row->getField('clinicName'); ?></p>
    <p>

    <form name="registration" method="post" action="registration_submit.php">
      <table>
        <tr>
          <th>Child Name </th>
          <td><input type="text" name="childName" value="">
          </td>
        </tr>
        <tr>
          <th>Birthdate</th>
          <td><input name="childBirthdate" type="text" value="" id="childBirthdate">
            <?php FMStudio_Calendar_Bind('childBirthdate','date'); ?>          </td>
        </tr>
        <tr>
          <th>Gender</th>
          <td><label>
            <select name="childGender" id="childGender">
              <option>Select a Value</option>
              <option value="Male">Male</option>
              <option value="Female">Female</option>
            </select>
          </label></td>
        </tr>
        <tr>
          <th>Special Notes<br />
            (allergies, special requests, etc) </th>
          <td><textarea name="childNotes"></textarea>
          </td>
        </tr>
        <tr>
          <th>&nbsp;</th>
          <td><input type="submit" name="registration_submit" value="Continue...">
            <input name="clinicId" type="hidden" value="<?php echo $clinic_row->getField('clinicId'); ?>" id="clinicId"></td>
        </tr>
      </table>
    </form>
    </p></td>
  </tr>
  
  <tr>
    <td colspan="2"><img src="Images/footer.jpg" width="760" height="24"></td>
  </tr>
</table>
</body>
</html>
