Beispiel #1
0
     

 		<div id="maincontent">

        	<div class="textcontentalone">
<h1>join the class of <?php 
echo DateManager::frontdisplaytimefromtmstp($classtojoin->c_date);
?>
 part of the <?php 
echo $sessiontojoin->name;
?>
</h1>
<p>Please fill out the form below to register for a class in the upcoming Spring Session. Please be sure to look at DAY and TIME to be sure you are registering for the correct time slot. </p>

<?php 
$stillspots = Classes::anyspots($classtojoin->id);
if ($stillspots) {
    echo '<h2>CLASS FULL</h2>';
} else {
    if (isset($captchaerror)) {
        $p_firstname = $database->escape_value($_POST['p_firstname']);
        $p_lastname = $database->escape_value($_POST['p_lastname']);
        $k_firstname = $database->escape_value($_POST['k_firstname']);
        $k_lastname = $database->escape_value($_POST['k_lastname']);
        $phone = $database->escape_value($_POST['phone']);
        $email = $database->escape_value($_POST['email']);
        ?>
  <script>
  $(document).ready(function(){
    $("#commentForm").validate();
  });
Beispiel #2
0
    echo $updateclient->phone;
    ?>
" class="input_text" /></label>

<label><span>Coupon: </span><input type="text" maxlength="40" name="u_coupon" value="<?php 
    echo $updateclient->coupon;
    ?>
" class="input_text" /></label>

<input type="submit" name="Update" value="Update"  class="button" />

</form>
</div>
<?php 
} else {
    $stillspots = Classes::anyspots($_GET['clsid']);
    if ($stillspots) {
        echo '<h2>CLASS FULL</h2>';
    } else {
        ?>
<div class="box">
<h2>Add a New Client</h2>

<form action="clients-view.php?clsid=<?php 
        echo $_GET['clsid'];
        ?>
" method="post">

<input type="hidden" value="<?php 
        echo $_GET['clsid'];
        ?>