Merge branch 'develop' into gli-1096
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<div style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<p style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
|
||||
{l s='Here are the bank details for your transfer:' mod='bankwire' lang=$lang}
|
||||
</p>
|
||||
@@ -35,7 +35,7 @@
|
||||
<span style="color:#333"><strong>{l s='Account details:' mod='bankwire' lang=$lang}</strong></span> {$bankwire_details}<br />
|
||||
<span style="color:#333"><strong>{l s='Bank address:' mod='bankwire' lang=$lang}</strong></span> {$bankwire_address}
|
||||
</span>
|
||||
</font>
|
||||
</div>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
|
||||
@@ -68,9 +68,9 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi,</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -82,13 +82,13 @@
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span style="color:#777">
|
||||
<strong>
|
||||
Thank you for subscribing to our newsletter! If you wish to unsubscribe, please click <span style="color:#333"><a href="{unsub_url}" target="_blank" style="color:#337ff1">here.</a></span>
|
||||
</strong>
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
|
||||
@@ -68,9 +68,9 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi,</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -82,11 +82,11 @@
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span style="color:#777">
|
||||
Thank you for subscribing to our newsletter, please confirm your request by clicking <span style="color:#333"><strong><a href="{verif_url}" target="_blank" style="color:#337ff1">here.</a></strong></span>
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
|
||||
@@ -69,9 +69,9 @@
|
||||
|
||||
<tr>
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">Hi,</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -83,7 +83,7 @@
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
|
||||
Newsletter subscription </p>
|
||||
<span style="color:#777">
|
||||
@@ -94,7 +94,7 @@
|
||||
<span style="color:#777">
|
||||
Please note that the voucher will be valid on your first order.
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<div style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<p style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
|
||||
{l s='Here are the bank details for your check:' mod='cheque' lang=$lang}
|
||||
</p>
|
||||
@@ -34,7 +34,7 @@
|
||||
<span style="color:#333"><strong>{l s='Payable to the order of:' mod='cheque' lang=$lang}</strong></span> {$cheque_name}<br />
|
||||
<span style="color:#333"><strong>{l s='Please mail your check to:' mod='cheque' lang=$lang}</strong></span> {$cheque_address_html}
|
||||
</span>
|
||||
</font>
|
||||
</div>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
|
||||
@@ -46,7 +46,7 @@ class DashGuestCycle extends Module
|
||||
public function install()
|
||||
{
|
||||
return (parent::install()
|
||||
&& $this->registerHook('dashboardTop')
|
||||
&& $this->registerHook('actionAdminDashboardKPIListingModifier')
|
||||
&& $this->registerHook('dashboardZoneTwo')
|
||||
&& $this->registerHook('dashboardData')
|
||||
&& $this->registerHook('actionAdminControllerSetMedia')
|
||||
@@ -60,9 +60,120 @@ class DashGuestCycle extends Module
|
||||
}
|
||||
}
|
||||
|
||||
public function hookDashboardTop()
|
||||
public function hookActionAdminDashboardKPIListingModifier(array $params)
|
||||
{
|
||||
return $this->display(__FILE__, 'dashboard-top.tpl');
|
||||
$idHotel = (int)$this->context->cookie->stats_id_hotel;
|
||||
$kpiValues = $this->getKpiValues($idHotel);
|
||||
|
||||
$kpisData = array(
|
||||
array(
|
||||
'id' => 'box-dgc-arrivals',
|
||||
'color' => 'color1',
|
||||
'title' => $this->l('Arrivals'),
|
||||
'tooltip' => $this->l('The number of arrivals scheduled for today.'),
|
||||
'value' => $kpiValues['box-dgc-arrivals'],
|
||||
),
|
||||
array(
|
||||
'id' => 'box-dgc-departures',
|
||||
'color' => 'color2',
|
||||
'title' => $this->l('Departures'),
|
||||
'tooltip' => $this->l('The number of departures scheduled for today.'),
|
||||
'value' => $kpiValues['box-dgc-departures'],
|
||||
),
|
||||
array(
|
||||
'id' => 'box-dgc-new-bookings',
|
||||
'color' => 'color3',
|
||||
'title' => $this->l('New Bookings'),
|
||||
'tooltip' => $this->l('The number of new bookings created today so far.'),
|
||||
'value' => $kpiValues['box-dgc-new-bookings'],
|
||||
),
|
||||
array(
|
||||
'id' => 'box-dgc-occupied',
|
||||
'color' => 'color4',
|
||||
'title' => $this->l('Occupied Rooms'),
|
||||
'tooltip' => $this->l('The count of rooms currently occupied by guests.'),
|
||||
'value' => $kpiValues['box-dgc-occupied'],
|
||||
),
|
||||
array(
|
||||
'id' => 'box-dgc-messages',
|
||||
'color' => 'color5',
|
||||
'title' => $this->l('Guest Messages'),
|
||||
'tooltip' => $this->l('The number of new messages received from guests today.'),
|
||||
'value' => $kpiValues['box-dgc-messages'],
|
||||
),
|
||||
array(
|
||||
'id' => 'box-dgc-cancelled',
|
||||
'color' => 'color6',
|
||||
'title' => $this->l('Cancelled Bookings'),
|
||||
'tooltip' => $this->l('The number of bookings cancelled today so far.'),
|
||||
'value' => $kpiValues['box-dgc-cancelled'],
|
||||
),
|
||||
array(
|
||||
'id' => 'box-dgc-guests',
|
||||
'color' => 'color1',
|
||||
'title' => $this->l('Guests (Adults/Children)'),
|
||||
'tooltip' => $this->l('The number of adults and children scheduled to stay today.'),
|
||||
'value' => $kpiValues['box-dgc-guests'],
|
||||
),
|
||||
);
|
||||
|
||||
foreach ($kpisData as $data) {
|
||||
$helper = new HelperKpi();
|
||||
$helper->id = $data['id'];
|
||||
$helper->color = $data['color'];
|
||||
$helper->title = $data['title'];
|
||||
$helper->tooltip = $data['tooltip'];
|
||||
$helper->value = $data['value'];
|
||||
$params['kpis'][] = $helper;
|
||||
}
|
||||
}
|
||||
|
||||
private function getKpiValues($idHotel)
|
||||
{
|
||||
$dateToday = date('Y-m-d');
|
||||
|
||||
if (Configuration::get('PS_DASHBOARD_SIMULATION')) {
|
||||
$totalArrivals = rand(100, 1000);
|
||||
$arrived = rand(0, $totalArrivals);
|
||||
$totalDepartures = rand(100, 1000);
|
||||
$departed = rand(0, $totalDepartures);
|
||||
$newBookings = rand(10, 500);
|
||||
$occupied = rand(10, 500);
|
||||
$newMessages = rand(0, 20);
|
||||
$cancelledBookings = rand(0, 20);
|
||||
$totalAdults = rand(100, 1000);
|
||||
$children = rand(0, $totalAdults);
|
||||
} else {
|
||||
$arrivalsData = AdminStatsController::getArrivalsByDate($dateToday, $idHotel);
|
||||
$departuresData = AdminStatsController::getDeparturesByDate($dateToday, $idHotel);
|
||||
$guestsData = AdminStatsController::getGuestsByDate($dateToday, $idHotel);
|
||||
|
||||
$arrived = (int) $arrivalsData['arrived'];
|
||||
$totalArrivals = (int) $arrivalsData['total_arrivals'];
|
||||
$departed = (int) $departuresData['departed'];
|
||||
$totalDepartures = (int) $departuresData['total_departures'];
|
||||
$newBookings = count(AdminStatsController::getNewBookingsInfoByDate($dateToday, $idHotel));
|
||||
$occupied = (int) AdminStatsController::getDistinctRoomBookingsCount(
|
||||
date('Y-m-d', strtotime('-1 day')),
|
||||
$dateToday,
|
||||
$idHotel,
|
||||
HotelBookingDetail::STATUS_CHECKED_IN
|
||||
);
|
||||
$newMessages = (int) CustomerMessage::getMessagesByDate($dateToday);
|
||||
$cancelledBookings = (int) AdminStatsController::getCancelledBookingsByDate($dateToday, $idHotel);
|
||||
$totalAdults = (int) $guestsData['adults'];
|
||||
$children = (int) $guestsData['children'];
|
||||
}
|
||||
|
||||
return array(
|
||||
'box-dgc-arrivals' => sprintf('%02d', $arrived).'/'.sprintf('%02d', $totalArrivals),
|
||||
'box-dgc-departures' => sprintf('%02d', $departed).'/'.sprintf('%02d', $totalDepartures),
|
||||
'box-dgc-new-bookings' => sprintf('%02d', $newBookings),
|
||||
'box-dgc-occupied' => sprintf('%02d', $occupied),
|
||||
'box-dgc-messages' => sprintf('%02d', $newMessages),
|
||||
'box-dgc-cancelled' => sprintf('%02d', $cancelledBookings),
|
||||
'box-dgc-guests' => sprintf('%02d', $totalAdults).'/'.sprintf('%02d', $children),
|
||||
);
|
||||
}
|
||||
|
||||
public function hookDashboardZoneTwo()
|
||||
@@ -76,37 +187,10 @@ class DashGuestCycle extends Module
|
||||
$dataTable = array();
|
||||
|
||||
$dateToday = date('Y-m-d');
|
||||
if (Configuration::get('PS_DASHBOARD_SIMULATION')) {
|
||||
$dataValue['dgc_total_arrivals'] = sprintf('%02d', rand(100, 1000));
|
||||
$dataValue['dgc_arrived'] = sprintf('%02d', rand(0, $dataValue['dgc_total_arrivals']));
|
||||
$dataValue['dgc_total_departures'] = sprintf('%02d', rand(100, 1000));
|
||||
$dataValue['dgc_departed'] = sprintf('%02d', rand(0, $dataValue['dgc_total_departures']));
|
||||
$dataValue['dgc_new_bookings'] = sprintf('%02d', rand(10, 500));
|
||||
$dataValue['dgc_occupied'] = sprintf('%02d', rand(10, 500));
|
||||
$dataValue['dgc_new_messages'] = sprintf('%02d', rand(0, 20));
|
||||
$dataValue['dgc_cancelled_bookings'] = sprintf('%02d', rand(0, 20));
|
||||
$dataValue['dgc_guests_adults'] = sprintf('%02d', rand(100, 1000));
|
||||
$dataValue['dgc_guests_children'] = sprintf('%02d', rand(0, $dataValue['dgc_guests_adults']));
|
||||
} else {
|
||||
// set badges data
|
||||
$arrivalsData = AdminStatsController::getArrivalsByDate($dateToday, $params['id_hotel']);
|
||||
$departuresData = AdminStatsController::getDeparturesByDate($dateToday, $params['id_hotel']);
|
||||
$guestsData = AdminStatsController::getGuestsByDate($dateToday, $params['id_hotel']);
|
||||
$dataValue['dgc_arrived'] = sprintf('%02d', $arrivalsData['arrived']);
|
||||
$dataValue['dgc_total_arrivals'] = sprintf('%02d', $arrivalsData['total_arrivals']);
|
||||
$dataValue['dgc_departed'] = sprintf('%02d', $departuresData['departed']);
|
||||
$dataValue['dgc_total_departures'] = sprintf('%02d', $departuresData['total_departures']);
|
||||
$dataValue['dgc_new_bookings'] = sprintf('%02d', count(AdminStatsController::getNewBookingsInfoByDate($dateToday, $params['id_hotel'])));
|
||||
$dataValue['dgc_occupied'] = sprintf('%02d', AdminStatsController::getDistinctRoomBookingsCount(
|
||||
date('Y-m-d', strtotime('-1 day')),
|
||||
$dateToday,
|
||||
$params['id_hotel'],
|
||||
HotelBookingDetail::STATUS_CHECKED_IN
|
||||
));
|
||||
$dataValue['dgc_new_messages'] = sprintf('%02d', CustomerMessage::getMessagesByDate($dateToday));
|
||||
$dataValue['dgc_cancelled_bookings'] = sprintf('%02d', AdminStatsController::getCancelledBookingsByDate($dateToday, $params['id_hotel']));
|
||||
$dataValue['dgc_guests_adults'] = sprintf('%02d', $guestsData['adults']);
|
||||
$dataValue['dgc_guests_children'] = sprintf('%02d', $guestsData['children']);
|
||||
|
||||
// KPI box values — updated on every AJAX refresh (demo toggle, date change)
|
||||
foreach ($this->getKpiValues((int) $params['id_hotel']) as $boxId => $value) {
|
||||
$dataValue[$boxId . ' .value'] = $value;
|
||||
}
|
||||
|
||||
// set tables data
|
||||
|
||||
@@ -20,76 +20,6 @@
|
||||
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
|
||||
*/
|
||||
|
||||
#dashguestcycle {
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
#dashguestcycle .badges-wrapper {
|
||||
white-space: nowrap;
|
||||
overflow: auto;
|
||||
margin: -5px;
|
||||
margin-bottom: 0px;
|
||||
padding-bottom: 10px;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
#dashguestcycle .badge-wrapper {
|
||||
display: inline-block;
|
||||
width: 14.28%;
|
||||
min-width: 145px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
#dashguestcycle .badge-item {
|
||||
position: relative;
|
||||
min-width: 135px;
|
||||
height: 80px;
|
||||
border-radius: 10px;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
#dashguestcycle .badge-strip {
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
height: 100%;
|
||||
border-top-left-radius: 10px;
|
||||
border-bottom-left-radius: 10px;
|
||||
}
|
||||
|
||||
#dashguestcycle .badge-content-wrapper {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#dashguestcycle .badge-content-wrapper p {
|
||||
color: #00AFF0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#dashguestcycle .title-wrapper, #dashguestcycle .value-wrapper {
|
||||
display: table;
|
||||
width: 100%;
|
||||
height: 50%;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
#dashguestcycle .title-wrapper p {
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
font-weight: normal;
|
||||
font-size: 13px;
|
||||
line-height: 15px;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
#dashguestcycle .value-wrapper p {
|
||||
display: table-cell;
|
||||
vertical-align: top;
|
||||
font-weight: bold;
|
||||
font-size: 24px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
#dashguestcycle .tab-content {
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
@@ -97,4 +27,107 @@
|
||||
|
||||
#dashguestcycle table tbody>tr>td {
|
||||
padding: 8px 7px;
|
||||
}
|
||||
|
||||
/* ── KPI row container: strip panel chrome ──────────────────────────────── */
|
||||
.kpi-container {
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
padding: 0 0 15px !important;
|
||||
}
|
||||
|
||||
.kpi-container .kpis-wrap {
|
||||
flex-wrap: nowrap !important;
|
||||
overflow-x: auto;
|
||||
gap: 8px;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.kpi-container .kpis-wrap .kpi-wrap {
|
||||
width: 14.28% !important;
|
||||
min-width: 110px;
|
||||
padding: 0 !important;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.kpi-container .box-stats {
|
||||
height: 80px !important;
|
||||
background: #fff !important;
|
||||
border-radius: 10px !important;
|
||||
overflow: hidden;
|
||||
font-size: inherit !important;
|
||||
}
|
||||
|
||||
.kpi-container .box-stats .kpi-content {
|
||||
border: none !important;
|
||||
border-left: 10px solid !important;
|
||||
border-radius: 0 !important;
|
||||
height: 100% !important;
|
||||
padding: 8px 12px !important;
|
||||
align-items: center !important;
|
||||
gap: 0 !important;
|
||||
}
|
||||
|
||||
.kpi-container .box-stats .kpi-content .kpi-data {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.kpi-container .box-stats .kpi-content .title-subtitle {
|
||||
justify-content: center !important;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.kpi-container .box-stats .kpi-content .title-subtitle .title-container .title {
|
||||
font-size: 13px !important;
|
||||
font-weight: normal !important;
|
||||
color: #555 !important;
|
||||
display: block;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.kpi-container .box-stats .kpi-content .value-container {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.kpi-container .box-stats .kpi-content .value-container .value {
|
||||
font-size: 24px !important;
|
||||
font-weight: bold !important;
|
||||
min-height: auto !important;
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.kpi-container .box-stats .kpi-content .arrow {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.kpi-container .box-stats.color1 .kpi-content { border-left-color: #266FFE !important; }
|
||||
.kpi-container .box-stats.color1 .value { color: #266FFE !important; }
|
||||
|
||||
.kpi-container .box-stats.color2 .kpi-content { border-left-color: #72C3F0 !important; }
|
||||
.kpi-container .box-stats.color2 .value { color: #72C3F0 !important; }
|
||||
|
||||
.kpi-container .box-stats.color3 .kpi-content { border-left-color: #56CE56 !important; }
|
||||
.kpi-container .box-stats.color3 .value { color: #56CE56 !important; }
|
||||
|
||||
.kpi-container .box-stats.color4 .kpi-content { border-left-color: #FFC148 !important; }
|
||||
.kpi-container .box-stats.color4 .value { color: #FFC148 !important; }
|
||||
|
||||
.kpi-container .box-stats.color5 .kpi-content { border-left-color: #A569DF !important; }
|
||||
.kpi-container .box-stats.color5 .value { color: #A569DF !important; }
|
||||
|
||||
.kpi-container .box-stats.color6 .kpi-content { border-left-color: #FF4036 !important; }
|
||||
.kpi-container .box-stats.color6 .value { color: #FF4036 !important; }
|
||||
|
||||
.kpi-container .actions-wrap {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -1,143 +0,0 @@
|
||||
{**
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License version 3.0
|
||||
* that is bundled with this package in the file LICENSE.md
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/license/osl-3-0-php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to support@qloapps.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade this module to a newer
|
||||
* versions in the future. If you wish to customize this module for your needs
|
||||
* please refer to https://store.webkul.com/customisation-guidelines for more information.
|
||||
*
|
||||
* @author Webkul IN
|
||||
* @copyright Since 2010 Webkul
|
||||
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
|
||||
*}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<section id="dashguestcycle" class="dashboard-top widget allow_push">
|
||||
<div class="badges-wrapper">
|
||||
{hook h="displayDashboardBadgeListBefore"}
|
||||
<div class="badge-wrapper">
|
||||
<div class="badge-item label-tooltip" data-toggle="tooltip" data-original-title="{l s='The number of arrivals scheduled for today.' mod='dashguestcycle'}">
|
||||
<div class="badge-strip" style="background-color: #266FFE;"></div>
|
||||
<div class="badge-content-wrapper">
|
||||
<div class="title-wrapper">
|
||||
<p class="text-center">{l s="Arrivals" mod='dashguestcycle'}</p>
|
||||
</div>
|
||||
<div class="value-wrapper">
|
||||
<p class="text-center">
|
||||
<span id="dgc_arrived"></span>/<span id="dgc_total_arrivals"></span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="badge-wrapper">
|
||||
<div class="badge-item label-tooltip" data-toggle="tooltip" data-original-title="{l s='The number of departures scheduled for today.' mod='dashguestcycle'}">
|
||||
<div class="badge-strip" style="background-color: #72C3F0;"></div>
|
||||
<div class="badge-content-wrapper">
|
||||
<div class="title-wrapper">
|
||||
<p class="text-center">{l s="Departures" mod='dashguestcycle'}</p>
|
||||
</div>
|
||||
<div class="value-wrapper">
|
||||
<p class="text-center">
|
||||
<span id="dgc_departed"></span>/<span id="dgc_total_departures"></span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="badge-wrapper">
|
||||
<div class="badge-item label-tooltip" data-toggle="tooltip" data-original-title="{l s='The number of new bookings created today so far.' mod='dashguestcycle'}">
|
||||
<div class="badge-strip" style="background-color: #56CE56;"></div>
|
||||
<div class="badge-content-wrapper">
|
||||
<div class="title-wrapper">
|
||||
<p class="text-center">{l s="New Bookings" mod='dashguestcycle'}</p>
|
||||
</div>
|
||||
<div class="value-wrapper">
|
||||
<p class="text-center">
|
||||
<span id="dgc_new_bookings"></span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="badge-wrapper">
|
||||
<div class="badge-item label-tooltip" data-toggle="tooltip" data-original-title="{l s='The count of rooms that are currently occupied by guests.' mod='dashguestcycle'}">
|
||||
<div class="badge-strip" style="background-color: #FFC148;"></div>
|
||||
<div class="badge-content-wrapper">
|
||||
<div class="title-wrapper">
|
||||
<p class="text-center">{l s='Occupied Rooms' mod='dashguestcycle'}</p>
|
||||
</div>
|
||||
<div class="value-wrapper">
|
||||
<p class="text-center">
|
||||
<span id="dgc_occupied"></span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="badge-wrapper">
|
||||
<div class="badge-item label-tooltip" data-toggle="tooltip" data-original-title="{l s='The number of new messages received from guests today.' mod='dashguestcycle'}">
|
||||
<div class="badge-strip" style="background-color: #A569DF;"></div>
|
||||
<div class="badge-content-wrapper">
|
||||
<div class="title-wrapper">
|
||||
<p class="text-center">
|
||||
{l s="Guest Messages" mod='dashguestcycle'}
|
||||
</p>
|
||||
</div>
|
||||
<div class="value-wrapper">
|
||||
<p class="text-center">
|
||||
<span id="dgc_new_messages"></span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="badge-wrapper">
|
||||
<div class="badge-item label-tooltip" data-toggle="tooltip" data-original-title="{l s='The number of bookings cancelled today so far.' mod='dashguestcycle'}">
|
||||
<div class="badge-strip" style="background-color: #FF4036;"></div>
|
||||
<div class="badge-content-wrapper">
|
||||
<div class="title-wrapper">
|
||||
<p class="text-center">
|
||||
{l s="Cancelled Bookings" mod='dashguestcycle'}
|
||||
</p>
|
||||
</div>
|
||||
<div class="value-wrapper">
|
||||
<p class="text-center">
|
||||
<span id="dgc_cancelled_bookings"></span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="badge-wrapper">
|
||||
<div class="badge-item label-tooltip" data-toggle="tooltip" data-original-title="{l s='The number of adults and children scheduled to stay today.' mod='dashguestcycle'}">
|
||||
<div class="badge-strip" style="background-color: #FF809E;"></div>
|
||||
<div class="badge-content-wrapper">
|
||||
<div class="title-wrapper">
|
||||
<p class="text-center">
|
||||
{l s="Guests (Adults/Children)" mod='dashguestcycle'}
|
||||
</p>
|
||||
</div>
|
||||
<div class="value-wrapper">
|
||||
<p class="text-center">
|
||||
<span id="dgc_guests_adults"></span>/<span id="dgc_guests_children"></span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{hook h="displayDashboardBadgeListAfter"}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@ class HotelBranchInformation extends ObjectModel
|
||||
'fields' => array(
|
||||
'id_category' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
|
||||
'email' => array('type' => self::TYPE_STRING,'validate' => 'isEmail', 'size' => 255, 'required' => true),
|
||||
'rating' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
|
||||
'rating' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
|
||||
'check_in' => array('type' => self::TYPE_STRING, 'required' => true),
|
||||
'check_out' => array('type' => self::TYPE_STRING, 'required' => true),
|
||||
'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||
@@ -1160,7 +1160,7 @@ class HotelBranchInformation extends ObjectModel
|
||||
{
|
||||
// set additional hotel address and restriction fields validations here
|
||||
if (isset($this->webservice_validation) && $this->webservice_validation) {
|
||||
if ($this->rating < 1 || $this->rating > 5) {
|
||||
if ($this->rating && ($this->rating < 1 || $this->rating > 5)) {
|
||||
$message = Tools::displayError('Rating must be between 1 and 5.');
|
||||
} elseif (!strtotime($this->check_in)) {
|
||||
$message = Tools::displayError('Check In time is invalid.');
|
||||
|
||||
@@ -391,10 +391,6 @@ class AdminAddHotelController extends ModuleAdminController
|
||||
$this->errors[] = $this->l('Check Out time must be before Check In time.');
|
||||
}
|
||||
|
||||
if (!$rating) {
|
||||
$this->errors[] = $this->l('Rating is required field.');
|
||||
}
|
||||
|
||||
if (!$address = trim($address)) {
|
||||
$this->errors[] = $this->l('Address is required field.');
|
||||
}
|
||||
|
||||
@@ -214,11 +214,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-3 required" for="hotel_country">{l s='Rating :' mod='hotelreservationsystem'}</label>
|
||||
<label class="control-label col-sm-3 " for="hotel_country">{l s='Rating :' mod='hotelreservationsystem'}</label>
|
||||
<div class="col-sm-6">
|
||||
<div style="width: 195px;">
|
||||
<select class="form-control" name="hotel_rating" id="hotel_rating" value="">
|
||||
<option value="">{l s='No star' mod='hotelreservationsystem'}</option>
|
||||
<option value="0">{l s='No star' mod='hotelreservationsystem'}</option>
|
||||
<option value="1" {if (isset($smarty.post.hotel_rating) && $smarty.post.hotel_rating == '1') || isset($edit) && $hotel_info['rating'] == '1'}selected{/if}>*</option>
|
||||
<option value="2" {if (isset($smarty.post.hotel_rating) && $smarty.post.hotel_rating == '2') || isset($edit) && $hotel_info['rating'] == '2'}selected{/if}>**</option>
|
||||
<option value="3" {if (isset($smarty.post.hotel_rating) && $smarty.post.hotel_rating == '3') || isset($edit) && $hotel_info['rating'] == '3'}selected{/if}>***</option>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="copyRightWrapper">
|
||||
<p class="copyRight">
|
||||
©{if isset($WK_HTL_ESTABLISHMENT_YEAR) && $WK_HTL_ESTABLISHMENT_YEAR} {$WK_HTL_ESTABLISHMENT_YEAR}-{'Y'|date} {/if}<a href="{$base_dir}"> {$WK_HTL_CHAIN_NAME}</a>. {l s=' All rights reserved.' mod='hotelreservationsystem'}
|
||||
©{if isset($WK_HTL_ESTABLISHMENT_YEAR) && $WK_HTL_ESTABLISHMENT_YEAR} {$WK_HTL_ESTABLISHMENT_YEAR}-{'Y'|date} {/if}<a href="{$base_dir}"> {$WK_HTL_CHAIN_NAME}</a>. {l s=' All rights reserved. | Powered by' mod='hotelreservationsystem'} <a href="https://qloapps.com/" target="_blank">QloApps</a>
|
||||
</p>
|
||||
</div>
|
||||
@@ -194,7 +194,7 @@
|
||||
|
||||
<tr>
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">
|
||||
Dear {firstname} {lastname},
|
||||
</span>
|
||||
@@ -202,7 +202,7 @@
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">
|
||||
Your review has been approved
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -214,7 +214,7 @@
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
|
||||
Review approved
|
||||
</p>
|
||||
@@ -237,7 +237,7 @@
|
||||
<span style="color:#777">
|
||||
You can view your review from <a href="{review_view_url}" target="_blank">here.</a>
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
@@ -249,20 +249,20 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="linkbelow" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span>
|
||||
You can review your order and download your invoice from the <a href="{history_url}" target="_blank" style="color:#337ff1">"Order history"</a> section of your customer account by clicking <a href="{my_account_url}" target="_blank" style="color:#337ff1">"My account"</a> on our website.
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="linkbelow" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span>
|
||||
If you have a guest account, you can follow your order via the <a href="{guest_tracking_url}" target="_blank" style="color:#337ff1">"Guest Tracking"</a> section on our website.
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
|
||||
<tr>
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">
|
||||
Dear {firstname} {lastname},
|
||||
</span>
|
||||
@@ -202,7 +202,7 @@
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">
|
||||
Hotel management has replied to your review
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -214,7 +214,7 @@
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
|
||||
Management reply
|
||||
</p>
|
||||
@@ -244,7 +244,7 @@
|
||||
<span style="color:#777">
|
||||
You can view your review from <a href="{review_view_url}" target="_blank">here.</a>
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
@@ -256,20 +256,20 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="linkbelow" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span>
|
||||
You can review your order and download your invoice from the <a href="{history_url}" target="_blank" style="color:#337ff1">"Order history"</a> section of your customer account by clicking <a href="{my_account_url}" target="_blank" style="color:#337ff1">"My account"</a> on our website.
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="linkbelow" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span>
|
||||
If you have a guest account, you can follow your order via the <a href="{guest_tracking_url}" target="_blank" style="color:#337ff1">"Guest Tracking"</a> section on our website.
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
|
||||
<tr>
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">
|
||||
Dear {firstname} {lastname},
|
||||
</span>
|
||||
@@ -202,7 +202,7 @@
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">
|
||||
Hotel management has replied to your review
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -214,7 +214,7 @@
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
|
||||
Management reply
|
||||
</p>
|
||||
@@ -238,7 +238,7 @@
|
||||
<strong>Management reply:</strong>
|
||||
<span style="color:#777; white-space: break-spaces;">{management_reply}</span>
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
@@ -250,20 +250,20 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="linkbelow" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span>
|
||||
You can review your order and download your invoice from the <a href="{history_url}" target="_blank" style="color:#337ff1">"Order history"</a> section of your customer account by clicking <a href="{my_account_url}" target="_blank" style="color:#337ff1">"My account"</a> on our website.
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="linkbelow" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span>
|
||||
If you have a guest account, you can follow your order via the <a href="{guest_tracking_url}" target="_blank" style="color:#337ff1">"Guest Tracking"</a> section on our website.
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
|
||||
<tr>
|
||||
<td align="center" class="titleblock" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px">
|
||||
Dear {firstname} {lastname},
|
||||
</span>
|
||||
@@ -202,7 +202,7 @@
|
||||
<span class="subtitle" style="font-weight:500;font-size:16px;text-transform:uppercase;line-height:25px">
|
||||
Thank you for choosing our hotel for your recent stay!
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -214,7 +214,7 @@
|
||||
<tr>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
<td style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<p data-html-only="1" style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px">
|
||||
Please review us!
|
||||
</p>
|
||||
@@ -222,7 +222,7 @@
|
||||
Could you please take a moment to review us? Please review your stay at <b>{hotel_name}</b> by clicking <a href="{review_link}" target="_blank">here</a>.
|
||||
We would love to hear your feedback and use it to improve our services!
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
<td width="10" style="padding:7px 0"> </td>
|
||||
</tr>
|
||||
@@ -234,20 +234,20 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="linkbelow" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span>
|
||||
You can review your order and download your invoice from the <a href="{history_url}" target="_blank" style="color:#337ff1">"Order history"</a> section of your customer account by clicking <a href="{my_account_url}" target="_blank" style="color:#337ff1">"My account"</a> on our website.
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="linkbelow" style="padding:7px 0">
|
||||
<font size="2" face="Open-sans, sans-serif" color="#555454">
|
||||
<span style="font-size:12px; font-family:Open-sans, sans-serif; color:#555454;">
|
||||
<span>
|
||||
If you have a guest account, you can follow your order via the <a href="{guest_tracking_url}" target="_blank" style="color:#337ff1">"Guest Tracking"</a> section on our website.
|
||||
</span>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<module>
|
||||
<name>wkfooterlangcurrencyblock</name>
|
||||
<displayName><![CDATA[Display Language and Currency Block]]></displayName>
|
||||
<version><![CDATA[1.0.1]]></version>
|
||||
<description><![CDATA[Contains language and currency block in footer.]]></description>
|
||||
<author><![CDATA[webkul]]></author>
|
||||
<tab><![CDATA[front_office_features]]></tab>
|
||||
<is_configurable>0</is_configurable>
|
||||
<need_instance>0</need_instance>
|
||||
<limited_countries></limited_countries>
|
||||
</module>
|
||||
Reference in New Issue
Block a user