2013-04-14 22:42:40 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2013-04-17 00:37:36 +03:00
|
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
|
|
|
2013-04-14 22:42:40 +03:00
|
|
|
<?php // INCLUDE CSS FILES ?>
|
2013-05-17 16:09:10 +03:00
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
type="text/css"
|
|
|
|
href="<?php echo $this->config->base_url(); ?>assets/css/libs/bootstrap/bootstrap.css">
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
type="text/css"
|
|
|
|
href="<?php echo $this->config->base_url(); ?>assets/css/libs/bootstrap/bootstrap-responsive.css">
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
type="text/css"
|
|
|
|
href="<?php echo $this->config->base_url(); ?>assets/css/libs/jquery/jquery-ui.min.css">
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
type="text/css"
|
|
|
|
href="<?php echo $this->config->base_url(); ?>assets/css/libs/jquery/jquery.qtip.min.css">
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
type="text/css"
|
|
|
|
href="<?php echo $this->config->base_url(); ?>assets/css/style.css">
|
2013-04-14 22:42:40 +03:00
|
|
|
|
|
|
|
<?php // INCLUDE JS FILES ?>
|
2013-05-17 16:09:10 +03:00
|
|
|
<script
|
|
|
|
type="text/javascript"
|
|
|
|
src="<?php echo $this->config->base_url(); ?>assets/js/libs/jquery/jquery.min.js">
|
|
|
|
</script>
|
|
|
|
<script
|
|
|
|
type="text/javascript"
|
|
|
|
src="<?php echo $this->config->base_url(); ?>assets/js/libs/jquery/jquery-ui.min.js">
|
|
|
|
</script>
|
|
|
|
<script
|
|
|
|
type="text/javascript"
|
|
|
|
src="<?php echo $this->config->base_url(); ?>assets/js/libs/jquery/jquery.qtip.min.js">
|
|
|
|
</script>
|
|
|
|
<script
|
|
|
|
type="text/javascript"
|
|
|
|
src="<?php echo $this->config->base_url(); ?>assets/js/libs/bootstrap/bootstrap.min.js">
|
|
|
|
</script>
|
|
|
|
<script
|
|
|
|
type="text/javascript"
|
|
|
|
src="<?php echo $this->config->base_url(); ?>assets/js/libs/date.js">
|
|
|
|
</script>
|
|
|
|
<script
|
|
|
|
type="text/javascript"
|
|
|
|
src="<?php echo $this->config->base_url(); ?>assets/js/frontend/book_appointment.js">
|
|
|
|
</script>
|
|
|
|
<script
|
|
|
|
type="text/javascript"
|
|
|
|
src="<?php echo $this->config->base_url(); ?>assets/js/general_functions.js">
|
|
|
|
</script>
|
2013-04-14 22:42:40 +03:00
|
|
|
|
|
|
|
<?php // SET FAVICON FOR PAGE ?>
|
2013-05-17 16:09:10 +03:00
|
|
|
<link
|
|
|
|
rel="icon"
|
|
|
|
type="image/x-icon"
|
|
|
|
href="<?php echo $this->config->base_url(); ?>assets/images/favicon.ico">
|
2013-04-14 22:42:40 +03:00
|
|
|
|
2013-04-20 20:20:16 +03:00
|
|
|
<?php // JS GLOBAL VARIABLE DECLARATION ?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
// Define some global variables.
|
|
|
|
GlobalVariables = {
|
2013-05-04 00:26:04 +03:00
|
|
|
services : <?php echo json_encode($available_services); ?>,
|
|
|
|
providers : <?php echo json_encode($available_providers); ?>,
|
|
|
|
baseUrl : <?php echo '"' . $this->config->base_url() . '"'; ?>
|
2013-04-20 20:20:16 +03:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<?php // JQUERY PAGE STUFF ?>
|
2013-04-14 22:42:40 +03:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
2013-05-08 19:48:26 +03:00
|
|
|
bookAppointment.initialize();
|
|
|
|
GeneralFunctions.centerElementOnPage($('#book-appointment'));
|
2013-04-14 22:42:40 +03:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="main" class="container">
|
|
|
|
<div id="book-appointment">
|
|
|
|
<div id="top-bar">
|
2013-05-17 16:09:10 +03:00
|
|
|
<span id="business-name"><?php echo $company_name; ?></span>
|
2013-04-14 22:42:40 +03:00
|
|
|
<div id="book-steps">
|
|
|
|
<div id="step-1" class="book-step active-step" title="Select Service & Provider">
|
|
|
|
<strong>1</strong>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="step-2" class="book-step" title="Select Appointment Date">
|
|
|
|
<strong>2</strong>
|
|
|
|
</div>
|
|
|
|
<div id="step-3" class="book-step" title="Your Information">
|
|
|
|
<strong>3</strong>
|
|
|
|
</div>
|
|
|
|
<div id="step-4" class="book-step" title="Confirm Appointment">
|
|
|
|
<strong>4</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php // SELECT SERVICE AND PROVIDER ?>
|
|
|
|
<div id="book-appointment-1" class="book-appoinment-step">
|
2013-04-20 20:20:16 +03:00
|
|
|
<div class="book-step-content">
|
|
|
|
<h2>Select Service & Provider</h2>
|
|
|
|
<div class="span5">
|
|
|
|
<label for="select-service">Select Service</label>
|
|
|
|
<select id="select-service">
|
|
|
|
<?php
|
2013-05-04 00:26:04 +03:00
|
|
|
foreach($available_services as $service) {
|
2013-05-17 16:09:10 +03:00
|
|
|
echo '<option value="' . $service['id'] . '">'
|
|
|
|
. $service['name'] . '</option>';
|
2013-04-20 20:20:16 +03:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<label for="select-provider">Select Provider</label>
|
|
|
|
<select id="select-provider"></select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-04-14 22:42:40 +03:00
|
|
|
|
2013-04-17 00:37:36 +03:00
|
|
|
<div class="command-buttons">
|
2013-05-17 16:09:10 +03:00
|
|
|
<button type="button" id="button-next-1" class="btn button-next btn-primary"
|
|
|
|
data-step_index="1">Next <i class="icon-forward icon-white"></i></button>
|
2013-04-17 00:37:36 +03:00
|
|
|
</div>
|
2013-04-14 22:42:40 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php // APPOINTMENT DATE ?>
|
2013-04-17 00:37:36 +03:00
|
|
|
<div id="book-appointment-2" class="book-appoinment-step" style="display:none;">
|
2013-04-20 20:20:16 +03:00
|
|
|
<div class="book-step-content">
|
|
|
|
<h2>Select Appointment Date And Time</h2>
|
|
|
|
<div class="span3">
|
|
|
|
<div id="select-date"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="span3">
|
|
|
|
<?php // Available hours are going to be fetched via ajax call. ?>
|
|
|
|
<div id="available-hours"></div>
|
|
|
|
</div>
|
2013-04-17 00:37:36 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="command-buttons">
|
2013-05-17 16:09:10 +03:00
|
|
|
<button type="button" id="button-back-2" class="btn button-back"
|
|
|
|
data-step_index="2"><i class="icon-backward"></i> Back</button>
|
|
|
|
<button type="button" id="button-next-2" class="btn button-next btn-primary"
|
|
|
|
data-step_index="2">Next <i class="icon-forward icon-white"></i></button>
|
2013-04-17 00:37:36 +03:00
|
|
|
</div>
|
2013-04-14 22:42:40 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php // CUSTOMER'S INFO ?>
|
2013-04-17 00:37:36 +03:00
|
|
|
<div id="book-appointment-3" class="book-appoinment-step" style="display:none;">
|
2013-04-20 20:20:16 +03:00
|
|
|
<div class="book-step-content">
|
|
|
|
<h2>Fill In Your Information</h2>
|
2013-04-17 00:37:36 +03:00
|
|
|
|
2013-04-20 20:20:16 +03:00
|
|
|
<div class="span3">
|
|
|
|
<label for="last-name">Last Name *</label>
|
|
|
|
<input type="text" id="last-name" class="required" maxlength="250" />
|
2013-04-14 22:42:40 +03:00
|
|
|
|
2013-04-20 20:20:16 +03:00
|
|
|
<label for="first-name">First Name</label>
|
|
|
|
<input type="text" id="first-name" maxlength="100" />
|
2013-04-14 22:42:40 +03:00
|
|
|
|
2013-04-20 20:20:16 +03:00
|
|
|
<label for="email">Email *</label>
|
|
|
|
<input type="text" id="email" class="required" maxlength="250" />
|
2013-04-17 00:37:36 +03:00
|
|
|
|
2013-04-20 20:20:16 +03:00
|
|
|
<label for="phone-number">Phone Number *</label>
|
|
|
|
<input type="text" id="phone-number" class="required" maxlength="60" />
|
|
|
|
|
|
|
|
<br/><br/>
|
|
|
|
<em class="text-error">Fields with * are mandatory.</em>
|
|
|
|
</div>
|
2013-04-17 00:37:36 +03:00
|
|
|
|
2013-04-20 20:20:16 +03:00
|
|
|
<div class="span3">
|
|
|
|
<label for="address">Address</label>
|
|
|
|
<input type="text" id="address" maxlength="250" />
|
2013-04-17 00:37:36 +03:00
|
|
|
|
2013-04-20 20:20:16 +03:00
|
|
|
<label for="city">City</label>
|
|
|
|
<input type="text" id="city" maxlength="120" />
|
|
|
|
|
|
|
|
<label for="zip-code">Zip Code</label>
|
|
|
|
<input type="text" id="zip-code" maxlength="120" />
|
|
|
|
|
|
|
|
<label for="notes">Notes</label>
|
|
|
|
<textarea id="notes" maxlength="500" rows="4"></textarea>
|
|
|
|
</div>
|
|
|
|
|
2013-04-17 00:37:36 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="command-buttons">
|
2013-05-17 16:09:10 +03:00
|
|
|
<button type="button" id="button-back-3" class="btn button-back"
|
|
|
|
data-step_index="3"><i class="icon-backward"></i> Back</button>
|
|
|
|
<button type="button" id="button-next-3" class="btn button-next btn-primary"
|
|
|
|
data-step_index="3">Next <i class="icon-forward icon-white"></i></button>
|
2013-04-17 00:37:36 +03:00
|
|
|
</div>
|
2013-04-14 22:42:40 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php // CONFIRMATION STEP ?>
|
2013-04-17 00:37:36 +03:00
|
|
|
<div id="book-appointment-4" class="book-appoinment-step" style="display:none;">
|
2013-04-20 20:20:16 +03:00
|
|
|
<div class="book-step-content">
|
|
|
|
<h2>Confirm Appointment</h2>
|
|
|
|
|
|
|
|
<div id="appointment-info" class="span3"></div>
|
|
|
|
<div id="customer-info" class="span3"></div>
|
2013-04-17 00:37:36 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="command-buttons">
|
2013-05-17 16:09:10 +03:00
|
|
|
<button type="button" id="button-back-4" class="btn button-back"
|
|
|
|
data-step_index="4"><i class="icon-backward"></i> Back</button>
|
2013-04-20 20:20:16 +03:00
|
|
|
<form id="book-appointment-form" style="display:inline-block" method="post">
|
2013-05-17 16:09:10 +03:00
|
|
|
<button type="submit" class="btn btn-success">
|
|
|
|
<i class="icon-ok icon-white"></i>Confirm</button>
|
2013-05-04 00:26:04 +03:00
|
|
|
<input type="hidden" name="post_data" />
|
2013-04-17 00:37:36 +03:00
|
|
|
</form>
|
|
|
|
</div>
|
2013-04-14 22:42:40 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="frame-footer">
|
2013-05-17 16:09:10 +03:00
|
|
|
Powered By <a href="https://code.google.com/p/easy-appointments/">Easy!Appointments</a>
|
2013-04-14 22:42:40 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
2013-04-20 20:20:16 +03:00
|
|
|
</html>
|