<?php include ("_website_init.php"); ?>
<?php
  function validateGoogleCaptcha(){
    
    $errorsAndAlerts = "";

    if (!@$_REQUEST['g-recaptcha-response'])     { $errorsAndAlerts .= "Please check the anti-spam 'I am not a robot' checkbox!<br/>\n"; 
	$showSignupForm = true; // don't change this value
	}
    else { 
      // check recaptcha
      $postdata = array();
      $postdata['secret']   = '6Lfd5RcTAAAAANqxhQj_0hqmPJusJAh90pkloOKA';
      $postdata['response'] = @$_REQUEST['g-recaptcha-response'];
      $postdata['remoteip'] = $_SERVER['REMOTE_ADDR'];
      $url = "https://www.google.com/recaptcha/api/siteverify?". http_build_query($postdata, '', '&');
      list($json, $httpStatusCode, $headers, $request) = getPage($url, 5, '', true);
      $recaptchaResponse = json_decode($json, true);
      
      if (!@$recaptchaResponse['success']) {
        if (is_array(@$recaptchaResponse['error-codes'])) { 
          if (in_array('missing-input-secret', @$recaptchaResponse['error-codes']))     { $errorsAndAlerts .= "There's a problem with recaptcha, please let us know! (no secret)<br/>\n"; }
          if (in_array('invalid-input-secret', @$recaptchaResponse['error-codes']))     { $errorsAndAlerts .= "There's a problem with recaptcha, please let us know! (invald secret)<br/>\n"; }
          if (in_array('missing-input-response', @$recaptchaResponse['error-codes']))   { $errorsAndAlerts .= "Please fill out the recaptcha box!<br/>\n";
		 $showSignupForm = true; // do we need this line?
		   }
          if (in_array('invalid-input-response', @$recaptchaResponse['error-codes']))   { $errorsAndAlerts .= "Please fill out the recaptcha box again, your answer was incorrect!<br/>\n"; $showSignupForm = true; // do we need this line?
		  }
        
        if (!$errorsAndAlerts) { $errorsAndAlerts .= "Invalid captcha response, please try again or contact us directly and let us know."; }
        @trigger_error("Failed recaptcha on signup form", E_USER_NOTICE);
      }}
    }
    return $errorsAndAlerts;
  }
?>
<?php
  $useUsernames   = true; // Set this to false to disallow usernames, email will be used as username instead
  $showSignupForm = true; // don't change this value

  // error checking
  $errorsAndAlerts = "";
 
?>
<?php // process form
  if (@$_REQUEST['submit']):?>
<?php  $errorsAndAlerts = "";
    $errorsAndAlerts .= validateGoogleCaptcha(); 
	?>
<?php
  
   

   
    if (!@$_REQUEST['first_name']) 		    		{ $errorsAndAlerts .= "You must enter a first name<br/>\n"; }
	    if (!@$_REQUEST['last_name']) 		    		{ $errorsAndAlerts .= "You must enter a last name<br/>\n"; }
		if (!@$_REQUEST['practice_name']) 		    		{ $errorsAndAlerts .= "You must enter the name of the practice<br/>\n"; }
    if (!@$_REQUEST['practice_street_address']) 		    		{ $errorsAndAlerts .= "You must enter an address<br/>\n"; }
	if (!@$_REQUEST['practice_city']) 		    		{ $errorsAndAlerts .= "You must enter a city<br/>\n"; }
	if (!@$_REQUEST['practice_state']) 		    		{ $errorsAndAlerts .= "You must enter a state<br/>\n"; }
	if (!@$_REQUEST['practice_zip']) 		    		{ $errorsAndAlerts .= "You must enter a zip/postal code<br/>\n"; }
	if (!@$_REQUEST['practice_phone']) 		    		{ $errorsAndAlerts .= "You must enter a phone number<br/>\n"; }
    if (!@$_REQUEST['email'])                       		{ $errorsAndAlerts .= "You must enter your email!<br/>\n"; }
    else if(!isValidEmail(@$_REQUEST['email']))     		{ $errorsAndAlerts .= "Please enter a valid email (example: user@example.com)<br/>\n"; }
    else if (@$_REQUEST['email'] != @$_REQUEST['email2'])	{ $errorsAndAlerts .= "Your emails must match<br/>\n"; }
    if (!@$_REQUEST['training_experience']) 		    		{ $errorsAndAlerts .= "You must describe your DBT training/experience<br/>\n"; }
	if (!@$_REQUEST['username']) 		    		{ $errorsAndAlerts .= "You must enter a username<br/>\n"; }
   $first = $_REQUEST['first_name'];
     $last = $_REQUEST['last_name'];
   $address1 = $_REQUEST['practice_street_address'];
    $room1 = $_REQUEST['practice_room_or_floor'];
	$city1 = $_REQUEST['practice_city'];
	 $state1 = $_REQUEST['practice_state'];
	  $zip1 = $_REQUEST['practice_zip'];
	   $phone1 = $_REQUEST['practice_phone'];
	  $practice = $_REQUEST['practice_name'];
	  $usernm =  $_REQUEST['username'];
