2015-10-07 22:38:14 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2017-09-05 15:58:34 +03:00
|
|
|
<meta charset="utf-8">
|
2015-10-07 22:38:14 +03:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta name="theme-color" content="#35A768">
|
|
|
|
|
2017-09-14 16:18:20 +03:00
|
|
|
<title><?= lang('page_title') . ' ' . $company_name ?></title>
|
2017-09-05 15:58:34 +03:00
|
|
|
|
2017-11-14 16:01:49 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/ext/bootstrap/css/bootstrap.min.css') ?>">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/ext/jquery-ui/jquery-ui.min.css') ?>">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/ext/jquery-qtip/jquery.qtip.min.css') ?>">
|
2018-06-24 17:58:03 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/ext/cookieconsent/cookieconsent.min.css') ?>">
|
2017-11-14 16:01:49 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/frontend.css') ?>">
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
|
|
|
|
|
|
|
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
|
|
|
|
<link rel="icon" sizes="192x192" href="<?= asset_url('assets/img/logo.png') ?>">
|
2015-10-07 22:38:14 +03:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="main" class="container">
|
|
|
|
<div class="wrapper row">
|
|
|
|
<div id="book-appointment-wizard" class="col-xs-12 col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
|
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- FRAME TOP BAR -->
|
2016-01-17 14:10:48 +02:00
|
|
|
|
2015-10-07 22:38:14 +03:00
|
|
|
<div id="header">
|
2017-09-14 16:18:20 +03:00
|
|
|
<span id="company-name"><?= $company_name ?></span>
|
2015-10-07 22:38:14 +03:00
|
|
|
|
|
|
|
<div id="steps">
|
2017-09-14 16:18:20 +03:00
|
|
|
<div id="step-1" class="book-step active-step" title="<?= lang('step_one_title') ?>">
|
2015-10-07 22:38:14 +03:00
|
|
|
<strong>1</strong>
|
|
|
|
</div>
|
|
|
|
|
2017-09-14 16:18:20 +03:00
|
|
|
<div id="step-2" class="book-step" title="<?= lang('step_two_title') ?>">
|
2015-10-07 22:38:14 +03:00
|
|
|
<strong>2</strong>
|
|
|
|
</div>
|
2017-09-14 16:18:20 +03:00
|
|
|
<div id="step-3" class="book-step" title="<?= lang('step_three_title') ?>">
|
2015-10-07 22:38:14 +03:00
|
|
|
<strong>3</strong>
|
|
|
|
</div>
|
2017-09-14 16:18:20 +03:00
|
|
|
<div id="step-4" class="book-step" title="<?= lang('step_four_title') ?>">
|
2015-10-07 22:38:14 +03:00
|
|
|
<strong>4</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-06-24 20:08:45 +03:00
|
|
|
<?php if ($manage_mode): ?>
|
|
|
|
<div id="cancel-appointment-frame" class="booking-header-bar row">
|
|
|
|
<div class="col-xs-12 col-sm-10">
|
|
|
|
<p><?= lang('cancel_appointment_hint') ?></p>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-sm-2">
|
|
|
|
<form id="cancel-appointment-form" method="post"
|
|
|
|
action="<?= site_url('appointments/cancel/' . $appointment_data['hash']) ?>">
|
|
|
|
<input type="hidden" name="csrfToken" value="<?= $this->security->get_csrf_hash() ?>" />
|
|
|
|
<textarea name="cancel_reason" style="display:none"></textarea>
|
|
|
|
<button id="cancel-appointment" class="btn btn-default btn-sm"><?= lang('cancel') ?></button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="booking-header-bar row">
|
|
|
|
<div class="col-xs-12 col-sm-10">
|
|
|
|
<p><?= lang('delete_personal_information_hint') ?></p>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-sm-2">
|
|
|
|
<button id="delete-personal-information" class="btn btn-danger btn-sm"><?= lang('delete') ?></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2015-10-07 22:38:14 +03:00
|
|
|
|
|
|
|
<?php
|
|
|
|
if (isset($exceptions)) {
|
|
|
|
echo '<div style="margin: 10px">';
|
2017-09-08 15:06:37 +03:00
|
|
|
echo '<h4>' . lang('unexpected_issues') . '</h4>';
|
2015-10-07 22:38:14 +03:00
|
|
|
foreach($exceptions as $exception) {
|
|
|
|
echo exceptionToHtml($exception);
|
|
|
|
}
|
|
|
|
echo '</div>';
|
|
|
|
}
|
|
|
|
?>
|
2016-01-17 14:10:48 +02:00
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- SELECT SERVICE AND PROVIDER -->
|
2016-01-17 14:10:48 +02:00
|
|
|
|
2015-10-07 22:38:14 +03:00
|
|
|
<div id="wizard-frame-1" class="wizard-frame">
|
|
|
|
<div class="frame-container">
|
2017-09-14 16:18:20 +03:00
|
|
|
<h3 class="frame-title"><?= lang('step_one_title') ?></h3>
|
2015-10-07 22:38:14 +03:00
|
|
|
|
|
|
|
<div class="frame-content">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="select-service">
|
2017-09-14 16:18:20 +03:00
|
|
|
<strong><?= lang('select_service') ?></strong>
|
2015-10-07 22:38:14 +03:00
|
|
|
</label>
|
|
|
|
|
2017-10-03 13:27:02 +03:00
|
|
|
<select id="select-service" class="col-xs-12 col-sm-4 form-control">
|
2015-10-07 22:38:14 +03:00
|
|
|
<?php
|
2017-09-14 16:18:20 +03:00
|
|
|
// Group services by category, only if there is at least one service with a parent category.
|
2015-10-07 22:38:14 +03:00
|
|
|
$has_category = FALSE;
|
|
|
|
foreach($available_services as $service) {
|
|
|
|
if ($service['category_id'] != NULL) {
|
|
|
|
$has_category = TRUE;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($has_category) {
|
|
|
|
$grouped_services = array();
|
|
|
|
|
|
|
|
foreach($available_services as $service) {
|
|
|
|
if ($service['category_id'] != NULL) {
|
|
|
|
if (!isset($grouped_services[$service['category_name']])) {
|
|
|
|
$grouped_services[$service['category_name']] = array();
|
|
|
|
}
|
|
|
|
|
|
|
|
$grouped_services[$service['category_name']][] = $service;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// We need the uncategorized services at the end of the list so
|
|
|
|
// we will use another iteration only for the uncategorized services.
|
|
|
|
$grouped_services['uncategorized'] = array();
|
|
|
|
foreach($available_services as $service) {
|
|
|
|
if ($service['category_id'] == NULL) {
|
|
|
|
$grouped_services['uncategorized'][] = $service;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach($grouped_services as $key => $group) {
|
|
|
|
$group_label = ($key != 'uncategorized')
|
|
|
|
? $group[0]['category_name'] : 'Uncategorized';
|
|
|
|
|
|
|
|
if (count($group) > 0) {
|
|
|
|
echo '<optgroup label="' . $group_label . '">';
|
|
|
|
foreach($group as $service) {
|
|
|
|
echo '<option value="' . $service['id'] . '">'
|
|
|
|
. $service['name'] . '</option>';
|
|
|
|
}
|
|
|
|
echo '</optgroup>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
foreach($available_services as $service) {
|
2017-09-14 16:18:20 +03:00
|
|
|
echo '<option value="' . $service['id'] . '">' . $service['name'] . '</option>';
|
2015-10-07 22:38:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="select-provider">
|
2017-09-14 16:18:20 +03:00
|
|
|
<strong><?= lang('select_provider') ?></strong>
|
2015-10-07 22:38:14 +03:00
|
|
|
</label>
|
|
|
|
|
2017-10-03 13:27:02 +03:00
|
|
|
<select id="select-provider" class="col-xs-12 col-sm-4 form-control"></select>
|
2015-10-07 22:38:14 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="service-description" style="display:none;"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="command-buttons">
|
|
|
|
<button type="button" id="button-next-1" class="btn button-next btn-primary"
|
|
|
|
data-step_index="1">
|
2017-09-14 16:18:20 +03:00
|
|
|
<?= lang('next') ?>
|
2015-10-07 22:38:14 +03:00
|
|
|
<span class="glyphicon glyphicon-forward"></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- SELECT APPOINTMENT DATE -->
|
2016-01-17 14:10:48 +02:00
|
|
|
|
2015-10-07 22:38:14 +03:00
|
|
|
<div id="wizard-frame-2" class="wizard-frame" style="display:none;">
|
|
|
|
<div class="frame-container">
|
|
|
|
|
2017-09-14 16:18:20 +03:00
|
|
|
<h3 class="frame-title"><?= lang('step_two_title') ?></h3>
|
2015-10-07 22:38:14 +03:00
|
|
|
|
|
|
|
<div class="frame-content row">
|
2016-07-14 22:30:27 +03:00
|
|
|
<div class="col-xs-12 col-sm-6">
|
2015-10-07 22:38:14 +03:00
|
|
|
<div id="select-date"></div>
|
|
|
|
</div>
|
|
|
|
|
2016-07-14 22:30:27 +03:00
|
|
|
<div class="col-xs-12 col-sm-6">
|
2015-10-07 22:38:14 +03:00
|
|
|
<div id="available-hours"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="command-buttons">
|
|
|
|
<button type="button" id="button-back-2" class="btn button-back btn-default"
|
|
|
|
data-step_index="2">
|
|
|
|
<span class="glyphicon glyphicon-backward"></span>
|
2017-09-14 16:18:20 +03:00
|
|
|
<?= lang('back') ?>
|
2015-10-07 22:38:14 +03:00
|
|
|
</button>
|
|
|
|
<button type="button" id="button-next-2" class="btn button-next btn-primary"
|
|
|
|
data-step_index="2">
|
2017-09-14 16:18:20 +03:00
|
|
|
<?= lang('next') ?>
|
2015-10-07 22:38:14 +03:00
|
|
|
<span class="glyphicon glyphicon-forward"></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- ENTER CUSTOMER DATA -->
|
2016-01-17 14:10:48 +02:00
|
|
|
|
2015-10-07 22:38:14 +03:00
|
|
|
<div id="wizard-frame-3" class="wizard-frame" style="display:none;">
|
|
|
|
<div class="frame-container">
|
|
|
|
|
2017-09-14 16:18:20 +03:00
|
|
|
<h3 class="frame-title"><?= lang('step_three_title') ?></h3>
|
2015-10-07 22:38:14 +03:00
|
|
|
|
|
|
|
<div class="frame-content row">
|
2016-07-14 22:30:27 +03:00
|
|
|
<div class="col-xs-12 col-sm-6">
|
2015-10-07 22:38:14 +03:00
|
|
|
<div class="form-group">
|
2017-09-14 16:18:20 +03:00
|
|
|
<label for="first-name" class="control-label"><?= lang('first_name') ?> *</label>
|
2015-10-07 22:38:14 +03:00
|
|
|
<input type="text" id="first-name" class="required form-control" maxlength="100" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-09-14 16:18:20 +03:00
|
|
|
<label for="last-name" class="control-label"><?= lang('last_name') ?> *</label>
|
2018-02-26 16:15:41 +03:00
|
|
|
<input type="text" id="last-name" class="required form-control" maxlength="120" />
|
2015-10-07 22:38:14 +03:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-09-14 16:18:20 +03:00
|
|
|
<label for="email" class="control-label"><?= lang('email') ?> *</label>
|
2018-02-26 16:15:41 +03:00
|
|
|
<input type="text" id="email" class="required form-control" maxlength="120" />
|
2015-10-07 22:38:14 +03:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-09-14 16:18:20 +03:00
|
|
|
<label for="phone-number" class="control-label"><?= lang('phone_number') ?> *</label>
|
2015-10-07 22:38:14 +03:00
|
|
|
<input type="text" id="phone-number" class="required form-control" maxlength="60" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-07-14 22:30:27 +03:00
|
|
|
<div class="col-xs-12 col-sm-6">
|
2015-10-07 22:38:14 +03:00
|
|
|
<div class="form-group">
|
2017-09-14 16:18:20 +03:00
|
|
|
<label for="address" class="control-label"><?= lang('address') ?></label>
|
2018-02-26 16:15:41 +03:00
|
|
|
<input type="text" id="address" class="form-control" maxlength="120" />
|
2015-10-07 22:38:14 +03:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-09-14 16:18:20 +03:00
|
|
|
<label for="city" class="control-label"><?= lang('city') ?></label>
|
2015-10-07 22:38:14 +03:00
|
|
|
<input type="text" id="city" class="form-control" maxlength="120" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-09-14 16:18:20 +03:00
|
|
|
<label for="zip-code" class="control-label"><?= lang('zip_code') ?></label>
|
2015-10-07 22:38:14 +03:00
|
|
|
<input type="text" id="zip-code" class="form-control" maxlength="120" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-09-14 16:18:20 +03:00
|
|
|
<label for="notes" class="control-label"><?= lang('notes') ?></label>
|
2015-10-07 22:38:14 +03:00
|
|
|
<textarea id="notes" maxlength="500" class="form-control" rows="3"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-06-24 17:58:03 +03:00
|
|
|
<?php if ($display_terms_and_conditions): ?>
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" class="required" id="accept-to-terms-and-conditions">
|
|
|
|
<?= strtr(lang('read_and_agree_to_terms_and_conditions'),
|
|
|
|
[
|
|
|
|
'{$link}' => '<a href="#" data-toggle="modal" data-target="#terms-and-conditions-modal">',
|
|
|
|
'{/$link}' => '</a>'
|
|
|
|
])
|
|
|
|
?>
|
|
|
|
</label>
|
|
|
|
<br>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if ($display_privacy_policy): ?>
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" class="required" id="accept-to-privacy-policy">
|
|
|
|
<?= strtr(lang('read_and_agree_to_privacy_policy'),
|
|
|
|
[
|
|
|
|
'{$link}' => '<a href="#" data-toggle="modal" data-target="#privacy-policy-modal">',
|
|
|
|
'{/$link}' => '</a>'
|
|
|
|
])
|
|
|
|
?>
|
|
|
|
</label>
|
|
|
|
<br>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<span id="form-message" class="text-danger"><?= lang('fields_are_required') ?></span>
|
2015-10-07 22:38:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="command-buttons">
|
|
|
|
<button type="button" id="button-back-3" class="btn button-back btn-default"
|
|
|
|
data-step_index="3"><span class="glyphicon glyphicon-backward"></span>
|
2017-09-14 16:18:20 +03:00
|
|
|
<?= lang('back') ?>
|
2015-10-07 22:38:14 +03:00
|
|
|
</button>
|
|
|
|
<button type="button" id="button-next-3" class="btn button-next btn-primary"
|
|
|
|
data-step_index="3">
|
2017-09-14 16:18:20 +03:00
|
|
|
<?= lang('next') ?>
|
2015-10-07 22:38:14 +03:00
|
|
|
<span class="glyphicon glyphicon-forward"></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- APPOINTMENT DATA CONFIRMATION -->
|
2016-01-17 14:10:48 +02:00
|
|
|
|
2015-10-07 22:38:14 +03:00
|
|
|
<div id="wizard-frame-4" class="wizard-frame" style="display:none;">
|
|
|
|
<div class="frame-container">
|
2017-09-14 16:18:20 +03:00
|
|
|
<h3 class="frame-title"><?= lang('step_four_title') ?></h3>
|
2015-10-07 22:38:14 +03:00
|
|
|
<div class="frame-content row">
|
2016-07-14 22:30:27 +03:00
|
|
|
<div id="appointment-details" class="col-xs-12 col-sm-6"></div>
|
|
|
|
<div id="customer-details" class="col-xs-12 col-sm-6"></div>
|
2015-10-07 22:38:14 +03:00
|
|
|
</div>
|
2015-12-30 13:54:33 +02:00
|
|
|
<?php if ($this->settings_model->get_setting('require_captcha') === '1'): ?>
|
2015-10-22 00:29:20 +03:00
|
|
|
<div class="frame-content row">
|
2017-10-03 13:27:02 +03:00
|
|
|
<div class="col-xs-12 col-sm-6">
|
2015-10-22 00:29:20 +03:00
|
|
|
<h4 class="captcha-title">
|
2015-12-30 13:54:33 +02:00
|
|
|
CAPTCHA
|
2015-10-22 00:29:20 +03:00
|
|
|
<small class="glyphicon glyphicon-refresh"></small>
|
|
|
|
</h4>
|
2017-09-14 16:18:20 +03:00
|
|
|
<img class="captcha-image" src="<?= site_url('captcha') ?>">
|
2015-10-22 00:29:20 +03:00
|
|
|
<input class="captcha-text" type="text" value="" />
|
2016-01-01 21:18:03 +02:00
|
|
|
<span id="captcha-hint" class="help-block" style="opacity:0"> </span>
|
2015-10-22 00:29:20 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-12-30 13:54:33 +02:00
|
|
|
<?php endif; ?>
|
2015-10-07 22:38:14 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="command-buttons">
|
|
|
|
<button type="button" id="button-back-4" class="btn button-back btn-default"
|
|
|
|
data-step_index="4">
|
|
|
|
<span class="glyphicon glyphicon-backward"></span>
|
2017-09-14 16:18:20 +03:00
|
|
|
<?= lang('back') ?>
|
2015-10-07 22:38:14 +03:00
|
|
|
</button>
|
|
|
|
<form id="book-appointment-form" style="display:inline-block" method="post">
|
|
|
|
<button id="book-appointment-submit" type="button" class="btn btn-success">
|
|
|
|
<span class="glyphicon glyphicon-ok"></span>
|
2017-09-14 16:18:20 +03:00
|
|
|
<?= !$manage_mode ? lang('confirm') : lang('update') ?>
|
2015-10-07 22:38:14 +03:00
|
|
|
</button>
|
|
|
|
<input type="hidden" name="csrfToken" />
|
|
|
|
<input type="hidden" name="post_data" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<!-- FRAME FOOTER -->
|
2016-01-17 14:10:48 +02:00
|
|
|
|
2015-10-07 22:38:14 +03:00
|
|
|
<div id="frame-footer">
|
|
|
|
Powered By
|
|
|
|
<a href="http://easyappointments.org" target="_blank">Easy!Appointments</a>
|
|
|
|
|
|
|
|
|
<span id="select-language" class="label label-success">
|
2017-09-14 16:18:20 +03:00
|
|
|
<?= ucfirst($this->config->item('language')) ?>
|
2015-10-07 22:38:14 +03:00
|
|
|
</span>
|
2016-07-16 18:15:20 +03:00
|
|
|
|
|
2017-09-14 16:18:20 +03:00
|
|
|
<a href="<?= site_url('backend'); ?>">
|
|
|
|
<?= $this->session->user_id ? lang('backend_section') : lang('login') ?>
|
2016-07-16 18:15:20 +03:00
|
|
|
</a>
|
2015-10-07 22:38:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-10-22 00:29:20 +03:00
|
|
|
|
2018-06-24 17:58:03 +03:00
|
|
|
<?php if ($display_cookie_notice === '1'): ?>
|
|
|
|
<?php require 'cookie_notice_modal.php' ?>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if ($display_terms_and_conditions === '1'): ?>
|
|
|
|
<?php require 'terms_and_conditions_modal.php' ?>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if ($display_privacy_policy === '1'): ?>
|
|
|
|
<?php require 'privacy_policy_modal.php' ?>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2017-09-05 15:58:34 +03:00
|
|
|
<script>
|
2016-04-24 11:36:06 +03:00
|
|
|
var GlobalVariables = {
|
2017-09-14 16:18:20 +03:00
|
|
|
availableServices : <?= json_encode($available_services) ?>,
|
|
|
|
availableProviders : <?= json_encode($available_providers) ?>,
|
2018-01-15 10:57:17 +03:00
|
|
|
baseUrl : <?= json_encode(config('base_url')) ?>,
|
2017-09-14 16:18:20 +03:00
|
|
|
manageMode : <?= $manage_mode ? 'true' : 'false' ?>,
|
2018-06-24 20:08:45 +03:00
|
|
|
customerToken : <?= json_encode($customer_token) ?>,
|
2017-09-14 16:18:20 +03:00
|
|
|
dateFormat : <?= json_encode($date_format) ?>,
|
2018-03-06 14:20:47 +03:00
|
|
|
timeFormat : <?= json_encode($time_format) ?>,
|
2018-06-29 01:41:17 +03:00
|
|
|
firstWeekday : <?= json_encode($first_weekday) ?>,
|
2018-06-24 17:58:03 +03:00
|
|
|
displayCookieNotice : <?= json_encode($display_cookie_notice === '1') ?>,
|
2017-09-14 16:18:20 +03:00
|
|
|
appointmentData : <?= json_encode($appointment_data) ?>,
|
|
|
|
providerData : <?= json_encode($provider_data) ?>,
|
|
|
|
customerData : <?= json_encode($customer_data) ?>,
|
|
|
|
csrfToken : <?= json_encode($this->security->get_csrf_hash()) ?>
|
2016-04-24 11:36:06 +03:00
|
|
|
};
|
|
|
|
|
2017-09-14 16:18:20 +03:00
|
|
|
var EALang = <?= json_encode($this->lang->language) ?>;
|
|
|
|
var availableLanguages = <?= json_encode($this->config->item('available_languages')) ?>;
|
2016-04-24 11:36:06 +03:00
|
|
|
</script>
|
|
|
|
|
2017-11-14 16:01:49 +03:00
|
|
|
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/ext/jquery/jquery.min.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/ext/jquery-ui/jquery-ui.min.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/ext/jquery-qtip/jquery.qtip.min.js') ?>"></script>
|
2018-06-24 17:58:03 +03:00
|
|
|
<script src="<?= asset_url('assets/ext/cookieconsent/cookieconsent.min.js') ?>"></script>
|
2017-11-14 16:01:49 +03:00
|
|
|
<script src="<?= asset_url('assets/ext/bootstrap/js/bootstrap.min.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/ext/datejs/date.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/frontend_book_api.js') ?>"></script>
|
|
|
|
<script src="<?= asset_url('assets/js/frontend_book.js') ?>"></script>
|
2017-09-05 15:58:34 +03:00
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
2016-04-24 11:36:06 +03:00
|
|
|
FrontendBook.initialize(true, GlobalVariables.manageMode);
|
|
|
|
GeneralFunctions.enableLanguageSelection($('#select-language'));
|
|
|
|
});
|
|
|
|
</script>
|
2015-10-07 22:38:14 +03:00
|
|
|
|
2016-01-17 14:10:48 +02:00
|
|
|
<?php google_analytics_script(); ?>
|
2015-10-07 22:38:14 +03:00
|
|
|
</body>
|
|
|
|
</html>
|