<?php include_once '_includes/framework.php'; include_once "_includes/forms/new_attendee_form.php"; $form = new NewAttendeeForm($_POST); if (!$form->valid()) { include "form.php"; } else { $form->save(); include "_partials/header.php"; ?> <div class="container text-center"> <h1>You Are Now Registered</h1> <p class="lead">Pay at the desk to collect your swag!</p> <a href="/index.php" class="btn btn-primary btn-lg">Start Over</a> </div> <script> setTimeout(function(){ window.location = "/"; }, 8000); </script> <?php include "_partials/footer.php"; }
<?php include_once '_includes/framework.php'; include_once "_includes/forms/new_attendee_form.php"; include "_partials/header.php"; if (!isset($form)) { $form = new NewAttendeeForm(); } $reg_levels = RegistrationLevel::at_door(); $tshirt_sizes = TShirtSize::all(); $payment_types = PaymentType::at_door(); ?> <div class="container"> <form action="/post-form.php" method="post"> <div class="col-sm-12 text-center"> <a href="/index.php" class="btn btn-danger pull-right">Cancel</a> <h1>Register At The Door</h1> <?php if (!empty($form->errors)) { ?> <div class="alert alert-danger" role="alert"> There was one or more errors with your registration. </div> <?php } ?> </div> <div class="col-sm-6"> <h3 class="title"> Identification </h3> <p>To register you must have a government issued photo ID.</p>