//	  $more_than_one_practitioner_in_practice = $_REQUEST['more_than_one_practitioner_in_practice']; 
//	  $more_than_one_location_for_practice = $_REQUEST['more_than_one_location_for_practice']; 

	   
  // added _$\^ to preg_match   
   if(preg_match("/[?!\"\[\]\*0-9&#<>\(\)_$\^.]/", $first )){
   $errorsAndAlerts .= "<br />First names can not contain anything except alphabetical characters<br/>\n";
  }
  if(preg_match("/[?!\"\[\]\*0-9&#<>\(\)_$\^.]/", $last )){
   $errorsAndAlerts .= "Last names can not contain anything except alphabetical characters<br/>\n";
  } 
  
  if(preg_match("/[?!\"\[\]\*&#<>\(\)_$\^.]/", $practice )){
   $errorsAndAlerts .= "Practice names can not contain anything except alphabetical characters<br/>\n";
  } 
   if(preg_match("/[?!\"\[\]\*&#<>\(\).]/", $address1)){
   $errorsAndAlerts .= "Street addresses can not contain anything except alpha numeric characters<br/>\n";
  } 
   if(preg_match("/[?!\"\[\]\*0-9&#<>\(\)_$\^.]/", $city1 )){
   $errorsAndAlerts .= "City names can not contain anything except alphabetical characters<br/>\n";
  }
   if(!preg_match("/^[A-Z][A-Z]$/", $state1 )){
   $errorsAndAlerts .= "State names must be 2 alphabetical characters long<br/>\n"; 
   }
 //  if(preg_match("/[?!\"\[\]\*0-9{^2,3}&#<>\(\)_$\^.]/", $state1 )){
  // $errorsAndAlerts .= "State names can not contain anything except alphabetical characters<br/>\n";
 // } 
   if(preg_match("/[?!\"\[\]\*&#<>\(\)_$\^.]/", $zip1 )){
   $errorsAndAlerts .= "Zip/postal codes can not contain anything except alphabetical characters<br/>\n";
  } 
  if(preg_match("/[?!\"\[\]\*,;:'&#<>\(\)_$\^.-]/", $usernm )){
   $errorsAndAlerts .= "Usernames can not contain anything except alphanumeric characters (you can change this after your account is set up.)<br/>\n";
   }
    
	if(!preg_match("/^[ 0-9]{10,14}$/", @$phone1 )){ 
	$errorsAndAlerts .= "Phone numbers must be 10 or 11 numbers long and can not contain anything but numbers and spaces<br/>\n";
  } 
  
  if(preg_match("/[?\"\[\]\*;&#<>\(\)_$\^]/", @$training_experience )){
   $errorsAndAlerts .= "Training/Experience entries can not contain special characters<br/>\n";} 
   
   if(preg_match("/[?\"\[\]\*;&#<>\(\)_$\^]/", @$practice_room_or_floor )){
   $errorsAndAlerts .= "Practice suite, apartment, or floor  entries can not contain special characters (like #)<br/>\n";} 
   
   
    // check for duplicate usernames and emails
    if (!$errorsAndAlerts) {
      $count = mysql_select_count_from('accounts', "`username` = '".mysql_escape(@$_REQUEST['username'])."'");
      if ($count > 0 && @$_REQUEST['username']) { $errorsAndAlerts .= "That username is already in use, please choose another!<br/>\n"; }

      $count = mysql_select_count_from('accounts', "'".mysql_escape($_REQUEST['email'])."' IN (email, username)");
      if ($count > 0) { $errorsAndAlerts .= "That email is already in use, please choose another!<br/>\n"; }
	  
	 
    }
 

   // add user
    if (!$errorsAndAlerts) {
// Added 11/1/18 per Daniel at Interactive Tools 	   
$more_than_one_location_for_practice = 0;
$more_than_one_practitioner_in_practice = 0;
$more_than_one_location_for_practicea = 0;
$more_than_one_practitioner_in_practicea = 0;
if (isset( $_REQUEST['more_than_one_location_for_practice'] )) {$more_than_one_location_for_practice = 1;}
$more_than_one_practitioner_in_practice = 0;
if (isset( $_REQUEST['more_than_one_practitioner_in_practice'] )) {$more_than_one_practitioner_in_practice = 1;} 

  if ($more_than_one_location_for_practice === 0) {
    $more_than_one_location_for_practicea = 'there is only one location for this practice.';
  }
  elseif ($more_than_one_location_for_practice === 1) {
    $more_than_one_location_for_practicea = 'there are multiple locations for this practice.';
  }
  
    if ($more_than_one_practitioner_in_practice === 0) {
    $more_than_one_practitioner_in_practicea = 'there is only one practitioner in this practice.';
  }
  elseif ($more_than_one_practitioner_in_practice === 1) {
    $more_than_one_practitioner_in_practicea = 'there are multiple practitioner in this practice.';
  }
  
 $addLink  = "http://dbtproviders.com/cmsAdmin/admin.php?menu=accounts&action=add";
$addLink .= "&more_than_one_location_for_practice="    .urlencode(@$more_than_one_location_for_practice); 
$addLink .= "&more_than_one_practitioner_in_practice="    .urlencode(@$more_than_one_practitioner_in_practice);
$addLink .= "&username="    .urlencode(@$_REQUEST['username']); 
$addLink .= "&email="    .urlencode(@$_REQUEST['email']); 
$addLink .= "&password="    .'2FE3Ur'; 
$addLink .= "&contact_first_name="    .urlencode(@$_REQUEST['first_name']); 
$addLink .= "&contact_last_name="    .urlencode(@$_REQUEST['last_name']); 
$addLink .= "&practice_name="    .urlencode(@$_REQUEST['practice_name']); 
$addLink .= "&approved=".'1'; 
$addLink .= "&practice_street_address="    .urlencode(@$_REQUEST['practice_street_address']);
$addLink .= "&practice_room_or_floor="    .urlencode(@$_REQUEST['practice_room_or_floor']);
$addLink .= "&practice_city="    .urlencode(@$_REQUEST['practice_city']); 
$addLink .= "&practice_state="    .urlencode(@$_REQUEST['practice_state']);  
$addLink .= "&practice_zip="   .urlencode(@$_REQUEST['practice_zip']);  
$addLink .= "&practice_phone="    .urlencode(@$_REQUEST['practice_phone']);
$addLink .= "&training_experience="    .urlencode(@$_REQUEST['training_experience']);
    
	 // send email to Admin 
          $emailHeaders = emailTemplate_loadFromDB(array(
	'template_id'  => 'DIRECTORY-LISTING-REQUEST',
	
	'placeholders' => array(
	  'contact.firstName' 	=>  ($_REQUEST['first_name']),
	  'contact.lastName'  	=>  ($_REQUEST['last_name']),
	  'contact.email' 	=>  ($_REQUEST['email']),
	  'contact.username' 	=>  ($_REQUEST['username']),
	  'practice' 	=>  ($_REQUEST['practice_name']),
	  'street' 	=> ($_REQUEST['practice_street_address']),
	  'room' 	=>  ($_REQUEST['practice_room_or_floor']),
	  'city' 	=> ($_REQUEST['practice_city']),
	  'state' 	=> ($_REQUEST['practice_state']),
	  'zip' 	=>  ($_REQUEST['practice_zip']), 
	  'more_than_one_location_for_practicea' =>  ($more_than_one_location_for_practicea),
	  'more_than_one_practitioner_in_practicea' 	=>  ($more_than_one_practitioner_in_practicea),
	  'phone' 	=>  ($_REQUEST['practice_phone']),
	  'training' =>  ($_REQUEST['training_experience']),
	  'addLink'   => $addLink,
	       )));
      $mailErrors   = sendMessage($emailHeaders);
      if ($mailErrors) { alert("Mail Error: $mailErrors"); }
	  
	   // send email to Applicant 
          $emailHeaders = emailTemplate_loadFromDB(array(
	'template_id'  => 'DIRECTORY-LISTING-REQUEST-APPLICANT',
	
	'placeholders' => array(
	  'contact.firstName' 	=>  ($_REQUEST['first_name']),
	  'contact.lastName'  	=>  ($_REQUEST['last_name']),
	  'contact.email' 	=>  ($_REQUEST['email']),
	  'contact.username' 	=>  ($_REQUEST['username']),
	  'practice' 	=>  ($_REQUEST['practice_name']),
	   'room' 	=>  ($_REQUEST['practice_room_or_floor']),
	  'street' 	=> ($_REQUEST['practice_street_address']),
	  'city' 	=> ($_REQUEST['practice_city']),
	  'state' 	=> ($_REQUEST['practice_state']),
	  'zip' 	=>  ($_REQUEST['practice_zip']),
	  'phone' 	=>  ($_REQUEST['practice_phone']),
	  'more_than_one_location_for_practicea' =>  ($more_than_one_location_for_practicea),
	  'more_than_one_practitioner_in_practicea' 	=>  ($more_than_one_practitioner_in_practicea),
	  'training' =>  ($_REQUEST['training_experience']),
	       )));
      $mailErrors   = sendMessage($emailHeaders);
      if ($mailErrors) { alert("Mail Error: $mailErrors"); }
      
      // show thanks
     $errorsAndAlerts = "
              <div class='heading_font' align='center'>THANKS FOR SUBMITTING YOUR REQUEST TO BE INCLUDED<br />IN THE DBT PROVIDER DIRECTORY<br />
               </div>
              <div align='center'> 
                <br />
                <div class='text_font' align='left'><b>Your directory listing request has been sent successfully.<br />
                  <br />
                  You'll get an email from us after we've reviewed your request.<br />
                  <br />
                  Best, <br />
                  <br />
                  The DBT Provider Directory Team</b></div>
              </div>
            </div>";
      $_REQUEST        = array(); // clear form values
      $showSignupForm  = false;
    }


?>
<?php endif?>
<!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=utf-8" />
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<title>LISTING REQUEST&nbsp;-&nbsp;DBT Provider Directory</title>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
<link href="css/dbt.css.php" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/fonts.css.php" />
<?php include ("_preload.php"); ?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php 
    $output = ''; 
    foreach ($google_font_namesRecords as $record) { $record['name'] = preg_replace("/[, ]/", "+", $record['name']);
      $output .= $record['name'] . "|"; 
    } 
    $output = rtrim($output,"|"); // remove trailing pipe 
    print $output; 
?>">
</head>

<body >
<table class="shadow3" bgcolor="#<?php echo $dbt_colorsRecord['main_box_background_color'] ?>" width="55%" border="0" align="center" cellpadding="0">
  <tr>
    <td  colspan="2" bgcolor="#<?php echo $dbt_colorsRecord['masthead_background_color'] ?>"><div class="under round-corner" align="left">
        <?php foreach ($common_informationRecord['masthead'] as $index => $upload): ?>
        <img src="<?php echo $upload['thumbUrlPath3'] ?>"   alt="DBT Provider Directory Masthead" />
        <?php endforeach ?>
      </div></td>
  </tr>
  <tr>
    <td class="shadow3"  width="20%" rowspan="4" align="right" valign="top" bgcolor="#<?php echo $dbt_colorsRecord['menu_background_color'] ?>" ><?php include ("_mainnavmenu.php"); ?></td>
    <td width="82%">&nbsp;</td>
  </tr>
  <tr>
    <td align="center" ><table align="center" width="100%" border="0" cellspacing="0" cellpadding="20">
        <tr>
          <td valign="top" align="left"  ><div align="left">
            <?php if ($showSignupForm): ?>
            <br />
            <div align="center"><span class="heading_font"><b>USE THIS FORM TO TO  LIST YOUR PRACTICE<br />
              IN THE DBT PROVIDER DIRECTORY</b></span><br />
              <br />
            </div>
            <?php endif ?>
            <br />
            <div align="left">
              <div style=" color:#<?php echo $dbt_colorsRecord['text_highlight_color'] ?>; font-style:italic;" class="heading_font" align="left"><br />
              </div>
              <?php if (@$errorsAndAlerts): ?>
              <div style="color: #C00; font-weight: bold;" class="text_font"> <?php echo $errorsAndAlerts; ?><br/>
              </div>
              <?php endif ?>
              <?php if ($showSignupForm): ?>
              <form method="post" action="">
                <input type="hidden" name="save" value="1" />
                <table border="0" cellspacing="0" cellpadding="2">
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>What's The Name<br />
                      Of the Practice<br />
                      </b></td>
                    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="practice_name" id="practice_name" value="<?php echo htmlencode(@$_REQUEST['practice_name']); ?>" /></td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>The Street Address<br />
                      Of the Practice<br />
                      </b></td>
                    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="practice_street_address" id="practice_street_address" value="<?php echo htmlencode(@$_REQUEST['practice_street_address']); ?>" /></td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>The Suite, Apartment, or Floor (optional)<br />
                      </b></td>
                    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="practice_room_or_floor" id="practice_room_or_floor" value="<?php echo htmlencode(@$_REQUEST['practice_room_or_floor']); ?>" /></td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>The City<br />
                      </b></td>
                    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="practice_city" id="practice_city" value="<?php echo htmlencode(@$_REQUEST['practice_city']); ?>" /></td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>The State - (2 Letters) </b></td>
                    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text"style='text-transform:uppercase' MAXLENGTH="2" name="practice_state" id="practice_state" value="<?php echo htmlencode(strtoupper(@$_REQUEST['practice_state'])); ?>" /></td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>The Zip Code</b></td>
                    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="practice_zip" id="practice_zip" value="<?php echo htmlencode(@$_REQUEST['practice_zip']); ?>" /></td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>The Phone Number<br />
                      </b></td>
                    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="practice_phone" placeholder="Numbers Only Please" id="practice_phone" value="<?php echo htmlencode(@$_REQUEST['practice_phone']); ?>" /></td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>Is There More Than One Location For This Practice? (Check If Yes)<br />
                      </b></td>
                    <td style="text-align:left" align="left" valign="middle">
                    <input type="checkbox" name="more_than_one_location_for_practice" value="1" <?php checkedIf('1', @$_REQUEST['more_than_one_location_for_practice']); ?> />
                    </td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>What's Your First Name</b></td>
                    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="first_name" id="first_name" value="<?php echo htmlencode(@$_REQUEST['first_name']); ?>" /></td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>Your Last Name</b></td>
                    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="last_name" id="last_name" value="<?php echo htmlencode(@$_REQUEST['last_name']); ?>" /></td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>Enter A Temporary User Name</b></td>
                    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="username" id="username" value="<?php echo htmlencode(@$_REQUEST['username']); ?>" /></td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>Your E-mail Address</b></td>
                    <td  style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="email" id="email" value="<?php echo htmlencode(@$_REQUEST['email']); ?>" /></td>
                  </tr>
                 
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>Enter Your E-mail Again</b></td>
                    <td  style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="email2" id="email2" value="<?php echo htmlencode(@$_REQUEST['email2']); ?>" /></td>
                  </tr>
                  <tr>
                    <td width="40%" align="left" valign="middle" class="text_font"><b>Is There More Than One DBT Trained Practitioner In This Practice? (Check If Yes)</b></td>
                    <td  style="text-align:left" align="left" valign="middle"> <input type="checkbox" name="more_than_one_practitioner_in_practice" value="1" <?php checkedIf('1', @$_REQUEST['more_than_one_practitioner_in_practice']); ?> />
                   </td>
                  </tr>
                  
                  <tr>
              <td width="40%" align="left" valign="middle" class="text_font"><b>Describe Your DBT Training/Experience<br />
              (FOR INTERNAL USE ONLY)</b></td>
              <td  style="text-align:left" align="left" valign="middle"><textarea name="training_experience" id="training_experience" placeholder="<?php echo $common_informationRecord['application_training_and_experience_example_text']?>" COLS=50 ROWS=6 ><?php echo htmlspecialchars(@$_REQUEST['training_experience']); ?></textarea>
            </td>
            </tr>
                  <tr>
                    <td colspan="2" class="text_font" style=" font-weight: bold;" valign="top"><br />
                      Please check the "I'm not a robot" box below before submitting.<br />
                      <br />
                      <div class="g-recaptcha" data-theme="light" data-sitekey="6Lfd5RcTAAAAAJOxR3jJJfn7kfDDo4T8FCBGZKfD"></div></td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center"><br/>
                      <input class="button" type="submit" name="submit" value="SUBMIT YOUR LISTING REQUEST &gt;&gt;" /></td>
                  </tr>
                </table>
              </form>
              <?php endif ?>
            </div><br /><div class="heading-text-red" align="center">PLEASE ADD THE DBTPROVIDERS.COM DOMAIN<br />TO YOUR EMAIL SAFE SENDERS LIST</div><br /><div class="text_font">From time to time, we'll be sending you import email  messages about your directory listing, and how to update your information to keep it current. Once approved, you'll have to add information to your listing before it goes 'live'.<br /><br /><b>To insure that you receive these emails, please take a moment right now, even before you submit your lisitng request, and add the domain dbtproviders.com to your safe senders list. If you're not sure how to do that, you can find instructions for many of the most popular email clients <a href="http://www.dbtproviders.com/safe_senders.php">HERE</a>.</b></div></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td>
      <br />
      <br />
      <?php include ("_footer2.php"); ?></td>
  </tr>
</table>
</body>
</html>
