version 0.0.2:add payment gateway, advanced payment, cancellation, algo improved, bug fixed, cart lock

This commit is contained in:
Vinay Yadav
2016-01-07 16:30:50 +05:30
parent 1b4d30d69f
commit 3e6ba393c0
1267 changed files with 135135 additions and 2410 deletions

View File

@@ -0,0 +1,43 @@
<div class="panel form-horizontal" id="customer_cart_details">
<div class="panel-heading">
<i class="icon-shopping-cart"></i>
{l s='Cart Details'}
</div>
<div class="row">
<div class="col-lg-12">
<table class="table" id="customer_cart_details_table">
<thead>
<tr>
<th><span class="title_box">{l s='Room No.'}</span></th>
<th><span class="title_box">{l s='Room Image'}</th>
<th><span class="title_box">{l s='Room Type'}</span></th>
<th><span class="title_box">{l s='Duration'}</span></th>
<th><span class="title_box">{l s='Price'}</span></th>
<th><span class="title_box">{l s='Action'}</span></th>
</tr>
</thead>
<tbody>
{assign var=curr_id value=$cart->id_currency|intval}
{if $cart_detail_data}
{foreach from=$cart_detail_data item=data}
<tr>
<td>{$data.room_num}</td>
<td><img src="{$data.image_link}" title="Room image" /></td>
<td>{$data.room_type}</td>
<td>{$data.date_from|date_format:"%d %b %Y"}&nbsp-&nbsp {$data.date_to|date_format:"%d %b %Y"}</td>
<td id="cart_detail_data_price_{$data.id}">{displayPrice price=$data.amt_with_qty}</td>
<td>
<button class="btn btn-primary delete_hotel_cart_data" data-id_room={$data.id_room} data-id_product={$data.id_product} data-id = {$data.id} data-id_cart = {$data.id_cart} data-date_to = {$data.date_to} data-date_from = {$data.date_from}><i class="icon-trash"></i>&nbsp{l s='Delete'}</button>
</td>
</tr>
{/foreach}
{else}
<tr>
<td>{l s='No Data Found.'}</td>
</tr>
{/if}
</tbody>
</table>
</div>
</div>
</div>

View File

@@ -141,34 +141,44 @@
return false;
});
$('.delete_hotel_cart_data').on('click', function(){
$.ajax({
type:"POST",
url: "{$link->getAdminLink('AdminOrders')|addslashes}",
data : {
ajax: "1",
action: "deleteRoomProcess",
del_id: $(this).data('id'),
id_product: $(this).data('id_product'),
id_cart: $(this).data('id_cart'),
id_room: $(this).data('id_room'),
date_from: $(this).data('date_from'),
date_to: $(this).data('date_to'),
},
success : function(data)
{
if (data == 'deleted')
/*By Webkul to delete the rooms added in the cart*/
$('body').on('click', '.delete_hotel_cart_data', function(){
if (confirm("{l s='Are you sure?'}"))
{
$.ajax({
type:"POST",
url: "{$link->getAdminLink('AdminOrders')|addslashes}",
data : {
ajax: "1",
action: "deleteRoomProcess",
del_id: $(this).data('id'),
id_product: $(this).data('id_product'),
id_cart: $(this).data('id_cart'),
id_room: $(this).data('id_room'),
date_from: $(this).data('date_from'),
date_to: $(this).data('date_to'),
},
dataType:"json",
success : function(data)
{
showSuccessMessage("{l s='Remove successful'}");
if (data.status == 'deleted')
{
showSuccessMessage("{l s='Remove successful'}");
if (data.cart_rooms)
location.reload();
else
window.location.href = "{$link->getAdminLink('AdminHotelRoomsBooking',true)}";
}
else
{
alert("l s='Some error occured.please try again.'}");
}
}
else
{
alert('Some error occured.please try again.')
}
}
});
$(this).closest("tr").remove();
});
$(this).closest("tr").remove();
}
});
/*END*/
$('input:radio[name="free_shipping"]').on('change',function() {
var free_shipping = $('input[name=free_shipping]:checked').val();
@@ -281,9 +291,8 @@
$('#customer_part').on('click','button.setup-customer',function(e){
e.preventDefault();
{$cart=$htl_cart}//setting cart as we sent from adminOrderController
id_cart = {$htl_cart->id|intval}
setupCustomer($(this).data('customer'));
updateCurrency();
$(this).removeClass('setup-customer').addClass('change-customer').html('<i class="icon-refresh"></i>&nbsp;{l s="Change"}').blur();
$(this).closest('.customerCard').addClass('selected-customer');
$('.selected-customer .panel-heading').prepend('<i class="icon-ok text-success"></i>');
@@ -524,7 +533,6 @@
{
if(res.found)
{
var cart_id = "{$cart_id}";
var html = '';
$.each(res.customers, function() {
html += '<div class="customerCard col-lg-4">';
@@ -535,7 +543,7 @@
html += '<span class="text-muted">'+((this.birthday != '0000-00-00') ? this.birthday : '')+'</span><br/>';
html += '<div class="panel-footer">';
html += '<a href="{$link->getAdminLink('AdminCustomers')}&id_customer='+this.id_customer+'&viewcustomer&liteDisplaying=1" class="btn btn-default fancybox"><i class="icon-search"></i> {l s='Details'}</a>';
html += '<button type="button" data-id_cart="'+cart_id+'" data-customer="'+this.id_customer+'" class="setup-customer btn btn-default pull-right"><i class="icon-arrow-right"></i> {l s='Choose'}</button>';
html += '<button type="button" data-id_cart="'+id_cart+'" data-customer="'+this.id_customer+'" class="setup-customer btn btn-default pull-right"><i class="icon-arrow-right"></i> {l s='Choose'}</button>';
html += '</div>';
html += '</div>';
html += '</div>';
@@ -986,7 +994,10 @@
},
success : function(res)
{
displaySummary(res);
$("#customer_cart_details").empty();
$("#customer_cart_details").append(res.cart_detail_html);
displaySummary(res);
}
});
}
@@ -1081,7 +1092,6 @@
address_invoice_detail = this.formated_address;
invoice_address_edit_link = "{$link->getAdminLink('AdminAddresses')}&id_address="+this.id_address+"&updateaddress&realedit=1&liteDisplaying=1&submitFormAjax=1#";
}
if(this.id_address == id_address_delivery)
{
address_delivery_detail = this.formated_address;
@@ -1108,12 +1118,22 @@
$("button[name=\"submitAddOrder\"]").removeAttr("disabled");
}
/*Changed by webkul to make delivery and invoice addresses same*/
$('#id_address_delivery').html(addresses_delivery_options);
$('#id_address_invoice').html(addresses_delivery_options);
$('#address_delivery_detail').html(address_delivery_detail);
$('#address_invoice_detail').html(address_delivery_detail);
$('#edit_delivery_address').attr('href', delivery_address_edit_link);
$('#edit_invoice_address').attr('href', delivery_address_edit_link);
/*END*/
/*Original*/
/*$('#id_address_delivery').html(addresses_delivery_options);
$('#id_address_invoice').html(addresses_invoice_options);
$('#address_delivery_detail').html(address_delivery_detail);
$('#address_invoice_detail').html(address_invoice_detail);
$('#edit_delivery_address').attr('href', delivery_address_edit_link);
$('#edit_invoice_address').attr('href', invoice_address_edit_link);
$('#edit_invoice_address').attr('href', invoice_address_edit_link);*/
}
function updateAddresses()
@@ -1142,49 +1162,7 @@
</script>
<div class="leadin">{block name="leadin"}{/block}</div>
<div class="panel form-horizontal" id="customer_cart_details">
<div class="panel-heading">
<i class="icon-shopping-cart"></i>
{l s='Cart Details'}
</div>
<div class="row">
<div class="col-lg-12">
<table class="table" id="customer_cart_details_table">
<thead>
<tr>
<th><span class="title_box">{l s='Room No.'}</span></th>
<th><span class="title_box">{l s='Room Image'}</th>
<th><span class="title_box">{l s='Room Type'}</span></th>
<th><span class="title_box">{l s='Duration'}</span></th>
<th><span class="title_box">{l s='Price'}</span></th>
<th><span class="title_box">{l s='Action'}</span></th>
</tr>
</thead>
<tbody>
{if $cart_detail_data}
{foreach from=$cart_detail_data item=data}
<tr>
<td>{$data.room_num}</td>
<td><img src="{$data.image_link}" title="Room image" /></td>
<td>{$data.room_type}</td>
<td>{$data.date_from}&nbsp To&nbsp {$data.date_to}</td>
<td>{convertPrice price=$data.amt_with_qty}</td>
<td>
<button class="btn btn-primary delete_hotel_cart_data" data-id_room={$data.id_room} data-id_product={$data.id_product} data-id = {$data.id} data-id_cart = {$data.id_cart} data-date_to = {$data.date_to} data-date_from = {$data.date_from}><i class="icon-trash"></i>&nbsp{l s='Delete'}</button>
</td>
</tr>
{/foreach}
{else}
<tr>
<td>{l s='No Data Found.'}</td>
</tr>
{/if}
</tbody>
</table>
</div>
</div>
</div>
{include file='controllers/orders/current_cart_details_data.tpl'}
<div class="panel form-horizontal" id="customer_part">
<div class="panel-heading">
<i class="icon-user"></i>
@@ -1274,7 +1252,6 @@
</div> --><!-- by webkul to hide unnessesary content -->
</div>
<form class="form-horizontal" action="{$link->getAdminLink('AdminOrders')|escape:'html':'UTF-8'}&amp;submitAdd{$table|escape:'html':'UTF-8'}=1" method="post" autocomplete="off" style="display:none" id="cart_detail_form">
<div class="panel" id="products_part" style="display:none;">
<div class="panel-heading">
@@ -1282,7 +1259,7 @@
{l s='Cart'}
</div>
<div class="form-group">
<input type="hidden" value="{$cart_id}" id="id_cart" name="id_cart" />
<input type="hidden" value="{$cart->id}" id="id_cart" name="id_cart" />
</div>
<!-- <div class="form-group">
<label class="control-label col-lg-3">
@@ -1291,7 +1268,7 @@
</span>
</label>
<div class="col-lg-9">
<input type="hidden" value="{$cart_id}" id="id_cart" name="id_cart" />
<input type="hidden" value="{$cart->id}" id="id_cart" name="id_cart" />
<div class="input-group">
<input type="text" id="product" value="" />
<span class="input-group-addon">
@@ -1369,6 +1346,7 @@
</div>
</div> --><!-- by webkul to hide unnessesary content -->
<div class="form-group">
<label class="control-label col-lg-3" for="id_currency">
{l s='Currency'}
@@ -1467,7 +1445,7 @@
<div id="address_delivery_detail"></div>
</div>
</div>
<div id="address_invoice" class="col-lg-6">
<div id="address_invoice" class="col-lg-6 hidden">
<h4>
<i class="icon-file-text"></i>
{l s='Invoice'}

View File

@@ -93,9 +93,12 @@
<div class="col-xs-6 col-sm-3 box-stats color1" >
<a href="#start_products">
<div class="kpi-content">
<i class="icon-book"></i>
<span class="title">{l s='Products'}</span>
<span class="value">{sizeof($products)}</span>
<i class="icon icon-home"></i>
<!-- Original -->
<!-- <span class="title">{l s='Total'}</span>
<span class="value">{sizeof($products)}</span> -->
<span class="title">{l s='Total Rooms'}</span>
<span class="value">{$cart_detail_data|@count}</span>
</div>
</a>
</div>
@@ -139,7 +142,9 @@
</span>
{/if}
&nbsp;
{if $order->delivery_number}
<!-- By webkul to hide unneccessary data on order detail page -->
<!-- {if $order->delivery_number}
<a class="btn btn-default _blank" href="{$link->getAdminLink('AdminPdf')|escape:'html':'UTF-8'}&amp;submitAction=generateDeliverySlipPDF&amp;id_order={$order->id|intval}">
<i class="icon-truck"></i>
{l s='View delivery slip'}
@@ -149,7 +154,8 @@
<i class="icon-remove"></i>
{l s='No delivery slip'}
</span>
{/if}
{/if} -->
<!-- End -->
&nbsp;
{if Configuration::get('PS_ORDER_RETURN')}
<a id="desc-order-standard_refund" class="btn btn-default" href="#refundForm">
@@ -165,7 +171,7 @@
&nbsp;
{/if}
{if $order->hasInvoice()}
<a id="desc-order-partial_refund" class="btn btn-default" href="#refundForm">
<a id="desc-order-partial_refund" class="btn btn-default hidden" href="#refundForm">
<i class="icon-exchange"></i>
{l s='Partial refund'}
</a>
@@ -239,7 +245,10 @@
<div class="col-lg-9">
<select id="id_order_state" class="chosen form-control" name="id_order_state">
{foreach from=$states item=state}
<option value="{$state['id_order_state']|intval}"{if isset($currentState) && $state['id_order_state'] == $currentState->id} selected="selected" disabled="disabled"{/if}>{$state['name']|escape}</option>
<!-- By webkul to hide unnecessary order statues from statuses dropdown -->
{if $state['id_order_state']!=4 && $state['id_order_state']!=5 && $state['id_order_state']!=14}
<option value="{$state['id_order_state']|intval}"{if isset($currentState) && $state['id_order_state'] == $currentState->id} selected="selected" disabled="disabled"{/if}>{$state['name']|escape}</option>
{/if}
{/foreach}
</select>
<input type="hidden" name="id_order" value="{$order->id}" />
@@ -282,10 +291,10 @@
{$data['room_num']}
</td>
<td>
{$data['date_from']}
{$data['date_from']|date_format:"%d %b %Y"}
</td>
<td>
{$data['date_to']}
{$data['date_to']|date_format:"%d %b %Y"}
</td>
<td>
<form action="" method="post" class="form-horizontal">
@@ -959,7 +968,9 @@
<th><span class="title_box">{l s='Room Image'}</th>
<th><span class="title_box">{l s='Room Type'}</span></th>
<th><span class="title_box">{l s='Duration'}</span></th>
<th><span class="title_box">{l s='Price'}</span></th>
<th><span class="title_box">{l s='Total Price'}</span></th>
<th><span class="title_box">{l s='Refund Stage'}</span></th>
<th><span class="title_box">{l s='Refund Status'}</span></th>
<th><span class="title_box">{l s='Reallocate Room'}</span></th>
</tr>
</thead>
@@ -967,67 +978,52 @@
{if $cart_detail_data}
{foreach from=$cart_detail_data item=data}
<tr>
<td>{$data.room_num}</td>
<td><img src="{$data.image_link}" title="Room image" /></td>
<td>{$data.room_type}</td>
<td>{$data.date_from}&nbsp To&nbsp {$data.date_to}</td>
<td>{convertPrice price=$data.amt_with_qty}</td>
<td>
{$data.room_num}
</td>
<td>
<img src="{$data.image_link}" title="Room image" />
</td>
<td>
{$data.room_type}
</td>
<td>
{$data.date_from|date_format:"%d %b %Y"}&nbsp-&nbsp {$data.date_to|date_format:"%d %b %Y"}
</td>
<td>
{convertPriceWithCurrency price=$data.amt_with_qty currency=$currency->id}
</td>
<td class="text-center stage_name">
<p>
{if isset($data['stage_name']) && $data['stage_name']}
{$data['stage_name']}
{else}
--
{/if}
</p>
</td>
<td class="text-center status_name">
<p>
{if $data['stage_name'] == 'Refunded' || $data['stage_name'] == 'Rejected'}
{l s="Done!"}
{else if $data['stage_name'] == 'Waitting' || $data['stage_name'] == 'Accepted'}
{l s="Pending..."}
{else}
--
{/if}
</p>
</td>
{if $data.booking_type == 1}
<td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#mySwappigModal">
{l s='Reallocate Room' mod='hotelreservationsystem'}
</button>
<!-- Modal -->
<div class="modal fade" id="mySwappigModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<form method="post" action="">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">{l s='Reallocate Rooms'}</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="curr_room_num" class="control-label">{l s='Current Room Number:' mod='hotelreservationsystem'}</label>
<input type="text" class="form-control" id="curr_room_num" name="curr_room_num" value="{$data['room_num']}" readonly="true">
<input type="hidden" class="form-control" name="date_from" value="{$data['date_from']}">
<input type="hidden" class="form-control" name="date_to" value="{$data['date_to']}">
<input type="hidden" class="form-control" name="id_room" value="{$data['id_room']}">
<input type="hidden" class="form-control" name="id_order" value="{$order->id}">
</div>
<div class="form-group">
<label for="swapped_avail_rooms" class="control-label">{l s='Available Rooms To Swap:' mod='hotelreservationsystem'}</label>
<div style="width: 195px;">
<select class="form-control" name="swapped_avail_rooms" id="swapped_avail_rooms">
<option value="" selected="selected">{l s='Select Rooms' mod='hotelreservationsystem'}</option>
{if isset($data['avail_rooms_to_swap']) && $data['avail_rooms_to_swap']}
{foreach from=$data['avail_rooms_to_swap'] key=room_k item=room_v}
<option value="{$room_v['id_room']}" >{$room_v['room_num']}</option>
{/foreach}
{else}
{l s='No rooms available' mod='hotelreservationsystem'}
{/if}
</select>
</div>
</div>
<div class="form-group">
<label for="message-text" class="col-sm-12 control-label">{l s='Currently Alloted Customer Information:' mod='hotelreservationsystem'}</label>
<dl class="well list-detail">
<dt>{l s='Name'}</dt>
<dd>{$data['alloted_cust_name']}</dd><br>
<dt>{l s='Email'}</dt>
<dd>{$data['alloted_cust_email']}</dd><br>
</dl>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<input type="submit" name="swap_allocated_rooms" class="btn btn-primary" value="Save">
</div>
</form>
</div>
</div>
</div>
{if $data['stage_name'] == 'Refunded' || $data['stage_name'] == 'Rejected'}
<p class="text-center">----</p>
{else}
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#mySwappigModal" data-id_order="{$order->id}" data-room_num={$data['room_num']} data-date_from={$data['date_from']} data-date_to={$data['date_to']} data-id_room={$data['id_room']} data-cust_name="{$data['alloted_cust_name']}" data-cust_email="{$data['alloted_cust_email']}" data-avail_rm_swap={$data['avail_rooms_to_swap']|@json_encode} data-avail_rm_realloc={$data['avail_rooms_to_realloc']|@json_encode}>
{l s='Reallocate Room' mod='hotelreservationsystem'}
</button>
{/if}
</td>
{/if}
</tr>
@@ -1140,6 +1136,51 @@
{/if}
</div>
</div> --> <!-- by webkul to hide unnessary things in the page-->
<!-- For Due amount submit panel (by webkul) -->
{if isset($order_adv_dtl)}
<div class="col-xs-6">
<div class="panel panel-advanced-payment">
<form class="clearfix" method="POST" action="{$link->getAdminLink('AdminOrders')|escape:'html':'UTF-8'}&amp;vieworder&amp;id_order={$order_adv_dtl['id_order']|intval}">
<div class="table-responsive">
<table class="table">
<tr>
<td>
<strong>{l s='Paid Amount'}</strong>
</td>
<td>
<strong>
{displayPrice price=$order_adv_dtl['total_paid_amount'] currency=$currency->id}
</strong>
</td>
</tr>
<tr>
<td>
<strong>{l s='Due Amount'}</strong>
</td>
<td>
<strong>{displayPrice price=($order_adv_dtl['total_order_amount'] - $order_adv_dtl['total_paid_amount']) currency=$currency->id}</strong>
</td>
</tr>
<tr>
<td>
<strong>{l s='submitted Amount'}</strong>
</td>
<td>
<div class="input-group">
<span class="input-group-addon" id="htl_order_currenct">{$currency->sign}</span>
<input type="text" class="form-control" placeholder="Amount" aria-describedby="htl_order_currenct" name="submitted_amount">
</div>
</td>
</tr>
</table>
</div>
<button type="submit" class="btn btn-primary" name="payDueAmount" style="margin-top:10px;">{l s="Submit Amount"}</button>
</form>
</div>
</div>
{/if}
<div class="col-xs-6 pull-right">
<div class="panel panel-vouchers" style="{if !sizeof($discounts)}display:none;{/if}">
{if (sizeof($discounts) || $can_edit)}
@@ -1206,9 +1247,16 @@
{assign var=order_shipping_price value=$order->total_shipping_tax_incl}
{/if}
<tr id="total_products">
<td class="text-right">{l s='Rooms Cost'}</td>
<td class="text-right"><strong>{l s='Total Rooms Cost'}</strong></td>
<td class="amount text-right nowrap">
{displayPrice price=$order_product_price currency=$currency->id}
<strong>{displayPrice price=$total_rooms_cost currency=$currency->id}</strong>
</td>
<td class="partial_refund_fields current-edit" style="display:none;"></td>
</tr>
<tr id="total_tax_order">
<td class="text-right"><strong>{l s='Total Tax'}</strong></td>
<td class="text-right nowrap">
<strong>{displayPrice price=$total_tax_in_order currency=$currency->id}</strong>
</td>
<td class="partial_refund_fields current-edit" style="display:none;"></td>
</tr>
@@ -1242,14 +1290,35 @@
<p class="help-block"><i class="icon-warning-sign"></i> {l s='(%s)' sprintf=$smarty.capture.TaxMethod}</p>
</td>
</tr> --> <!-- by webkul to hide unnessary things in the page-->
{if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)}
<!-- {if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)}
<tr id="total_taxes">
<td class="text-right">{l s='Taxes'}</td>
<td class="amount text-right nowrap" >{displayPrice price=($order->total_paid_tax_incl-$order->total_paid_tax_excl) currency=$currency->id}</td>
<td class="partial_refund_fields current-edit" style="display:none;"></td>
</tr>
{/if}
{/if} -->
{if isset($order_adv_dtl)}
<tr>
<td class="text-right"><strong>{l s='Paid Amount'}</strong></td>
<td class="amount text-right nowrap">
<strong>
{displayPrice price=$order_adv_dtl['total_paid_amount'] currency=$currency->id}
</strong>
</td>
</tr>
<tr>
<td class="text-right"><strong>{l s='Due Amount'}</strong></td>
<td class="amount text-right nowrap">
<strong>
{displayPrice price=($order_adv_dtl['total_order_amount'] - $order_adv_dtl['total_paid_amount']) currency=$currency->id}
</strong>
</td>
</tr>
{/if}
{assign var=order_total_price value=$order->total_paid_tax_incl}
<tr id="total_order">
<td class="text-right"><strong>{l s='Total'}</strong></td>
<td class="amount text-right nowrap">
@@ -1451,12 +1520,179 @@
</div>
</div>
<!-- Modal for reallocation of rooms -->
<div class="modal fade" id="mySwappigModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#reallocate_room_tab" aria-controls="reallocate" role="tab" data-toggle="tab">{l s='Room Reallocation' mod='hotelreservationsystem'}</a></li>
<li role="presentation"><a href="#swap_room_tab" aria-controls="swap" role="tab" data-toggle="tab">{l s='Swap Room' mod='hotelreservationsystem'}</a></li>
</ul>
<div class="tab-content panel active">
<div role="tabpanel" class="tab-pane active" id="reallocate_room_tab">
<form method="post" action="">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="realloc_myModalLabel">{l s='Reallocate Rooms'}</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="curr_room_num" class="control-label">{l s='Current Room Number:' mod='hotelreservationsystem'}</label>
<input type="text" class="form-control modal_curr_room_num" name="modal_curr_room_num" readonly="true">
<input type="hidden" class="form-control modal_date_from" name="modal_date_from">
<input type="hidden" class="form-control modal_date_to" name="modal_date_to">
<input type="hidden" class="form-control modal_id_room" name="modal_id_room">
</div>
<div class="form-group">
<label for="realloc_avail_rooms" class="control-label">{l s='Available Rooms To Reallocate:' mod='hotelreservationsystem'}</label>
<div style="width: 195px;">
<select class="form-control" name="realloc_avail_rooms" id="realloc_avail_rooms">
<option value="0" selected="selected">{l s='Select Rooms' mod='hotelreservationsystem'}</option>
</select>
<p class="error_text" id="realloc_sel_rm_err_p"></p>
</div>
</div>
<div class="form-group">
<label style="text-decoration:underline;margin-top:5px;" for="message-text" class="col-sm-12 control-label"><i class="icon-info-circle"></i>&nbsp;{l s='Currently Alloted Customer Information:' mod='hotelreservationsystem'}</label>
<dl class="well list-detail">
<dt>{l s='Name'}</dt>
<dd class="cust_name"></dd><br>
<dt>{l s='Email'}</dt>
<dd class="cust_email"></dd><br>
</dl>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{l s="Close" mod="hotelreservationsyatem"}</button>
<input type="submit" id="realloc_allocated_rooms" name="realloc_allocated_rooms" class="btn btn-primary" value="Reallocate">
</div>
</form>
</div>
<div role="tabpanel" class="tab-pane" id="swap_room_tab">
<form method="post" action="">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="swap_myModalLabel">{l s='Swap Rooms'}</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="swap_curr_room_num" class="control-label">{l s='Current Room Number:' mod='hotelreservationsystem'}</label>
<input type="text" class="form-control modal_curr_room_num" name="modal_curr_room_num" readonly="true">
<input type="hidden" class="form-control modal_date_from" name="modal_date_from">
<input type="hidden" class="form-control modal_date_to" name="modal_date_to">
<input type="hidden" class="form-control modal_id_room" name="modal_id_room">
<input type="hidden" class="form-control modal_id_order" name="modal_id_order">
</div>
<div class="form-group">
<label for="swap_avail_rooms" class="control-label">{l s='Available Rooms To Swap:' mod='hotelreservationsystem'}</label>
<div style="width: 195px;">
<select class="form-control" name="swap_avail_rooms" id="swap_avail_rooms">
<option value="0" selected="selected">{l s='Select Rooms' mod='hotelreservationsystem'}</option>
</select>
<p class="error_text" id="swap_sel_rm_err_p"></p>
</div>
</div>
<div class="form-group">
<label style="text-decoration:underline;margin-top:5px;" for="message-text" class="col-sm-12 control-label"><i class="icon-info-circle"></i>&nbsp;{l s='Currently Alloted Customer Information:' mod='hotelreservationsystem'}</label>
<dl class="well list-detail">
<dt>{l s='Name'}</dt>
<dd class="cust_name"></dd><br>
<dt>{l s='Email'}</dt>
<dd class="cust_email"></dd><br>
</dl>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{l s="Close" mod="hotelreservationsyatem"}</button>
<input type="submit" id="swap_allocated_rooms" name="swap_allocated_rooms" class="btn btn-primary" value="Swap">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{strip}
{addJsDefL name=no_rm_avail_txt}{l s='No rooms available.' js=1 mod='hotelreservationsystem'}{/addJsDefL}
{addJsDefL name=slct_rm_err}{l s='Please select a room first.' js=1 mod='hotelreservationsystem'}{/addJsDefL}
{/strip}
<script type="text/javascript">
var geocoder = new google.maps.Geocoder();
var delivery_map, invoice_map;
$(document).ready(function()
{
/*By webkul for swapping Booked rooms modal js*/
$("#swap_allocated_rooms").on('click', function(e){
$(".error_text").text('');
if ($('#swapped_avail_rooms').val() == 0)
{
$("#sel_rm_err_p").text(slct_rm_err);
return false;
}
});
$('#mySwappigModal').on('hidden.bs.modal', function (e)
{
$(".modal_id_order").val('');
$(".modal_date_from").val('');
$(".modal_date_to").val('');
$(".modal_id_room").val('');
$(".modal_curr_room_num").val('');
$(".cust_name").text('');
$(".cust_email").text('');
$(".swp_rm_opts").remove();
$(".realloc_rm_opts").remove();
});
$('#mySwappigModal').on('shown.bs.modal', function (e)
{
$(".modal_id_order").val(e.relatedTarget.dataset.id_order);
$(".modal_date_from").val(e.relatedTarget.dataset.date_from);
$(".modal_date_to").val(e.relatedTarget.dataset.date_to);
$(".modal_id_room").val(e.relatedTarget.dataset.id_room);
$(".modal_curr_room_num").val(e.relatedTarget.dataset.room_num);
$(".cust_name").text(e.relatedTarget.dataset.cust_name);
$(".cust_email").text(e.relatedTarget.dataset.cust_email);
html = '';
var json_arr_rm_swp = JSON.parse(e.relatedTarget.dataset.avail_rm_swap);
$.each(json_arr_rm_swp, function(key,val)
{
html += '<option class="swp_rm_opts" value="'+val.id_room+'" >'+val.room_num+'</option>';
});
if (html != '')
$("#swap_avail_rooms").append(html);
html = '';
var json_arr_rm_realloc = JSON.parse(e.relatedTarget.dataset.avail_rm_realloc);
$.each(json_arr_rm_realloc, function(key,val)
{
html += '<option class="realloc_rm_opts" value="'+val.id_room+'" >'+val.room_num+'</option>';
});
if (html != '')
$("#realloc_avail_rooms").append(html);
});
/*For swaping rooms in the modal*/
$("#realloc_allocated_rooms").on('click', function(e){
$(".error_text").text('');
if ($('#realloc_avail_rooms').val() == 0)
{
$("#realloc_sel_rm_err_p").text(slct_rm_err);
return false;
}
});
$("#swap_allocated_rooms").on('click', function(e){
$(".error_text").text('');
if ($('#swap_avail_rooms').val() == 0)
{
$("#swap_sel_rm_err_p").text(slct_rm_err);
return false;
}
});
/*END*/
$(".textarea-autosize").autosize();
geocoder.geocode({

View File

@@ -58,7 +58,8 @@
</select>
</div>
</div>
<div class="form-group">
<!-- By webkul to hide unneccessary fields -->
<!-- <div class="form-group">
<label class="control-label col-lg-3" for="product_autocomplete_input">
<span class="label-tooltip" data-toggle="tooltip"
title="{l s='You can indicate existing products as accessories for this product.'}{l s='Start by typing the first letters of the product\'s name, then select the product from the drop-down list.'}{l s='Do not forget to save the product afterwards!'}">
@@ -86,8 +87,9 @@
{/foreach}
</div>
</div>
</div>
<div class="form-group">
</div> -->
<!-- By webkul to hide unneccessary fields -->
<!-- <div class="form-group">
<label class="control-label col-lg-3" for="id_manufacturer">{l s='Manufacturer'}</label>
<div class="col-lg-5">
<select name="id_manufacturer" id="id_manufacturer">
@@ -103,7 +105,7 @@
<i class="icon-plus-sign"></i> {l s='Create new manufacturer'} <i class="icon-external-link-sign"></i>
</a>
</div>
</div>
</div> -->
<div class="panel-footer">
<a href="{$link->getAdminLink('AdminProducts')|escape:'html':'UTF-8'}{if isset($smarty.request.page) && $smarty.request.page > 1}&amp;submitFilterproduct={$smarty.request.page|intval}{/if}" class="btn btn-default"><i class="process-icon-cancel"></i> {l s='Cancel'}</a>
<button type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> {l s='Save'}</button>

View File

@@ -21,8 +21,8 @@
</div>
<input type="hidden" id="product_id" name="id_product" value="{$product->id}">
<input type="hidden" id="hotel_id" name="id_hotel" value="{$rooms_info.id_hotel}">
<input type="hidden" id="num_adults" name="num_adults" value="{$rooms_info.adult}">
<input type="hidden" id="num_children" name="num_children" value="{$rooms_info.children}">
<!-- <input type="hidden" id="num_adults" name="num_adults" value="{$rooms_info.adult}">
<input type="hidden" id="num_children" name="num_children" value="{$rooms_info.children}"> -->
</div>
<div class="form-group">

View File

@@ -36,6 +36,7 @@
</label>
<div class="col-sm-4">
<input id="num_adults" type="text" name="num_adults" class="form-control" {if isset($htl_room_type)}value="{$htl_room_type['adult']}"{/if}>
<input type="hidden" id="checkConfSubmit" value="0" name="checkConfSubmit">
</div>
</div>
@@ -128,11 +129,11 @@
<i class="process-icon-cancel"></i>
{l s='Cancel'}
</a>
<button type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled">
<button type="submit" name="submitAddproduct" class="btn btn-default pull-right checkConfigurationClick" disabled="disabled">
<i class="process-icon-loading"></i>
{l s='Save'}
</button>
<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled">
<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right checkConfigurationClick" disabled="disabled">
<i class="process-icon-loading"></i>
{l s='Save and stay'}
</button>
@@ -211,6 +212,12 @@
$(this).closest(".room_data_values").remove();
});
$(".checkConfigurationClick").on("click", function()
{
$("#checkConfSubmit").val(1);
});
$(document).on('click','.remove-rooms-button',function(e)
{
e.preventDefault();

View File

@@ -54,7 +54,7 @@
<td>{$available_feature.name}</td>
<td>
<input type="hidden" id="feature_{$available_feature.id_feature}_value" name="feature_{$available_feature.id_feature}_value" value="{$value.id_feature_value}">
<img height="40px" width="40px" src="{$base_url}img/rf/{$value.value}" title="Room image" />
<img class="img img-responsive" width="15px" src="{$base_url}img/rf/{$value.value}" title="Room image" />
</td>
{/foreach}
<!--<td>

View File

@@ -293,7 +293,11 @@
<form id="product_form" class="form-horizontal col-lg-10 col-md-9" action="{$form_action|escape:'html':'UTF-8'}" method="post" enctype="multipart/form-data" name="product" novalidate>
<input type="hidden" name="id_product" value="{$id_product}" />
<input type="hidden" id="is_virtual" name="is_virtual" value="{$product->is_virtual|escape:'html':'UTF-8'}" />
<!-- <input type="hidden" id="is_virtual" name="is_virtual" value="{$product->is_virtual|escape:'html':'UTF-8'}" /> -->
<!-- changed input field to make product virtual by default -->
<input type="hidden" id="is_virtual" name="is_virtual" value="1"/>
{if isset($smarty.request.page) && $smarty.request.page > 1}
<input type="hidden" id="page" name="page" value="{$smarty.request.page|intval}" />
{/if}

View File

@@ -100,7 +100,7 @@
{include file="controllers/products/multishop/check_fields.tpl" product_tab="Informations"}
<div class="form-group">
<div class="form-group hidden">
<label class="control-label col-lg-3" for="simple_product">
{$bullet_common_field} {l s='Type'}
</label>
@@ -116,7 +116,7 @@
</div>
<div class="radio">
<label for="virtual_product">
<input type="radio" name="type_product" id="virtual_product" {if $is_in_pack}disabled="disabled"{/if} value="{Product::PTYPE_VIRTUAL} {if $product_type == Product::PTYPE_VIRTUAL}checked="checked"{/if}">
<input type="radio" name="type_product" id="virtual_product" {if $is_in_pack}disabled="disabled"{/if} value="{Product::PTYPE_VIRTUAL}" {if $product_type == Product::PTYPE_VIRTUAL}checked="checked"{/if}>
{l s='Virtual product (services, booking, downloadable products, etc.)'}</label>
</div>
<div class="row row-padding-top">
@@ -128,12 +128,12 @@
<div id="product-pack-container" {if $product_type != Product::PTYPE_PACK}style="display:none"{/if}></div>
<hr />
<!-- <hr />
-->
<div class="form-group">
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="name" type="default" multilang="true"}</span></div>
<label class="control-label col-lg-2 required" for="name_{$id_lang}">
<span class="label-tooltip" data-toggle="tooltip" title="{l s='The public name for this product.'} {l s='Invalid characters:'} &lt;&gt;;=#{}">
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Write the name of the Room Type for ex. Delux, Executive etc.'} {l s='Invalid characters:'} &lt;&gt;;=#{}">
{l s='Room Type'}
</span>
</label>
@@ -184,7 +184,7 @@
</div>
</div>
<hr/>
<!-- <hr/> -->
{* status informations *}
<div class="form-group">

View File

@@ -263,6 +263,111 @@ $(document).ready(function () {
</div>
</div>
</div>
<!-- by webkul -->
{if $WK_ALLOW_ADVANCED_PAYMENT}
<div class="form-group">
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}</span></div>
<label class="control-label col-sm-2">
<input type="hidden" name="id_adv_pmt" {if isset($adv_pay_dtl)}value="{$adv_pay_dtl['id']}"{/if}>
<span class="label-tooltip" data-toggle="tooltip" title="{l s='If Disabled, Advanced payment will not appliy on this product.'}">
{l s='Allow Advanced Payment'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" value="1" id="adv_payment_active_on" name="adv_payment_active" class="adv_payment_active" {if ((isset($adv_pay_dtl) && $adv_pay_dtl['active']) || !isset($adv_pay_dtl))}checked="checked"{/if}>
<label for="adv_payment_active_on">{l s='Yes'}</label>
<input type="radio" value="0" id="adv_payment_active_off" name="adv_payment_active" class="adv_payment_active" {if (isset($adv_pay_dtl) && !$adv_pay_dtl['active'])}checked="checked"{/if}>
<label for="adv_payment_active_off">{l s='No'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group adv_payment_field">
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}</span></div>
<label class="control-label col-sm-2">
<span class="label-tooltip" data-toggle="tooltip" title="{l s='If disabled, Advanced Payment for the product will be calculated By Global Advanced payment settings.'}">
{l s='Apply Product Advanced Payment Setting.'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" value="1" id="cal_from_on" name="cal_from" {if (isset($adv_pay_dtl) && $adv_pay_dtl['calculate_from'])}checked="checked"{/if}>
<label for="cal_from_on">{l s='Yes'}</label>
<input type="radio" value="0" id="cal_from_off" name="cal_from" {if ((isset($adv_pay_dtl) && !$adv_pay_dtl['calculate_from']) || !isset($adv_pay_dtl))}checked="checked"{/if}>
<label for="cal_from_off">{l s='No'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group adv_payment_field">
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}</span></div>
<label class="control-label col-sm-2">{l s='Payment type'}</label>
<div class="col-lg-9">
<div class="radio">
<label for="percent_type">
<input type="radio" name="payment_type" class="payment_type" value="1" {if ((isset($adv_pay_dtl) && ($adv_pay_dtl['payment_type'] == 1)) || !isset($adv_pay_dtl) || !$adv_pay_dtl['payment_type'])}checked="checked"{/if}>
{l s='Percent (%) '}
</label>
</div>
<div class="radio">
<label for="fixed_type">
<input type="radio" name="payment_type" class="payment_type" value="2" {if isset($adv_pay_dtl) && ($adv_pay_dtl['payment_type'] == 2)}checked="checked"{/if}>
{l s='Amount'}
</label>
</div>
</div>
</div>
<div class="form-group adv_payment_field">
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}</span></div>
<div class="col-lg-11">
<div class="row" id="type_percent">
<label class="control-label col-sm-2">{l s='Value'}</label>
<div class="col-sm-4 col-lg-3">
<div class="input-group">
<span class="input-group-addon">%</span>
<input type="text" value="{if isset($adv_pay_dtl) && ($adv_pay_dtl['payment_type'] == 1)}{$adv_pay_dtl['value']}{/if}" name="adv_pay_percent" />
</div>
</div>
</div>
<div class="row" id="type_amount">
<label class="control-label col-sm-2">{l s='Amount'}</label>
<div class="col-sm-4 col-lg-3">
<div class="input-group">
<span class="input-group-addon">{$currency->prefix}{$currency->suffix}</span>
<input name="adv_pay_amount" type="text" value="{if isset($adv_pay_dtl) && ($adv_pay_dtl['payment_type'] == 2)}{{toolsConvertPrice price=$adv_pay_dtl['value']}|string_format:'%.6f'}{/if}"/>
</div>
</div>
</div>
</div>
</div>
<div class="form-group adv_payment_field">
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}</span></div>
<label class="control-label col-sm-2">
<span class="label-tooltip" data-toggle="tooltip" title="{l s='If Enable, customer will pay : (Advanced payment price + tax) and if Disabled, customer will onluy pay advanced payment price'}">
{l s='Tax Include'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" value="1" id="adv_tax_include_on" name="adv_tax_include" {if (isset($adv_pay_dtl) && $adv_pay_dtl['tax_include']) || !isset($adv_pay_dtl)}checked="checked"{/if}>
<label for="adv_tax_include_on">{l s='Yes'}</label>
<input type="radio" value="0" id="adv_tax_include_off" name="adv_tax_include" {if isset($adv_pay_dtl) && !$adv_pay_dtl['tax_include']}checked="checked"{/if}>
<label for="adv_tax_include_off">{l s='No'}</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
{/if}
<div class="panel-footer">
<a href="{$link->getAdminLink('AdminProducts')|escape:'html':'UTF-8'}{if isset($smarty.request.page) && $smarty.request.page > 1}&amp;submitFilterproduct={$smarty.request.page|intval}{/if}" class="btn btn-default"><i class="process-icon-cancel"></i> {l s='Cancel'}</a>
<button type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> {l s='Save'}</button>
@@ -288,7 +393,8 @@ $(document).ready(function () {
<script type="text/javascript">
var product_prices = new Array();
{foreach from=$combinations item='combination'}
product_prices['{$combination.id_product_attribute}'] = '{$combination.price|@addcslashes:'\''}';
product_prices['{$combination.id_product_attribute}'] = "{$combination.price|@addcslashes:'\''}";
/*product_prices['{$combination.id_product_attribute}'] = '{$combination.price|@addcslashes:'\''}';*/
{/foreach}
</script>
<div id="add_specific_price" class="well clearfix" style="display: none;">
@@ -440,8 +546,51 @@ $(document).ready(function () {
</div>
</div>
<script type="text/javascript">
var currencyName = '{$currency->name|escape:'html':'UTF-8'|@addcslashes:'\''}';
$(document).ready(function(){
var currencyName = "{$currency->name|escape:'html':'UTF-8'|@addcslashes:'\''}";
$(document).ready(function()
{
var adv_payment = $(".adv_payment_active:checked").val();
if (adv_payment == 1)
$(".adv_payment_field").show();
else
$(".adv_payment_field").hide();
$(".adv_payment_active").on('change',function()
{
var adv_payment = $(".adv_payment_active:checked").val();
if (adv_payment == 1)
$(".adv_payment_field").show();
else if (adv_payment == 0)
$(".adv_payment_field").hide();
});
var payment_type = $(".payment_type:checked").val();
if (payment_type == 1)
{
$("#type_percent").show();
$("#type_amount").hide();
}
else if (payment_type == 2)
{
$("#type_percent").hide();
$("#type_amount").show();
}
$(".payment_type").on('change',function()
{
var payment_type = $(".payment_type:checked").val();
if (payment_type == 1)
{
$("#type_percent").show();
$("#type_amount").hide();
}
else if (payment_type == 2)
{
$("#type_percent").hide();
$("#type_amount").show();
}
});
product_prices['0'] = $('#sp_current_ht_price').html();
$('#id_product_attribute').change(function() {
$('#sp_current_ht_price').html(product_prices[$('#id_product_attribute option:selected').val()]);

View File

@@ -0,0 +1,45 @@
<?php /*%%SmartyHeaderCode:826361081568d22cf264876-82629326%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'04fc6f3b931ddf81282908a3b23eb77ce046030e' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/blocksocial/blocksocial.tpl',
1 => 1451999525,
2 => 'file',
),
),
'nocache_hash' => '826361081568d22cf264876-82629326',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d30182c8723_13756949',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d30182c8723_13756949')) {function content_568d30182c8723_13756949($_smarty_tpl) {?><div id="social_block">
<ul>
<li class="facebook">
<a class="_blank" href="http://www.facebook.com/prestashop">
<span>Facebook</span>
</a>
</li>
<li class="twitter">
<a class="_blank" href="http://www.twitter.com/prestashop">
<span>Twitter</span>
</a>
</li>
<li class="rss">
<a class="_blank" href="http://www.prestashop.com/blog/en/">
<span>RSS</span>
</a>
</li>
<li class="google-plus">
<a class="_blank" href="https://www.google.com/+prestashop">
<span>Google Plus</span>
</a>
</li>
<div class="clearfix visible-xs"></div>
</ul>
<!-- <h4>Follow us</h4> --><!-- by webkul -->
</div>
<div class="clearfix"></div>
<?php }} ?>

View File

@@ -0,0 +1,45 @@
<?php /*%%SmartyHeaderCode:826361081568d22cf264876-82629326%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'04fc6f3b931ddf81282908a3b23eb77ce046030e' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/blocksocial/blocksocial.tpl',
1 => 1451999525,
2 => 'file',
),
),
'nocache_hash' => '826361081568d22cf264876-82629326',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df31d2fae53_04138122',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df31d2fae53_04138122')) {function content_568df31d2fae53_04138122($_smarty_tpl) {?><div id="social_block">
<ul>
<li class="facebook">
<a class="_blank" href="http://www.facebook.com/prestashop">
<span>Facebook</span>
</a>
</li>
<li class="twitter">
<a class="_blank" href="http://www.twitter.com/prestashop">
<span>Twitter</span>
</a>
</li>
<li class="rss">
<a class="_blank" href="http://www.prestashop.com/blog/en/">
<span>RSS</span>
</a>
</li>
<li class="google-plus">
<a class="_blank" href="https://www.google.com/+prestashop">
<span>Google Plus</span>
</a>
</li>
<div class="clearfix visible-xs"></div>
</ul>
<!-- <h4>Follow us</h4> --><!-- by webkul -->
</div>
<div class="clearfix"></div>
<?php }} ?>

View File

@@ -0,0 +1,45 @@
<?php /*%%SmartyHeaderCode:826361081568d22cf264876-82629326%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'04fc6f3b931ddf81282908a3b23eb77ce046030e' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/blocksocial/blocksocial.tpl',
1 => 1451999525,
2 => 'file',
),
),
'nocache_hash' => '826361081568d22cf264876-82629326',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d301c9be414_57736920',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d301c9be414_57736920')) {function content_568d301c9be414_57736920($_smarty_tpl) {?><div id="social_block">
<ul>
<li class="facebook">
<a class="_blank" href="http://www.facebook.com/prestashop">
<span>Facebook</span>
</a>
</li>
<li class="twitter">
<a class="_blank" href="http://www.twitter.com/prestashop">
<span>Twitter</span>
</a>
</li>
<li class="rss">
<a class="_blank" href="http://www.prestashop.com/blog/en/">
<span>RSS</span>
</a>
</li>
<li class="google-plus">
<a class="_blank" href="https://www.google.com/+prestashop">
<span>Google Plus</span>
</a>
</li>
<div class="clearfix visible-xs"></div>
</ul>
<!-- <h4>Follow us</h4> --><!-- by webkul -->
</div>
<div class="clearfix"></div>
<?php }} ?>

View File

@@ -0,0 +1,56 @@
<?php /*%%SmartyHeaderCode:826361081568d22cf264876-82629326%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'04fc6f3b931ddf81282908a3b23eb77ce046030e' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/blocksocial/blocksocial.tpl',
1 => 1452142872,
2 => 'file',
),
),
'nocache_hash' => '826361081568d22cf264876-82629326',
'cache_lifetime' => 31536000,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df655569382_84180389',
'variables' =>
array (
'facebook_url' => 0,
'twitter_url' => 0,
'rss_url' => 0,
'youtube_url' => 0,
'google_plus_url' => 0,
'pinterest_url' => 0,
'vimeo_url' => 0,
'instagram_url' => 0,
),
'has_nocache_code' => false,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df655569382_84180389')) {function content_568df655569382_84180389($_smarty_tpl) {?><div id="social_block">
<ul>
<li class="facebook">
<a class="_blank" href="http://www.facebook.com/prestashop">
<span>Facebook</span>
</a>
</li>
<li class="twitter">
<a class="_blank" href="http://www.twitter.com/prestashop">
<span>Twitter</span>
</a>
</li>
<li class="rss">
<a class="_blank" href="http://www.prestashop.com/blog/en/">
<span>RSS</span>
</a>
</li>
<li class="google-plus">
<a class="_blank" href="https://www.google.com/+prestashop">
<span>Google Plus</span>
</a>
</li>
<div class="clearfix visible-xs"></div>
</ul>
<!-- <h4>Follow us</h4> --><!-- by webkul -->
</div>
<div class="clearfix"></div>
<?php }} ?>

View File

@@ -0,0 +1,45 @@
<?php /*%%SmartyHeaderCode:826361081568d22cf264876-82629326%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'04fc6f3b931ddf81282908a3b23eb77ce046030e' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/blocksocial/blocksocial.tpl',
1 => 1451999525,
2 => 'file',
),
),
'nocache_hash' => '826361081568d22cf264876-82629326',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d22d9a0bff1_29691840',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d22d9a0bff1_29691840')) {function content_568d22d9a0bff1_29691840($_smarty_tpl) {?><div id="social_block">
<ul>
<li class="facebook">
<a class="_blank" href="http://www.facebook.com/prestashop">
<span>Facebook</span>
</a>
</li>
<li class="twitter">
<a class="_blank" href="http://www.twitter.com/prestashop">
<span>Twitter</span>
</a>
</li>
<li class="rss">
<a class="_blank" href="http://www.prestashop.com/blog/en/">
<span>RSS</span>
</a>
</li>
<li class="google-plus">
<a class="_blank" href="https://www.google.com/+prestashop">
<span>Google Plus</span>
</a>
</li>
<div class="clearfix visible-xs"></div>
</ul>
<!-- <h4>Follow us</h4> --><!-- by webkul -->
</div>
<div class="clearfix"></div>
<?php }} ?>

View File

@@ -0,0 +1,37 @@
<?php /*%%SmartyHeaderCode:1224820085568d22e8907952-89358135%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'5be8344c3ef10fd3ad6725c8c2b2b41479a3d025' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing.tpl',
1 => 1452142878,
2 => 'file',
),
),
'nocache_hash' => '1224820085568d22e8907952-89358135',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568e0136968ec7_56678169',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568e0136968ec7_56678169')) {function content_568e0136968ec7_56678169($_smarty_tpl) {?>
<p class="socialsharing_product list-inline no-print">
<button data-type="twitter" type="button" class="btn btn-default btn-twitter social-sharing">
<i class="icon-twitter"></i> Tweet
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/twitter.gif" alt="Tweet" /> -->
</button>
<button data-type="facebook" type="button" class="btn btn-default btn-facebook social-sharing">
<i class="icon-facebook"></i> Share
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/facebook.gif" alt="Facebook Like" /> -->
</button>
<button data-type="google-plus" type="button" class="btn btn-default btn-google-plus social-sharing">
<i class="icon-google-plus"></i> Google+
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/google.gif" alt="Google Plus" /> -->
</button>
<button data-type="pinterest" type="button" class="btn btn-default btn-pinterest social-sharing">
<i class="icon-pinterest"></i> Pinterest
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/pinterest.gif" alt="Pinterest" /> -->
</button>
</p>
<?php }} ?>

View File

@@ -0,0 +1,37 @@
<?php /*%%SmartyHeaderCode:1224820085568d22e8907952-89358135%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'5be8344c3ef10fd3ad6725c8c2b2b41479a3d025' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing.tpl',
1 => 1451999531,
2 => 'file',
),
),
'nocache_hash' => '1224820085568d22e8907952-89358135',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df5610d8c38_66089349',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df5610d8c38_66089349')) {function content_568df5610d8c38_66089349($_smarty_tpl) {?>
<p class="socialsharing_product list-inline no-print">
<button data-type="twitter" type="button" class="btn btn-default btn-twitter social-sharing">
<i class="icon-twitter"></i> Tweet
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/twitter.gif" alt="Tweet" /> -->
</button>
<button data-type="facebook" type="button" class="btn btn-default btn-facebook social-sharing">
<i class="icon-facebook"></i> Share
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/facebook.gif" alt="Facebook Like" /> -->
</button>
<button data-type="google-plus" type="button" class="btn btn-default btn-google-plus social-sharing">
<i class="icon-google-plus"></i> Google+
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/google.gif" alt="Google Plus" /> -->
</button>
<button data-type="pinterest" type="button" class="btn btn-default btn-pinterest social-sharing">
<i class="icon-pinterest"></i> Pinterest
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/pinterest.gif" alt="Pinterest" /> -->
</button>
</p>
<?php }} ?>

View File

@@ -0,0 +1,37 @@
<?php /*%%SmartyHeaderCode:1224820085568d22e8907952-89358135%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'5be8344c3ef10fd3ad6725c8c2b2b41479a3d025' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing.tpl',
1 => 1451999531,
2 => 'file',
),
),
'nocache_hash' => '1224820085568d22e8907952-89358135',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d3031b9e603_82989268',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d3031b9e603_82989268')) {function content_568d3031b9e603_82989268($_smarty_tpl) {?>
<p class="socialsharing_product list-inline no-print">
<button data-type="twitter" type="button" class="btn btn-default btn-twitter social-sharing">
<i class="icon-twitter"></i> Tweet
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/twitter.gif" alt="Tweet" /> -->
</button>
<button data-type="facebook" type="button" class="btn btn-default btn-facebook social-sharing">
<i class="icon-facebook"></i> Share
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/facebook.gif" alt="Facebook Like" /> -->
</button>
<button data-type="google-plus" type="button" class="btn btn-default btn-google-plus social-sharing">
<i class="icon-google-plus"></i> Google+
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/google.gif" alt="Google Plus" /> -->
</button>
<button data-type="pinterest" type="button" class="btn btn-default btn-pinterest social-sharing">
<i class="icon-pinterest"></i> Pinterest
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/pinterest.gif" alt="Pinterest" /> -->
</button>
</p>
<?php }} ?>

View File

@@ -0,0 +1,37 @@
<?php /*%%SmartyHeaderCode:1224820085568d22e8907952-89358135%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'5be8344c3ef10fd3ad6725c8c2b2b41479a3d025' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing.tpl',
1 => 1452142878,
2 => 'file',
),
),
'nocache_hash' => '1224820085568d22e8907952-89358135',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568e0256f27a15_57404812',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568e0256f27a15_57404812')) {function content_568e0256f27a15_57404812($_smarty_tpl) {?>
<p class="socialsharing_product list-inline no-print">
<button data-type="twitter" type="button" class="btn btn-default btn-twitter social-sharing">
<i class="icon-twitter"></i> Tweet
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/twitter.gif" alt="Tweet" /> -->
</button>
<button data-type="facebook" type="button" class="btn btn-default btn-facebook social-sharing">
<i class="icon-facebook"></i> Share
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/facebook.gif" alt="Facebook Like" /> -->
</button>
<button data-type="google-plus" type="button" class="btn btn-default btn-google-plus social-sharing">
<i class="icon-google-plus"></i> Google+
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/google.gif" alt="Google Plus" /> -->
</button>
<button data-type="pinterest" type="button" class="btn btn-default btn-pinterest social-sharing">
<i class="icon-pinterest"></i> Pinterest
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/pinterest.gif" alt="Pinterest" /> -->
</button>
</p>
<?php }} ?>

View File

@@ -0,0 +1,46 @@
<?php /*%%SmartyHeaderCode:1224820085568d22e8907952-89358135%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'5be8344c3ef10fd3ad6725c8c2b2b41479a3d025' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing.tpl',
1 => 1451999531,
2 => 'file',
),
),
'nocache_hash' => '1224820085568d22e8907952-89358135',
'variables' =>
array (
'PS_SC_TWITTER' => 0,
'PS_SC_FACEBOOK' => 0,
'PS_SC_GOOGLE' => 0,
'PS_SC_PINTEREST' => 0,
'module_dir' => 0,
'link' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d22e89719d6_30017608',
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d22e89719d6_30017608')) {function content_568d22e89719d6_30017608($_smarty_tpl) {?>
<p class="socialsharing_product list-inline no-print">
<button data-type="twitter" type="button" class="btn btn-default btn-twitter social-sharing">
<i class="icon-twitter"></i> Tweet
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/twitter.gif" alt="Tweet" /> -->
</button>
<button data-type="facebook" type="button" class="btn btn-default btn-facebook social-sharing">
<i class="icon-facebook"></i> Share
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/facebook.gif" alt="Facebook Like" /> -->
</button>
<button data-type="google-plus" type="button" class="btn btn-default btn-google-plus social-sharing">
<i class="icon-google-plus"></i> Google+
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/google.gif" alt="Google Plus" /> -->
</button>
<button data-type="pinterest" type="button" class="btn btn-default btn-pinterest social-sharing">
<i class="icon-pinterest"></i> Pinterest
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/pinterest.gif" alt="Pinterest" /> -->
</button>
</p>
<?php }} ?>

View File

@@ -0,0 +1,46 @@
<?php /*%%SmartyHeaderCode:1224820085568d22e8907952-89358135%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'5be8344c3ef10fd3ad6725c8c2b2b41479a3d025' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing.tpl',
1 => 1452142878,
2 => 'file',
),
),
'nocache_hash' => '1224820085568d22e8907952-89358135',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568dfa10a04c94_38733667',
'variables' =>
array (
'PS_SC_TWITTER' => 0,
'PS_SC_FACEBOOK' => 0,
'PS_SC_GOOGLE' => 0,
'PS_SC_PINTEREST' => 0,
'module_dir' => 0,
'link' => 0,
),
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568dfa10a04c94_38733667')) {function content_568dfa10a04c94_38733667($_smarty_tpl) {?>
<p class="socialsharing_product list-inline no-print">
<button data-type="twitter" type="button" class="btn btn-default btn-twitter social-sharing">
<i class="icon-twitter"></i> Tweet
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/twitter.gif" alt="Tweet" /> -->
</button>
<button data-type="facebook" type="button" class="btn btn-default btn-facebook social-sharing">
<i class="icon-facebook"></i> Share
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/facebook.gif" alt="Facebook Like" /> -->
</button>
<button data-type="google-plus" type="button" class="btn btn-default btn-google-plus social-sharing">
<i class="icon-google-plus"></i> Google+
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/google.gif" alt="Google Plus" /> -->
</button>
<button data-type="pinterest" type="button" class="btn btn-default btn-pinterest social-sharing">
<i class="icon-pinterest"></i> Pinterest
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/pinterest.gif" alt="Pinterest" /> -->
</button>
</p>
<?php }} ?>

View File

@@ -0,0 +1,37 @@
<?php /*%%SmartyHeaderCode:1224820085568d22e8907952-89358135%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'5be8344c3ef10fd3ad6725c8c2b2b41479a3d025' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing.tpl',
1 => 1451999531,
2 => 'file',
),
),
'nocache_hash' => '1224820085568d22e8907952-89358135',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d2890caa3a6_80882676',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d2890caa3a6_80882676')) {function content_568d2890caa3a6_80882676($_smarty_tpl) {?>
<p class="socialsharing_product list-inline no-print">
<button data-type="twitter" type="button" class="btn btn-default btn-twitter social-sharing">
<i class="icon-twitter"></i> Tweet
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/twitter.gif" alt="Tweet" /> -->
</button>
<button data-type="facebook" type="button" class="btn btn-default btn-facebook social-sharing">
<i class="icon-facebook"></i> Share
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/facebook.gif" alt="Facebook Like" /> -->
</button>
<button data-type="google-plus" type="button" class="btn btn-default btn-google-plus social-sharing">
<i class="icon-google-plus"></i> Google+
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/google.gif" alt="Google Plus" /> -->
</button>
<button data-type="pinterest" type="button" class="btn btn-default btn-pinterest social-sharing">
<i class="icon-pinterest"></i> Pinterest
<!-- <img src="http://192.168.1.223/~sumit/html/hotel-reservation-system/modules/socialsharing/img/pinterest.gif" alt="Pinterest" /> -->
</button>
</p>
<?php }} ?>

View File

@@ -0,0 +1,28 @@
<?php /*%%SmartyHeaderCode:1827450349568d22e8153226-16054358%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'fc3a9ff91e79ee93a5b410b936cd0b51d8f4885d' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing_header.tpl',
1 => 1452142878,
2 => 'file',
),
),
'nocache_hash' => '1827450349568d22e8153226-16054358',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568e01366f5f22_41539428',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568e01366f5f22_41539428')) {function content_568e01366f5f22_41539428($_smarty_tpl) {?><meta property="og:type" content="product" />
<meta property="og:url" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/index.php?id_product=10&controller=product&date_from=2016-01-07&date_to=2016-01-20" />
<meta property="og:title" content="luxury Rooms - hotel reservation" />
<meta property="og:site_name" content="hotel reservation" />
<meta property="og:description" content="Fashion axe kogi yuccie, ramps shabby chic direct trade before they sold out distillery bicycle rights. Slow-carb +1 quinoa VHS. +1 brunch trust fund, meggings chartreuse sustainable everyday carry tumblr hoodie tacos tilde ramps post-ironic fixie." />
<meta property="og:image" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/img/p/2/6/26-large_default.jpg" />
<meta property="product:pretax_price:amount" content="1000" />
<meta property="product:pretax_price:currency" content="INR" />
<meta property="product:price:amount" content="1125" />
<meta property="product:price:currency" content="INR" />
<?php }} ?>

View File

@@ -0,0 +1,28 @@
<?php /*%%SmartyHeaderCode:1827450349568d22e8153226-16054358%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'fc3a9ff91e79ee93a5b410b936cd0b51d8f4885d' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing_header.tpl',
1 => 1451999531,
2 => 'file',
),
),
'nocache_hash' => '1827450349568d22e8153226-16054358',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df560e3f6b7_27775851',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df560e3f6b7_27775851')) {function content_568df560e3f6b7_27775851($_smarty_tpl) {?><meta property="og:type" content="product" />
<meta property="og:url" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/index.php?id_product=8&controller=product&date_from=2016-01-07&date_to=2016-01-10" />
<meta property="og:title" content="Delux Rooms - hotel reservation" />
<meta property="og:site_name" content="hotel reservation" />
<meta property="og:description" content="Fashion axe kogi yuccie, ramps shabby chic direct trade before they sold out distillery bicycle rights. Slow-carb +1 quinoa VHS. +1 brunch trust fund, meggings chartreuse sustainable everyday carry tumblr hoodie tacos tilde ramps post-ironic fixie." />
<meta property="og:image" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/img/p/2/4/24-large_default.jpg" />
<meta property="product:pretax_price:amount" content="1000" />
<meta property="product:pretax_price:currency" content="INR" />
<meta property="product:price:amount" content="1125" />
<meta property="product:price:currency" content="INR" />
<?php }} ?>

View File

@@ -0,0 +1,28 @@
<?php /*%%SmartyHeaderCode:1827450349568d22e8153226-16054358%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'fc3a9ff91e79ee93a5b410b936cd0b51d8f4885d' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing_header.tpl',
1 => 1451999531,
2 => 'file',
),
),
'nocache_hash' => '1827450349568d22e8153226-16054358',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d3031289670_08374273',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d3031289670_08374273')) {function content_568d3031289670_08374273($_smarty_tpl) {?><meta property="og:type" content="product" />
<meta property="og:url" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/index.php?id_product=8&controller=product" />
<meta property="og:title" content="Delux Rooms - hotel reservation syatem" />
<meta property="og:site_name" content="hotel reservation syatem" />
<meta property="og:description" content="Fashion axe kogi yuccie, ramps shabby chic direct trade before they sold out distillery bicycle rights. Slow-carb +1 quinoa VHS. +1 brunch trust fund, meggings chartreuse sustainable everyday carry tumblr hoodie tacos tilde ramps post-ironic fixie." />
<meta property="og:image" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/img/p/2/4/24-large_default.jpg" />
<meta property="product:pretax_price:amount" content="1000" />
<meta property="product:pretax_price:currency" content="INR" />
<meta property="product:price:amount" content="1125" />
<meta property="product:price:currency" content="INR" />
<?php }} ?>

View File

@@ -0,0 +1,28 @@
<?php /*%%SmartyHeaderCode:1827450349568d22e8153226-16054358%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'fc3a9ff91e79ee93a5b410b936cd0b51d8f4885d' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing_header.tpl',
1 => 1452142878,
2 => 'file',
),
),
'nocache_hash' => '1827450349568d22e8153226-16054358',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568e0256d4f065_80848909',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568e0256d4f065_80848909')) {function content_568e0256d4f065_80848909($_smarty_tpl) {?><meta property="og:type" content="product" />
<meta property="og:url" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/index.php?id_product=8&controller=product&date_from=2016-03-27&date_to=2016-03-31" />
<meta property="og:title" content="Delux Rooms - hotel reservation" />
<meta property="og:site_name" content="hotel reservation" />
<meta property="og:description" content="Fashion axe kogi yuccie, ramps shabby chic direct trade before they sold out distillery bicycle rights. Slow-carb +1 quinoa VHS. +1 brunch trust fund, meggings chartreuse sustainable everyday carry tumblr hoodie tacos tilde ramps post-ironic fixie." />
<meta property="og:image" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/img/p/2/4/24-large_default.jpg" />
<meta property="product:pretax_price:amount" content="1000" />
<meta property="product:pretax_price:currency" content="INR" />
<meta property="product:price:amount" content="1125" />
<meta property="product:price:currency" content="INR" />
<?php }} ?>

View File

@@ -0,0 +1,43 @@
<?php /*%%SmartyHeaderCode:1827450349568d22e8153226-16054358%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'fc3a9ff91e79ee93a5b410b936cd0b51d8f4885d' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing_header.tpl',
1 => 1451999531,
2 => 'file',
),
),
'nocache_hash' => '1827450349568d22e8153226-16054358',
'variables' =>
array (
'request' => 0,
'meta_title' => 0,
'shop_name' => 0,
'meta_description' => 0,
'link_rewrite' => 0,
'cover' => 0,
'link' => 0,
'pretax_price' => 0,
'currency' => 0,
'price' => 0,
'weight' => 0,
'weight_unit' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d22e82577a7_40365785',
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d22e82577a7_40365785')) {function content_568d22e82577a7_40365785($_smarty_tpl) {?><meta property="og:type" content="product" />
<meta property="og:url" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/index.php?id_product=8&controller=product" />
<meta property="og:title" content="Delux Rooms - hotel reservation syatem" />
<meta property="og:site_name" content="hotel reservation syatem" />
<meta property="og:description" content="Fashion axe kogi yuccie, ramps shabby chic direct trade before they sold out distillery bicycle rights. Slow-carb +1 quinoa VHS. +1 brunch trust fund, meggings chartreuse sustainable everyday carry tumblr hoodie tacos tilde ramps post-ironic fixie." />
<meta property="og:image" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/img/p/2/4/24-large_default.jpg" />
<meta property="product:pretax_price:amount" content="15.02" />
<meta property="product:pretax_price:currency" content="USD" />
<meta property="product:price:amount" content="16.89" />
<meta property="product:price:currency" content="USD" />
<?php }} ?>

View File

@@ -0,0 +1,43 @@
<?php /*%%SmartyHeaderCode:1827450349568d22e8153226-16054358%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'fc3a9ff91e79ee93a5b410b936cd0b51d8f4885d' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing_header.tpl',
1 => 1452142878,
2 => 'file',
),
),
'nocache_hash' => '1827450349568d22e8153226-16054358',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568dfa106295f1_72428317',
'variables' =>
array (
'request' => 0,
'meta_title' => 0,
'shop_name' => 0,
'meta_description' => 0,
'link_rewrite' => 0,
'cover' => 0,
'link' => 0,
'pretax_price' => 0,
'currency' => 0,
'price' => 0,
'weight' => 0,
'weight_unit' => 0,
),
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568dfa106295f1_72428317')) {function content_568dfa106295f1_72428317($_smarty_tpl) {?><meta property="og:type" content="product" />
<meta property="og:url" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/index.php?id_product=9&controller=product&date_from=2016-01-07&date_to=2016-01-10" />
<meta property="og:title" content="Executive Rooms - hotel reservation" />
<meta property="og:site_name" content="hotel reservation" />
<meta property="og:description" content="Fashion axe kogi yuccie, ramps shabby chic direct trade before they sold out distillery bicycle rights. Slow-carb +1 quinoa VHS. +1 brunch trust fund, meggings chartreuse sustainable everyday carry tumblr hoodie tacos tilde ramps post-ironic fixie." />
<meta property="og:image" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/img/p/2/5/25-large_default.jpg" />
<meta property="product:pretax_price:amount" content="1000" />
<meta property="product:pretax_price:currency" content="INR" />
<meta property="product:price:amount" content="1125" />
<meta property="product:price:currency" content="INR" />
<?php }} ?>

View File

@@ -0,0 +1,28 @@
<?php /*%%SmartyHeaderCode:1827450349568d22e8153226-16054358%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'fc3a9ff91e79ee93a5b410b936cd0b51d8f4885d' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/socialsharing/views/templates/hook/socialsharing_header.tpl',
1 => 1451999531,
2 => 'file',
),
),
'nocache_hash' => '1827450349568d22e8153226-16054358',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d28906beda0_87076411',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d28906beda0_87076411')) {function content_568d28906beda0_87076411($_smarty_tpl) {?><meta property="og:type" content="product" />
<meta property="og:url" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/index.php?id_product=9&controller=product" />
<meta property="og:title" content="Executive Rooms - hotel reservation syatem" />
<meta property="og:site_name" content="hotel reservation syatem" />
<meta property="og:description" content="Fashion axe kogi yuccie, ramps shabby chic direct trade before they sold out distillery bicycle rights. Slow-carb +1 quinoa VHS. +1 brunch trust fund, meggings chartreuse sustainable everyday carry tumblr hoodie tacos tilde ramps post-ironic fixie." />
<meta property="og:image" content="http://192.168.1.223/~sumit/html/hotel-reservation-system/img/p/2/5/25-large_default.jpg" />
<meta property="product:pretax_price:amount" content="15.02" />
<meta property="product:pretax_price:currency" content="USD" />
<meta property="product:price:amount" content="16.89" />
<meta property="product:price:currency" content="USD" />
<?php }} ?>

View File

@@ -0,0 +1,626 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:42:22
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/helpers/form/form.tpl" */ ?>
<?php /*%%SmartyHeaderCode:76171280568df3b69f3778-97802327%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'005006a060124916d87ca4330416d263871a4d7c' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/helpers/form/form.tpl',
1 => 1452142913,
2 => 'file',
),
'93e8c95891b1ed240b793aea4f06c0720478b6ca' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/helpers/form/form.tpl',
1 => 1452142887,
2 => 'file',
),
'6474e48dc35dff86ce435137f9701d2c85cf61b6' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/helpers/form/form_group.tpl',
1 => 1452142887,
2 => 'file',
),
),
'nocache_hash' => '76171280568df3b69f3778-97802327',
'function' =>
array (
),
'variables' =>
array (
'fields' => 0,
'tabs' => 0,
'identifier_bk' => 0,
'identifier' => 0,
'table_bk' => 0,
'table' => 0,
'name_controller' => 0,
'current' => 0,
'token' => 0,
'style' => 0,
'form_id' => 0,
'submit_action' => 0,
'f' => 0,
'fieldset' => 0,
'key' => 0,
'field' => 0,
'input' => 0,
'contains_states' => 0,
'fields_value' => 0,
'hint' => 0,
'languages' => 0,
'language' => 0,
'defaultFormLanguage' => 0,
'value_text' => 0,
'name' => 0,
'value' => 0,
'option' => 0,
'optiongroup' => 0,
'field_value' => 0,
'id_checkbox' => 0,
'select' => 0,
'k' => 0,
'v' => 0,
'categories_tree' => 0,
'asso_shop' => 0,
'p' => 0,
'hookName' => 0,
'show_cancel_button' => 0,
'back_url' => 0,
'btn' => 0,
'tinymce' => 0,
'iso' => 0,
'ad' => 0,
'firstCall' => 0,
'vat_number' => 0,
'allowEmployeeFormLang' => 0,
'use_textarea_autosize' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df3b7513028_43982076',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df3b7513028_43982076')) {function content_568df3b7513028_43982076($_smarty_tpl) {?><?php if (!is_callable('smarty_function_counter')) include '/home/sumit/public_html/html/hotel-reservation-system/tools/smarty/plugins/function.counter.php';
?>
<?php if (isset($_smarty_tpl->tpl_vars['fields']->value['title'])) {?><h3><?php echo $_smarty_tpl->tpl_vars['fields']->value['title'];?>
</h3><?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['tabs']->value)&&count($_smarty_tpl->tpl_vars['tabs']->value)) {?>
<script type="text/javascript">
var helper_tabs = <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['tabs']->value);?>
;
var unique_field_id = '';
</script>
<?php }?>
<div class="row">
<div class="productTabs col-lg-2 col-md-3">
<div class="list-group">
<?php $_smarty_tpl->tpl_vars['tab'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tab']->_loop = false;
$_smarty_tpl->tpl_vars['numStep'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['product_tabs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tab']->key => $_smarty_tpl->tpl_vars['tab']->value) {
$_smarty_tpl->tpl_vars['tab']->_loop = true;
$_smarty_tpl->tpl_vars['numStep']->value = $_smarty_tpl->tpl_vars['tab']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['tab']->value['name']!="Pack") {?>
<a class="list-group-item <?php if ($_smarty_tpl->tpl_vars['tab']->value['selected']) {?>active<?php }?>" id="link-<?php echo $_smarty_tpl->tpl_vars['tab']->value['id'];?>
" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tab']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
&amp;updateproduct"><?php echo $_smarty_tpl->tpl_vars['tab']->value['name'];?>
</a>
<?php }?>
<?php } ?>
</div>
</div>
<script type="text/javascript">
var id_product = <?php if (isset($_smarty_tpl->tpl_vars['product']->value->id)) {?><?php echo $_smarty_tpl->tpl_vars['product']->value->id;?>
<?php } else { ?>0<?php }?>;
var id_lang_default = <?php echo $_smarty_tpl->tpl_vars['id_lang_default']->value;?>
;
var product_type_pack = <?php echo Product::PTYPE_PACK;?>
;
var product_type_virtual = <?php echo Product::PTYPE_VIRTUAL;?>
;
var product_type_simple = <?php echo Product::PTYPE_SIMPLE;?>
;
var has_combinations = <?php echo $_smarty_tpl->tpl_vars['has_combinations']->value;?>
;
var toload = new Array();
var empty_pack_msg = '<?php echo smartyTranslate(array('s'=>'This pack is empty. You will need to add at least one product to the pack before you can save.','js'=>1),$_smarty_tpl);?>
';
var empty_name_msg = '<?php echo smartyTranslate(array('s'=>'The product name is empty. You will at least need to enter a name for the default language before you can save the product.','js'=>1),$_smarty_tpl);?>
';
var empty_link_rewrite_msg = '<?php echo smartyTranslate(array('s'=>'The friendly URL is empty. You will at least need to enter a friendly URL for the default language before you can save the product.','slashes'=>1),$_smarty_tpl);?>
';
var reload_tab_title = '<?php echo smartyTranslate(array('s'=>'Confirmation','slashes'=>1),$_smarty_tpl);?>
';
var reload_tab_description = '<?php echo smartyTranslate(array('s'=>'A server error occurred while loading the tabs: some tabs could not be loaded.','js'=>1),$_smarty_tpl);?>
'+'\n'+'<?php echo smartyTranslate(array('s'=>'Please try again by refreshing the page.','js'=>1),$_smarty_tpl);?>
'+'\n'+'<?php echo smartyTranslate(array('s'=>'If you are still encountering this problem, please check your server logs or contact your hosting provider for assistance.','js'=>1),$_smarty_tpl);?>
';
$('#product-tab-content-wait').show();
var post_data = <?php echo $_smarty_tpl->tpl_vars['post_data']->value;?>
;
var save_error = <?php if ($_smarty_tpl->tpl_vars['save_error']->value) {?>true<?php } else { ?>false<?php }?>;
var error_heading_msg = '<?php echo smartyTranslate(array('s'=>'Error','js'=>1),$_smarty_tpl);?>
';
var error_continue_msg = '<?php echo smartyTranslate(array('s'=>'Continue','js'=>1),$_smarty_tpl);?>
';
var product_type = <?php echo $_smarty_tpl->tpl_vars['product_type']->value;?>
;
<?php if (isset($_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value)&&$_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value) {?>
var display_multishop_checkboxes = true;
<?php } else { ?>
var display_multishop_checkboxes = false;
<?php }?>
var tabs_preloaded = new Array();
var tabs_to_preload = new Array();
var mod_evasive = <?php if (isset($_smarty_tpl->tpl_vars['mod_evasive']->value)&&$_smarty_tpl->tpl_vars['mod_evasive']->value) {?>true<?php } else { ?>false<?php }?>;
var mod_security = <?php if (isset($_smarty_tpl->tpl_vars['mod_security']->value)&&$_smarty_tpl->tpl_vars['mod_security']->value) {?>true<?php } else { ?>false<?php }?>;
$(document).ready(function()
{
if (product_type == product_type_pack)
{
$('a[id*="VirtualProduct"]').hide();
$('a[id*="Combinations"]').hide();
}
else if (product_type == product_type_virtual)
{
$('a[id*="Pack"]').hide();
$('a[id*="Shipping"]').hide();
$('a[id*="Combinations"]').hide();
}
else
{
$('a[id*="Pack"]').hide();
$('a[id*="VirtualProduct"]').hide();
}
$('#desc-product-newCombination').hide();
$(".productTabs a").click(function(e){
e.preventDefault();
// currentId is the current product tab id
currentId = false;
if ($(".productTabs a.active").length)
currentId = $(".productTabs a.active").attr('id').substr(5);
// id is the wanted producttab id
id = $(this).attr('id').substr(5);
// Update submit button value
var split_position = id.indexOf('-') + 1;
var btn_name = id.substr(split_position);
if ((btn_name == 'VirtualProduct' || btn_name == 'Pack') && $('#name_' + id_lang_default).val() == '')
{
alert(missing_product_name);
$('#name_' + id_lang_default).focus();
return false;
}
$('#key_tab').val(btn_name);
if ($(this).attr("id") != $(".productTabs a.active ").attr('id'))
{
$(".productTabs a").removeClass('active');
$("#product-tab-content-"+currentId).hide();
}
// if the tab has not already been loaded, load it now
tabs_manager.display(id, true);
tabs_manager.onLoad(id, function(){
$("#product-tab-content-"+id).show(0, function(){
$(this).trigger('displayed');
});
$("#link-"+id).addClass('active');
});
var languages = new Array();
if (btn_name == "Combinations")
{
$('#desc-product-new').hide();
$('#desc-product-newCombination').show();
populate_attrs();
}
else if (btn_name == "Attachments")
{
handleSaveButtons();
}
else
{
$('#desc-product-newCombination').hide();
// if pack is enabled, save button are visible only if pack is valid
if ($("input[name='id_product']").val() != 0 || btn_name != 'Informations')
handleSaveButtons();
}
$('.label-tooltip').tooltip();
});
$(".productTabs a.active").click();
// disable save if Associations tab is not loaded
if ($('#product-tab-content-Associations').hasClass('not-loaded'))
disableSave();
tabs_manager.onLoad('Associations', function(){
if ($("input[name='id_product']").val() != 0)
handleSaveButtons();
});
$('.confirm_leave').live('click', function(){
// Double quotes are necessary when the translated string has single quotes
return confirm("<?php echo smartyTranslate(array('s'=>'You will lose all unsaved modifications. Are you sure that you want to proceed?','js'=>1),$_smarty_tpl);?>
");
});
$('#toolbar-footer').appendTo($('#product-tab-content-Informations').children('.product-tab'));
$('.product-tab-content').on('displayed', function(e) {
$('#toolbar-footer').appendTo($(this).children('.product-tab'));
});
});
// Listen to the load event that is fired each time an ajax call to load a tab has completed
$(window).bind("load", function() {
var tabs_to_preload = new Array();
<?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
$_smarty_tpl->tpl_vars['tab_name'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['tabs_preloaded']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->_loop = true;
$_smarty_tpl->tpl_vars['tab_name']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
<?php if ((is_numeric($_smarty_tpl->tpl_vars['value']->value))) {?>
if ($("#product-tab-content-"+'<?php echo $_smarty_tpl->tpl_vars['tab_name']->value;?>
').hasClass('not-loaded'))
tabs_to_preload.push('<?php echo $_smarty_tpl->tpl_vars['tab_name']->value;?>
');
<?php }?>
<?php } ?>
// Recursively load tabs starting with the first element of stack
tabs_manager.displayBulk(tabs_to_preload);
$('.productTabs').show();
$('#product-tab-content-wait').hide();
function checkIfProductTypeIsPack() {
var typeIsPack = $('#pack_product').is(':checked');
if (typeIsPack && $('#inputPackItems').val()=='' ) {
$('.pack-empty-warning').removeClass('alert-warning').addClass('alert-danger');
$('#curPackItemName').select2('open');
}
return typeIsPack;
}
$("#product_form").validate({
ignore: '.updateCurrentText',
rules: {
inputPackItems: {
required: {
depends: checkIfProductTypeIsPack
},
}
},
messages: {
inputPackItems: {
required: ""
}
},
submitHandler: function(form) {
form.submit();
},
// override jquery validate plugin defaults for bootstrap 3
highlight: function(element) {
$(element).closest('.form-group').addClass('has-error');
},
unhighlight: function(element) {
$(element).closest('.form-group').removeClass('has-error');
},
errorElement: 'span',
errorClass: 'help-block',
errorPlacement: function(error, element) {
if(element.parent('.input-group').length) {
error.insertAfter(element.parent());
} else {
error.insertAfter(element);
}
}
});
});
</script>
<script type="text/javascript">
// <![CDATA[
ThickboxI18nImage = "<?php echo smartyTranslate(array('s'=>'Image'),$_smarty_tpl);?>
";
ThickboxI18nOf = "<?php echo smartyTranslate(array('s'=>'of'),$_smarty_tpl);?>
";
ThickboxI18nClose = "<?php echo smartyTranslate(array('s'=>'Close'),$_smarty_tpl);?>
";
ThickboxI18nOrEscKey = "<?php echo smartyTranslate(array('s'=>'(or "Esc")'),$_smarty_tpl);?>
";
ThickboxI18nNext = "<?php echo smartyTranslate(array('s'=>'Next >'),$_smarty_tpl);?>
";
ThickboxI18nPrev = "<?php echo smartyTranslate(array('s'=>'< Previous'),$_smarty_tpl);?>
";
tb_pathToImage = "../img/loadingAnimation.gif";
//]]>
</script>
<div id="product-tab-content-wait" style="display:none">
<div id="loading"><i class="icon-refresh icon-spin"></i>&nbsp;<?php echo smartyTranslate(array('s'=>'Loading...'),$_smarty_tpl);?>
</div>
</div>
<form id="product_form" class="form-horizontal col-lg-10 col-md-9" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['form_action']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post" enctype="multipart/form-data" name="product" novalidate>
<input type="hidden" name="id_product" value="<?php echo $_smarty_tpl->tpl_vars['id_product']->value;?>
" />
<!-- <input type="hidden" id="is_virtual" name="is_virtual" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->is_virtual, ENT_QUOTES, 'UTF-8', true);?>
" /> -->
<!-- changed input field to make product virtual by default -->
<input type="hidden" id="is_virtual" name="is_virtual" value="1"/>
<?php if (isset($_REQUEST['page'])&&$_REQUEST['page']>1) {?>
<input type="hidden" id="page" name="page" value="<?php echo intval($_REQUEST['page']);?>
" />
<?php }?>
<?php if (!$_smarty_tpl->tpl_vars['product']->value->active&&$_smarty_tpl->tpl_vars['product']->value->isAssociatedToShop()) {?>
<div class="alert alert-info draft" >
<?php echo smartyTranslate(array('s'=>'Your product will be saved as a draft.'),$_smarty_tpl);?>
<a href="#" class="btn btn-default" onclick="submitAddProductAndPreview()" ><i class="icon-eye-open"></i>&nbsp;<?php echo smartyTranslate(array('s'=>'Save and preview'),$_smarty_tpl);?>
</a>
<input type="hidden" name="fakeSubmitAddProductAndPreview" id="fakeSubmitAddProductAndPreview" />
</div>
<?php }?>
<?php $_smarty_tpl->tpl_vars['tab'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tab']->_loop = false;
$_smarty_tpl->tpl_vars['numStep'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['product_tabs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tab']->key => $_smarty_tpl->tpl_vars['tab']->value) {
$_smarty_tpl->tpl_vars['tab']->_loop = true;
$_smarty_tpl->tpl_vars['numStep']->value = $_smarty_tpl->tpl_vars['tab']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['tab']->value['id']!="Pack") {?>
<div id="product-tab-content-<?php echo $_smarty_tpl->tpl_vars['tab']->value['id'];?>
" class="<?php if (!$_smarty_tpl->tpl_vars['tab']->value['selected']) {?>not-loaded<?php }?> product-tab-content" <?php if (!$_smarty_tpl->tpl_vars['tab']->value['selected']) {?>style="display:none"<?php }?>>
<?php if ($_smarty_tpl->tpl_vars['tab']->value['selected']) {?>
<?php echo $_smarty_tpl->tpl_vars['custom_form']->value;?>
<?php }?>
</div>
<?php }?>
<?php } ?>
<input type="hidden" name="id_product_attribute" id="id_product_attribute" value="0" />
<input type="hidden" name="key_tab" id="key_tab" value="Informations" />
</form>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['tinymce']->value)&&$_smarty_tpl->tpl_vars['tinymce']->value) {?>
<script type="text/javascript">
var iso = '<?php echo addslashes($_smarty_tpl->tpl_vars['iso']->value);?>
';
var pathCSS = '<?php echo addslashes(@constant('_THEME_CSS_DIR_'));?>
';
var ad = '<?php echo addslashes($_smarty_tpl->tpl_vars['ad']->value);?>
';
$(document).ready(function(){
// Execute when tab Informations has finished loading
tabs_manager.onLoad('Informations', function(){
tinySetup({
editor_selector :"autoload_rte",
setup : function(ed) {
ed.on('init', function(ed)
{
if (typeof ProductMultishop.load_tinymce[ed.target.id] != 'undefined')
{
if (typeof ProductMultishop.load_tinymce[ed.target.id])
tinyMCE.get(ed.target.id).hide();
else
tinyMCE.get(ed.target.id).show();
}
});
ed.on('keydown', function(ed, e) {
tinyMCE.triggerSave();
textarea = $('#'+tinymce.activeEditor.id);
var max = textarea.parent('div').find('span.counter').data('max');
if (max != 'none')
{
count = tinyMCE.activeEditor.getBody().textContent.length;
rest = max - count;
if (rest < 0)
textarea.parent('div').find('span.counter').html('<span style="color:red;"><?php echo smartyTranslate(array('s'=>'Maximum'),$_smarty_tpl);?>
'+ max +' <?php echo smartyTranslate(array('s'=>'characters'),$_smarty_tpl);?>
: '+rest+'</span>');
else
textarea.parent('div').find('span.counter').html(' ');
}
});
}
});
});
});
</script>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['firstCall']->value) {?>
<script type="text/javascript">
var module_dir = '<?php echo @constant('_MODULE_DIR_');?>
';
var id_language = <?php echo intval($_smarty_tpl->tpl_vars['defaultFormLanguage']->value);?>
;
var languages = new Array();
var vat_number = <?php if ($_smarty_tpl->tpl_vars['vat_number']->value) {?>1<?php } else { ?>0<?php }?>;
// Multilang field setup must happen before document is ready so that calls to displayFlags() to avoid
// precedence conflicts with other document.ready() blocks
<?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['language']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['language']->key;
?>
languages[<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
] = {
id_lang: <?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
,
iso_code: '<?php echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];?>
',
name: '<?php echo $_smarty_tpl->tpl_vars['language']->value['name'];?>
',
is_default: '<?php echo $_smarty_tpl->tpl_vars['language']->value['is_default'];?>
'
};
<?php } ?>
// we need allowEmployeeFormLang var in ajax request
allowEmployeeFormLang = <?php echo intval($_smarty_tpl->tpl_vars['allowEmployeeFormLang']->value);?>
;
displayFlags(languages, id_language, allowEmployeeFormLang);
$(document).ready(function() {
$(".show_checkbox").click(function () {
$(this).addClass('hidden')
$(this).siblings('.checkbox').removeClass('hidden');
$(this).siblings('.hide_checkbox').removeClass('hidden');
return false;
});
$(".hide_checkbox").click(function () {
$(this).addClass('hidden')
$(this).siblings('.checkbox').addClass('hidden');
$(this).siblings('.show_checkbox').removeClass('hidden');
return false;
});
<?php if (isset($_smarty_tpl->tpl_vars['fields_value']->value['id_state'])) {?>
if ($('#id_country') && $('#id_state'))
{
ajaxStates(<?php echo $_smarty_tpl->tpl_vars['fields_value']->value['id_state'];?>
);
$('#id_country').change(function() {
ajaxStates();
});
}
<?php }?>
if ($(".datepicker").length > 0)
$(".datepicker").datepicker({
prevText: '',
nextText: '',
dateFormat: 'yy-mm-dd'
});
if ($(".datetimepicker").length > 0)
$('.datetimepicker').datetimepicker({
prevText: '',
nextText: '',
dateFormat: 'yy-mm-dd',
// Define a custom regional settings in order to use PrestaShop translation tools
currentText: '<?php echo smartyTranslate(array('s'=>'Now','js'=>1),$_smarty_tpl);?>
',
closeText: '<?php echo smartyTranslate(array('s'=>'Done','js'=>1),$_smarty_tpl);?>
',
ampm: false,
amNames: ['AM', 'A'],
pmNames: ['PM', 'P'],
timeFormat: 'hh:mm:ss tt',
timeSuffix: '',
timeOnlyTitle: '<?php echo smartyTranslate(array('s'=>'Choose Time','js'=>1),$_smarty_tpl);?>
',
timeText: '<?php echo smartyTranslate(array('s'=>'Time','js'=>1),$_smarty_tpl);?>
',
hourText: '<?php echo smartyTranslate(array('s'=>'Hour','js'=>1),$_smarty_tpl);?>
',
minuteText: '<?php echo smartyTranslate(array('s'=>'Minute','js'=>1),$_smarty_tpl);?>
',
});
<?php if (isset($_smarty_tpl->tpl_vars['use_textarea_autosize']->value)) {?>
$(".textarea-autosize").autosize();
<?php }?>
});
state_token = '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminStates'),$_smarty_tpl);?>
';
</script>
<?php }?>
<?php }} ?>
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:42:23
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/helpers/form/form_group.tpl" */ ?>
<?php if ($_valid && !is_callable('content_568df3b71fe0e8_18950279')) {function content_568df3b71fe0e8_18950279($_smarty_tpl) {?>
<?php if (count($_smarty_tpl->tpl_vars['groups']->value)&&isset($_smarty_tpl->tpl_vars['groups']->value)) {?>
<div class="row">
<div class="col-lg-6">
<table class="table table-bordered">
<thead>
<tr>
<th class="fixed-width-xs">
<span class="title_box">
<input type="checkbox" name="checkme" id="checkme" onclick="checkDelBoxes(this.form, 'groupBox[]', this.checked)" />
</span>
</th>
<th class="fixed-width-xs"><span class="title_box"><?php echo smartyTranslate(array('s'=>'ID'),$_smarty_tpl);?>
</span></th>
<th>
<span class="title_box">
<?php echo smartyTranslate(array('s'=>'Group name'),$_smarty_tpl);?>
</span>
</th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['group']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['groups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) {
$_smarty_tpl->tpl_vars['group']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['group']->key;
?>
<tr>
<td>
<?php $_smarty_tpl->tpl_vars['id_checkbox'] = new Smarty_variable((('groupBox').('_')).($_smarty_tpl->tpl_vars['group']->value['id_group']), null, 0);?>
<input type="checkbox" name="groupBox[]" class="groupBox" id="<?php echo $_smarty_tpl->tpl_vars['id_checkbox']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['group']->value['id_group'];?>
" <?php if ($_smarty_tpl->tpl_vars['fields_value']->value[$_smarty_tpl->tpl_vars['id_checkbox']->value]) {?>checked="checked"<?php }?> />
</td>
<td><?php echo $_smarty_tpl->tpl_vars['group']->value['id_group'];?>
</td>
<td>
<label for="<?php echo $_smarty_tpl->tpl_vars['id_checkbox']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['group']->value['name'];?>
</label>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<?php } else { ?>
<p>
<?php echo smartyTranslate(array('s'=>'No group created'),$_smarty_tpl);?>
</p>
<?php }?><?php }} ?>

View File

@@ -0,0 +1,263 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:42:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/helpers/uploader/ajax.tpl" */ ?>
<?php /*%%SmartyHeaderCode:358276199568df3bca64d59-11406349%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'00c71d774921f962374fb0f85e7420246b5d26e5' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/helpers/uploader/ajax.tpl',
1 => 1452142913,
2 => 'file',
),
),
'nocache_hash' => '358276199568df3bca64d59-11406349',
'function' =>
array (
),
'variables' =>
array (
'id' => 0,
'name' => 0,
'url' => 0,
'multiple' => 0,
'max_files' => 0,
'files' => 0,
'post_max_size' => 0,
'default_language' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df3bcb7c918_86804460',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df3bcb7c918_86804460')) {function content_568df3bcb7c918_86804460($_smarty_tpl) {?>
<div class="form-group">
<div class="col-lg-12">
<input id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
" type="file" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
[]"<?php if (isset($_smarty_tpl->tpl_vars['url']->value)) {?> data-url="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?> multiple="multiple"<?php }?> style="width:0px;height:0px;" />
<button class="btn btn-default" data-style="expand-right" data-size="s" type="button" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-add-button">
<i class="icon-folder-open"></i> <?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?><?php echo smartyTranslate(array('s'=>'Add files...'),$_smarty_tpl);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Add file...'),$_smarty_tpl);?>
<?php }?>
</button>
</div>
</div>
<div class="well" style="display:none">
<div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-files-list"></div>
<button class="ladda-button btn btn-primary" data-style="expand-right" type="button" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-upload-button" style="display:none;">
<span class="ladda-label"><i class="icon-check"></i> <?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?><?php echo smartyTranslate(array('s'=>'Upload files'),$_smarty_tpl);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Upload file'),$_smarty_tpl);?>
<?php }?></span>
</button>
</div>
<div class="row" style="display:none">
<div class="alert alert-success" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-success"></div>
</div>
<div class="row" style="display:none">
<div class="alert alert-danger" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-errors"></div>
</div>
<script type="text/javascript">
function humanizeSize(bytes)
{
if (typeof bytes !== 'number') {
return '';
}
if (bytes >= 1000000000) {
return (bytes / 1000000000).toFixed(2) + ' GB';
}
if (bytes >= 1000000) {
return (bytes / 1000000).toFixed(2) + ' MB';
}
return (bytes / 1000).toFixed(2) + ' KB';
}
$( document ).ready(function() {
<?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&isset($_smarty_tpl->tpl_vars['max_files']->value)) {?>
var <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_max_files = <?php echo $_smarty_tpl->tpl_vars['max_files']->value-count($_smarty_tpl->tpl_vars['files']->value);?>
;
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['files']->value)&&$_smarty_tpl->tpl_vars['files']->value) {?>
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-images-thumbnails').parent().show();
<?php }?>
var <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_upload_button = Ladda.create( document.querySelector('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-upload-button' ));
var <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_total_files = 0;
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').fileupload({
dataType: 'json',
async: false,
autoUpload: false,
singleFileUploads: true,
maxFileSize: <?php echo $_smarty_tpl->tpl_vars['post_max_size']->value;?>
,
start: function (e) {
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_upload_button.start();
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-upload-button').unbind('click'); //Important as we bind it for every elements in add function
},
fail: function (e, data) {
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-errors').html(data.errorThrown.message).parent().show();
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-files-list').html('').parent().hide();
},
done: function (e, data) {
if (data.result) {
if (typeof data.result.<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
!== 'undefined') {
for (var i=0; i<data.result.<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
.length; i++) {
if (typeof data.result.<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
[i].error !== 'undefined' && data.result.<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
[i].error != '') {
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-errors').html('<strong>'+data.result.<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
[i].name+'</strong> : '+data.result.<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
[i].error).parent().show();
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-files-list').html('').parent().hide();
}
else
{
$(data.context).appendTo($('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-success'));
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-success').parent().show();
if (data.result.<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
[i] !== null && data.result.<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
[i].status == 'ok')
{
var response = data.result.<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
[i];
var cover = "icon-check-empty";
var legend = '';
if (response.cover == "1")
cover = "icon-check-sign";
if (typeof response.legend !== 'undefined' && response.legend != null)
legend = response.legend[<?php echo intval($_smarty_tpl->tpl_vars['default_language']->value);?>
];
imageLine(response.id, response.path, response.position, cover, response.shops, legend);
$("#countImage").html(parseInt($("#countImage").html()) + 1);
$("#img" + id).remove();
$("#imageTable").tableDnDUpdate();
}
}
}
}
$(data.context).find('button').remove();
}
},
}).on('fileuploadalways', function (e, data) {
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_total_files--;
if (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_total_files == 0)
{
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_upload_button.stop();
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-upload-button').unbind('click');
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-files-list').parent().hide();
}
}).on('fileuploadadd', function(e, data) {
if (typeof <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_max_files !== 'undefined') {
if (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_total_files >= <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_max_files) {
e.preventDefault();
alert('<?php echo smartyTranslate(array('s'=>sprintf('You can upload a maximum of %s files',$_smarty_tpl->tpl_vars['max_files']->value)),$_smarty_tpl);?>
');
return;
}
}
data.context = $('<div/>').addClass('form-group').appendTo($('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-files-list'));
var file_name = $('<span/>').append('<i class="icon-picture-o"></i> <strong>'+data.files[0].name+'</strong> ('+humanizeSize(data.files[0].size)+')').appendTo(data.context);
var button = $('<button/>').addClass('btn btn-default pull-right').prop('type', 'button').html('<i class="icon-trash"></i> <?php echo smartyTranslate(array('s'=>'Remove file'),$_smarty_tpl);?>
').appendTo(data.context).on('click', function() {
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_total_files--;
data.files = null;
var total_elements = $(this).parent().siblings('div.form-group').length;
$(this).parent().remove();
if (total_elements == 0) {
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-files-list').html('').parent().hide();
}
});
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-files-list').parent().show();
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-upload-button').show().bind('click', function () {
if (data.files != null)
data.submit();
});
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_total_files++;
}).on('fileuploadprocessalways', function (e, data) {
var index = data.index, file = data.files[index];
if (file.error) {
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-errors').append('<div class="form-group"><i class="icon-picture-o"></i> <strong>'+file.name+'</strong> ('+humanizeSize(file.size)+') : '+file.error+'</div>').parent().show();
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-files-list').html('').parent().hide();
$(data.context).find('button').trigger('click');
}
}).on('fileuploadsubmit', function (e, data) {
var params = new Object();
$('input[id^="legend_"]').each(function()
{
id = $(this).prop("id").replace("legend_", "legend[") + "]";
params[id] = $(this).val();
});
data.formData = params;
});
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-add-button').on('click', function() {
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-success').html('').parent().hide();
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-errors').html('').parent().hide();
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').trigger('click');
});
});
</script>
<?php }} ?>

View File

@@ -0,0 +1,35 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/scenes/helpers/tree/tree_node_item_checkbox.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1842478152568df21a3e2565-25072537%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'01afc33690c9f061c1f28e82a959b567c8f7079c' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/scenes/helpers/tree/tree_node_item_checkbox.tpl',
1 => 1452142914,
2 => 'file',
),
),
'nocache_hash' => '1842478152568df21a3e2565-25072537',
'function' =>
array (
),
'variables' =>
array (
'node' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21a3fe5d4_84914154',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21a3fe5d4_84914154')) {function content_568df21a3fe5d4_84914154($_smarty_tpl) {?>
<li class="tree-item<?php if (isset($_smarty_tpl->tpl_vars['node']->value['disabled'])&&$_smarty_tpl->tpl_vars['node']->value['disabled']==true) {?> tree-item-disable<?php }?>">
<span class="tree-item-name">
<input type="checkbox" name="categories[]" value="<?php echo $_smarty_tpl->tpl_vars['node']->value['id_category'];?>
"<?php if (isset($_smarty_tpl->tpl_vars['node']->value['disabled'])&&$_smarty_tpl->tpl_vars['node']->value['disabled']==true) {?> disabled="disabled"<?php }?> />
<i class="tree-dot"></i>
<label class="tree-toggler"><?php echo $_smarty_tpl->tpl_vars['node']->value['name'];?>
</label>
</span>
</li><?php }} ?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,78 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:33
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/customer_threads/helpers/view/message.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1277569718568df21dd73af6-29093056%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'045986a484fbe0f74511eb043f35be83a4763011' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/customer_threads/helpers/view/message.tpl',
1 => 1452142913,
2 => 'file',
),
),
'nocache_hash' => '1277569718568df21dd73af6-29093056',
'function' =>
array (
),
'variables' =>
array (
'message' => 0,
'initial' => 0,
'type' => 0,
'current_employee' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21ddcc329_68374106',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21ddcc329_68374106')) {function content_568df21ddcc329_68374106($_smarty_tpl) {?>
<?php if (!$_smarty_tpl->tpl_vars['message']->value['id_employee']) {?>
<?php $_smarty_tpl->tpl_vars["type"] = new Smarty_variable("customer", null, 0);?>
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars["type"] = new Smarty_variable("employee", null, 0);?>
<?php }?>
<div class="message-item<?php if ($_smarty_tpl->tpl_vars['initial']->value) {?>-initial-body<?php }?>">
<?php if (!$_smarty_tpl->tpl_vars['initial']->value) {?>
<div class="message-avatar">
<div class="avatar-md">
<?php if ($_smarty_tpl->tpl_vars['type']->value=='customer') {?>
<i class="icon-user icon-3x"></i>
<?php } else { ?>
<?php if (isset($_smarty_tpl->tpl_vars['current_employee']->value->firstname)) {?><img src="<?php echo $_smarty_tpl->tpl_vars['message']->value['employee_image'];?>
" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current_employee']->value->firstname, ENT_QUOTES, 'UTF-8', true);?>
" /><?php }?>
<?php }?>
</div>
</div>
<?php }?>
<div class="message-body">
<?php if (!$_smarty_tpl->tpl_vars['initial']->value) {?>
<h4 class="message-item-heading">
<i class="icon-mail-reply text-muted"></i>
<?php if ($_smarty_tpl->tpl_vars['type']->value=='customer') {?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['customer_name'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['employee_name'], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>
</h4>
<?php }?>
<span class="message-date">&nbsp;<i class="icon-calendar"></i> - <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['message']->value['date_add'],'full'=>0),$_smarty_tpl);?>
- <i class="icon-time"></i> <?php echo substr($_smarty_tpl->tpl_vars['message']->value['date_add'],11,5);?>
</span>
<?php if (isset($_smarty_tpl->tpl_vars['message']->value['file_name'])) {?> <span class="message-product">&nbsp;<i class="icon-link"></i> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['file_name'], ENT_QUOTES, 'UTF-8', true);?>
" class="_blank"><?php echo smartyTranslate(array('s'=>"Attachment"),$_smarty_tpl);?>
</a></span><?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['message']->value['product_name'])) {?> <span class="message-attachment">&nbsp;<i class="icon-book"></i> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['product_link'], ENT_QUOTES, 'UTF-8', true);?>
" class="_blank"><?php echo smartyTranslate(array('s'=>"Product:"),$_smarty_tpl);?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['product_name'], ENT_QUOTES, 'UTF-8', true);?>
</a></span><?php }?>
<p class="message-item-text"><?php echo nl2br(htmlspecialchars($_smarty_tpl->tpl_vars['message']->value['message'], ENT_QUOTES, 'UTF-8', true));?>
</p>
</div>
</div>
<?php }} ?>

View File

@@ -0,0 +1,115 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:53:33
compiled from "/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/blocksocial/blocksocial.tpl" */ ?>
<?php /*%%SmartyHeaderCode:826361081568d22cf264876-82629326%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'04fc6f3b931ddf81282908a3b23eb77ce046030e' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/blocksocial/blocksocial.tpl',
1 => 1452142872,
2 => 'file',
),
),
'nocache_hash' => '826361081568d22cf264876-82629326',
'function' =>
array (
),
'cache_lifetime' => 31536000,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d22cf2fa035_56228780',
'variables' =>
array (
'facebook_url' => 0,
'twitter_url' => 0,
'rss_url' => 0,
'youtube_url' => 0,
'google_plus_url' => 0,
'pinterest_url' => 0,
'vimeo_url' => 0,
'instagram_url' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d22cf2fa035_56228780')) {function content_568d22cf2fa035_56228780($_smarty_tpl) {?>
<div id="social_block">
<ul>
<?php if (isset($_smarty_tpl->tpl_vars['facebook_url']->value)&&$_smarty_tpl->tpl_vars['facebook_url']->value!='') {?>
<li class="facebook">
<a class="_blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['facebook_url']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<span><?php echo smartyTranslate(array('s'=>'Facebook','mod'=>'blocksocial'),$_smarty_tpl);?>
</span>
</a>
</li>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['twitter_url']->value)&&$_smarty_tpl->tpl_vars['twitter_url']->value!='') {?>
<li class="twitter">
<a class="_blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['twitter_url']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<span><?php echo smartyTranslate(array('s'=>'Twitter','mod'=>'blocksocial'),$_smarty_tpl);?>
</span>
</a>
</li>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['rss_url']->value)&&$_smarty_tpl->tpl_vars['rss_url']->value!='') {?>
<li class="rss">
<a class="_blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rss_url']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<span><?php echo smartyTranslate(array('s'=>'RSS','mod'=>'blocksocial'),$_smarty_tpl);?>
</span>
</a>
</li>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['youtube_url']->value)&&$_smarty_tpl->tpl_vars['youtube_url']->value!='') {?>
<li class="youtube">
<a class="_blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['youtube_url']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<span><?php echo smartyTranslate(array('s'=>'Youtube','mod'=>'blocksocial'),$_smarty_tpl);?>
</span>
</a>
</li>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['google_plus_url']->value)&&$_smarty_tpl->tpl_vars['google_plus_url']->value!='') {?>
<li class="google-plus">
<a class="_blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['google_plus_url']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<span><?php echo smartyTranslate(array('s'=>'Google Plus','mod'=>'blocksocial'),$_smarty_tpl);?>
</span>
</a>
</li>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['pinterest_url']->value)&&$_smarty_tpl->tpl_vars['pinterest_url']->value!='') {?>
<li class="pinterest">
<a class="_blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pinterest_url']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<span><?php echo smartyTranslate(array('s'=>'Pinterest','mod'=>'blocksocial'),$_smarty_tpl);?>
</span>
</a>
</li>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['vimeo_url']->value)&&$_smarty_tpl->tpl_vars['vimeo_url']->value!='') {?>
<li class="vimeo">
<a class="_blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['vimeo_url']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<span><?php echo smartyTranslate(array('s'=>'Vimeo','mod'=>'blocksocial'),$_smarty_tpl);?>
</span>
</a>
</li>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['instagram_url']->value)&&$_smarty_tpl->tpl_vars['instagram_url']->value!='') {?>
<li class="instagram">
<a class="_blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['instagram_url']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<span><?php echo smartyTranslate(array('s'=>'Instagram','mod'=>'blocksocial'),$_smarty_tpl);?>
</span>
</a>
</li>
<?php }?>
<div class="clearfix visible-xs"></div>
</ul>
<!-- <h4><?php echo smartyTranslate(array('s'=>'Follow us','mod'=>'blocksocial'),$_smarty_tpl);?>
</h4> --><!-- by webkul -->
</div>
<div class="clearfix"></div>
<?php }} ?>

View File

@@ -0,0 +1,66 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-06 20:48:54
compiled from "/home/sumit/public_html/html/hotel-reservation-system/mails/en/order_conf_product_list.txt" */ ?>
<?php /*%%SmartyHeaderCode:1564416830568d305eb276e7-41106083%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'05dd05cca82bcd1b637214174bf074881d2d8f74' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/mails/en/order_conf_product_list.txt',
1 => 1450694420,
2 => 'file',
),
),
'nocache_hash' => '1564416830568d305eb276e7-41106083',
'function' =>
array (
),
'variables' =>
array (
'list' => 0,
'product' => 0,
'customization' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d305eb630c4_98802630',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d305eb630c4_98802630')) {function content_568d305eb630c4_98802630($_smarty_tpl) {?><?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->_loop = true;
?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['reference'];?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['price'];?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['quantity'];?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['price'];?>
<?php $_smarty_tpl->tpl_vars['customization'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['customization']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['product']->value['customization']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['customization']->key => $_smarty_tpl->tpl_vars['customization']->value) {
$_smarty_tpl->tpl_vars['customization']->_loop = true;
?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
<?php echo $_smarty_tpl->tpl_vars['customization']->value['customization_text'];?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['price'];?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['customization_quantity'];?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['quantity'];?>
<?php } ?>
<?php } ?><?php }} ?>

View File

@@ -0,0 +1,250 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 11:09:16
compiled from "/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/blockcart/blockcart-json.tpl" */ ?>
<?php /*%%SmartyHeaderCode:316849653568d30469570f1-50611277%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'07b484527ded4e6a61d2eba2be591177aff518c9' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/blockcart/blockcart-json.tpl',
1 => 1452142872,
2 => 'file',
),
),
'nocache_hash' => '316849653568d30469570f1-50611277',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d3046a8f369_44411690',
'variables' =>
array (
'products' => 0,
'product' => 0,
'link' => 0,
'priceDisplay' => 0,
'productAttributeId' => 0,
'productId' => 0,
'customizedDatas' => 0,
'id_customization' => 0,
'customization' => 0,
'type' => 0,
'datas' => 0,
'index' => 0,
'data' => 0,
'discounts' => 0,
'discount' => 0,
'shipping_cost' => 0,
'shipping_cost_float' => 0,
'tax_cost' => 0,
'wrapping_cost' => 0,
'nb_total_products' => 0,
'total' => 0,
'totalToPay' => 0,
'product_total' => 0,
'free_shipping' => 0,
'errors' => 0,
'error' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d3046a8f369_44411690')) {function content_568d3046a8f369_44411690($_smarty_tpl) {?>
{
"products": [
<?php if ($_smarty_tpl->tpl_vars['products']->value) {?>
<?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_smarty_tpl->tpl_vars['product']->total= $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars['product']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->_loop = true;
$_smarty_tpl->tpl_vars['product']->iteration++;
$_smarty_tpl->tpl_vars['product']->last = $_smarty_tpl->tpl_vars['product']->iteration === $_smarty_tpl->tpl_vars['product']->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['last'] = $_smarty_tpl->tpl_vars['product']->last;
?>
<?php $_smarty_tpl->tpl_vars['productId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product'], null, 0);?>
<?php $_smarty_tpl->tpl_vars['productAttributeId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], null, 0);?>
{
"id": <?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);?>
,
"link": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category'],null,null,$_smarty_tpl->tpl_vars['product']->value['id_shop'],$_smarty_tpl->tpl_vars['product']->value['id_product_attribute']));?>
,
"quantity": <?php echo intval($_smarty_tpl->tpl_vars['product']->value['cart_quantity']);?>
,
"image": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['id_image'],'home_default'));?>
,
"image_cart": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['id_image'],'cart_default'));?>
,
"priceByLine": <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value==@constant('PS_TAX_EXC')) {?><?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['product']->value['total']),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(ob_get_clean())?><?php } else { ?><?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['product']->value['total_wt']),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(ob_get_clean())?><?php }?>,
"name": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(html_entity_decode(trim($_smarty_tpl->tpl_vars['product']->value['name']),2,'UTF-8'));?>
,
"price": <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value==@constant('PS_TAX_EXC')) {?><?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['product']->value['total']),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(ob_get_clean())?><?php } else { ?><?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['product']->value['total_wt']),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(ob_get_clean())?><?php }?>,
"price_float": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(floatval($_smarty_tpl->tpl_vars['product']->value['total']));?>
,
"total_product_price": <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value==@constant('PS_TAX_EXC')) {?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(floatval($_smarty_tpl->tpl_vars['product']->value['total']));?>
<?php } else { ?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(floatval($_smarty_tpl->tpl_vars['product']->value['total_wt']));?>
<?php }?>,
"idCombination": <?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) {?><?php echo intval($_smarty_tpl->tpl_vars['productAttributeId']->value);?>
<?php } else { ?>0<?php }?>,
"idAddressDelivery": <?php if (isset($_smarty_tpl->tpl_vars['product']->value['id_address_delivery'])) {?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
<?php } else { ?>0<?php }?>,
"is_gift": <?php if (isset($_smarty_tpl->tpl_vars['product']->value['is_gift'])&&$_smarty_tpl->tpl_vars['product']->value['is_gift']) {?>true<?php } else { ?>false<?php }?>,
<?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) {?>
"hasAttributes": true,
"attributes": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['product']->value['attributes_small']);?>
,
<?php } else { ?>
"hasAttributes": false,
<?php }?>
"hasCustomizedDatas": <?php if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) {?>true<?php } else { ?>false<?php }?>,
"customizedDatas": [
<?php if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value][$_smarty_tpl->tpl_vars['product']->value['id_address_delivery']])) {?>
<?php $_smarty_tpl->tpl_vars['customization'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['customization']->_loop = false;
$_smarty_tpl->tpl_vars['id_customization'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value][$_smarty_tpl->tpl_vars['product']->value['id_address_delivery']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_smarty_tpl->tpl_vars['customization']->total= $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars['customization']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['customization']->key => $_smarty_tpl->tpl_vars['customization']->value) {
$_smarty_tpl->tpl_vars['customization']->_loop = true;
$_smarty_tpl->tpl_vars['id_customization']->value = $_smarty_tpl->tpl_vars['customization']->key;
$_smarty_tpl->tpl_vars['customization']->iteration++;
$_smarty_tpl->tpl_vars['customization']->last = $_smarty_tpl->tpl_vars['customization']->iteration === $_smarty_tpl->tpl_vars['customization']->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizedDatas']['last'] = $_smarty_tpl->tpl_vars['customization']->last;
?>{
"customizationId": <?php echo intval($_smarty_tpl->tpl_vars['id_customization']->value);?>
,
"quantity": <?php echo intval($_smarty_tpl->tpl_vars['customization']->value['quantity']);?>
,
"datas": [
<?php $_smarty_tpl->tpl_vars['datas'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['datas']->_loop = false;
$_smarty_tpl->tpl_vars['type'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['customization']->value['datas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_smarty_tpl->tpl_vars['datas']->total= $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars['datas']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['datas']->key => $_smarty_tpl->tpl_vars['datas']->value) {
$_smarty_tpl->tpl_vars['datas']->_loop = true;
$_smarty_tpl->tpl_vars['type']->value = $_smarty_tpl->tpl_vars['datas']->key;
$_smarty_tpl->tpl_vars['datas']->iteration++;
$_smarty_tpl->tpl_vars['datas']->last = $_smarty_tpl->tpl_vars['datas']->iteration === $_smarty_tpl->tpl_vars['datas']->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['customization']['last'] = $_smarty_tpl->tpl_vars['datas']->last;
?>
{
"type": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['type']->value);?>
,
"datas": [
<?php $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
$_smarty_tpl->tpl_vars['index'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['datas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_smarty_tpl->tpl_vars['data']->total= $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars['data']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value) {
$_smarty_tpl->tpl_vars['data']->_loop = true;
$_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['data']->key;
$_smarty_tpl->tpl_vars['data']->iteration++;
$_smarty_tpl->tpl_vars['data']->last = $_smarty_tpl->tpl_vars['data']->iteration === $_smarty_tpl->tpl_vars['data']->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['datas']['last'] = $_smarty_tpl->tpl_vars['data']->last;
?>
{
"index": <?php echo intval($_smarty_tpl->tpl_vars['index']->value);?>
,
"value": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(Tools::nl2br($_smarty_tpl->tpl_vars['data']->value['value']));?>
,
"truncatedValue": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(Tools::nl2br($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['data']->value['value'],28,'...')));?>
}<?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['datas']['last']) {?>,<?php }?>
<?php } ?>]
}<?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['customization']['last']) {?>,<?php }?>
<?php } ?>
]
}<?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['customizedDatas']['last']) {?>,<?php }?>
<?php } ?>
<?php }?>
]
}<?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['products']['last']) {?>,<?php }?>
<?php } ?><?php }?>
],
"discounts": [
<?php if ($_smarty_tpl->tpl_vars['discounts']->value) {?><?php $_smarty_tpl->tpl_vars['discount'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['discount']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['discounts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_smarty_tpl->tpl_vars['discount']->total= $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars['discount']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['discount']->key => $_smarty_tpl->tpl_vars['discount']->value) {
$_smarty_tpl->tpl_vars['discount']->_loop = true;
$_smarty_tpl->tpl_vars['discount']->iteration++;
$_smarty_tpl->tpl_vars['discount']->last = $_smarty_tpl->tpl_vars['discount']->iteration === $_smarty_tpl->tpl_vars['discount']->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['discounts']['last'] = $_smarty_tpl->tpl_vars['discount']->last;
?>
{
"id": <?php echo intval($_smarty_tpl->tpl_vars['discount']->value['id_discount']);?>
,
"name": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate(trim($_smarty_tpl->tpl_vars['discount']->value['name']),18,'...'));?>
,
"description": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['discount']->value['description']);?>
,
"nameDescription": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate(trim((($_smarty_tpl->tpl_vars['discount']->value['name']).(' : ')).($_smarty_tpl->tpl_vars['discount']->value['description'])),18,'...'));?>
,
"code": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['discount']->value['code']);?>
,
"link": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['link']->value->getPageLink(((string)$_smarty_tpl->tpl_vars['order_process']->value),true,null,"deleteDiscount=".((string)$_smarty_tpl->tpl_vars['discount']->value['id_discount'])));?>
,
"price": <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value==1) {?><?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price'=>$_smarty_tpl->tpl_vars['discount']->value['value_tax_exc']),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(ob_get_clean())?><?php } else { ?><?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price'=>$_smarty_tpl->tpl_vars['discount']->value['value_real']),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(ob_get_clean())?><?php }?>,
"price_float": <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value==1) {?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['discount']->value['value_tax_exc']);?>
<?php } else { ?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['discount']->value['value_real']);?>
<?php }?>
}
<?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['discounts']['last']) {?>,<?php }?>
<?php } ?><?php }?>
],
"shippingCost": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['shipping_cost']->value);?>
,
"shippingCostFloat": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['shipping_cost_float']->value);?>
,
<?php if (isset($_smarty_tpl->tpl_vars['tax_cost']->value)) {?>
"taxCost": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['tax_cost']->value);?>
,
<?php }?>
"wrappingCost": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['wrapping_cost']->value);?>
,
"nbTotalProducts": <?php echo intval($_smarty_tpl->tpl_vars['nb_total_products']->value);?>
,
"total": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['total']->value);?>
,
"totalToPay": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(floatval($_smarty_tpl->tpl_vars['totalToPay']->value));?>
,
"productTotal": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['product_total']->value);?>
,
"freeShipping": <?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayWtPrice'][0][0]->displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['free_shipping']->value),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(ob_get_clean())?>,
"freeShippingFloat": <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['free_shipping']->value);?>
,
<?php if (isset($_smarty_tpl->tpl_vars['errors']->value)&&$_smarty_tpl->tpl_vars['errors']->value) {?>
"hasError" : true,
"errors" : [
<?php $_smarty_tpl->tpl_vars['error'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['error']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['errors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_smarty_tpl->tpl_vars['error']->total= $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars['error']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['error']->key => $_smarty_tpl->tpl_vars['error']->value) {
$_smarty_tpl->tpl_vars['error']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['error']->key;
$_smarty_tpl->tpl_vars['error']->iteration++;
$_smarty_tpl->tpl_vars['error']->last = $_smarty_tpl->tpl_vars['error']->iteration === $_smarty_tpl->tpl_vars['error']->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['errors']['last'] = $_smarty_tpl->tpl_vars['error']->last;
?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['error']->value);?>
<?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['errors']['last']) {?>,<?php }?>
<?php } ?>
]
<?php } else { ?>
"hasError" : false
<?php }?>
}<?php }} ?>

View File

@@ -0,0 +1,170 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/form/assoshop.tpl" */ ?>
<?php /*%%SmartyHeaderCode:840176727568df218d15c25-65919754%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'082e415d55d177d41a8a7f578f430882f7e5f5e4' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/form/assoshop.tpl',
1 => 1452142887,
2 => 'file',
),
),
'nocache_hash' => '840176727568df218d15c25-65919754',
'function' =>
array (
),
'variables' =>
array (
'input' => 0,
'table' => 0,
'groupID' => 0,
'groupChecked' => 0,
'groupData' => 0,
'shopID' => 0,
'fields_value' => 0,
'j' => 0,
'checked' => 0,
'shopData' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df218d613c6_01757453',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df218d613c6_01757453')) {function content_568df218d613c6_01757453($_smarty_tpl) {?>
<script type="text/javascript">
$().ready(function() {
$('.input_all_shop').live('click', function() {
var checked = $(this).prop('checked');
$('.input_shop_group:not(:disabled)').attr('checked', checked);
$('.input_shop:not(:disabled)').attr('checked', checked);
});
// Click on a group shop
$('.input_shop_group').live('click', function() {
$('.input_shop[value='+$(this).val()+']').attr('checked', $(this).prop('checked'));
check_all_shop();
});
// Click on a shop
$('.input_shop').live('click', function() {
check_shop_group_status($(this).val());
check_all_shop();
});
// Initialize checkbox
$('.input_shop_group').each(function(k, v) {
check_shop_group_status($(v).val());
check_all_shop();
});
});
function check_shop_group_status(id_group) {
var groupChecked = true;
var total = 0;
$('.input_shop[value='+id_group+']').each(function(k, v) {
total++;
if (!$(v).prop('checked'))
groupChecked = false;
});
if (total > 0)
$('.input_shop_group[value='+id_group+']').attr('checked', groupChecked);
}
function check_all_shop() {
var allChecked = true;
$('.input_shop_group:not(:disabled)').each(function(k, v) {
if (!$(v).prop('checked'))
allChecked = false;
});
$('.input_all_shop').attr('checked', allChecked);
}
</script>
<div class="assoShop">
<table class="table">
<tr>
<th><?php echo smartyTranslate(array('s'=>'Shop'),$_smarty_tpl);?>
</th>
</tr>
<tr>
<td>
<label>
<input class="input_all_shop" type="checkbox" /><?php echo smartyTranslate(array('s'=>'All shops'),$_smarty_tpl);?>
</label>
</td>
</tr>
<?php $_smarty_tpl->tpl_vars['groupData'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['groupData']->_loop = false;
$_smarty_tpl->tpl_vars['groupID'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['input']->value['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['groupData']->key => $_smarty_tpl->tpl_vars['groupData']->value) {
$_smarty_tpl->tpl_vars['groupData']->_loop = true;
$_smarty_tpl->tpl_vars['groupID']->value = $_smarty_tpl->tpl_vars['groupData']->key;
?>
<?php $_smarty_tpl->tpl_vars['groupChecked'] = new Smarty_variable(false, null, 0);?>
<tr <?php if ($_smarty_tpl->tpl_vars['input']->value['type']=='shop') {?>class="alt_row"<?php }?>>
<td>
<img style="vertical-align:middle;" alt="" src="../img/admin/lv2_b.gif" />
<label>
<input class="input_shop_group"
type="checkbox"
name="checkBoxShopGroupAsso_<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
[<?php echo intval($_smarty_tpl->tpl_vars['groupID']->value);?>
]"
value="<?php echo intval($_smarty_tpl->tpl_vars['groupID']->value);?>
"
<?php if ($_smarty_tpl->tpl_vars['groupChecked']->value) {?> checked="checked"<?php }?> />
<?php echo smartyTranslate(array('s'=>'Group:'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['groupData']->value['name'];?>
</label>
</td>
</tr>
<?php if ($_smarty_tpl->tpl_vars['input']->value['type']=='shop') {?>
<?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable(0, null, 0);?>
<?php $_smarty_tpl->tpl_vars['shopData'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['shopData']->_loop = false;
$_smarty_tpl->tpl_vars['shopID'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['groupData']->value['shops']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['shopData']->key => $_smarty_tpl->tpl_vars['shopData']->value) {
$_smarty_tpl->tpl_vars['shopData']->_loop = true;
$_smarty_tpl->tpl_vars['shopID']->value = $_smarty_tpl->tpl_vars['shopData']->key;
?>
<?php if ((isset($_smarty_tpl->tpl_vars['fields_value']->value['shop'][$_smarty_tpl->tpl_vars['shopID']->value]))) {?>
<?php $_smarty_tpl->tpl_vars['checked'] = new Smarty_variable(true, null, 0);?>
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars['checked'] = new Smarty_variable(false, null, 0);?>
<?php }?>
<tr>
<td <?php if ($_smarty_tpl->tpl_vars['groupData']->value['disable_shops']) {?>style="font-style:italic;background-color:#CFC4FF"<?php }?>>
<img style="vertical-align:middle;" alt="" src="../img/admin/lv3_<?php if ($_smarty_tpl->tpl_vars['j']->value<count($_smarty_tpl->tpl_vars['groupData']->value['shops'])-1) {?>b<?php } else { ?>f<?php }?>.png" />
<label class="child">
<input class="input_shop"
type="checkbox"
value="<?php echo intval($_smarty_tpl->tpl_vars['groupID']->value);?>
"
shop_id="<?php echo intval($_smarty_tpl->tpl_vars['shopID']->value);?>
"
name="checkBoxShopAsso_<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
[<?php echo intval($_smarty_tpl->tpl_vars['shopID']->value);?>
]"
id="checkedBox_<?php echo intval($_smarty_tpl->tpl_vars['shopID']->value);?>
"
<?php if ($_smarty_tpl->tpl_vars['checked']->value) {?> checked="checked"<?php }?>
<?php if ($_smarty_tpl->tpl_vars['groupData']->value['disable_shops']) {?> readonly="readonly" onclick="return false"<?php }?>
/>
<?php echo $_smarty_tpl->tpl_vars['shopData']->value['name'];?>
</label>
</td>
</tr>
<?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable($_smarty_tpl->tpl_vars['j']->value+1, null, 0);?>
<?php } ?>
<?php }?>
<?php } ?>
</table>
</div><?php }} ?>

View File

@@ -0,0 +1,146 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/themes/helpers/view/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:60013594568df21ad79b69-56709418%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'08c53eb582b0b938377db021343bf74110c14fde' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/themes/helpers/view/view.tpl',
1 => 1452142914,
2 => 'file',
),
),
'nocache_hash' => '60013594568df21ad79b69-56709418',
'function' =>
array (
),
'variables' =>
array (
'theme_name' => 0,
'doc' => 0,
'item' => 0,
'key' => 0,
'modules_errors' => 0,
'module_errors' => 0,
'error' => 0,
'image_link' => 0,
'img_error' => 0,
'back_link' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21adc4004_38777448',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21adc4004_38777448')) {function content_568df21adc4004_38777448($_smarty_tpl) {?>
<div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo smartyTranslate(array('s'=>sprintf('The "%1$s" theme has been successfully installed.',$_smarty_tpl->tpl_vars['theme_name']->value)),$_smarty_tpl);?>
</div>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayAfterThemeInstallation','theme_name'=>$_smarty_tpl->tpl_vars['theme_name']->value),$_smarty_tpl);?>
<?php if (count($_smarty_tpl->tpl_vars['doc']->value)>0) {?>
<ul>
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['doc']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
?>
<li><i><a class="_blank" href="<?php echo $_smarty_tpl->tpl_vars['item']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['key']->value;?>
</a></i>
<?php } ?>
</ul>
<?php }?>
<?php if (count($_smarty_tpl->tpl_vars['modules_errors']->value)>0) {?>
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo smartyTranslate(array('s'=>'The following module(s) were not installed properly:'),$_smarty_tpl);?>
<ul>
<?php $_smarty_tpl->tpl_vars['module_errors'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module_errors']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['modules_errors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['module_errors']->key => $_smarty_tpl->tpl_vars['module_errors']->value) {
$_smarty_tpl->tpl_vars['module_errors']->_loop = true;
?>
<li>
<b><?php echo $_smarty_tpl->tpl_vars['module_errors']->value['module_name'];?>
</b> : <?php $_smarty_tpl->tpl_vars['error'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['error']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['module_errors']->value['errors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['error']->key => $_smarty_tpl->tpl_vars['error']->value) {
$_smarty_tpl->tpl_vars['error']->_loop = true;
?><br> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['error']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php } ?>
</li>
<?php } ?>
</ul>
</div>
<?php }?>
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo smartyTranslate(array('s'=>'Warning: You may have to regenerate images to fit with this new theme.'),$_smarty_tpl);?>
<a href="<?php echo $_smarty_tpl->tpl_vars['image_link']->value;?>
">
<button class="btn btn-default"><?php echo smartyTranslate(array('s'=>'Go to the thumbnails regeneration page'),$_smarty_tpl);?>
</button>
</a>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['img_error']->value['error'])) {?>
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo smartyTranslate(array('s'=>'Warning: Copy/paste your errors if you want to manually set the image type (in the "Images" page under the "Preferences" menu):'),$_smarty_tpl);?>
<ul>
<?php $_smarty_tpl->tpl_vars['error'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['error']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['img_error']->value['error']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['error']->key => $_smarty_tpl->tpl_vars['error']->value) {
$_smarty_tpl->tpl_vars['error']->_loop = true;
?>
<li>
<?php echo smartyTranslate(array('s'=>'Name image type:'),$_smarty_tpl);?>
<strong><?php echo $_smarty_tpl->tpl_vars['error']->value['name'];?>
</strong> <?php echo smartyTranslate(array('s'=>sprintf('(width: %1$spx, height: %2$spx).',$_smarty_tpl->tpl_vars['error']->value['width'],$_smarty_tpl->tpl_vars['error']->value['height'])),$_smarty_tpl);?>
</li>
<?php } ?>
</ul>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['img_error']->value['ok'])) {?>
<div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo smartyTranslate(array('s'=>'Images have been correctly updated in the database:'),$_smarty_tpl);?>
<ul>
<?php $_smarty_tpl->tpl_vars['error'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['error']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['img_error']->value['ok']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['error']->key => $_smarty_tpl->tpl_vars['error']->value) {
$_smarty_tpl->tpl_vars['error']->_loop = true;
?>
<li>
<?php echo smartyTranslate(array('s'=>'Name image type:'),$_smarty_tpl);?>
<strong><?php echo $_smarty_tpl->tpl_vars['error']->value['name'];?>
</strong> <?php echo smartyTranslate(array('s'=>sprintf('(width: %1$spx, height: %2$spx).',$_smarty_tpl->tpl_vars['error']->value['width'],$_smarty_tpl->tpl_vars['error']->value['height'])),$_smarty_tpl);?>
</li>
<?php } ?>
</ul>
</div>
<?php }?>
<a href="<?php echo $_smarty_tpl->tpl_vars['back_link']->value;?>
">
<button class="btn btn-default"><?php echo smartyTranslate(array('s'=>'Finish'),$_smarty_tpl);?>
</button>
</a>
<?php }} ?>

View File

@@ -0,0 +1,75 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:42:22
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/multishop/check_fields.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1261591015568df3b68ab218-21257307%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'08cba3d219815879e01a824adea0970884232836' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/multishop/check_fields.tpl',
1 => 1452142907,
2 => 'file',
),
),
'nocache_hash' => '1261591015568df3b68ab218-21257307',
'function' =>
array (
),
'variables' =>
array (
'display_multishop_checkboxes' => 0,
'product_tab' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df3b68c8489_89329748',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df3b68c8489_89329748')) {function content_568df3b68c8489_89329748($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value)&&$_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value) {?>
<div class="panel clearfix">
<label class="control-label col-lg-3">
<i class="icon-sitemap"></i> <?php echo smartyTranslate(array('s'=>'Multistore'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-4">
<span class="switch prestashop-switch">
<input type="radio" name="multishop_<?php echo $_smarty_tpl->tpl_vars['product_tab']->value;?>
" id="multishop_<?php echo $_smarty_tpl->tpl_vars['product_tab']->value;?>
_on" value="1" onclick="$('#product-tab-content-<?php echo $_smarty_tpl->tpl_vars['product_tab']->value;?>
input[name^=\'multishop_check[\']').attr('checked', true); ProductMultishop.checkAll<?php echo $_smarty_tpl->tpl_vars['product_tab']->value;?>
()">
<label for="multishop_<?php echo $_smarty_tpl->tpl_vars['product_tab']->value;?>
_on">
<?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</label>
<input type="radio" name="multishop_<?php echo $_smarty_tpl->tpl_vars['product_tab']->value;?>
" id="multishop_<?php echo $_smarty_tpl->tpl_vars['product_tab']->value;?>
_off" value="0" checked="checked" onclick="$('#product-tab-content-<?php echo $_smarty_tpl->tpl_vars['product_tab']->value;?>
input[name^=\'multishop_check[\']').attr('checked', false); ProductMultishop.checkAll<?php echo $_smarty_tpl->tpl_vars['product_tab']->value;?>
()">
<label for="multishop_<?php echo $_smarty_tpl->tpl_vars['product_tab']->value;?>
_off">
<?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<p class="help-block">
<strong><?php echo smartyTranslate(array('s'=>'Check / Uncheck all'),$_smarty_tpl);?>
</strong> <?php echo smartyTranslate(array('s'=>'(If you are editing this page for several shops, some fields may be disabled. If you need to edit them, you will need to check the box for each field)'),$_smarty_tpl);?>
</p>
</div>
</div>
</div>
</div>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,38 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:59:21
compiled from "/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/blockwishlist/my-account.tpl" */ ?>
<?php /*%%SmartyHeaderCode:283847946568d37b150aca6-78936814%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'08df207fd9d46efaf5400d862f60ce9b0fa77d66' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/blockwishlist/my-account.tpl',
1 => 1452142872,
2 => 'file',
),
),
'nocache_hash' => '283847946568d37b150aca6-78936814',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d37b15152d5_91220579',
'variables' =>
array (
'link' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d37b15152d5_91220579')) {function content_568d37b15152d5_91220579($_smarty_tpl) {?>
<!-- MODULE WishList -->
<li class="lnk_wishlist">
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getModuleLink('blockwishlist','mywishlist',array(),true), ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'My wishlists','mod'=>'blockwishlist'),$_smarty_tpl);?>
">
<i class="icon-heart"></i>
<span><?php echo smartyTranslate(array('s'=>'My wishlists','mod'=>'blockwishlist'),$_smarty_tpl);?>
</span>
</a>
</li>
<!-- END : MODULE WishList --><?php }} ?>

View File

@@ -0,0 +1,256 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:50:27
compiled from "/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/order-address.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1319026469568df59ba626f2-47658908%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0a34cd99a4a075f0e352abe05b28873ac6285a74' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/order-address.tpl',
1 => 1452142844,
2 => 'file',
),
),
'nocache_hash' => '1319026469568df59ba626f2-47658908',
'function' =>
array (
),
'variables' =>
array (
'opc' => 0,
'back_order_page' => 0,
'link' => 0,
'cart' => 0,
'addresses' => 0,
'address' => 0,
'back' => 0,
'oldMessage' => 0,
'formatedAddressFieldsValuesList' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df59bb88e15_13441721',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df59bb88e15_13441721')) {function content_568df59bb88e15_13441721($_smarty_tpl) {?>
<?php if (!$_smarty_tpl->tpl_vars['opc']->value) {?>
<?php $_smarty_tpl->tpl_vars['current_step'] = new Smarty_variable('address', null, 0);?>
<?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?><?php echo smartyTranslate(array('s'=>'Addresses'),$_smarty_tpl);?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
<?php $_smarty_tpl->tpl_vars["back_order_page"] = new Smarty_variable("order.php", null, 0);?>
<h1 class="page-heading"><?php echo smartyTranslate(array('s'=>'Addresses'),$_smarty_tpl);?>
</h1>
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./order-steps.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink($_smarty_tpl->tpl_vars['back_order_page']->value,true), ENT_QUOTES, 'UTF-8', true);?>
" method="post">
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars["back_order_page"] = new Smarty_variable("order-opc.php", null, 0);?>
<h1 class="page-heading step-num"><span>1</span> <?php echo smartyTranslate(array('s'=>'Addresses'),$_smarty_tpl);?>
</h1>
<div id="opc_account" class="opc-main-block">
<div id="opc_account-overlay" class="opc-overlay" style="display: none;"></div>
<?php }?>
<div class="addresses clearfix">
<div class="row">
<div class="col-xs-12 col-sm-6">
<div class="address_delivery select form-group selector1">
<label for="id_address_delivery"><?php if ($_smarty_tpl->tpl_vars['cart']->value->isVirtualCart()) {?><?php echo smartyTranslate(array('s'=>'Choose a billing address:'),$_smarty_tpl);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Choose a delivery address:'),$_smarty_tpl);?>
<?php }?></label>
<select name="id_address_delivery" id="id_address_delivery" class="address_select form-control">
<?php $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['address']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['addresses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['address']->key => $_smarty_tpl->tpl_vars['address']->value) {
$_smarty_tpl->tpl_vars['address']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['address']->key;
?>
<option value="<?php echo intval($_smarty_tpl->tpl_vars['address']->value['id_address']);?>
"<?php if ($_smarty_tpl->tpl_vars['address']->value['id_address']==$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) {?> selected="selected"<?php }?>>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['address']->value['alias'], ENT_QUOTES, 'UTF-8', true);?>
</option>
<?php } ?>
</select><span class="waitimage"></span>
</div>
<p class="checkbox addressesAreEquals"<?php if ($_smarty_tpl->tpl_vars['cart']->value->isVirtualCart()) {?> style="display:none;"<?php }?>>
<input type="checkbox" name="same" id="addressesAreEquals" value="1"<?php if ($_smarty_tpl->tpl_vars['cart']->value->id_address_invoice==$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery||count($_smarty_tpl->tpl_vars['addresses']->value)==1) {?> checked="checked"<?php }?> />
<label for="addressesAreEquals"><?php echo smartyTranslate(array('s'=>'Use the delivery address as the billing address.'),$_smarty_tpl);?>
</label>
</p>
</div>
<div class="col-xs-12 col-sm-6">
<div id="address_invoice_form" class="select form-group selector1"<?php if ($_smarty_tpl->tpl_vars['cart']->value->id_address_invoice==$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery) {?> style="display: none;"<?php }?>>
<?php if (count($_smarty_tpl->tpl_vars['addresses']->value)>1) {?>
<label for="id_address_invoice" class="strong"><?php echo smartyTranslate(array('s'=>'Choose a billing address:'),$_smarty_tpl);?>
</label>
<select name="id_address_invoice" id="id_address_invoice" class="address_select form-control">
<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['address'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['address']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['addresses']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['step'] = ((int) -1) == 0 ? 1 : (int) -1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['name'] = 'address';
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['address']['show']) {
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['address']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['address']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['max']);
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['address']['total'] == 0)
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['show'] = false;
} else
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['address']['show']):
for ($_smarty_tpl->tpl_vars['smarty']->value['section']['address']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['iteration'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['total'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['address']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['address']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['address']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['address']['total']);
?>
<option value="<?php echo intval($_smarty_tpl->tpl_vars['addresses']->value[$_smarty_tpl->getVariable('smarty')->value['section']['address']['index']]['id_address']);?>
"<?php if ($_smarty_tpl->tpl_vars['addresses']->value[$_smarty_tpl->getVariable('smarty')->value['section']['address']['index']]['id_address']==$_smarty_tpl->tpl_vars['cart']->value->id_address_invoice&&$_smarty_tpl->tpl_vars['cart']->value->id_address_delivery!=$_smarty_tpl->tpl_vars['cart']->value->id_address_invoice) {?> selected="selected"<?php }?>>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addresses']->value[$_smarty_tpl->getVariable('smarty')->value['section']['address']['index']]['alias'], ENT_QUOTES, 'UTF-8', true);?>
</option>
<?php endfor; endif; ?>
</select><span class="waitimage"></span>
<?php } else { ?>
<a href="<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['back']->value) {?><?php echo "&mod=";?><?php echo (string)$_smarty_tpl->tpl_vars['back']->value;?><?php }?><?php $_tmp1=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('address',true,null,"back=".((string)$_smarty_tpl->tpl_vars['back_order_page']->value)."?step=1&select_address=1".$_tmp1), ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
" class="button button-small btn btn-default">
<span>
<?php echo smartyTranslate(array('s'=>'Add a new address'),$_smarty_tpl);?>
<i class="icon-chevron-right right"></i>
</span>
</a>
<?php }?>
</div>
</div>
</div> <!-- end row -->
<div class="row">
<div class="col-xs-12 col-sm-6"<?php if ($_smarty_tpl->tpl_vars['cart']->value->isVirtualCart()) {?> style="display:none;"<?php }?>>
<ul class="address item box" id="address_delivery">
</ul>
</div>
<div class="col-xs-12 col-sm-6">
<ul class="address alternate_item<?php if ($_smarty_tpl->tpl_vars['cart']->value->isVirtualCart()) {?> full_width<?php }?> box" id="address_invoice">
</ul>
</div>
</div> <!-- end row -->
<p class="address_add submit">
<a href="<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['back']->value) {?><?php echo "&mod=";?><?php echo (string)$_smarty_tpl->tpl_vars['back']->value;?><?php }?><?php $_tmp2=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('address',true,null,"back=".((string)$_smarty_tpl->tpl_vars['back_order_page']->value)."?step=1".$_tmp2), ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
" class="button button-small btn btn-default">
<span><?php echo smartyTranslate(array('s'=>'Add a new address'),$_smarty_tpl);?>
<i class="icon-chevron-right right"></i></span>
</a>
</p>
<?php if (!$_smarty_tpl->tpl_vars['opc']->value) {?>
<div id="ordermsg" class="form-group">
<label><?php echo smartyTranslate(array('s'=>'If you would like to add a comment about your order, please write it in the field below.'),$_smarty_tpl);?>
</label>
<textarea class="form-control" cols="60" rows="6" name="message"><?php if (isset($_smarty_tpl->tpl_vars['oldMessage']->value)) {?><?php echo $_smarty_tpl->tpl_vars['oldMessage']->value;?>
<?php }?></textarea>
</div>
<?php }?>
</div> <!-- end addresses -->
<?php if (!$_smarty_tpl->tpl_vars['opc']->value) {?>
<p class="cart_navigation clearfix">
<input type="hidden" class="hidden" name="step" value="2" />
<input type="hidden" name="back" value="<?php echo $_smarty_tpl->tpl_vars['back']->value;?>
" />
<a href="<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['back']->value) {?><?php echo "back=";?><?php echo (string)$_smarty_tpl->tpl_vars['back']->value;?><?php }?><?php $_tmp3=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink($_smarty_tpl->tpl_vars['back_order_page']->value,true,null,$_tmp3), ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'Previous'),$_smarty_tpl);?>
" class="button-exclusive btn btn-default">
<i class="icon-chevron-left"></i>
<?php echo smartyTranslate(array('s'=>'Continue Shopping'),$_smarty_tpl);?>
</a>
<button type="submit" name="processAddress" class="button btn btn-default button-medium">
<span><?php echo smartyTranslate(array('s'=>'Proceed to checkout'),$_smarty_tpl);?>
<i class="icon-chevron-right right"></i></span>
</button>
</p>
</form>
<?php } else { ?>
</div> <!-- end opc_account -->
<?php }?>
<?php if (!$_smarty_tpl->tpl_vars['opc']->value) {?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('orderProcess'=>'order'),$_smarty_tpl);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'txtProduct')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'txtProduct'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'product','js'=>1),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'txtProduct'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'txtProducts')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'txtProducts'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'products','js'=>1),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'txtProducts'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'CloseTxt')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'CloseTxt'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Submit','js'=>1),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'CloseTxt'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php }?><?php $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); ?><?php if ($_smarty_tpl->tpl_vars['back']->value) {?>&mod=<?php echo urlencode($_smarty_tpl->tpl_vars['back']->value);?>
<?php }?><?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?><?php $_smarty_tpl->_capture_stack[0][] = array('addressUrl', null, null); ob_start(); ?><?php echo preg_replace("%(?<!\\\\)'%", "\'",$_smarty_tpl->tpl_vars['link']->value->getPageLink('address',true,null,((('back=').($_smarty_tpl->tpl_vars['back_order_page']->value)).('?step=1')).(Smarty::$_smarty_vars['capture']['default'])));?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('addressUrl'=>Smarty::$_smarty_vars['capture']['addressUrl']),$_smarty_tpl);?>
<?php $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); ?><?php echo urlencode('&multi-shipping=1');?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('addressMultishippingUrl'=>(Smarty::$_smarty_vars['capture']['addressUrl']).(Smarty::$_smarty_vars['capture']['default'])),$_smarty_tpl);?>
<?php $_smarty_tpl->_capture_stack[0][] = array('addressUrlAdd', null, null); ob_start(); ?><?php echo (Smarty::$_smarty_vars['capture']['addressUrl']).('&id_address=');?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('addressUrlAdd'=>Smarty::$_smarty_vars['capture']['addressUrlAdd']),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('formatedAddressFieldsValuesList'=>$_smarty_tpl->tpl_vars['formatedAddressFieldsValuesList']->value),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('opc'=>$_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['opc']->value)),$_smarty_tpl);?>
<?php $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); ?><h3 class="page-subheading"><?php echo smartyTranslate(array('s'=>'Your billing address','js'=>1),$_smarty_tpl);?>
</h3><?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?><?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'titleInvoice')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'titleInvoice'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo addcslashes(Smarty::$_smarty_vars['capture']['default'],'\'');?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'titleInvoice'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); ?><h3 class="page-subheading"><?php echo smartyTranslate(array('s'=>'Your delivery address','js'=>1),$_smarty_tpl);?>
</h3><?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?><?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'titleDelivery')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'titleDelivery'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo addcslashes(Smarty::$_smarty_vars['capture']['default'],'\'');?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'titleDelivery'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); ?><a class="button button-small btn btn-default" href="<?php echo Smarty::$_smarty_vars['capture']['addressUrlAdd'];?>
" title="<?php echo smartyTranslate(array('s'=>'Update','js'=>1),$_smarty_tpl);?>
"><span><?php echo smartyTranslate(array('s'=>'Update','js'=>1),$_smarty_tpl);?>
<i class="icon-chevron-right right"></i></span></a><?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?><?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'liUpdate')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'liUpdate'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo addcslashes(Smarty::$_smarty_vars['capture']['default'],'\'');?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'liUpdate'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php }} ?>

View File

@@ -0,0 +1,120 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 11:09:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/sendtoafriend/sendtoafriend-extra.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1665863156568d30319b2255-78080144%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0b8861d920a928b6d92ec35877d70b25984c2d13' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/themes/hotel-reservation-theme/modules/sendtoafriend/sendtoafriend-extra.tpl',
1 => 1452142872,
2 => 'file',
),
),
'nocache_hash' => '1665863156568d30319b2255-78080144',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d30319f8b26_90309038',
'variables' =>
array (
'stf_product' => 0,
'stf_product_cover' => 0,
'link' => 0,
'homeSize' => 0,
'stf_secure_key' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d30319f8b26_90309038')) {function content_568d30319f8b26_90309038($_smarty_tpl) {?>
<li class="sendtofriend">
<a id="send_friend_button" href="#send_friend_form">
<?php echo smartyTranslate(array('s'=>'Send to a friend','mod'=>'sendtoafriend'),$_smarty_tpl);?>
</a>
<div style="display: none;">
<div id="send_friend_form">
<h2 class="page-subheading">
<?php echo smartyTranslate(array('s'=>'Send to a friend','mod'=>'sendtoafriend'),$_smarty_tpl);?>
</h2>
<div class="row">
<div class="product clearfix col-xs-12 col-sm-6">
<img src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['stf_product']->value->link_rewrite,$_smarty_tpl->tpl_vars['stf_product_cover']->value,'home_default'), ENT_QUOTES, 'UTF-8', true);?>
" height="<?php echo $_smarty_tpl->tpl_vars['homeSize']->value['height'];?>
" width="<?php echo $_smarty_tpl->tpl_vars['homeSize']->value['width'];?>
" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['stf_product']->value->name, ENT_QUOTES, 'UTF-8', true);?>
" />
<div class="product_desc">
<p class="product_name">
<strong><?php echo $_smarty_tpl->tpl_vars['stf_product']->value->name;?>
</strong>
</p>
<?php echo $_smarty_tpl->tpl_vars['stf_product']->value->description_short;?>
</div>
</div><!-- .product -->
<div class="send_friend_form_content col-xs-12 col-sm-6" id="send_friend_form_content">
<div id="send_friend_form_error"></div>
<div id="send_friend_form_success"></div>
<div class="form_container">
<p class="intro_form">
<?php echo smartyTranslate(array('s'=>'Recipient','mod'=>'sendtoafriend'),$_smarty_tpl);?>
:
</p>
<p class="text">
<label for="friend_name">
<?php echo smartyTranslate(array('s'=>'Name of your friend','mod'=>'sendtoafriend'),$_smarty_tpl);?>
<sup class="required">*</sup> :
</label>
<input id="friend_name" name="friend_name" type="text" value=""/>
</p>
<p class="text">
<label for="friend_email">
<?php echo smartyTranslate(array('s'=>'E-mail address of your friend','mod'=>'sendtoafriend'),$_smarty_tpl);?>
<sup class="required">*</sup> :
</label>
<input id="friend_email" name="friend_email" type="text" value=""/>
</p>
<p class="txt_required">
<sup class="required">*</sup> <?php echo smartyTranslate(array('s'=>'Required fields','mod'=>'sendtoafriend'),$_smarty_tpl);?>
</p>
</div>
<p class="submit">
<button id="sendEmail" class="btn button button-small" name="sendEmail" type="submit">
<span><?php echo smartyTranslate(array('s'=>'Send','mod'=>'sendtoafriend'),$_smarty_tpl);?>
</span>
</button>&nbsp;
<?php echo smartyTranslate(array('s'=>'or','mod'=>'sendtoafriend'),$_smarty_tpl);?>
&nbsp;
<a class="closefb" href="#">
<?php echo smartyTranslate(array('s'=>'Cancel','mod'=>'sendtoafriend'),$_smarty_tpl);?>
</a>
</p>
</div> <!-- .send_friend_form_content -->
</div>
</div>
</div>
</li>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('stf_secure_key'=>$_smarty_tpl->tpl_vars['stf_secure_key']->value),$_smarty_tpl);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'stf_msg_success')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_success'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Your e-mail has been sent successfully','mod'=>'sendtoafriend','js'=>1),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_success'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'stf_msg_error')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_error'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Your e-mail could not be sent. Please check the e-mail address and try again.','mod'=>'sendtoafriend','js'=>1),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_error'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'stf_msg_title')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_title'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Send to a friend','mod'=>'sendtoafriend','js'=>1),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_title'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'stf_msg_required')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_required'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'You did not fill required fields','mod'=>'sendtoafriend','js'=>1),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'stf_msg_required'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php }} ?>

View File

@@ -0,0 +1,514 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:33
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/products/combinations.tpl" */ ?>
<?php /*%%SmartyHeaderCode:623898582568df21d4349d8-91225613%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0c3959e6fd2cedf18ac796f27acd07a3dd8debc2' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/products/combinations.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '623898582568df21d4349d8-91225613',
'function' =>
array (
),
'variables' =>
array (
'product' => 0,
'attributeJs' => 0,
'idgrp' => 0,
'group' => 0,
'idattr' => 0,
'attrname' => 0,
'token_generator' => 0,
'combination_exists' => 0,
'display_multishop_checkboxes' => 0,
'attributes_groups' => 0,
'attribute_group' => 0,
'currency' => 0,
'country_display_tax_label' => 0,
'tax_exclude_option' => 0,
'ps_weight_unit' => 0,
'field_value_unity' => 0,
'ps_use_ecotax' => 0,
'minimal_quantity' => 0,
'available_date' => 0,
'images' => 0,
'image' => 0,
'imageType' => 0,
'list' => 0,
'link' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21d5475e1_40627927',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21d5475e1_40627927')) {function content_568df21d5475e1_40627927($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['product']->value->id)&&!$_smarty_tpl->tpl_vars['product']->value->is_virtual) {?>
<div id="product-combinations" class="panel product-tab">
<script type="text/javascript">
var msg_combination_1 = '<?php echo smartyTranslate(array('s'=>'Please choose an attribute.'),$_smarty_tpl);?>
';
var msg_combination_2 = '<?php echo smartyTranslate(array('s'=>'Please choose a value.'),$_smarty_tpl);?>
';
var msg_combination_3 = '<?php echo smartyTranslate(array('s'=>'You can only add one combination per attribute type.'),$_smarty_tpl);?>
';
var msg_new_combination = '<?php echo smartyTranslate(array('s'=>'New combination'),$_smarty_tpl);?>
';
var msg_cancel_combination = '<?php echo smartyTranslate(array('s'=>'Cancel combination'),$_smarty_tpl);?>
';
var attrs = new Array();
var modifyattributegroup = "<?php echo smartyTranslate(array('s'=>'Modify this attribute combination.','js'=>1),$_smarty_tpl);?>
";
attrs[0] = new Array(0, "---");
<?php $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['group']->_loop = false;
$_smarty_tpl->tpl_vars['idgrp'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['attributeJs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) {
$_smarty_tpl->tpl_vars['group']->_loop = true;
$_smarty_tpl->tpl_vars['idgrp']->value = $_smarty_tpl->tpl_vars['group']->key;
?>
attrs[<?php echo $_smarty_tpl->tpl_vars['idgrp']->value;?>
] = new Array(0
, '---'
<?php $_smarty_tpl->tpl_vars['attrname'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['attrname']->_loop = false;
$_smarty_tpl->tpl_vars['idattr'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['group']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['attrname']->key => $_smarty_tpl->tpl_vars['attrname']->value) {
$_smarty_tpl->tpl_vars['attrname']->_loop = true;
$_smarty_tpl->tpl_vars['idattr']->value = $_smarty_tpl->tpl_vars['attrname']->key;
?>
, <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(strval($_smarty_tpl->tpl_vars['idattr']->value));?>
, <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode(trim($_smarty_tpl->tpl_vars['attrname']->value));?>
<?php } ?>
);
<?php } ?>
$(document).ready(function(){
populate_attrs();
$(".datepicker").datepicker({
prevText: '',
nextText: '',
dateFormat: 'yy-mm-dd'
});
});
</script>
<input type="hidden" name="submitted_tabs[]" value="Combinations" />
<h3><?php echo smartyTranslate(array('s'=>'Add or modify combinations for this product'),$_smarty_tpl);?>
</h3>
<div class="alert alert-info">
<?php echo smartyTranslate(array('s'=>'You can also use the [1]Product Combinations Generator[2/][/1] in order to automatically create a set of combinations.','tags'=>array("<a class='btn btn-link bt-icon confirm_leave' href='index.php?tab=AdminAttributeGenerator&amp;id_product=".((string)$_smarty_tpl->tpl_vars['product']->value->id)."&amp;attributegenerator&amp;token=".((string)$_smarty_tpl->tpl_vars['token_generator']->value)."'>",'<i class="icon-external-link-sign">')),$_smarty_tpl);?>
</div>
<?php if ($_smarty_tpl->tpl_vars['combination_exists']->value) {?>
<div class="alert alert-info" style="display:block">
<?php echo smartyTranslate(array('s'=>'Some combinations already exist. If you want to generate a set of new combinations, the quantities for the existing combinations will be lost.'),$_smarty_tpl);?>
<br/>
<?php echo smartyTranslate(array('s'=>'You can add a single combination by clicking the "New combination" button.'),$_smarty_tpl);?>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value)&&$_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value) {?>
<br />
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/check_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_tab'=>"Combinations"), 0);?>
<?php }?>
<div id="add_new_combination" class="panel" style="display: none;">
<div class="panel-heading"><?php echo smartyTranslate(array('s'=>'Add or modify combinations for this product'),$_smarty_tpl);?>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="attribute_group"><?php echo smartyTranslate(array('s'=>'Attribute'),$_smarty_tpl);?>
</label>
<div class="col-lg-5">
<select name="attribute_group" id="attribute_group" onchange="populate_attrs();">
<?php if (isset($_smarty_tpl->tpl_vars['attributes_groups']->value)) {?>
<?php $_smarty_tpl->tpl_vars['attribute_group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['attribute_group']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['attributes_groups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['attribute_group']->key => $_smarty_tpl->tpl_vars['attribute_group']->value) {
$_smarty_tpl->tpl_vars['attribute_group']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['attribute_group']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['attribute_group']->value['id_attribute_group'];?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['attribute_group']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
&nbsp;&nbsp;</option>
<?php } ?>
<?php }?>
</select>
</div>
</div>
<div class="row">
<label class="control-label col-lg-3" for="attribute"><?php echo smartyTranslate(array('s'=>'Value'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<div class="form-group">
<div class="col-lg-8">
<select name="attribute" id="attribute">
<option value="0">-</option>
</select>
</div>
<div class="col-lg-4">
<button type="button" class="btn btn-default btn-block" onclick="add_attr();"><i class="icon-plus-sign-alt"></i> <?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
</button>
</div>
</div>
<div class="form-group">
<div class="col-lg-8">
<select id="product_att_list" name="attribute_combination_list[]" multiple="multiple" ></select>
</div>
<div class="col-lg-4">
<button type="button" class="btn btn-default btn-block" onclick="del_attr()"><i class="icon-minus-sign-alt"></i> <?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
</button>
</div>
</div>
</div>
</div>
<hr/>
<div class="form-group">
<label class="control-label col-lg-3" for="attribute_reference">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'Special characters allowed:'),$_smarty_tpl);?>
.-_#">
<?php echo smartyTranslate(array('s'=>'Reference code'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-5">
<input type="text" id="attribute_reference" name="attribute_reference" value="" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="attribute_ean13">
<?php echo smartyTranslate(array('s'=>'EAN-13 or JAN barcode'),$_smarty_tpl);?>
</label>
<div class="col-lg-3">
<input maxlength="13" type="text" id="attribute_ean13" name="attribute_ean13" value="" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="attribute_upc">
<?php echo smartyTranslate(array('s'=>'UPC barcode'),$_smarty_tpl);?>
</label>
<div class="col-lg-3">
<input maxlength="12" type="text" id="attribute_upc" name="attribute_upc" value="" />
</div>
</div>
<hr/>
<div class="form-group">
<div class="col-lg-1"><span class="pull-right"><?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field'=>"attribute_wholesale_price",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="attribute_wholesale_price">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'Set to zero if the price does not change.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Wholesale price'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-9">
<div class="input-group col-lg-2">
<span class="input-group-addon">
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0) {?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0) {?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
</span>
<input type="text" name="attribute_wholesale_price" id="attribute_wholesale_price" value="0" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
</div>
<span style="display:none;" id="attribute_wholesale_price_full" class="help-block"><?php echo smartyTranslate(array('s'=>'Overrides the wholesale price from the "Prices" tab.'),$_smarty_tpl);?>
</span>
</div>
</div>
<div class="form-group">
<div class="col-lg-1"><span class="pull-right"><?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field'=>"attribute_price_impact",'type'=>"attribute_price_impact"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="attribute_price_impact">
<?php echo smartyTranslate(array('s'=>'Impact on price'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-4">
<select name="attribute_price_impact" id="attribute_price_impact" onchange="check_impact(); calcImpactPriceTI();">
<option value="0"><?php echo smartyTranslate(array('s'=>'None'),$_smarty_tpl);?>
</option>
<option value="1"><?php echo smartyTranslate(array('s'=>'Increase'),$_smarty_tpl);?>
</option>
<option value="-1"><?php echo smartyTranslate(array('s'=>'Decrease'),$_smarty_tpl);?>
</option>
</select>
</div>
<div id="span_impact" class="col-lg-8">
<div class="form-group">
<label class="control-label col-lg-1" for="attribute_price">
<?php echo smartyTranslate(array('s'=>'of'),$_smarty_tpl);?>
</label>
<div class="input-group col-lg-5">
<div class="input-group-addon">
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0) {?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0) {?> <?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {?>
<?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>
<?php }?>
</div>
<input type="hidden" id="attribute_priceTEReal" name="attribute_price" value="0.00" />
<input type="text" id="attribute_price" value="0.00" onkeyup="$('#attribute_priceTEReal').val(this.value.replace(/,/g, '.')); if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTI();"/>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-1" for="attribute_priceTI">
<?php echo smartyTranslate(array('s'=>'or'),$_smarty_tpl);?>
</label>
<div class="input-group col-lg-5">
<div class="input-group-addon" <?php if ($_smarty_tpl->tpl_vars['tax_exclude_option']->value) {?>style="display:none"<?php }?>>
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0) {?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0) {?> <?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
<?php echo smartyTranslate(array('s'=>'(tax incl.)'),$_smarty_tpl);?>
</div>
<input type="text" name="attribute_priceTI" id="attribute_priceTI" value="0.00" onkeyup="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); calcImpactPriceTE();"/>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="alert">
<?php echo smartyTranslate(array('s'=>'The final product price will be set to'),$_smarty_tpl);?>
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0) {?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
<span id="attribute_new_total_price">0.00</span>
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0) {?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-1"><span class="pull-right"><?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field'=>"attribute_weight_impact",'type'=>"attribute_weight_impact"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="attribute_weight_impact">
<?php echo smartyTranslate(array('s'=>'Impact on weight'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-4">
<select name="attribute_weight_impact" id="attribute_weight_impact" onchange="check_weight_impact();">
<option value="0"><?php echo smartyTranslate(array('s'=>'None'),$_smarty_tpl);?>
</option>
<option value="1"><?php echo smartyTranslate(array('s'=>'Increase'),$_smarty_tpl);?>
</option>
<option value="-1"><?php echo smartyTranslate(array('s'=>'Reduction'),$_smarty_tpl);?>
</option>
</select>
</div>
<div id="span_weight_impact" class="col-lg-8">
<div class="row">
<label class="control-label col-lg-1" for="attribute_weight">
<?php echo smartyTranslate(array('s'=>'of'),$_smarty_tpl);?>
</label>
<div class="input-group col-lg-5">
<div class="input-group-addon">
<?php echo $_smarty_tpl->tpl_vars['ps_weight_unit']->value;?>
</div>
<input type="text" name="attribute_weight" id="attribute_weight" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
</div>
</div>
</div>
</div>
</div>
</div>
<div id="tr_unit_impact" class="form-group">
<div class="col-lg-1"><span class="pull-right"><?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field'=>"attribute_unit_impact",'type'=>"attribute_unit_impact"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="attribute_unit_impact">
<?php echo smartyTranslate(array('s'=>'Impact on unit price'),$_smarty_tpl);?>
</label>
<div class="col-lg-3">
<select name="attribute_unit_impact" id="attribute_unit_impact" onchange="check_unit_impact();">
<option value="0"><?php echo smartyTranslate(array('s'=>'None'),$_smarty_tpl);?>
</option>
<option value="1"><?php echo smartyTranslate(array('s'=>'Increase'),$_smarty_tpl);?>
</option>
<option value="-1"><?php echo smartyTranslate(array('s'=>'Reduction'),$_smarty_tpl);?>
</option>
</select>
</div>
<div class="col-lg-6">
<div class="row">
<label class="control-label col-lg-1" for="attribute_unity">
<?php echo smartyTranslate(array('s'=>'of'),$_smarty_tpl);?>
</label>
<div class="input-group col-lg-5">
<div class="input-group-addon">
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0) {?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0) {?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
/ <span id="unity_third"><?php echo $_smarty_tpl->tpl_vars['field_value_unity']->value;?>
</span>
</div>
<input type="text" name="attribute_unity" id="attribute_unity" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
</div>
</div>
</div>
</div>
<?php if ($_smarty_tpl->tpl_vars['ps_use_ecotax']->value) {?>
<div class="form-group">
<div class="col-lg-1"><span class="pull-right"><?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field'=>"attribute_ecotax",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="attribute_ecotax">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'Overrides the ecotax from the "Prices" tab.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Ecotax (tax excl.)'),$_smarty_tpl);?>
</span>
</label>
<div class="input-group col-lg-2">
<div class="input-group-addon">
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2!=0) {?><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2==0) {?> <?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php }?>
</div>
<input type="text" name="attribute_ecotax" id="attribute_ecotax" value="0.00" onKeyUp="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.');" />
</div>
</div>
<?php }?>
<div class="form-group">
<div class="col-lg-1"><span class="pull-right"><?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field'=>"attribute_minimal_quantity",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="attribute_minimal_quantity">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'The minimum quantity to buy this product (set to 1 to disable this feature).'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Minimum quantity'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-9">
<div class="input-group col-lg-2">
<div class="input-group-addon">&times;</div>
<input maxlength="6" name="attribute_minimal_quantity" id="attribute_minimal_quantity" type="text" value="<?php echo $_smarty_tpl->tpl_vars['minimal_quantity']->value;?>
" />
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-1"><span class="pull-right"><?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field'=>"available_date_attribute",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="available_date_attribute">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'If this product is out of stock, you can indicate when the product will be available again.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Availability date'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-9">
<div class="input-group col-lg-3">
<input class="datepicker" id="available_date_attribute" name="available_date_attribute" value="<?php echo $_smarty_tpl->tpl_vars['available_date']->value;?>
" type="text" />
<div class="input-group-addon">
<i class="icon-calendar-empty"></i>
</div>
</div>
</div>
</div>
<hr/>
<div class="form-group">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Image'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<?php if (count($_smarty_tpl->tpl_vars['images']->value)) {?>
<ul id="id_image_attr" class="list-inline">
<?php $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['image']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['images']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value) {
$_smarty_tpl->tpl_vars['image']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['image']->key;
?>
<li>
<input type="checkbox" name="id_image_attr[]" value="<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
" id="id_image_attr_<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
" />
<label for="id_image_attr_<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
">
<img class="img-thumbnail" src="<?php echo @constant('_THEME_PROD_DIR_');?>
<?php echo $_smarty_tpl->tpl_vars['image']->value['obj']->getExistingImgPath();?>
-<?php echo $_smarty_tpl->tpl_vars['imageType']->value;?>
.jpg" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['legend'], ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['legend'], ENT_QUOTES, 'UTF-8', true);?>
" />
</label>
</li>
<?php } ?>
</ul>
<?php } else { ?>
<div class="alert alert-warning"><?php echo smartyTranslate(array('s'=>'You must upload an image before you can select one for your combination.'),$_smarty_tpl);?>
</div>
<?php }?>
</div>
</div>
<div class="form-group">
<div class="col-lg-1"><span class="pull-right"><?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field'=>"attribute_default",'type'=>"attribute_default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="attribute_default">
<?php echo smartyTranslate(array('s'=>'Default'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<p class="checkbox">
<label for="attribute_default">
<input type="checkbox" name="attribute_default" id="attribute_default" value="1" />
<?php echo smartyTranslate(array('s'=>'Make this combination the default combination for this product.'),$_smarty_tpl);?>
</label>
</p>
</div>
</div>
<div class="panel-footer">
<span id="ResetSpan">
<button type="reset" name="ResetBtn" id="ResetBtn" onclick="$('#desc-product-newCombination').click();" class="btn btn-default">
<i class="icon-undo"></i> <?php echo smartyTranslate(array('s'=>'Cancel modification'),$_smarty_tpl);?>
</button>
</span>
</div>
</div>
<?php echo $_smarty_tpl->tpl_vars['list']->value;?>
<div class="panel-footer">
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts'), ENT_QUOTES, 'UTF-8', true);?>
<?php if (isset($_REQUEST['page'])&&$_REQUEST['page']>1) {?>&amp;submitFilterproduct=<?php echo intval($_REQUEST['page']);?>
<?php }?>" class="btn btn-default"><i class="process-icon-cancel"></i> <?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
</a>
<button type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> <?php echo smartyTranslate(array('s'=>'Save'),$_smarty_tpl);?>
</button>
<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> <?php echo smartyTranslate(array('s'=>'Save and stay'),$_smarty_tpl);?>
</button>
<a href="#" id="desc-product-newCombination" class="btn btn-default pull-right"><i class="process-icon-new"></i> <span><?php echo smartyTranslate(array('s'=>"New combination"),$_smarty_tpl);?>
</span></a>
</div>
</div>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,104 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/modules_list/list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1845522999568df2184bc144-83802216%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0d6aeae8f7fe3655a64c0fa254c51e5c4844eed9' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/modules_list/list.tpl',
1 => 1452142887,
2 => 'file',
),
),
'nocache_hash' => '1845522999568df2184bc144-83802216',
'function' =>
array (
),
'variables' =>
array (
'panel_title' => 0,
'modules_list' => 0,
'controller_name' => 0,
'view_all' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df2184e5192_45025787',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df2184e5192_45025787')) {function content_568df2184e5192_45025787($_smarty_tpl) {?><?php if (!is_callable('smarty_function_counter')) include '/home/sumit/public_html/html/hotel-reservation-system/tools/smarty/plugins/function.counter.php';
if (!is_callable('smarty_function_cycle')) include '/home/sumit/public_html/html/hotel-reservation-system/tools/smarty/plugins/function.cycle.php';
?>
<div class="panel">
<h3>
<i class="icon-list-ul"></i>
<?php if (isset($_smarty_tpl->tpl_vars['panel_title']->value)) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['panel_title']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Modules list'),$_smarty_tpl);?>
<?php }?>
</h3>
<div class="modules_list_container_tab row">
<div class="col-lg-12">
<?php if (count($_smarty_tpl->tpl_vars['modules_list']->value)) {?>
<table class="table">
<?php echo smarty_function_counter(array('start'=>1,'assign'=>"count"),$_smarty_tpl);?>
<?php $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['modules_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
$_smarty_tpl->tpl_vars['module']->_loop = true;
?>
<?php ob_start();?><?php echo smarty_function_cycle(array('values'=>",row alt"),$_smarty_tpl);?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->getSubTemplate ('controllers/modules/tab_module_line.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class_row'=>$_tmp1), 0);?>
<?php echo smarty_function_counter(array(),$_smarty_tpl);?>
<?php } ?>
</table>
<?php if ($_smarty_tpl->tpl_vars['controller_name']->value=='AdminPayment'&&isset($_smarty_tpl->tpl_vars['view_all']->value)) {?>
<div class="panel-footer">
<div class="col-lg-4 col-lg-offset-4">
<a class="btn btn-default btn-block" href="index.php?tab=AdminModules&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminModules'),$_smarty_tpl);?>
&amp;filterCategory=payments_gateways">
<i class="process-icon-payment"></i>
<?php echo smartyTranslate(array('s'=>'View all available payments solutions'),$_smarty_tpl);?>
</a>
</div>
</div>
<?php }?>
<?php } else { ?>
<table class="table">
<tr>
<td>
<div class="alert alert-warning">
<?php if ($_smarty_tpl->tpl_vars['controller_name']->value=='AdminPayment') {?>
<?php echo smartyTranslate(array('s'=>'It seems there are no recommended payment solutions for your country.'),$_smarty_tpl);?>
<br />
<a class="_blank" href="https://www.prestashop.com/en/contact-us"><?php echo smartyTranslate(array('s'=>'Do you think there should be one? Let us know!'),$_smarty_tpl);?>
</a>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'No modules available in this section.'),$_smarty_tpl);?>
<?php }?></div>
</td>
</tr>
</table>
<?php }?>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('.fancybox-quick-view').fancybox({
type: 'ajax',
autoDimensions: false,
autoSize: false,
width: 600,
height: 'auto',
helpers: {
overlay: {
locked: false
}
}
});
});
</script>
<?php }} ?>

View File

@@ -0,0 +1,33 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:31
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/request_sql/list_action_export.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1699246277568df21b64f210-93205177%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0ee094523782747de574ba5dd1f9eef947ccbd6e' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/request_sql/list_action_export.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '1699246277568df21b64f210-93205177',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21b656384_52927716',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21b656384_52927716')) {function content_568df21b656384_52927716($_smarty_tpl) {?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
" class="btn btn-default">
<i class="icon-cloud-upload"></i> <?php echo $_smarty_tpl->tpl_vars['action']->value;?>
</a><?php }} ?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,340 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:31
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/orders/_product_line.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1676588210568df21bcdf711-35318561%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'114363cc72fdc8b79aee9a6027646d2149422cfb' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/orders/_product_line.tpl',
1 => 1452142889,
2 => 'file',
),
),
'nocache_hash' => '1676588210568df21bcdf711-35318561',
'function' =>
array (
),
'variables' =>
array (
'order' => 0,
'product' => 0,
'link' => 0,
'product_price' => 0,
'currency' => 0,
'can_edit' => 0,
'display_warehouse' => 0,
'refund' => 0,
'return' => 0,
'stock_management' => 0,
'productQuantity' => 0,
'amount_refundable' => 0,
'invoices_collection' => 0,
'invoice' => 0,
'current_id_lang' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21beae144_48953860',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21beae144_48953860')) {function content_568df21beae144_48953860($_smarty_tpl) {?>
<?php if (($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod()==@constant('PS_TAX_EXC'))) {?>
<?php $_smarty_tpl->tpl_vars['product_price'] = new Smarty_variable(($_smarty_tpl->tpl_vars['product']->value['unit_price_tax_excl']+$_smarty_tpl->tpl_vars['product']->value['ecotax']), null, 0);?>
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars['product_price'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['unit_price_tax_incl'], null, 0);?>
<?php }?>
<?php if (($_smarty_tpl->tpl_vars['product']->value['product_quantity']>$_smarty_tpl->tpl_vars['product']->value['customized_product_quantity'])) {?>
<tr class="product-line-row">
<td><?php if (isset($_smarty_tpl->tpl_vars['product']->value['image'])&&$_smarty_tpl->tpl_vars['product']->value['image']->id) {?><?php echo $_smarty_tpl->tpl_vars['product']->value['image_tag'];?>
<?php }?></td>
<td>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts'), ENT_QUOTES, 'UTF-8', true);?>
&amp;id_product=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['product_id']);?>
&amp;updateproduct&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminProducts'),$_smarty_tpl);?>
">
<span class="productName"><?php echo $_smarty_tpl->tpl_vars['product']->value['product_name'];?>
</span><br />
<?php if ($_smarty_tpl->tpl_vars['product']->value['product_reference']) {?><?php echo smartyTranslate(array('s'=>'Reference number:'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['product_reference'];?>
<br /><?php }?>
<?php if ($_smarty_tpl->tpl_vars['product']->value['product_supplier_reference']) {?><?php echo smartyTranslate(array('s'=>'Supplier reference:'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['product_supplier_reference'];?>
<?php }?>
</a>
<div class="row-editing-warning" style="display:none;">
<div class="alert alert-warning">
<strong><?php echo smartyTranslate(array('s'=>'Editing this product line will remove the reduction and base price.'),$_smarty_tpl);?>
</strong>
</div>
</div>
</td>
<td>
<span class="product_price_show"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['product_price']->value,'currency'=>$_smarty_tpl->tpl_vars['currency']->value->id),$_smarty_tpl);?>
</span>
<?php if ($_smarty_tpl->tpl_vars['can_edit']->value) {?>
<div class="product_price_edit" style="display:none;">
<input type="hidden" name="product_id_order_detail" class="edit_product_id_order_detail" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['id_order_detail'];?>
" />
<div class="form-group">
<div class="fixed-width-xl">
<div class="input-group">
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2) {?><div class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php echo smartyTranslate(array('s'=>'tax excl.'),$_smarty_tpl);?>
</div><?php }?>
<input type="text" name="product_price_tax_excl" class="edit_product_price_tax_excl edit_product_price" value="<?php echo Tools::ps_round($_smarty_tpl->tpl_vars['product']->value['unit_price_tax_excl'],2);?>
"/>
<?php if (!($_smarty_tpl->tpl_vars['currency']->value->format%2)) {?><div class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php echo smartyTranslate(array('s'=>'tax excl.'),$_smarty_tpl);?>
</div><?php }?>
</div>
</div>
<br/>
<div class="fixed-width-xl">
<div class="input-group">
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2) {?><div class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php echo smartyTranslate(array('s'=>'tax incl.'),$_smarty_tpl);?>
</div><?php }?>
<input type="text" name="product_price_tax_incl" class="edit_product_price_tax_incl edit_product_price" value="<?php echo Tools::ps_round($_smarty_tpl->tpl_vars['product']->value['unit_price_tax_incl'],2);?>
"/>
<?php if (!($_smarty_tpl->tpl_vars['currency']->value->format%2)) {?><div class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php echo smartyTranslate(array('s'=>'tax incl.'),$_smarty_tpl);?>
</div><?php }?>
</div>
</div>
</div>
</div>
<?php }?>
</td>
<td class="productQuantity text-center">
<span class="product_quantity_show<?php if ((int)$_smarty_tpl->tpl_vars['product']->value['product_quantity']-(int)$_smarty_tpl->tpl_vars['product']->value['customized_product_quantity']>1) {?> badge<?php }?>"><?php echo (int)$_smarty_tpl->tpl_vars['product']->value['product_quantity']-(int)$_smarty_tpl->tpl_vars['product']->value['customized_product_quantity'];?>
</span>
<?php if ($_smarty_tpl->tpl_vars['can_edit']->value) {?>
<span class="product_quantity_edit" style="display:none;">
<input type="text" name="product_quantity" class="edit_product_quantity" value="<?php echo htmlentities($_smarty_tpl->tpl_vars['product']->value['product_quantity']);?>
"/>
</span>
<?php }?>
</td>
<?php if ($_smarty_tpl->tpl_vars['display_warehouse']->value) {?>
<td>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['warehouse_name'], ENT_QUOTES, 'UTF-8', true);?>
<?php if ($_smarty_tpl->tpl_vars['product']->value['warehouse_location']) {?>
<br><?php echo smartyTranslate(array('s'=>'Location'),$_smarty_tpl);?>
: <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['warehouse_location'], ENT_QUOTES, 'UTF-8', true);?>
</strong>
<?php }?>
</td>
<?php }?>
<?php if (($_smarty_tpl->tpl_vars['order']->value->hasBeenPaid())) {?>
<td class="productQuantity text-center">
<?php if (!empty($_smarty_tpl->tpl_vars['product']->value['amount_refund'])) {?>
<?php echo smartyTranslate(array('s'=>'%s (%s refund)','sprintf'=>array($_smarty_tpl->tpl_vars['product']->value['product_quantity_refunded'],$_smarty_tpl->tpl_vars['product']->value['amount_refund'])),$_smarty_tpl);?>
<?php }?>
<input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['quantity_refundable'];?>
" class="partialRefundProductQuantity" />
<input type="hidden" value="<?php echo (Tools::ps_round($_smarty_tpl->tpl_vars['product_price']->value,2)*($_smarty_tpl->tpl_vars['product']->value['product_quantity']-$_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal']));?>
" class="partialRefundProductAmount" />
<?php if (count($_smarty_tpl->tpl_vars['product']->value['refund_history'])) {?>
<span class="tooltip">
<span class="tooltip_label tooltip_button">+</span>
<span class="tooltip_content">
<span class="title"><?php echo smartyTranslate(array('s'=>'Refund history'),$_smarty_tpl);?>
</span>
<?php $_smarty_tpl->tpl_vars['refund'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['refund']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['product']->value['refund_history']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['refund']->key => $_smarty_tpl->tpl_vars['refund']->value) {
$_smarty_tpl->tpl_vars['refund']->_loop = true;
?>
<?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['refund']->value['date_add']),$_smarty_tpl);?>
<?php $_tmp9=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['refund']->value['amount_tax_incl']),$_smarty_tpl);?>
<?php $_tmp10=ob_get_clean();?><?php echo smartyTranslate(array('s'=>'%1s - %2s','sprintf'=>array($_tmp9,$_tmp10)),$_smarty_tpl);?>
<br />
<?php } ?>
</span>
</span>
<?php }?>
</td>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered()||$_smarty_tpl->tpl_vars['order']->value->hasProductReturned()) {?>
<td class="productQuantity text-center">
<?php echo $_smarty_tpl->tpl_vars['product']->value['product_quantity_return'];?>
<?php if (count($_smarty_tpl->tpl_vars['product']->value['return_history'])) {?>
<span class="tooltip">
<span class="tooltip_label tooltip_button">+</span>
<span class="tooltip_content">
<span class="title"><?php echo smartyTranslate(array('s'=>'Return history'),$_smarty_tpl);?>
</span>
<?php $_smarty_tpl->tpl_vars['return'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['return']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['product']->value['return_history']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['return']->key => $_smarty_tpl->tpl_vars['return']->value) {
$_smarty_tpl->tpl_vars['return']->_loop = true;
?>
<?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['return']->value['date_add']),$_smarty_tpl);?>
<?php $_tmp11=ob_get_clean();?><?php echo smartyTranslate(array('s'=>'%1s - %2s - %3s','sprintf'=>array($_tmp11,$_smarty_tpl->tpl_vars['return']->value['product_quantity'],$_smarty_tpl->tpl_vars['return']->value['state'])),$_smarty_tpl);?>
<br />
<?php } ?>
</span>
</span>
<?php }?>
</td>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['stock_management']->value) {?><td class="productQuantity product_stock text-center"><?php echo $_smarty_tpl->tpl_vars['product']->value['current_stock'];?>
</td><?php }?>
<td class="total_product">
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>(Tools::ps_round($_smarty_tpl->tpl_vars['product_price']->value,2)*($_smarty_tpl->tpl_vars['product']->value['product_quantity']-$_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal'])),'currency'=>$_smarty_tpl->tpl_vars['currency']->value->id),$_smarty_tpl);?>
</td>
<td colspan="2" style="display: none;" class="add_product_fields">&nbsp;</td>
<td class="cancelCheck standard_refund_fields current-edit" style="display:none">
<input type="hidden" name="totalQtyReturn" id="totalQtyReturn" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['product_quantity_return'];?>
" />
<input type="hidden" name="totalQty" id="totalQty" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['product_quantity'];?>
" />
<input type="hidden" name="productName" id="productName" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['product_name'];?>
" />
<?php if (((!$_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered()||Configuration::get('PS_ORDER_RETURN'))&&(int)($_smarty_tpl->tpl_vars['product']->value['product_quantity_return'])<(int)($_smarty_tpl->tpl_vars['product']->value['product_quantity']))) {?>
<input type="checkbox" name="id_order_detail[<?php echo $_smarty_tpl->tpl_vars['product']->value['id_order_detail'];?>
]" id="id_order_detail[<?php echo $_smarty_tpl->tpl_vars['product']->value['id_order_detail'];?>
]" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['id_order_detail'];?>
" onchange="setCancelQuantity(this, <?php echo $_smarty_tpl->tpl_vars['product']->value['id_order_detail'];?>
, <?php echo $_smarty_tpl->tpl_vars['product']->value['product_quantity']-$_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal']-$_smarty_tpl->tpl_vars['product']->value['product_quantity_return']-$_smarty_tpl->tpl_vars['product']->value['product_quantity_refunded'];?>
)" <?php if (($_smarty_tpl->tpl_vars['product']->value['product_quantity_return']+$_smarty_tpl->tpl_vars['product']->value['product_quantity_refunded']>=$_smarty_tpl->tpl_vars['product']->value['product_quantity'])) {?>disabled="disabled" <?php }?>/>
<?php } else { ?>
--
<?php }?>
</td>
<td class="cancelQuantity standard_refund_fields current-edit" style="display:none">
<?php if (($_smarty_tpl->tpl_vars['product']->value['product_quantity_return']+$_smarty_tpl->tpl_vars['product']->value['product_quantity_refunded']>=$_smarty_tpl->tpl_vars['product']->value['product_quantity'])) {?>
<input type="hidden" name="cancelQuantity[<?php echo $_smarty_tpl->tpl_vars['product']->value['id_order_detail'];?>
]" value="0" />
<?php } elseif ((!$_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered()||Configuration::get('PS_ORDER_RETURN'))) {?>
<input type="text" id="cancelQuantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_order_detail'];?>
" name="cancelQuantity[<?php echo $_smarty_tpl->tpl_vars['product']->value['id_order_detail'];?>
]" onchange="checkTotalRefundProductQuantity(this)" value="" />
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal']) {?>
<?php $_smarty_tpl->tpl_vars['productQuantity'] = new Smarty_variable(($_smarty_tpl->tpl_vars['product']->value['product_quantity']-$_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal']), null, 0);?>
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars['productQuantity'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['product_quantity'], null, 0);?>
<?php }?>
<?php if (($_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered())) {?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['product_quantity_refunded'];?>
/<?php echo $_smarty_tpl->tpl_vars['productQuantity']->value-$_smarty_tpl->tpl_vars['product']->value['product_quantity_refunded'];?>
<?php } elseif (($_smarty_tpl->tpl_vars['order']->value->hasBeenPaid())) {?>
<?php echo $_smarty_tpl->tpl_vars['product']->value['product_quantity_return'];?>
/<?php echo $_smarty_tpl->tpl_vars['productQuantity']->value;?>
<?php } else { ?>
0/<?php echo $_smarty_tpl->tpl_vars['productQuantity']->value;?>
<?php }?>
</td>
<td class="partial_refund_fields current-edit" colspan="2" style="display:none; width: 250px;">
<?php if ($_smarty_tpl->tpl_vars['product']->value['quantity_refundable']>0) {?>
<?php if (($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod()==@constant('PS_TAX_EXC'))) {?>
<?php $_smarty_tpl->tpl_vars['amount_refundable'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['amount_refundable'], null, 0);?>
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars['amount_refundable'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['amount_refundable_tax_incl'], null, 0);?>
<?php }?>
<div class="form-group">
<div class="<?php if ($_smarty_tpl->tpl_vars['product']->value['amount_refundable']>0) {?>col-lg-4<?php } else { ?>col-lg-12<?php }?>">
<label class="control-label">
<?php echo smartyTranslate(array('s'=>'Quantity:'),$_smarty_tpl);?>
</label>
<div class="input-group">
<input onchange="checkPartialRefundProductQuantity(this)" type="text" name="partialRefundProductQuantity[<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['product']->value['id_order_detail'];?>
<?php $_tmp12=ob_get_clean();?><?php echo $_tmp12;?>
]" value="0" />
<div class="input-group-addon">/ <?php echo $_smarty_tpl->tpl_vars['product']->value['quantity_refundable'];?>
</div>
</div>
</div>
<div class="<?php if ($_smarty_tpl->tpl_vars['product']->value['quantity_refundable']>0) {?>col-lg-8<?php } else { ?>col-lg-12<?php }?>">
<label class="control-label">
<span class="title_box "><?php echo smartyTranslate(array('s'=>'Amount:'),$_smarty_tpl);?>
</span>
<small class="text-muted">(<?php echo Smarty::$_smarty_vars['capture']['TaxMethod'];?>
)</small>
</label>
<div class="input-group">
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2) {?><div class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
</div><?php }?>
<input onchange="checkPartialRefundProductAmount(this)" type="text" name="partialRefundProduct[<?php echo $_smarty_tpl->tpl_vars['product']->value['id_order_detail'];?>
]" />
<?php if (!($_smarty_tpl->tpl_vars['currency']->value->format%2)) {?><div class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
</div><?php }?>
</div>
<p class="help-block"><i class="icon-warning-sign"></i> <?php echo smartyTranslate(array('s'=>'(Max %s %s)','sprintf'=>array(Tools::displayPrice(Tools::ps_round($_smarty_tpl->tpl_vars['amount_refundable']->value,2),$_smarty_tpl->tpl_vars['currency']->value->id),Smarty::$_smarty_vars['capture']['TaxMethod'])),$_smarty_tpl);?>
</p>
</div>
</div>
<?php }?>
</td>
<?php if (($_smarty_tpl->tpl_vars['can_edit']->value&&!$_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered())) {?>
<td class="product_invoice" style="display: none;">
<?php if (sizeof($_smarty_tpl->tpl_vars['invoices_collection']->value)) {?>
<select name="product_invoice" class="edit_product_invoice">
<?php $_smarty_tpl->tpl_vars['invoice'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['invoice']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['invoices_collection']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['invoice']->key => $_smarty_tpl->tpl_vars['invoice']->value) {
$_smarty_tpl->tpl_vars['invoice']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['invoice']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['invoice']->value->id==$_smarty_tpl->tpl_vars['product']->value['id_order_invoice']) {?>selected="selected"<?php }?>>
#<?php echo Configuration::get('PS_INVOICE_PREFIX',$_smarty_tpl->tpl_vars['current_id_lang']->value,null,$_smarty_tpl->tpl_vars['order']->value->id_shop);?>
<?php echo sprintf('%06d',$_smarty_tpl->tpl_vars['invoice']->value->number);?>
</option>
<?php } ?>
</select>
<?php } else { ?>
&nbsp;
<?php }?>
</td>
<td class="product_action text-right">
<div class="btn-group">
<button type="button" class="btn btn-default edit_product_change_link">
<i class="icon-pencil"></i>
<?php echo smartyTranslate(array('s'=>'Edit'),$_smarty_tpl);?>
</button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
<a href="#" class="delete_product_line">
<i class="icon-trash"></i>
<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
</a>
</li>
</ul>
</div>
<button type="button" class="btn btn-default submitProductChange" style="display: none;">
<i class="icon-ok"></i>
<?php echo smartyTranslate(array('s'=>'Update'),$_smarty_tpl);?>
</button>
<button type="button" class="btn btn-default cancel_product_change_link" style="display: none;">
<i class="icon-remove"></i>
<?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
</button>
</td>
<?php }?>
</tr>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,131 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:34
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/layout.tpl" */ ?>
<?php /*%%SmartyHeaderCode:490764893568df21e2acc09-39894030%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'118f11b17a8bcb749f6e3dc1123f221dc3985e8b' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/layout.tpl',
1 => 1452142870,
2 => 'file',
),
),
'nocache_hash' => '490764893568df21e2acc09-39894030',
'function' =>
array (
),
'variables' =>
array (
'header' => 0,
'conf' => 0,
'errors' => 0,
'disableDefaultErrorOutPut' => 0,
'error' => 0,
'informations' => 0,
'info' => 0,
'confirmations' => 0,
'warnings' => 0,
'warning' => 0,
'page' => 0,
'footer' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21e30ad15_60212650',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21e30ad15_60212650')) {function content_568df21e30ad15_60212650($_smarty_tpl) {?>
<?php echo $_smarty_tpl->tpl_vars['header']->value;?>
<?php if (isset($_smarty_tpl->tpl_vars['conf']->value)) {?>
<div class="bootstrap">
<div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo $_smarty_tpl->tpl_vars['conf']->value;?>
</div>
</div>
<?php }?>
<?php if (count($_smarty_tpl->tpl_vars['errors']->value)&&current($_smarty_tpl->tpl_vars['errors']->value)!=''&&(!isset($_smarty_tpl->tpl_vars['disableDefaultErrorOutPut']->value)||$_smarty_tpl->tpl_vars['disableDefaultErrorOutPut']->value==false)) {?>
<div class="bootstrap">
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php if (count($_smarty_tpl->tpl_vars['errors']->value)==1) {?>
<?php echo reset($_smarty_tpl->tpl_vars['errors']->value);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'%d errors','sprintf'=>count($_smarty_tpl->tpl_vars['errors']->value)),$_smarty_tpl);?>
<br/>
<ol>
<?php $_smarty_tpl->tpl_vars['error'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['error']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['errors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['error']->key => $_smarty_tpl->tpl_vars['error']->value) {
$_smarty_tpl->tpl_vars['error']->_loop = true;
?>
<li><?php echo $_smarty_tpl->tpl_vars['error']->value;?>
</li>
<?php } ?>
</ol>
<?php }?>
</div>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['informations']->value)&&count($_smarty_tpl->tpl_vars['informations']->value)&&$_smarty_tpl->tpl_vars['informations']->value) {?>
<div class="bootstrap">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<ul id="infos_block" class="list-unstyled">
<?php $_smarty_tpl->tpl_vars['info'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['info']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['informations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['info']->key => $_smarty_tpl->tpl_vars['info']->value) {
$_smarty_tpl->tpl_vars['info']->_loop = true;
?>
<li><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
</li>
<?php } ?>
</ul>
</div>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['confirmations']->value)&&count($_smarty_tpl->tpl_vars['confirmations']->value)&&$_smarty_tpl->tpl_vars['confirmations']->value) {?>
<div class="bootstrap">
<div class="alert alert-success" style="display:block;">
<?php $_smarty_tpl->tpl_vars['conf'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['conf']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['confirmations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['conf']->key => $_smarty_tpl->tpl_vars['conf']->value) {
$_smarty_tpl->tpl_vars['conf']->_loop = true;
?>
<?php echo $_smarty_tpl->tpl_vars['conf']->value;?>
<?php } ?>
</div>
</div>
<?php }?>
<?php if (count($_smarty_tpl->tpl_vars['warnings']->value)) {?>
<div class="bootstrap">
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php if (count($_smarty_tpl->tpl_vars['warnings']->value)>1) {?>
<h4><?php echo smartyTranslate(array('s'=>'There are %d warnings:','sprintf'=>count($_smarty_tpl->tpl_vars['warnings']->value)),$_smarty_tpl);?>
</h4>
<?php }?>
<ul class="list-unstyled">
<?php $_smarty_tpl->tpl_vars['warning'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['warning']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['warnings']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['warning']->key => $_smarty_tpl->tpl_vars['warning']->value) {
$_smarty_tpl->tpl_vars['warning']->_loop = true;
?>
<li><?php echo $_smarty_tpl->tpl_vars['warning']->value;?>
</li>
<?php } ?>
</ul>
</div>
</div>
<?php }?>
<?php echo $_smarty_tpl->tpl_vars['page']->value;?>
<?php echo $_smarty_tpl->tpl_vars['footer']->value;?>
<?php }} ?>

View File

@@ -0,0 +1,220 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:41:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/helpers/calendar/calendar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:248906187568d2c03c05f07-00339745%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'12386827611dea04704d215a51563801da926afb' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/helpers/calendar/calendar.tpl',
1 => 1452142887,
2 => 'file',
),
),
'nocache_hash' => '248906187568d2c03c05f07-00339745',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d2c03d4f053_06465374',
'variables' =>
array (
'is_rtl' => 0,
'date_to' => 0,
'date_format' => 0,
'date_from' => 0,
'actions' => 0,
'action' => 0,
'compare_date_from' => 0,
'compare_date_to' => 0,
'compare_option' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d2c03d4f053_06465374')) {function content_568d2c03d4f053_06465374($_smarty_tpl) {?><div id="datepicker" class="row row-padding-top hide">
<div class="col-lg-12">
<div class="daterangepicker-days">
<div class="row">
<?php if ($_smarty_tpl->tpl_vars['is_rtl']->value) {?>
<div class="col-sm-6 col-lg-4">
<div class="datepicker2" data-date="<?php echo $_smarty_tpl->tpl_vars['date_to']->value;?>
" data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
"></div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="datepicker1" data-date="<?php echo $_smarty_tpl->tpl_vars['date_from']->value;?>
" data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
"></div>
</div>
<?php } else { ?>
<div class="col-sm-6 col-lg-4">
<div class="datepicker1" data-date="<?php echo $_smarty_tpl->tpl_vars['date_from']->value;?>
" data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
"></div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="datepicker2" data-date="<?php echo $_smarty_tpl->tpl_vars['date_to']->value;?>
" data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
"></div>
</div>
<?php }?>
<div class="col-xs-12 col-sm-6 col-lg-4 pull-right">
<div id='datepicker-form' class='form-inline'>
<div id='date-range' class='form-date-group'>
<div class='form-date-heading'>
<span class="title"><?php echo smartyTranslate(array('s'=>'Date range'),$_smarty_tpl);?>
</span>
<?php if (isset($_smarty_tpl->tpl_vars['actions']->value)&&count($_smarty_tpl->tpl_vars['actions']->value)>0) {?>
<?php if (count($_smarty_tpl->tpl_vars['actions']->value)>1) {?>
<button class='btn btn-default btn-xs pull-right dropdown-toggle' data-toggle='dropdown' type="button">
<?php echo smartyTranslate(array('s'=>'Custom'),$_smarty_tpl);?>
<i class='icon-angle-down'></i>
</button>
<ul class='dropdown-menu'>
<?php $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['action']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) {
$_smarty_tpl->tpl_vars['action']->_loop = true;
?>
<li><a<?php if (isset($_smarty_tpl->tpl_vars['action']->value['href'])) {?> href="<?php echo $_smarty_tpl->tpl_vars['action']->value['href'];?>
"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['action']->value['class'])) {?> class="<?php echo $_smarty_tpl->tpl_vars['action']->value['class'];?>
"<?php }?>><?php if (isset($_smarty_tpl->tpl_vars['action']->value['icon'])) {?><i class="<?php echo $_smarty_tpl->tpl_vars['action']->value['icon'];?>
"></i> <?php }?><?php echo $_smarty_tpl->tpl_vars['action']->value['label'];?>
</a></li>
<?php } ?>
</ul>
<?php } else { ?>
<a<?php if (isset($_smarty_tpl->tpl_vars['actions']->value[0]['href'])) {?> href="<?php echo $_smarty_tpl->tpl_vars['actions']->value[0]['href'];?>
"<?php }?> class="btn btn-default btn-xs pull-right<?php if (isset($_smarty_tpl->tpl_vars['actions']->value[0]['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['actions']->value[0]['class'];?>
<?php }?>"><?php if (isset($_smarty_tpl->tpl_vars['actions']->value[0]['icon'])) {?><i class="<?php echo $_smarty_tpl->tpl_vars['actions']->value[0]['icon'];?>
"></i> <?php }?><?php echo $_smarty_tpl->tpl_vars['actions']->value[0]['label'];?>
</a>
<?php }?>
<?php }?>
</div>
<div class='form-date-body'>
<label><?php echo smartyTranslate(array('s'=>'From'),$_smarty_tpl);?>
</label>
<input class='date-input form-control' id='date-start' placeholder='Start' type='text' name="date_from" value="<?php echo $_smarty_tpl->tpl_vars['date_from']->value;?>
" data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
" tabindex="1" />
<label><?php echo smartyTranslate(array('s'=>'to'),$_smarty_tpl);?>
</label>
<input class='date-input form-control' id='date-end' placeholder='End' type='text' name="date_to" value="<?php echo $_smarty_tpl->tpl_vars['date_to']->value;?>
" data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
" tabindex="2" />
</div>
</div>
<div id="date-compare" class='form-date-group'>
<div class='form-date-heading'>
<span class="checkbox-title">
<label >
<input type='checkbox' id="datepicker-compare" name="datepicker_compare"<?php if (isset($_smarty_tpl->tpl_vars['compare_date_from']->value)&&isset($_smarty_tpl->tpl_vars['compare_date_to']->value)) {?> checked="checked"<?php }?> tabindex="3">
<?php echo smartyTranslate(array('s'=>'Compare to'),$_smarty_tpl);?>
</label>
</span>
<select id="compare-options" class="form-control fixed-width-lg pull-right" name="compare_date_option"<?php if (is_null($_smarty_tpl->tpl_vars['compare_date_from']->value)||is_null($_smarty_tpl->tpl_vars['compare_date_to']->value)) {?> disabled="disabled"<?php }?>>
<option value="1" <?php if ($_smarty_tpl->tpl_vars['compare_option']->value==1) {?>selected="selected"<?php }?> label="<?php echo smartyTranslate(array('s'=>'Previous period'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Previous period'),$_smarty_tpl);?>
</option>
<option value="2" <?php if ($_smarty_tpl->tpl_vars['compare_option']->value==2) {?>selected="selected"<?php }?> label="<?php echo smartyTranslate(array('s'=>'Previous Year'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Previous year'),$_smarty_tpl);?>
</option>
<option value="3" <?php if ($_smarty_tpl->tpl_vars['compare_option']->value==3) {?>selected="selected"<?php }?> label="<?php echo smartyTranslate(array('s'=>'Custom'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Custom'),$_smarty_tpl);?>
</option>
</select>
</div>
<div class="form-date-body" id="form-date-body-compare"<?php if (is_null($_smarty_tpl->tpl_vars['compare_date_from']->value)||is_null($_smarty_tpl->tpl_vars['compare_date_to']->value)) {?> style="display: none;"<?php }?>>
<label><?php echo smartyTranslate(array('s'=>'From'),$_smarty_tpl);?>
</label>
<input id="date-start-compare" class="date-input form-control" type="text" placeholder="Start" name="compare_date_from" value="<?php echo $_smarty_tpl->tpl_vars['compare_date_from']->value;?>
" data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
" tabindex="4" />
<label><?php echo smartyTranslate(array('s'=>'to'),$_smarty_tpl);?>
</label>
<input id="date-end-compare" class="date-input form-control" type="text" placeholder="End" name="compare_date_to" value="<?php echo $_smarty_tpl->tpl_vars['compare_date_to']->value;?>
" data-date-format="<?php echo $_smarty_tpl->tpl_vars['date_format']->value;?>
"
tabindex="5" />
</div>
</div>
<div class='form-date-actions'>
<button class='btn btn-link' type='button' id="datepicker-cancel" tabindex="7">
<i class='icon-remove'></i>
<?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
</button>
<button class='btn btn-default pull-right' type='submit' name="submitDateRange" tabindex="6">
<i class='icon-ok text-success'></i>
<?php echo smartyTranslate(array('s'=>'Apply'),$_smarty_tpl);?>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
translated_dates = {
days: ['<?php echo smartyTranslate(array('s'=>'Sunday','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Monday','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Tuesday','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Wednesday','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Thursday','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Friday','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Saturday','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Sunday','js'=>1),$_smarty_tpl);?>
'],
daysShort: ['<?php echo smartyTranslate(array('s'=>'Sun','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Mon','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Tue','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Wed','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Thu','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Fri','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Sat','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Sun','js'=>1),$_smarty_tpl);?>
'],
daysMin: ['<?php echo smartyTranslate(array('s'=>'Su','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Mo','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Tu','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'We','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Th','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Fr','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Sa','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Su','js'=>1),$_smarty_tpl);?>
'],
months: ['<?php echo smartyTranslate(array('s'=>'January','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'February','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'March','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'April','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'May','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'June','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'July','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'August','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'September','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'October','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'November','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'December','js'=>1),$_smarty_tpl);?>
'],
monthsShort: ['<?php echo smartyTranslate(array('s'=>'Jan','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Feb','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Mar','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Apr','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'May ','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Jun','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Jul','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Aug','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Sep','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Oct','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Nov','js'=>1),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'Dec','js'=>1),$_smarty_tpl);?>
']
};
</script>
<?php }} ?>

View File

@@ -0,0 +1,190 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:42:27
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/helpers/tree/tree_associated_categories.tpl" */ ?>
<?php /*%%SmartyHeaderCode:796184790568df3bbc21560-97154499%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1277af1799bcf7d18784e3fef86eeb8b3e564ba2' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/helpers/tree/tree_associated_categories.tpl',
1 => 1452142913,
2 => 'file',
),
),
'nocache_hash' => '796184790568df3bbc21560-97154499',
'function' =>
array (
),
'variables' =>
array (
'header' => 0,
'nodes' => 0,
'id' => 0,
'token' => 0,
'use_checkbox' => 0,
'use_search' => 0,
'selected_categories' => 0,
'imploded_selected_categories' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df3bbc83d48_44879124',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df3bbc83d48_44879124')) {function content_568df3bbc83d48_44879124($_smarty_tpl) {?>
<div class="panel">
<?php if (isset($_smarty_tpl->tpl_vars['header']->value)) {?><?php echo $_smarty_tpl->tpl_vars['header']->value;?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['nodes']->value)) {?>
<ul id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="cattree tree">
<?php echo $_smarty_tpl->tpl_vars['nodes']->value;?>
</ul>
<?php }?>
</div>
<script type="text/javascript">
var currentToken="<?php echo addslashes($_smarty_tpl->tpl_vars['token']->value);?>
";
var treeClickFunc = function() {
var loc = location.href;
if (loc.indexOf("&id_category") !== -1) {
loc = location.href.replace(
/&id_category=[0-9]*/, "&id_category="
+ $(this).val());
}
else {
loc = location.href + "&id_category="
+ $(this).val();
}
location.href = loc;
};
function addDefaultCategory(elem)
{
$('select#id_category_default').append('<option value="' + elem.val()+'">' + (elem.val() !=1 ? elem.parent().find('label').html() : home) + '</option>');
if ($('select#id_category_default option').length > 0)
{
$('select#id_category_default').closest('.form-group').show();
$('#no_default_category').hide();
}
}
<?php if (isset($_smarty_tpl->tpl_vars['use_checkbox']->value)&&$_smarty_tpl->tpl_vars['use_checkbox']->value==true) {?>
function checkAllAssociatedCategories($tree)
{
$tree.find(':input[type=checkbox]').each(function(){
$(this).prop('checked', true);
addDefaultCategory($(this));
$(this).parent().addClass('tree-selected');
});
}
function uncheckAllAssociatedCategories($tree)
{
$tree.find(':input[type=checkbox]').each(function(){
$(this).prop('checked', false);
$('select#id_category_default option[value='+$(this).val()+']').remove();
if ($('select#id_category_default option').length == 0)
{
$('select#id_category_default').closest('.form-group').hide();
$('#no_default_category').show();
}
$(this).parent().removeClass('tree-selected');
});
}
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['use_search']->value)&&$_smarty_tpl->tpl_vars['use_search']->value==true) {?>
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-categories-search').bind('typeahead:selected', function(obj, datum){
var match = $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').find(':input[value="'+datum.id_category+'"]').first();
if (match.length)
{
match.each(function(){
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
$(this).parents('ul.tree').each(function(){
$(this).show();
$(this).prev().find('.icon-folder-close').removeClass('icon-folder-close').addClass('icon-folder-open');
});
addDefaultCategory($(this));
}
);
}
else
{
var selected = [];
that = this;
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').find('.tree-selected input').each(
function()
{
selected.push($(this).val());
}
);
$.get(
'ajax-tab.php',
{controller:'AdminProducts',token:currentToken,action:'getCategoryTree', fullTree:1, selected:selected},
function(content) {
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').html(content);
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').tree('init');
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').find(':input[value="'+datum.id_category+'"]').each(function(){
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
$(this).parents('ul.tree').each(function(){
$(this).show();
$(this).prev().find('.icon-folder-close').removeClass('icon-folder-close').addClass('icon-folder-open');
});
full_loaded = true;
}
);
}
);
}
});
<?php }?>
$(document).ready(function(){
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').tree('collapseAll');
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').find(':input[type=radio]').click(treeClickFunc);
<?php if (isset($_smarty_tpl->tpl_vars['selected_categories']->value)) {?>
$('#no_default_category').hide();
<?php $_smarty_tpl->tpl_vars['imploded_selected_categories'] = new Smarty_variable(implode('","',$_smarty_tpl->tpl_vars['selected_categories']->value), null, 0);?>
var selected_categories = new Array("<?php echo $_smarty_tpl->tpl_vars['imploded_selected_categories']->value;?>
");
if (selected_categories.length > 1)
$('#expand-all-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').hide();
else
$('#collapse-all-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').hide();
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').find(':input').each(function(){
if ($.inArray($(this).val(), selected_categories) != -1)
{
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
$(this).parents('ul.tree').each(function(){
$(this).show();
$(this).prev().find('.icon-folder-close').removeClass('icon-folder-close').addClass('icon-folder-open');
});
}
});
<?php } else { ?>
$('#collapse-all-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').hide();
<?php }?>
});
</script>
<?php }} ?>

View File

@@ -0,0 +1,35 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/groups/helpers/tree/tree_node_item_radio.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1073598178568df21ae114f9-40956393%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1379c0a2b75c92107bce8fa64752c3e4ad9fda58' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/groups/helpers/tree/tree_node_item_radio.tpl',
1 => 1452142912,
2 => 'file',
),
),
'nocache_hash' => '1073598178568df21ae114f9-40956393',
'function' =>
array (
),
'variables' =>
array (
'node' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21ae221c7_87440585',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21ae221c7_87440585')) {function content_568df21ae221c7_87440585($_smarty_tpl) {?>
<li class="tree-item<?php if (isset($_smarty_tpl->tpl_vars['node']->value['disabled'])&&$_smarty_tpl->tpl_vars['node']->value['disabled']==true) {?> tree-item-disable<?php }?>">
<span class="tree-item-name">
<input type="radio" name="id_category" value="<?php echo $_smarty_tpl->tpl_vars['node']->value['id_category'];?>
"<?php if (isset($_smarty_tpl->tpl_vars['node']->value['disabled'])&&$_smarty_tpl->tpl_vars['node']->value['disabled']==true) {?> disabled="disabled"<?php }?> />
<i class="tree-dot"></i>
<label class="tree-toggler"><?php echo $_smarty_tpl->tpl_vars['node']->value['name'];?>
</label>
</span>
</li><?php }} ?>

View File

@@ -0,0 +1,39 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:42:17
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/helpers/tree/tree_toolbar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:674105659568df3b1c57f11-95058107%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'147b2987ab11c13d1bf1569e440a106fffa3978c' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/helpers/tree/tree_toolbar.tpl',
1 => 1452142913,
2 => 'file',
),
),
'nocache_hash' => '674105659568df3b1c57f11-95058107',
'function' =>
array (
),
'variables' =>
array (
'actions' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df3b1c8ce85_67534431',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df3b1c8ce85_67534431')) {function content_568df3b1c8ce85_67534431($_smarty_tpl) {?>
<div class="tree-actions pull-right">
<?php if (isset($_smarty_tpl->tpl_vars['actions']->value)) {?>
<?php $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['action']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) {
$_smarty_tpl->tpl_vars['action']->_loop = true;
?>
<?php echo $_smarty_tpl->tpl_vars['action']->value->render();?>
<?php } ?>
<?php }?>
</div><?php }} ?>

View File

@@ -0,0 +1,192 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:42:42
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/helpers/uploader/simple.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1641198382568d36fd733461-71374402%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'14b3c239107ef4d929457aefe5f82c084e1c3760' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/helpers/uploader/simple.tpl',
1 => 1452142887,
2 => 'file',
),
),
'nocache_hash' => '1641198382568d36fd733461-71374402',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d36fd80c553_42397244',
'variables' =>
array (
'files' => 0,
'file' => 0,
'show_thumbnail' => 0,
'id' => 0,
'max_files' => 0,
'name' => 0,
'multiple' => 0,
'size' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d36fd80c553_42397244')) {function content_568d36fd80c553_42397244($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['files']->value)&&count($_smarty_tpl->tpl_vars['files']->value)>0) {?>
<?php $_smarty_tpl->tpl_vars['show_thumbnail'] = new Smarty_variable(false, null, 0);?>
<?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['file']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value) {
$_smarty_tpl->tpl_vars['file']->_loop = true;
?>
<?php if (isset($_smarty_tpl->tpl_vars['file']->value['image'])&&$_smarty_tpl->tpl_vars['file']->value['type']=='image') {?>
<?php $_smarty_tpl->tpl_vars['show_thumbnail'] = new Smarty_variable(true, null, 0);?>
<?php }?>
<?php } ?>
<?php if ($_smarty_tpl->tpl_vars['show_thumbnail']->value) {?>
<div class="form-group">
<div class="col-lg-12" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-images-thumbnails">
<?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['file']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value) {
$_smarty_tpl->tpl_vars['file']->_loop = true;
?>
<?php if (isset($_smarty_tpl->tpl_vars['file']->value['image'])&&$_smarty_tpl->tpl_vars['file']->value['type']=='image') {?>
<div>
<?php echo $_smarty_tpl->tpl_vars['file']->value['image'];?>
<?php if (isset($_smarty_tpl->tpl_vars['file']->value['size'])) {?><p><?php echo smartyTranslate(array('s'=>'File size'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['file']->value['size'];?>
kb</p><?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['file']->value['delete_url'])) {?>
<p>
<a class="btn btn-default" href="<?php echo $_smarty_tpl->tpl_vars['file']->value['delete_url'];?>
">
<i class="icon-trash"></i> <?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
</a>
</p>
<?php }?>
</div>
<?php }?>
<?php } ?>
</div>
</div>
<?php }?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['max_files']->value)&&count($_smarty_tpl->tpl_vars['files']->value)>=$_smarty_tpl->tpl_vars['max_files']->value) {?>
<div class="row">
<div class="alert alert-warning"><?php echo smartyTranslate(array('s'=>'You have reached the limit (%s) of files to upload, please remove files to continue uploading','sprintf'=>$_smarty_tpl->tpl_vars['max_files']->value),$_smarty_tpl);?>
</div>
</div>
<?php } else { ?>
<div class="form-group">
<div class="col-sm-6">
<input id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
" type="file" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?>[]<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?> multiple="multiple"<?php }?> class="hide" />
<div class="dummyfile input-group">
<span class="input-group-addon"><i class="icon-file"></i></span>
<input id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-name" type="text" name="filename" readonly />
<span class="input-group-btn">
<button id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-selectbutton" type="button" name="submitAddAttachments" class="btn btn-default">
<i class="icon-folder-open"></i> <?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&$_smarty_tpl->tpl_vars['multiple']->value) {?><?php echo smartyTranslate(array('s'=>'Add files'),$_smarty_tpl);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Add file'),$_smarty_tpl);?>
<?php }?>
</button>
<?php if ((!isset($_smarty_tpl->tpl_vars['multiple']->value)||!$_smarty_tpl->tpl_vars['multiple']->value)&&isset($_smarty_tpl->tpl_vars['files']->value)&&count($_smarty_tpl->tpl_vars['files']->value)==1&&isset($_smarty_tpl->tpl_vars['files']->value[0]['download_url'])) {?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['files']->value[0]['download_url'], ENT_QUOTES, 'UTF-8', true);?>
" class="btn btn-default">
<i class="icon-cloud-download"></i>
<?php if (isset($_smarty_tpl->tpl_vars['size']->value)) {?><?php echo smartyTranslate(array('s'=>'Download current file (%skb)','sprintf'=>$_smarty_tpl->tpl_vars['size']->value),$_smarty_tpl);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Download current file'),$_smarty_tpl);?>
<?php }?>
</a>
<?php }?>
</span>
</div>
</div>
</div>
<script type="text/javascript">
<?php if (isset($_smarty_tpl->tpl_vars['multiple']->value)&&isset($_smarty_tpl->tpl_vars['max_files']->value)) {?>
var <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_max_files = <?php echo $_smarty_tpl->tpl_vars['max_files']->value-count($_smarty_tpl->tpl_vars['files']->value);?>
;
<?php }?>
$(document).ready(function(){
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-selectbutton').click(function(e) {
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').trigger('click');
});
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-name').click(function(e) {
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').trigger('click');
});
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-name').on('dragenter', function(e) {
e.stopPropagation();
e.preventDefault();
});
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-name').on('dragover', function(e) {
e.stopPropagation();
e.preventDefault();
});
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-name').on('drop', function(e) {
e.preventDefault();
var files = e.originalEvent.dataTransfer.files;
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
')[0].files = files;
$(this).val(files[0].name);
});
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').change(function(e) {
if ($(this)[0].files !== undefined)
{
var files = $(this)[0].files;
var name = '';
$.each(files, function(index, value) {
name += value.name+', ';
});
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-name').val(name.slice(0, -2));
}
else // Internet Explorer 9 Compatibility
{
var name = $(this).val().split(/[\\/]/);
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-name').val(name[name.length-1]);
}
});
if (typeof <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_max_files !== 'undefined')
{
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').closest('form').on('submit', function(e) {
if ($('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
')[0].files.length > <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
_max_files) {
e.preventDefault();
alert('<?php echo smartyTranslate(array('s'=>sprintf('You can upload a maximum of %s files',$_smarty_tpl->tpl_vars['max_files']->value)),$_smarty_tpl);?>
');
}
});
}
});
</script>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,208 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/login/content.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1578700729568df21ae724a3-79097122%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'151b60f6349fb3cdf24e2bc0e7f0bb91bfe48ba9' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/login/content.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '1578700729568df21ae724a3-79097122',
'function' =>
array (
),
'variables' =>
array (
'img_dir' => 0,
'ps_version' => 0,
'errors' => 0,
'nbErrors' => 0,
'error' => 0,
'warningSslMessage' => 0,
'shop_name' => 0,
'wrong_folder_name' => 0,
'wrong_install_name' => 0,
'redirect' => 0,
'email' => 0,
'password' => 0,
'randomNb' => 0,
'adminUrl' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21aecd079_91819310',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21aecd079_91819310')) {function content_568df21aecd079_91819310($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/sumit/public_html/html/hotel-reservation-system/tools/smarty/plugins/modifier.date_format.php';
?>
<div id="login-panel">
<div id="login-header">
<h1 class="text-center">
<img id="logo" src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?>
prestashop@2x.png" width="123px" height="24px" alt="PrestaShop" />
</h1>
<div class="text-center"><?php echo $_smarty_tpl->tpl_vars['ps_version']->value;?>
</div>
<div id="error" class="hide alert alert-danger">
<?php if (isset($_smarty_tpl->tpl_vars['errors']->value)) {?>
<h4>
<?php if (isset($_smarty_tpl->tpl_vars['nbErrors']->value)&&$_smarty_tpl->tpl_vars['nbErrors']->value>1) {?>
<?php echo smartyTranslate(array('s'=>'There are %d errors.','sprintf'=>$_smarty_tpl->tpl_vars['nbErrors']->value),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'There is %d error.','sprintf'=>$_smarty_tpl->tpl_vars['nbErrors']->value),$_smarty_tpl);?>
<?php }?>
</h4>
<ol>
<?php $_smarty_tpl->tpl_vars["error"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["error"]->_loop = false;
$_from = $_smarty_tpl->tpl_vars['errors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["error"]->key => $_smarty_tpl->tpl_vars["error"]->value) {
$_smarty_tpl->tpl_vars["error"]->_loop = true;
?>
<li><?php echo $_smarty_tpl->tpl_vars['error']->value;?>
</li>
<?php } ?>
</ol>
<?php }?>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['warningSslMessage']->value)) {?>
<div class="alert alert-warning"><?php echo $_smarty_tpl->tpl_vars['warningSslMessage']->value;?>
</div>
<?php }?>
</div>
<div id="shop-img"><img src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?>
preston-login@2x.png" alt="<?php echo $_smarty_tpl->tpl_vars['shop_name']->value;?>
" width="69.5px" height="118.5px" /></div>
<div class="flip-container">
<div class="flipper">
<div class="front panel">
<h4 id="shop_name"><?php echo $_smarty_tpl->tpl_vars['shop_name']->value;?>
</h4>
<?php if (!isset($_smarty_tpl->tpl_vars['wrong_folder_name']->value)&&!isset($_smarty_tpl->tpl_vars['wrong_install_name']->value)) {?>
<form action="#" id="login_form" method="post">
<input type="hidden" name="redirect" id="redirect" value="<?php echo $_smarty_tpl->tpl_vars['redirect']->value;?>
"/>
<div class="form-group">
<label class="control-label" for="email"><?php echo smartyTranslate(array('s'=>'Email address'),$_smarty_tpl);?>
</label>
<input name="email" type="email" id="email" class="form-control" value="<?php if (isset($_smarty_tpl->tpl_vars['email']->value)) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['email']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php }?>" autofocus="autofocus" tabindex="1" placeholder="&#xf0e0 test@example.com" />
</div>
<div class="form-group">
<label class="control-label" for="passwd">
<?php echo smartyTranslate(array('s'=>'Password'),$_smarty_tpl);?>
</label>
<input name="passwd" type="password" id="passwd" class="form-control" value="<?php if (isset($_smarty_tpl->tpl_vars['password']->value)) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['password']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php }?>" tabindex="2" placeholder="&#xf084 <?php echo smartyTranslate(array('s'=>'Password'),$_smarty_tpl);?>
" />
</div>
<div class="form-group row-padding-top">
<button name="submitLogin" type="submit" tabindex="4" class="btn btn-primary btn-lg btn-block ladda-button" data-style="slide-up" data-spinner-color="white" >
<span class="ladda-label">
<?php echo smartyTranslate(array('s'=>'Log in'),$_smarty_tpl);?>
</span>
</button>
</div>
<div class="form-group">
<div id="remind-me" class="checkbox pull-left">
<label for="stay_logged_in">
<input name="stay_logged_in" type="checkbox" id="stay_logged_in" value="1" tabindex="3"/>
<?php echo smartyTranslate(array('s'=>'Stay logged in'),$_smarty_tpl);?>
</label>
</div>
<a href="#" class="show-forgot-password pull-right" >
<?php echo smartyTranslate(array('s'=>'I forgot my password'),$_smarty_tpl);?>
</a>
</div>
</form>
</div>
<div class="back panel">
<form action="#" id="forgot_password_form" method="post">
<div class="alert alert-info">
<h4><?php echo smartyTranslate(array('s'=>'Forgot your password?'),$_smarty_tpl);?>
</h4>
<p><?php echo smartyTranslate(array('s'=>'In order to receive your access code by email, please enter the address you provided during the registration process.'),$_smarty_tpl);?>
</p>
</div>
<div class="form-group">
<label class="control-label" for="email_forgot">
<?php echo smartyTranslate(array('s'=>'Email'),$_smarty_tpl);?>
</label>
<input type="text" name="email_forgot" id="email_forgot" class="form-control" autofocus="autofocus" tabindex="5" placeholder="&#xf0e0 test@example.com" />
</div>
<div class="panel-footer">
<button type="button" href="#" class="btn btn-default show-login-form" tabindex="7">
<i class="icon-caret-left"></i>
<?php echo smartyTranslate(array('s'=>'Back to login'),$_smarty_tpl);?>
</button>
<button class="btn btn-default pull-right" name="submitLogin" type="submit" tabindex="6">
<i class="icon-ok text-success"></i>
<?php echo smartyTranslate(array('s'=>'Send'),$_smarty_tpl);?>
</button>
</div>
</form>
</div>
</div>
<?php } else { ?>
<div class="alert alert-danger">
<p><?php echo smartyTranslate(array('s'=>'For security reasons, you cannot connect to the back office until you have:'),$_smarty_tpl);?>
</p>
<ul>
<?php if (isset($_smarty_tpl->tpl_vars['wrong_install_name']->value)&&$_smarty_tpl->tpl_vars['wrong_install_name']->value==true) {?>
<li><?php echo smartyTranslate(array('s'=>'deleted the /install folder'),$_smarty_tpl);?>
</li>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['wrong_folder_name']->value)&&$_smarty_tpl->tpl_vars['wrong_folder_name']->value==true) {?>
<li><?php echo smartyTranslate(array('s'=>'renamed the /admin folder (e.g. %s)','sprintf'=>$_smarty_tpl->tpl_vars['randomNb']->value),$_smarty_tpl);?>
</li>
<?php }?>
</ul>
<p>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<?php echo smartyTranslate(array('s'=>'Please then access this page by the new URL (e.g. %s)','sprintf'=>$_smarty_tpl->tpl_vars['adminUrl']->value),$_smarty_tpl);?>
</a>
</p>
</div>
<?php }?>
</div>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>"displayAdminLogin"),$_smarty_tpl);?>
<div id="login-footer">
<p class="text-center text-muted">
<a href="http://www.prestashop.com/" onclick="return !window.open(this.href);">
&copy; PrestaShop&#8482; 2007-<?php echo smarty_modifier_date_format(time(),"%Y");?>
- All rights reserved
</a>
</p>
<p class="text-center">
<a class="link-social link-twitter _blank" href="https://twitter.com/PrestaShop" title="Twitter">
<i class="icon-twitter"></i>
</a>
<a class="link-social link-facebook _blank" href="https://www.facebook.com/prestashop" title="Facebook">
<i class="icon-facebook"></i>
</a>
<a class="link-social link-github _blank" href="https://www.prestashop.com/github" title="Github">
<i class="icon-github"></i>
</a>
<a class="link-social link-google _blank" href="https://plus.google.com/+prestashop/" title="Google">
<i class="icon-google-plus"></i>
</a>
</p>
</div>
</div>
<?php }} ?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,53 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/modules/configuration_bar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1608816301568df21ad4a3c3-02780302%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'16186b576b8bf6873e77676e078436bb7324320f' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/modules/configuration_bar.tpl',
1 => 1452142889,
2 => 'file',
),
),
'nocache_hash' => '1608816301568df21ad4a3c3-02780302',
'function' =>
array (
),
'variables' =>
array (
'module_name' => 0,
'display_multishop_checkbox' => 0,
'module' => 0,
'current_url' => 0,
'shop_context' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21ad65d91_92778948',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21ad65d91_92778948')) {function content_568df21ad65d91_92778948($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_regex_replace')) include '/home/sumit/public_html/html/hotel-reservation-system/tools/smarty/plugins/modifier.regex_replace.php';
?>
<?php $_smarty_tpl->tpl_vars['module_name'] = new Smarty_variable(htmlspecialchars($_smarty_tpl->tpl_vars['module_name']->value, ENT_QUOTES, 'UTF-8', true), null, 0);?>
<?php $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); ?><?php echo (('/&module_name=').($_smarty_tpl->tpl_vars['module_name']->value)).('/');?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
<?php if (isset($_smarty_tpl->tpl_vars['display_multishop_checkbox']->value)&&$_smarty_tpl->tpl_vars['display_multishop_checkbox']->value) {?>
<div class="bootstrap panel">
<h3><i class="icon-cogs"></i> <?php echo smartyTranslate(array('s'=>'Configuration'),$_smarty_tpl);?>
</h3>
<input type="checkbox" name="activateModule" value="1"<?php if ($_smarty_tpl->tpl_vars['module']->value->isEnabledForShopContext()) {?> checked="checked"<?php }?>
onclick="location.href = '<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['current_url']->value,Smarty::$_smarty_vars['capture']['default'],'');?>
&amp;module_name=<?php echo $_smarty_tpl->tpl_vars['module_name']->value;?>
&amp;enable=' + (($(this).attr('checked')) ? 1 : 0);" />
<?php echo smartyTranslate(array('s'=>'Activate module for this shop context: %s.','sprintf'=>$_smarty_tpl->tpl_vars['shop_context']->value),$_smarty_tpl);?>
</div>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,91 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/customers/helpers/required_fields.tpl" */ ?>
<?php /*%%SmartyHeaderCode:452697010568df21a7951c4-21127695%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'163bebe0ebe2bcd6a1fdcbd82862181f56881bcf' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/customers/helpers/required_fields.tpl',
1 => 1452142907,
2 => 'file',
),
),
'nocache_hash' => '452697010568df21a7951c4-21127695',
'function' =>
array (
),
'variables' =>
array (
'current' => 0,
'token' => 0,
'table_fields' => 0,
'field' => 0,
'required_class_fields' => 0,
'required_fields' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21a7b2ed5_56220955',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21a7b2ed5_56220955')) {function content_568df21a7b2ed5_56220955($_smarty_tpl) {?>
<a class="btn btn-default" href="#" onclick="if ($('.requiredFieldsParameters:visible').length == 0) $('.requiredFieldsParameters').slideDown('slow'); else $('.requiredFieldsParameters').slideUp('slow'); return false;">
<i class="icon-plus-sign"></i> <?php echo smartyTranslate(array('s'=>'Set required fields for this section'),$_smarty_tpl);?>
</a>
<div class="clearfix">&nbsp;</div>
<div style="display:none" class="panel requiredFieldsParameters">
<h3><i class="icon-asterisk"></i> <?php echo smartyTranslate(array('s'=>'Required Fields'),$_smarty_tpl);?>
</h3>
<form name="updateFields" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;submitFields=1&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post">
<div class="alert alert-info">
<?php echo smartyTranslate(array('s'=>'Select the fields you would like to be required for this section.'),$_smarty_tpl);?>
<br/>
<?php echo smartyTranslate(array('s'=>'Please make sure you are complying with the opt-in legislation applicable in your country.'),$_smarty_tpl);?>
</div>
<div class="row">
<table class="table">
<thead>
<tr>
<th class="fixed-width-xs">
<input type="checkbox" onclick="checkDelBoxes(this.form, 'fieldsBox[]', this.checked)" class="noborder" name="checkme">
</th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Field Name'),$_smarty_tpl);?>
</span></th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['table_fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
$_smarty_tpl->tpl_vars['field']->_loop = true;
?>
<?php if (!in_array($_smarty_tpl->tpl_vars['field']->value,$_smarty_tpl->tpl_vars['required_class_fields']->value)) {?>
<tr>
<td class="noborder">
<input type="checkbox" name="fieldsBox[]" value="<?php echo $_smarty_tpl->tpl_vars['field']->value;?>
" <?php if (in_array($_smarty_tpl->tpl_vars['field']->value,$_smarty_tpl->tpl_vars['required_fields']->value)) {?> checked="checked"<?php }?> />
</td>
<td>
<?php echo $_smarty_tpl->tpl_vars['field']->value;?>
</td>
</tr>
<?php }?>
<?php } ?>
</tbody>
</table>
</div>
<div class="panel-footer">
<button name="submitFields" type="submit" class="btn btn-default pull-right">
<i class="process-icon-save "></i> <span><?php echo smartyTranslate(array('s'=>'Save'),$_smarty_tpl);?>
</span>
</button>
</div>
</form>
</div>
<?php }} ?>

View File

@@ -0,0 +1,33 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/tree/tree_header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1741223268568df218b839b6-45617690%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'169b207f87b2cd866f155a4702160913c8d32a91' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/tree/tree_header.tpl',
1 => 1452142887,
2 => 'file',
),
),
'nocache_hash' => '1741223268568df218b839b6-45617690',
'function' =>
array (
),
'variables' =>
array (
'title' => 0,
'toolbar' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df218b8dca3_93386362',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df218b8dca3_93386362')) {function content_568df218b8dca3_93386362($_smarty_tpl) {?>
<div class="tree-panel-heading-controls clearfix">
<?php if (isset($_smarty_tpl->tpl_vars['title']->value)) {?><i class="icon-tag"></i>&nbsp;<?php echo smartyTranslate(array('s'=>$_smarty_tpl->tpl_vars['title']->value),$_smarty_tpl);?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['toolbar']->value)) {?><?php echo $_smarty_tpl->tpl_vars['toolbar']->value;?>
<?php }?>
</div><?php }} ?>

View File

@@ -0,0 +1,136 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:41:12
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/footer.tpl" */ ?>
<?php /*%%SmartyHeaderCode:294866652568d3caad0a3d0-82841809%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'193a9feaf6eeac5cbe5dbb587ae69cd776a967f9' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/footer.tpl',
1 => 1452142870,
2 => 'file',
),
),
'nocache_hash' => '294866652568d3caad0a3d0-82841809',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d3caad51121_98186710',
'variables' =>
array (
'display_footer' => 0,
'timer_start' => 0,
'lang_iso' => 0,
'host_mode' => 0,
'iso_is_fr' => 0,
'php_errors' => 0,
'modals' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d3caad51121_98186710')) {function content_568d3caad51121_98186710($_smarty_tpl) {?>
</div>
</div>
<?php if ($_smarty_tpl->tpl_vars['display_footer']->value) {?>
<div id="footer" class="bootstrap hide">
<div class="col-sm-2 hidden-xs">
<a href="http://www.prestashop.com/" class="_blank">PrestaShop&trade;</a>
-
<span id="footer-load-time"><i class="icon-time" title="<?php echo smartyTranslate(array('s'=>'Load time: '),$_smarty_tpl);?>
"></i> <?php echo number_format(microtime(true)-$_smarty_tpl->tpl_vars['timer_start']->value,3,'.','');?>
s</span>
</div>
<div class="col-sm-2 hidden-xs">
<div class="social-networks">
<a class="link-social link-twitter _blank" href="https://twitter.com/PrestaShop" title="Twitter">
<i class="icon-twitter"></i>
</a>
<a class="link-social link-facebook _blank" href="https://www.facebook.com/prestashop" title="Facebook">
<i class="icon-facebook"></i>
</a>
<a class="link-social link-github _blank" href="https://www.prestashop.com/github" title="Github">
<i class="icon-github"></i>
</a>
<a class="link-social link-google _blank" href="https://plus.google.com/+prestashop/" title="Google">
<i class="icon-google-plus"></i>
</a>
</div>
</div>
<div class="col-sm-5">
<div class="footer-contact">
<a href="http://www.prestashop.com/en/contact_us?utm_source=back-office&amp;utm_medium=footer&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="footer_link _blank">
<i class="icon-envelope"></i>
<?php echo smartyTranslate(array('s'=>'Contact'),$_smarty_tpl);?>
</a>
/&nbsp;
<a href="http://forge.prestashop.com/?utm_source=back-office&amp;utm_medium=footer&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="footer_link _blank">
<i class="icon-bug"></i>
<?php echo smartyTranslate(array('s'=>'Bug Tracker'),$_smarty_tpl);?>
</a>
/&nbsp;
<a href="http://www.prestashop.com/forums/?utm_source=back-office&amp;utm_medium=footer&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="footer_link _blank">
<i class="icon-comments"></i>
<?php echo smartyTranslate(array('s'=>'Forum'),$_smarty_tpl);?>
</a>
/&nbsp;
<a href="http://addons.prestashop.com/?utm_source=back-office&amp;utm_medium=footer&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="footer_link _blank">
<i class="icon-puzzle-piece"></i>
<?php echo smartyTranslate(array('s'=>'Addons'),$_smarty_tpl);?>
</a>
/&nbsp;
<a href="http://www.prestashop.com/en/training-prestashop?utm_source=back-office&amp;utm_medium=footer&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="footer_link _blank">
<i class="icon-book"></i>
<?php echo smartyTranslate(array('s'=>'Training'),$_smarty_tpl);?>
</a>
<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>
/&nbsp;
<a href="http://status.prestashop.com/" class="footer_link _blank">
<i class="icon-circle status-page-dot"></i>
<span class="status-page-description"></span>
</a>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['iso_is_fr']->value&&!$_smarty_tpl->tpl_vars['host_mode']->value) {?>
<p>Questions • Renseignements • Formations :
<strong>+33 (0)1.40.18.30.04</strong>
</p>
<?php }?>
</div>
</div>
<div class="col-sm-3">
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>"displayBackOfficeFooter"),$_smarty_tpl);?>
</div>
<div id="go-top" class="hide"><i class="icon-arrow-up"></i></div>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['php_errors']->value)) {?>
<?php echo $_smarty_tpl->getSubTemplate ("error.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['modals']->value)) {?>
<div class="bootstrap">
<?php echo $_smarty_tpl->tpl_vars['modals']->value;?>
</div>
<?php }?>
</body>
</html>
<?php }} ?>

View File

@@ -0,0 +1,33 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:29
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/list/list_action_supply_order_receipt.tpl" */ ?>
<?php /*%%SmartyHeaderCode:155635659568df219c98307-21412801%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'19611aee11b80d31d3cbdb5f0ae1ee22a901afdf' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/list/list_action_supply_order_receipt.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '155635659568df219c98307-21412801',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df219ca23a6_17527506',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df219ca23a6_17527506')) {function content_568df219ca23a6_17527506($_smarty_tpl) {?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="edit btn btn-default" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<i class="icon-truck"></i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
</a><?php }} ?>

View File

@@ -0,0 +1,97 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:31
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/orders/current_cart_details_data.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1248650813568df21bc50835-15676321%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1a8340ef853fee83d39d5f97a381ccd979a51687' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/orders/current_cart_details_data.tpl',
1 => 1452142889,
2 => 'file',
),
),
'nocache_hash' => '1248650813568df21bc50835-15676321',
'function' =>
array (
),
'variables' =>
array (
'cart' => 0,
'cart_detail_data' => 0,
'data' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21bc8ba61_84413623',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21bc8ba61_84413623')) {function content_568df21bc8ba61_84413623($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/sumit/public_html/html/hotel-reservation-system/tools/smarty/plugins/modifier.date_format.php';
?><div class="panel form-horizontal" id="customer_cart_details">
<div class="panel-heading">
<i class="icon-shopping-cart"></i>
<?php echo smartyTranslate(array('s'=>'Cart Details'),$_smarty_tpl);?>
</div>
<div class="row">
<div class="col-lg-12">
<table class="table" id="customer_cart_details_table">
<thead>
<tr>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Room No.'),$_smarty_tpl);?>
</span></th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Room Image'),$_smarty_tpl);?>
</th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Room Type'),$_smarty_tpl);?>
</span></th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Duration'),$_smarty_tpl);?>
</span></th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Price'),$_smarty_tpl);?>
</span></th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Action'),$_smarty_tpl);?>
</span></th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['curr_id'] = new Smarty_variable(intval($_smarty_tpl->tpl_vars['cart']->value->id_currency), null, 0);?>
<?php if ($_smarty_tpl->tpl_vars['cart_detail_data']->value) {?>
<?php $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['cart_detail_data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value) {
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['data']->value['room_num'];?>
</td>
<td><img src="<?php echo $_smarty_tpl->tpl_vars['data']->value['image_link'];?>
" title="Room image" /></td>
<td><?php echo $_smarty_tpl->tpl_vars['data']->value['room_type'];?>
</td>
<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['data']->value['date_from'],"%d %b %Y");?>
&nbsp-&nbsp <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['data']->value['date_to'],"%d %b %Y");?>
</td>
<td id="cart_detail_data_price_<?php echo $_smarty_tpl->tpl_vars['data']->value['id'];?>
"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['data']->value['amt_with_qty']),$_smarty_tpl);?>
</td>
<td>
<button class="btn btn-primary delete_hotel_cart_data" data-id_room=<?php echo $_smarty_tpl->tpl_vars['data']->value['id_room'];?>
data-id_product=<?php echo $_smarty_tpl->tpl_vars['data']->value['id_product'];?>
data-id = <?php echo $_smarty_tpl->tpl_vars['data']->value['id'];?>
data-id_cart = <?php echo $_smarty_tpl->tpl_vars['data']->value['id_cart'];?>
data-date_to = <?php echo $_smarty_tpl->tpl_vars['data']->value['date_to'];?>
data-date_from = <?php echo $_smarty_tpl->tpl_vars['data']->value['date_from'];?>
><i class="icon-trash"></i>&nbsp<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
</button>
</td>
</tr>
<?php } ?>
<?php } else { ?>
<tr>
<td><?php echo smartyTranslate(array('s'=>'No Data Found.'),$_smarty_tpl);?>
</td>
</tr>
<?php }?>
</tbody>
</table>
</div>
</div>
</div><?php }} ?>

View File

@@ -0,0 +1,190 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:32
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/products/helpers/tree/tree_associated_categories.tpl" */ ?>
<?php /*%%SmartyHeaderCode:41376888568df21c224299-46557456%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1b3b439b4506efd7b09714014351be2e028138e0' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/products/helpers/tree/tree_associated_categories.tpl',
1 => 1452142913,
2 => 'file',
),
),
'nocache_hash' => '41376888568df21c224299-46557456',
'function' =>
array (
),
'variables' =>
array (
'header' => 0,
'nodes' => 0,
'id' => 0,
'token' => 0,
'use_checkbox' => 0,
'use_search' => 0,
'selected_categories' => 0,
'imploded_selected_categories' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21c2870c6_83258026',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21c2870c6_83258026')) {function content_568df21c2870c6_83258026($_smarty_tpl) {?>
<div class="panel">
<?php if (isset($_smarty_tpl->tpl_vars['header']->value)) {?><?php echo $_smarty_tpl->tpl_vars['header']->value;?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['nodes']->value)) {?>
<ul id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="cattree tree">
<?php echo $_smarty_tpl->tpl_vars['nodes']->value;?>
</ul>
<?php }?>
</div>
<script type="text/javascript">
var currentToken="<?php echo addslashes($_smarty_tpl->tpl_vars['token']->value);?>
";
var treeClickFunc = function() {
var loc = location.href;
if (loc.indexOf("&id_category") !== -1) {
loc = location.href.replace(
/&id_category=[0-9]*/, "&id_category="
+ $(this).val());
}
else {
loc = location.href + "&id_category="
+ $(this).val();
}
location.href = loc;
};
function addDefaultCategory(elem)
{
$('select#id_category_default').append('<option value="' + elem.val()+'">' + (elem.val() !=1 ? elem.parent().find('label').html() : home) + '</option>');
if ($('select#id_category_default option').length > 0)
{
$('select#id_category_default').closest('.form-group').show();
$('#no_default_category').hide();
}
}
<?php if (isset($_smarty_tpl->tpl_vars['use_checkbox']->value)&&$_smarty_tpl->tpl_vars['use_checkbox']->value==true) {?>
function checkAllAssociatedCategories($tree)
{
$tree.find(':input[type=checkbox]').each(function(){
$(this).prop('checked', true);
addDefaultCategory($(this));
$(this).parent().addClass('tree-selected');
});
}
function uncheckAllAssociatedCategories($tree)
{
$tree.find(':input[type=checkbox]').each(function(){
$(this).prop('checked', false);
$('select#id_category_default option[value='+$(this).val()+']').remove();
if ($('select#id_category_default option').length == 0)
{
$('select#id_category_default').closest('.form-group').hide();
$('#no_default_category').show();
}
$(this).parent().removeClass('tree-selected');
});
}
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['use_search']->value)&&$_smarty_tpl->tpl_vars['use_search']->value==true) {?>
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-categories-search').bind('typeahead:selected', function(obj, datum){
var match = $('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').find(':input[value="'+datum.id_category+'"]').first();
if (match.length)
{
match.each(function(){
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
$(this).parents('ul.tree').each(function(){
$(this).show();
$(this).prev().find('.icon-folder-close').removeClass('icon-folder-close').addClass('icon-folder-open');
});
addDefaultCategory($(this));
}
);
}
else
{
var selected = [];
that = this;
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').find('.tree-selected input').each(
function()
{
selected.push($(this).val());
}
);
$.get(
'ajax-tab.php',
{controller:'AdminProducts',token:currentToken,action:'getCategoryTree', fullTree:1, selected:selected},
function(content) {
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').html(content);
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').tree('init');
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').find(':input[value="'+datum.id_category+'"]').each(function(){
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
$(this).parents('ul.tree').each(function(){
$(this).show();
$(this).prev().find('.icon-folder-close').removeClass('icon-folder-close').addClass('icon-folder-open');
});
full_loaded = true;
}
);
}
);
}
});
<?php }?>
$(document).ready(function(){
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').tree('collapseAll');
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').find(':input[type=radio]').click(treeClickFunc);
<?php if (isset($_smarty_tpl->tpl_vars['selected_categories']->value)) {?>
$('#no_default_category').hide();
<?php $_smarty_tpl->tpl_vars['imploded_selected_categories'] = new Smarty_variable(implode('","',$_smarty_tpl->tpl_vars['selected_categories']->value), null, 0);?>
var selected_categories = new Array("<?php echo $_smarty_tpl->tpl_vars['imploded_selected_categories']->value;?>
");
if (selected_categories.length > 1)
$('#expand-all-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').hide();
else
$('#collapse-all-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').hide();
$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').find(':input').each(function(){
if ($.inArray($(this).val(), selected_categories) != -1)
{
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
$(this).parents('ul.tree').each(function(){
$(this).show();
$(this).prev().find('.icon-folder-close').removeClass('icon-folder-close').addClass('icon-folder-open');
});
}
});
<?php } else { ?>
$('#collapse-all-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
').hide();
<?php }?>
});
</script>
<?php }} ?>

View File

@@ -0,0 +1,164 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:31
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/orders/_new_product.tpl" */ ?>
<?php /*%%SmartyHeaderCode:697624829568df21b68d867-16688372%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1b3fcbd9f8ad767f639e9bf98d72f2ec85eed774' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/orders/_new_product.tpl',
1 => 1452142889,
2 => 'file',
),
),
'nocache_hash' => '697624829568df21b68d867-16688372',
'function' =>
array (
),
'variables' =>
array (
'currency' => 0,
'order' => 0,
'display_warehouse' => 0,
'invoices_collection' => 0,
'invoice' => 0,
'current_id_lang' => 0,
'carrier' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21b6de137_66389558',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21b6de137_66389558')) {function content_568df21b6de137_66389558($_smarty_tpl) {?>
<tr id="new_product" style="display:none">
<td style="display:none;" colspan="2">
<input type="hidden" id="add_product_product_id" name="add_product[product_id]" value="0" />
<div class="form-group">
<label><?php echo smartyTranslate(array('s'=>'Product:'),$_smarty_tpl);?>
</label>
<div class="input-group">
<input type="text" id="add_product_product_name" value=""/>
<div class="input-group-addon">
<i class="icon-search"></i>
</div>
</div>
</div>
<div id="add_product_product_attribute_area" class="form-group" style="display: none;">
<label><?php echo smartyTranslate(array('s'=>'Combinations'),$_smarty_tpl);?>
</label>
<select name="add_product[product_attribute_id]" id="add_product_product_attribute_id"></select>
</div>
<div id="add_product_product_warehouse_area" class="form-group" style="display: none;">
<label><?php echo smartyTranslate(array('s'=>'Warehouse'),$_smarty_tpl);?>
</label>
<select id="add_product_warehouse" name="add_product_warehouse"></select>
</div>
</td>
<td style="display:none;">
<div class="row">
<div class="input-group fixed-width-xl">
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2) {?><div class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php echo smartyTranslate(array('s'=>'tax excl.'),$_smarty_tpl);?>
</div><?php }?>
<input type="text" name="add_product[product_price_tax_excl]" id="add_product_product_price_tax_excl" value="" disabled="disabled" />
<?php if (!($_smarty_tpl->tpl_vars['currency']->value->format%2)) {?><div class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php echo smartyTranslate(array('s'=>'tax excl.'),$_smarty_tpl);?>
</div><?php }?>
</div>
</div>
<br/>
<div class="row">
<div class="input-group fixed-width-xl">
<?php if ($_smarty_tpl->tpl_vars['currency']->value->format%2) {?><div class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php echo smartyTranslate(array('s'=>'tax incl.'),$_smarty_tpl);?>
</div><?php }?>
<input type="text" name="add_product[product_price_tax_incl]" id="add_product_product_price_tax_incl" value="" disabled="disabled" />
<?php if (!($_smarty_tpl->tpl_vars['currency']->value->format%2)) {?><div class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->sign;?>
<?php echo smartyTranslate(array('s'=>'tax incl.'),$_smarty_tpl);?>
</div><?php }?>
</div>
</div>
</td>
<td style="display:none;" class="productQuantity">
<input type="number" class="form-control fixed-width-sm" name="add_product[product_quantity]" id="add_product_product_quantity" value="1" disabled="disabled" />
</td>
<?php if (($_smarty_tpl->tpl_vars['order']->value->hasBeenPaid())) {?><td style="display:none;" class="productQuantity"></td><?php }?>
<?php if ($_smarty_tpl->tpl_vars['display_warehouse']->value) {?><td></td><?php }?>
<?php if (($_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered())) {?><td style="display:none;" class="productQuantity"></td><?php }?>
<td style="display:none;" class="productQuantity" id="add_product_product_stock">0</td>
<td style="display:none;" id="add_product_product_total"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>0,'currency'=>$_smarty_tpl->tpl_vars['currency']->value->id),$_smarty_tpl);?>
</td>
<td style="display:none;" colspan="2">
<?php if (sizeof($_smarty_tpl->tpl_vars['invoices_collection']->value)) {?>
<select class="form-control" name="add_product[invoice]" id="add_product_product_invoice" disabled="disabled">
<optgroup class="existing" label="<?php echo smartyTranslate(array('s'=>'Existing'),$_smarty_tpl);?>
">
<?php $_smarty_tpl->tpl_vars['invoice'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['invoice']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['invoices_collection']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['invoice']->key => $_smarty_tpl->tpl_vars['invoice']->value) {
$_smarty_tpl->tpl_vars['invoice']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['invoice']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['invoice']->value->getInvoiceNumberFormatted($_smarty_tpl->tpl_vars['current_id_lang']->value);?>
</option>
<?php } ?>
</optgroup>
<optgroup label="<?php echo smartyTranslate(array('s'=>'New'),$_smarty_tpl);?>
">
<option value="0"><?php echo smartyTranslate(array('s'=>'Create a new invoice'),$_smarty_tpl);?>
</option>
</optgroup>
</select>
<?php }?>
</td>
<td style="display:none;">
<button type="button" class="btn btn-default" id="cancelAddProduct">
<i class="icon-remove text-danger"></i>
<?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
</button>
<button type="button" class="btn btn-default" id="submitAddProduct" disabled="disabled">
<i class="icon-ok text-success"></i>
<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
</button>
</td>
</tr>
<tr id="new_invoice" style="display:none">
<td colspan="10">
<h4><?php echo smartyTranslate(array('s'=>'New invoice information'),$_smarty_tpl);?>
</h4>
<div class="form-horizontal">
<div class="form-group">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Carrier'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<p class="form-control-static"><strong><?php echo $_smarty_tpl->tpl_vars['carrier']->value->name;?>
</strong></p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Shipping Cost'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<div class="checkbox">
<label>
<input type="checkbox" name="add_invoice[free_shipping]" value="1" />
<?php echo smartyTranslate(array('s'=>'Free shipping'),$_smarty_tpl);?>
</label>
<p class="help-block"><?php echo smartyTranslate(array('s'=>'If you don\'t select "Free shipping," the normal shipping cost will be applied.'),$_smarty_tpl);?>
</p>
</div>
</div>
</div>
</div>
</td>
</tr>
<?php }} ?>

View File

@@ -0,0 +1,138 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:34
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/layout-ajax.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2047921279568df21e1f76e5-44231202%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1b45c234e58ec472914abb8b32ff8d77bb6c1159' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/layout-ajax.tpl',
1 => 1452142870,
2 => 'file',
),
),
'nocache_hash' => '2047921279568df21e1f76e5-44231202',
'function' =>
array (
),
'variables' =>
array (
'json' => 0,
'status' => 0,
'confirmations' => 0,
'hasresult' => 0,
'informations' => 0,
'errors' => 0,
'warnings' => 0,
'page' => 0,
'conf' => 0,
'error' => 0,
'info' => 0,
'confirm' => 0,
'warning' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21e2aa9b0_31850789',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21e2aa9b0_31850789')) {function content_568df21e2aa9b0_31850789($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['json']->value)) {?>
{<?php if (isset($_smarty_tpl->tpl_vars['status']->value)&&is_string($_smarty_tpl->tpl_vars['status']->value)&&trim($_smarty_tpl->tpl_vars['status']->value)!='') {?><?php $_smarty_tpl->tpl_vars['hasresult'] = new Smarty_variable('ok', null, 0);?>"status" : "<?php echo $_smarty_tpl->tpl_vars['status']->value;?>
"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['confirmations']->value)&&count($_smarty_tpl->tpl_vars['confirmations']->value)>0) {?><?php if ($_smarty_tpl->tpl_vars['hasresult']->value=='ok') {?>,<?php }?><?php $_smarty_tpl->tpl_vars['hasresult'] = new Smarty_variable('ok', null, 0);?>"confirmations" : <?php echo $_smarty_tpl->tpl_vars['confirmations']->value;?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['informations']->value)&&count($_smarty_tpl->tpl_vars['informations']->value)>0) {?><?php if ($_smarty_tpl->tpl_vars['hasresult']->value=='ok') {?>,<?php }?><?php $_smarty_tpl->tpl_vars['hasresult'] = new Smarty_variable('ok', null, 0);?>"informations" : <?php echo $_smarty_tpl->tpl_vars['informations']->value;?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['errors']->value)&&count($_smarty_tpl->tpl_vars['errors']->value)>0) {?><?php if ($_smarty_tpl->tpl_vars['hasresult']->value=='ok') {?>,<?php }?><?php $_smarty_tpl->tpl_vars['hasresult'] = new Smarty_variable('ok', null, 0);?>"error" : <?php echo $_smarty_tpl->tpl_vars['errors']->value;?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['warnings']->value)&&count($_smarty_tpl->tpl_vars['warnings']->value)>0) {?><?php if ($_smarty_tpl->tpl_vars['hasresult']->value=='ok') {?>,<?php }?><?php $_smarty_tpl->tpl_vars['hasresult'] = new Smarty_variable('ok', null, 0);?>"warnings" : <?php echo $_smarty_tpl->tpl_vars['warnings']->value;?>
<?php }?><?php if ($_smarty_tpl->tpl_vars['hasresult']->value=='ok') {?>,<?php }?><?php $_smarty_tpl->tpl_vars['hasresult'] = new Smarty_variable('ok', null, 0);?>"content" : <?php echo $_smarty_tpl->tpl_vars['page']->value;?>
}
<?php } else { ?>
<?php if (isset($_smarty_tpl->tpl_vars['conf']->value)) {?>
<div class="alert alert-success">
<?php echo $_smarty_tpl->tpl_vars['conf']->value;?>
</div>
<?php }?>
<?php if (count($_smarty_tpl->tpl_vars['errors']->value)) {?>
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php if (count($_smarty_tpl->tpl_vars['errors']->value)==1) {?>
<?php echo $_smarty_tpl->tpl_vars['errors']->value[0];?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'%d errors','sprintf'=>count($_smarty_tpl->tpl_vars['errors']->value)),$_smarty_tpl);?>
<br/>
<ul>
<?php $_smarty_tpl->tpl_vars['error'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['error']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['errors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['error']->key => $_smarty_tpl->tpl_vars['error']->value) {
$_smarty_tpl->tpl_vars['error']->_loop = true;
?>
<li><?php echo $_smarty_tpl->tpl_vars['error']->value;?>
</li>
<?php } ?>
</ul>
<?php }?>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['informations']->value)&&count($_smarty_tpl->tpl_vars['informations']->value)&&$_smarty_tpl->tpl_vars['informations']->value) {?>
<div class="alert alert-info" style="display:block;">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php $_smarty_tpl->tpl_vars['info'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['info']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['informations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['info']->key => $_smarty_tpl->tpl_vars['info']->value) {
$_smarty_tpl->tpl_vars['info']->_loop = true;
?>
<?php echo $_smarty_tpl->tpl_vars['info']->value;?>
<br/>
<?php } ?>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['confirmations']->value)&&count($_smarty_tpl->tpl_vars['confirmations']->value)&&$_smarty_tpl->tpl_vars['confirmations']->value) {?>
<div class="alert alert-success" style="display:block;">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php $_smarty_tpl->tpl_vars['confirm'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['confirm']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['confirmations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['confirm']->key => $_smarty_tpl->tpl_vars['confirm']->value) {
$_smarty_tpl->tpl_vars['confirm']->_loop = true;
?>
<?php echo $_smarty_tpl->tpl_vars['confirm']->value;?>
<br />
<?php } ?>
</div>
<?php }?>
<?php if (count($_smarty_tpl->tpl_vars['warnings']->value)) {?>
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php if (count($_smarty_tpl->tpl_vars['warnings']->value)>1) {?>
<?php echo smartyTranslate(array('s'=>'There are %d warnings.','sprintf'=>count($_smarty_tpl->tpl_vars['warnings']->value)),$_smarty_tpl);?>
<span style="margin-left:20px;" id="labelSeeMore">
<a id="linkSeeMore" href="#" style="text-decoration:underline"><?php echo smartyTranslate(array('s'=>'Click here to see more'),$_smarty_tpl);?>
</a>
<a id="linkHide" href="#" style="text-decoration:underline;display:none"><?php echo smartyTranslate(array('s'=>'Hide warning'),$_smarty_tpl);?>
</a>
</span>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'There is %d warning.','sprintf'=>count($_smarty_tpl->tpl_vars['warnings']->value)),$_smarty_tpl);?>
<?php }?>
<ul style="display:<?php if (count($_smarty_tpl->tpl_vars['warnings']->value)>1) {?>none<?php } else { ?>block<?php }?>;" id="seeMore">
<?php $_smarty_tpl->tpl_vars['warning'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['warning']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['warnings']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['warning']->key => $_smarty_tpl->tpl_vars['warning']->value) {
$_smarty_tpl->tpl_vars['warning']->_loop = true;
?>
<li><?php echo $_smarty_tpl->tpl_vars['warning']->value;?>
</li>
<?php } ?>
</ul>
</div>
<?php }?>
<?php echo $_smarty_tpl->tpl_vars['page']->value;?>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,304 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/search/helpers/view/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:123609370568df21a173ca8-78427505%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1b9876951ff45c38705471fcefb09a30cae15039' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/search/helpers/view/view.tpl',
1 => 1452142913,
2 => 'file',
),
),
'nocache_hash' => '123609370568df21a173ca8-78427505',
'function' =>
array (
),
'variables' =>
array (
'query' => 0,
'nb_results' => 0,
'features' => 0,
'feature' => 0,
'val' => 0,
'key' => 0,
'modules' => 0,
'module' => 0,
'categories' => 0,
'category' => 0,
'products' => 0,
'customers' => 0,
'orders' => 0,
'addons' => 0,
'addon' => 0,
'lang_iso' => 0,
'host_mode' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21a25df27_39890326',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21a25df27_39890326')) {function content_568df21a25df27_39890326($_smarty_tpl) {?>
<script type="text/javascript">
$(function() {
$('#content .panel').highlight('<?php echo $_smarty_tpl->tpl_vars['query']->value;?>
');
});
</script>
<?php if ($_smarty_tpl->tpl_vars['query']->value) {?>
<h2>
<?php if (isset($_smarty_tpl->tpl_vars['nb_results']->value)&&$_smarty_tpl->tpl_vars['nb_results']->value==0) {?>
<h2><?php echo smartyTranslate(array('s'=>'There are no results matching your query "%s".','sprintf'=>$_smarty_tpl->tpl_vars['query']->value),$_smarty_tpl);?>
</h2>
<?php } elseif (isset($_smarty_tpl->tpl_vars['nb_results']->value)&&$_smarty_tpl->tpl_vars['nb_results']->value==1) {?>
<?php echo smartyTranslate(array('s'=>'1 result matches your query "%s".','sprintf'=>$_smarty_tpl->tpl_vars['query']->value),$_smarty_tpl);?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['nb_results']->value)) {?>
<?php echo smartyTranslate(array('s'=>'%d results match your query "%s".','sprintf'=>array(intval($_smarty_tpl->tpl_vars['nb_results']->value),$_smarty_tpl->tpl_vars['query']->value)),$_smarty_tpl);?>
<?php }?>
</h2>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['query']->value&&isset($_smarty_tpl->tpl_vars['nb_results']->value)&&$_smarty_tpl->tpl_vars['nb_results']->value) {?>
<?php if (isset($_smarty_tpl->tpl_vars['features']->value)) {?>
<div class="panel">
<h3>
<?php if (count($_smarty_tpl->tpl_vars['features']->value)==1) {?>
<?php echo smartyTranslate(array('s'=>'1 feature'),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'%d features','sprintf'=>count($_smarty_tpl->tpl_vars['features']->value)),$_smarty_tpl);?>
<?php }?>
</h3>
<table class="table">
<tbody>
<?php $_smarty_tpl->tpl_vars['feature'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['feature']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['feature']->key => $_smarty_tpl->tpl_vars['feature']->value) {
$_smarty_tpl->tpl_vars['feature']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['feature']->key;
?>
<?php $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['feature']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_smarty_tpl->tpl_vars['val']->index=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['val']->key;
$_smarty_tpl->tpl_vars['val']->index++;
$_smarty_tpl->tpl_vars['val']->first = $_smarty_tpl->tpl_vars['val']->index === 0;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['feature_list']['first'] = $_smarty_tpl->tpl_vars['val']->first;
?>
<tr>
<td><a href="<?php echo $_smarty_tpl->tpl_vars['val']->value['link'];?>
"<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['feature_list']['first']) {?>><strong><?php echo $_smarty_tpl->tpl_vars['key']->value;?>
</strong><?php }?></a></td>
<td><a href="<?php echo $_smarty_tpl->tpl_vars['val']->value['link'];?>
"><?php echo $_smarty_tpl->tpl_vars['val']->value['value'];?>
</a></td>
</tr>
<?php } ?>
<?php } ?>
</tbody>
</table>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['modules']->value)&&$_smarty_tpl->tpl_vars['modules']->value) {?>
<div class="panel">
<h3>
<?php if (count($_smarty_tpl->tpl_vars['modules']->value)==1) {?>
<?php echo smartyTranslate(array('s'=>'1 module'),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'%d modules','sprintf'=>count($_smarty_tpl->tpl_vars['modules']->value)),$_smarty_tpl);?>
<?php }?>
</h3>
<table class="table">
<tbody>
<?php $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['modules']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
$_smarty_tpl->tpl_vars['module']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['module']->key;
?>
<tr>
<td><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->linkto, ENT_QUOTES, 'UTF-8', true);?>
"><strong><?php echo $_smarty_tpl->tpl_vars['module']->value->displayName;?>
</strong></a></td>
<td><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->linkto, ENT_QUOTES, 'UTF-8', true);?>
"><?php echo $_smarty_tpl->tpl_vars['module']->value->description;?>
</a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['categories']->value)&&$_smarty_tpl->tpl_vars['categories']->value) {?>
<div class="panel">
<h3>
<?php if (count($_smarty_tpl->tpl_vars['categories']->value)==1) {?>
<?php echo smartyTranslate(array('s'=>'1 category'),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'%d categories','sprintf'=>count($_smarty_tpl->tpl_vars['categories']->value)),$_smarty_tpl);?>
<?php }?>
</h3>
<table class="table" style="border-spacing : 0; border-collapse : collapse;">
<?php $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['category']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['categories']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value) {
$_smarty_tpl->tpl_vars['category']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['category']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['category']->value;?>
</td>
</tr>
<?php } ?>
</table>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['products']->value)&&$_smarty_tpl->tpl_vars['products']->value) {?>
<div class="panel">
<h3>
<?php if (count($_smarty_tpl->tpl_vars['products']->value)==1) {?>
<?php echo smartyTranslate(array('s'=>'1 product'),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'%d products','sprintf'=>count($_smarty_tpl->tpl_vars['products']->value)),$_smarty_tpl);?>
<?php }?>
</h3>
<?php echo $_smarty_tpl->tpl_vars['products']->value;?>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['customers']->value)&&$_smarty_tpl->tpl_vars['customers']->value) {?>
<div class="panel">
<h3>
<?php if (count($_smarty_tpl->tpl_vars['customers']->value)==1) {?>
<?php echo smartyTranslate(array('s'=>'1 customer'),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'%d customers','sprintf'=>count($_smarty_tpl->tpl_vars['customers']->value)),$_smarty_tpl);?>
<?php }?>
</h3>
<?php echo $_smarty_tpl->tpl_vars['customers']->value;?>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['orders']->value)&&$_smarty_tpl->tpl_vars['orders']->value) {?>
<div class="panel">
<h3>
<?php if (count($_smarty_tpl->tpl_vars['orders']->value)==1) {?>
<?php echo smartyTranslate(array('s'=>'1 order'),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'%d orders','sprintf'=>count($_smarty_tpl->tpl_vars['orders']->value)),$_smarty_tpl);?>
<?php }?>
</h3>
<?php echo $_smarty_tpl->tpl_vars['orders']->value;?>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['addons']->value)&&$_smarty_tpl->tpl_vars['addons']->value) {?>
<div class="panel">
<h3>
<?php if (count($_smarty_tpl->tpl_vars['addons']->value)==1) {?>
<?php echo smartyTranslate(array('s'=>'1 addon'),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'%d addons','sprintf'=>count($_smarty_tpl->tpl_vars['addons']->value)),$_smarty_tpl);?>
<?php }?>
</h3>
<table class="table">
<tbody>
<?php $_smarty_tpl->tpl_vars['addon'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['addon']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['addons']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['addon']->key => $_smarty_tpl->tpl_vars['addon']->value) {
$_smarty_tpl->tpl_vars['addon']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['addon']->key;
?>
<tr>
<td><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addon']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
&amp;utm_source=back-office&amp;utm_medium=search&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="_blank"><strong><i class="icon-external-link-sign"></i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addon']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
</strong></a></td>
<td><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addon']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
&amp;utm_source=back-office&amp;utm_medium=search&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="_blank"><?php if (is_string($_smarty_tpl->tpl_vars['addon']->value['description'])) {?><?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['addon']->value['description'],256,'...'), ENT_QUOTES, 'UTF-8', true);?>
<?php }?></a></td>
</tr>
<?php } ?>
</tbody>
<tfoot>
<tr>
<td colspan="2" class="text-center"><a href="http://addons.prestashop.com/search.php?search_query=<?php echo urlencode($_smarty_tpl->tpl_vars['query']->value);?>
&amp;utm_source=back-office&amp;utm_medium=search&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="_blank"><strong><?php echo smartyTranslate(array('s'=>'Show more results...'),$_smarty_tpl);?>
</strong></a></td>
</tr>
</tfoot>
</table>
</div>
<?php }?>
<?php }?>
<div class="row">
<div class="col-lg-4">
<div class="panel">
<h3><?php echo smartyTranslate(array('s'=>'Search doc.prestashop.com'),$_smarty_tpl);?>
</h3>
<a href="http://doc.prestashop.com/dosearchsite.action?spaceSearch=true&amp;queryString=<?php echo $_smarty_tpl->tpl_vars['query']->value;?>
&amp;utm_source=back-office&amp;utm_medium=search&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="btn btn-default _blank"><?php echo smartyTranslate(array('s'=>'Go to the documentation'),$_smarty_tpl);?>
</a>
</div>
</div>
<div class="col-lg-4">
<div class="panel">
<h3><?php echo smartyTranslate(array('s'=>'Search addons.prestashop.com'),$_smarty_tpl);?>
</h3>
<a href="http://addons.prestashop.com/search.php?search_query=<?php echo $_smarty_tpl->tpl_vars['query']->value;?>
&amp;utm_source=back-office&amp;utm_medium=search&amp;utm_campaign=back-office-<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['lang_iso']->value, 'UTF-8');?>
&amp;utm_content=<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>cloud<?php } else { ?>download<?php }?>" class="btn btn-default _blank"><?php echo smartyTranslate(array('s'=>'Go to Addons'),$_smarty_tpl);?>
</a>
</div>
</div>
<div class="col-lg-4">
<div class="panel">
<h3><?php echo smartyTranslate(array('s'=>'Search prestashop.com forum'),$_smarty_tpl);?>
</h3>
<a href="https://www.google.fr/search?q=site%3Aprestashop.com%2Fforums%2F+<?php echo $_smarty_tpl->tpl_vars['query']->value;?>
" class="btn btn-default _blank"><?php echo smartyTranslate(array('s'=>'Go to the Forum'),$_smarty_tpl);?>
</a>
</div>
</div>
</div>
<?php }} ?>

View File

@@ -0,0 +1,121 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/modules/filters.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2075380255568df21ab710d3-76305061%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1c550d1201288528a258d2c9aa591ff3536025d1' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/modules/filters.tpl',
1 => 1452142889,
2 => 'file',
),
),
'nocache_hash' => '2075380255568df21ab710d3-76305061',
'function' =>
array (
),
'variables' =>
array (
'showInstalledModules' => 0,
'showEnabledModules' => 0,
'showTypeModules' => 0,
'logged_on_addons' => 0,
'list_modules_authors' => 0,
'module_author' => 0,
'status' => 0,
'showCountryModules' => 0,
'nameCountryDefault' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21abd4f18_05483735',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21abd4f18_05483735')) {function content_568df21abd4f18_05483735($_smarty_tpl) {?>
<!--start filter module-->
<form method="post" class="form-inline">
<div class="row">
<div class="col-lg-8">
<div class="form-group">
<label><?php echo smartyTranslate(array('s'=>'Filter by'),$_smarty_tpl);?>
</label>
<select name="module_install" id="module_install_filter" class="form-control <?php if (isset($_smarty_tpl->tpl_vars['showInstalledModules']->value)&&$_smarty_tpl->tpl_vars['showInstalledModules']->value&&$_smarty_tpl->tpl_vars['showInstalledModules']->value!='installedUninstalled') {?>active<?php }?>">
<option value="installedUninstalled" <?php if ($_smarty_tpl->tpl_vars['showInstalledModules']->value=='installedUninstalled') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Installed & Not Installed'),$_smarty_tpl);?>
</option>
<option value="installed" <?php if ($_smarty_tpl->tpl_vars['showInstalledModules']->value=='installed') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Installed Modules'),$_smarty_tpl);?>
</option>
<option value="uninstalled" <?php if ($_smarty_tpl->tpl_vars['showInstalledModules']->value=='uninstalled') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Modules Not Installed '),$_smarty_tpl);?>
</option>
</select>
</div>
<div class="form-group">
<select name="module_status" id="module_status_filter" class="form-control <?php if (isset($_smarty_tpl->tpl_vars['showEnabledModules']->value)&&$_smarty_tpl->tpl_vars['showEnabledModules']->value&&$_smarty_tpl->tpl_vars['showEnabledModules']->value!='enabledDisabled') {?>active<?php }?>">
<option value="enabledDisabled" <?php if ($_smarty_tpl->tpl_vars['showEnabledModules']->value=='enabledDisabled') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Enabled & Disabled'),$_smarty_tpl);?>
</option>
<option value="enabled" <?php if ($_smarty_tpl->tpl_vars['showEnabledModules']->value=='enabled') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Enabled Modules'),$_smarty_tpl);?>
</option>
<option value="disabled" <?php if ($_smarty_tpl->tpl_vars['showEnabledModules']->value=='disabled') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Disabled Modules'),$_smarty_tpl);?>
</option>
</select>
</div>
</div>
<div class="col-lg-4">
<div class="form-group">
<label><?php echo smartyTranslate(array('s'=>'Authors'),$_smarty_tpl);?>
</label>
<select class="filter <?php if (isset($_smarty_tpl->tpl_vars['showTypeModules']->value)&&$_smarty_tpl->tpl_vars['showTypeModules']->value&&$_smarty_tpl->tpl_vars['showTypeModules']->value!='allModules') {?>active<?php }?>" name="module_type" id="module_type_filter">
<!-- <option value="allModules" <?php if ($_smarty_tpl->tpl_vars['showTypeModules']->value=='allModules') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'All Modules'),$_smarty_tpl);?>
</option>
<option value="nativeModules" <?php if ($_smarty_tpl->tpl_vars['showTypeModules']->value=='nativeModules') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Free Modules'),$_smarty_tpl);?>
</option>
<option value="partnerModules" <?php if ($_smarty_tpl->tpl_vars['showTypeModules']->value=='partnerModules') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Partner Modules (Free)'),$_smarty_tpl);?>
</option>
<option value="mustHaveModules" <?php if ($_smarty_tpl->tpl_vars['showTypeModules']->value=='mustHaveModules') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Must Have'),$_smarty_tpl);?>
</option>
<?php if (isset($_smarty_tpl->tpl_vars['logged_on_addons']->value)) {?><option value="addonsModules" <?php if ($_smarty_tpl->tpl_vars['showTypeModules']->value=='addonsModules') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Modules purchased on Addons'),$_smarty_tpl);?>
</option><?php }?> -->
<option value="allModules" <?php if ($_smarty_tpl->tpl_vars['showTypeModules']->value=='allModules') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'All authors'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['status'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['status']->_loop = false;
$_smarty_tpl->tpl_vars['module_author'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['list_modules_authors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['status']->key => $_smarty_tpl->tpl_vars['status']->value) {
$_smarty_tpl->tpl_vars['status']->_loop = true;
$_smarty_tpl->tpl_vars['module_author']->value = $_smarty_tpl->tpl_vars['status']->key;
?>
<option value="authorModules[<?php echo $_smarty_tpl->tpl_vars['module_author']->value;?>
]" <?php if ($_smarty_tpl->tpl_vars['status']->value=="selected") {?>selected<?php }?>><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['module_author']->value,20,'...');?>
</option>
<?php } ?>
<!-- <option value="otherModules" <?php if ($_smarty_tpl->tpl_vars['showTypeModules']->value=='otherModules') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Other Modules'),$_smarty_tpl);?>
</option> -->
</select>
</div>
</div>
</div>
<!-- <span>
<select class="filter fixed-width-lg" name="country_module_value" id="country_module_value_filter">
<option value="0" ><?php echo smartyTranslate(array('s'=>'All countries'),$_smarty_tpl);?>
</option>
<option value="1" <?php if ($_smarty_tpl->tpl_vars['showCountryModules']->value==1) {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Current country:'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['nameCountryDefault']->value;?>
</option>
</select>
</span> -->
<!-- <span class="pull-right">
<button class="btn btn-default " type="submit" name="resetFilterModules">
<i class="icon-eraser"></i>
<?php echo smartyTranslate(array('s'=>'Reset'),$_smarty_tpl);?>
</button>
<button class="btn btn-default " name="filterModules" id="filterModulesButton" type="submit">
<i class="icon-filter"></i>
<?php echo smartyTranslate(array('s'=>'Filter'),$_smarty_tpl);?>
</button>
</span> -->
</form>
<!--end filter module-->
<?php }} ?>

View File

@@ -0,0 +1,121 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/tree/tree_categories.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2036588145568df218b46561-81149094%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1de7f0b766ae836dbbc03cf2cdfb0a92f1855d4e' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/tree/tree_categories.tpl',
1 => 1452142887,
2 => 'file',
),
),
'nocache_hash' => '2036588145568df218b46561-81149094',
'function' =>
array (
),
'variables' =>
array (
'header' => 0,
'nodes' => 0,
'id' => 0,
'token' => 0,
'use_checkbox' => 0,
'use_search' => 0,
'selected_categories' => 0,
'imploded_selected_categories' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df218b824c5_72385025',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df218b824c5_72385025')) {function content_568df218b824c5_72385025($_smarty_tpl) {?>
<div class="panel">
<?php if (isset($_smarty_tpl->tpl_vars['header']->value)) {?><?php echo $_smarty_tpl->tpl_vars['header']->value;?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['nodes']->value)) {?>
<ul id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="cattree tree">
<?php echo $_smarty_tpl->tpl_vars['nodes']->value;?>
</ul>
<?php }?>
</div>
<script type="text/javascript">
var currentToken="<?php echo addslashes($_smarty_tpl->tpl_vars['token']->value);?>
";
<?php if (isset($_smarty_tpl->tpl_vars['use_checkbox']->value)&&$_smarty_tpl->tpl_vars['use_checkbox']->value==true) {?>
function checkAllAssociatedCategories($tree)
{
$tree.find(":input[type=checkbox]").each(
function()
{
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
}
);
}
function uncheckAllAssociatedCategories($tree)
{
$tree.find(":input[type=checkbox]").each(
function()
{
$(this).prop("checked", false);
$(this).parent().removeClass("tree-selected");
}
);
}
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['use_search']->value)&&$_smarty_tpl->tpl_vars['use_search']->value==true) {?>
$("#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
-categories-search").bind("typeahead:selected", function(obj, datum) {
$("#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
").find(":input").each(
function()
{
if ($(this).val() == datum.id_category)
{
<?php if ((!(isset($_smarty_tpl->tpl_vars['use_checkbox']->value)&&$_smarty_tpl->tpl_vars['use_checkbox']->value==true))) {?>
$("#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
label").removeClass("tree-selected");
<?php }?>
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
$(this).parents('ul.tree').each(function(){
$(this).show();
$(this).prev().find('.icon-folder-close').removeClass('icon-folder-close').addClass('icon-folder-open');
});
}
}
);
});
<?php }?>
$(document).ready(function () {
$("#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
").tree("collapseAll");
<?php if (isset($_smarty_tpl->tpl_vars['selected_categories']->value)) {?>
<?php $_smarty_tpl->tpl_vars['imploded_selected_categories'] = new Smarty_variable(implode('","',$_smarty_tpl->tpl_vars['selected_categories']->value), null, 0);?>
var selected_categories = new Array("<?php echo $_smarty_tpl->tpl_vars['imploded_selected_categories']->value;?>
");
$("#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
").find(":input").each(
function()
{
if ($.inArray($(this).val(), selected_categories) != -1)
{
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
$(this).parents('ul.tree').each(function(){
$(this).show();
$(this).prev().find('.icon-folder-close').removeClass('icon-folder-close').addClass('icon-folder-open');
});
}
}
);
<?php }?>
});
</script><?php }} ?>

View File

@@ -0,0 +1,116 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/modules/content.tpl" */ ?>
<?php /*%%SmartyHeaderCode:982724479568df21aafe413-31650187%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1ef582818724abd82f1a5907b35dc29f47023936' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/modules/content.tpl',
1 => 1452142889,
2 => 'file',
),
),
'nocache_hash' => '982724479568df21aafe413-31650187',
'function' =>
array (
),
'variables' =>
array (
'module_content' => 0,
'context_mode' => 0,
'logged_on_addons' => 0,
'iso_code' => 0,
'link' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21ab3b604_96077654',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21ab3b604_96077654')) {function content_568df21ab3b604_96077654($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['module_content']->value)) {?>
<?php echo $_smarty_tpl->tpl_vars['module_content']->value;?>
<?php } else { ?>
<?php if (isset($_GET['addnewmodule'])&&($_smarty_tpl->tpl_vars['context_mode']->value==Context::MODE_HOST)) {?>
<div class="defaultForm form-horizontal">
<?php if ($_smarty_tpl->tpl_vars['logged_on_addons']->value) {?>
<div class="panel">
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-12 col-xs-12">
<img class="img-responsive" alt="PrestaShop Addons" src="themes/default/img/prestashop-addons-logo.png">
</div>
<div class="col-lg-4 col-lg-offset-1 col-md-4 col-sm-7 col-xs-12 addons-style-search-bar">
<form id="addons-search-form" method="get" action="http://addons.prestashop.com/<?php echo $_smarty_tpl->tpl_vars['iso_code']->value;?>
/search" class="float">
<label><?php echo smartyTranslate(array('s'=>'Search on PrestaShop Marketplace:'),$_smarty_tpl);?>
</label>
<div class="input-group">
<input id="addons-search-box" class="form-control" type="text" autocomplete="off" name="query" value="" placeholder="Search on PrestaShop Marketplace">
<div id="addons-search-btn" class="btn btn-primary input-group-addon">
<i class="icon-search"></i>
</div>
</div>
</form>
</div>
<div class="col-lg-3 col-md-4 col-sm-5 col-xs-12 addons-see-all-themes">
<?php echo smartyTranslate(array('s'=>'Or'),$_smarty_tpl);?>
<a href="http://addons.prestashop.com/<?php echo $_smarty_tpl->tpl_vars['iso_code']->value;?>
/2-modules-prestashop" class="btn btn-primary" onclick="return !window.open(this.href)"><?php echo smartyTranslate(array('s'=>'See all modules'),$_smarty_tpl);?>
</a>
</div>
</div>
</div>
<?php } else { ?>
<div class="panel" id="">
<div class="panel-heading">
<i class="icon-picture"></i> <?php echo smartyTranslate(array('s'=>'Add a new module'),$_smarty_tpl);?>
</div>
<div class="form-wrapper">
<div class="form-group">
<p><?php echo smartyTranslate(array('s'=>'To add a new module, simply connect to your PrestaShop Addons account and all your purchases will be automatically imported.'),$_smarty_tpl);?>
</p>
</div>
</div><!-- /.form-wrapper -->
<div class="panel-footer">
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminModules',true), ENT_QUOTES, 'UTF-8', true);?>
" class="btn btn-default">
<i class="process-icon-cancel"></i> <?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
</a>
<a href="#" data-toggle="modal" data-target="#modal_addons_connect" class="btn btn-default pull-right">
<i class="process-icon-next"></i> <?php echo smartyTranslate(array('s'=>'Next'),$_smarty_tpl);?>
</a>
</div>
</div>
<?php }?>
<div class="alert alert-info">
<h4><?php echo smartyTranslate(array('s'=>'Can I add my own modules?'),$_smarty_tpl);?>
</h4>
<p><?php echo smartyTranslate(array('s'=>'Please note that for security reasons, you can only add modules that are being distributed on PrestaShop Addons, the official marketplace.'),$_smarty_tpl);?>
</p>
</div>
</div>
<?php } elseif (!isset($_GET['configure'])) {?>
<?php echo $_smarty_tpl->getSubTemplate ('controllers/modules/js.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php echo $_smarty_tpl->getSubTemplate ('controllers/modules/page.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }?>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,95 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/cart_rules/product_rule.tpl" */ ?>
<?php /*%%SmartyHeaderCode:831834683568df21a6fac37-73923491%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1f6af1d3d4b24c820be6d6309d2fffb42f2b9cab' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/cart_rules/product_rule.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '831834683568df21a6fac37-73923491',
'function' =>
array (
),
'variables' =>
array (
'product_rule_group_id' => 0,
'product_rule_id' => 0,
'product_rule_type' => 0,
'product_rule_choose_content' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21a73c689_30374229',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21a73c689_30374229')) {function content_568df21a73c689_30374229($_smarty_tpl) {?><tr id="product_rule_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_group_id']->value);?>
_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_id']->value);?>
_tr">
<td>
<input type="hidden" name="product_rule_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_group_id']->value);?>
[]" value="<?php echo $_smarty_tpl->tpl_vars['product_rule_id']->value;?>
" />
<input type="hidden" name="product_rule_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_group_id']->value);?>
_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_id']->value);?>
_type" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_rule_type']->value, ENT_QUOTES, 'UTF-8', true);?>
" />
[<?php if ($_smarty_tpl->tpl_vars['product_rule_type']->value=='products') {?><?php echo smartyTranslate(array('s'=>'Products:'),$_smarty_tpl);?>
<?php } elseif ($_smarty_tpl->tpl_vars['product_rule_type']->value=='categories') {?><?php echo smartyTranslate(array('s'=>'Categories:'),$_smarty_tpl);?>
<?php } elseif ($_smarty_tpl->tpl_vars['product_rule_type']->value=='manufacturers') {?><?php echo smartyTranslate(array('s'=>'Manufacturers:'),$_smarty_tpl);?>
<?php } elseif ($_smarty_tpl->tpl_vars['product_rule_type']->value=='suppliers') {?><?php echo smartyTranslate(array('s'=>'Suppliers'),$_smarty_tpl);?>
<?php } elseif ($_smarty_tpl->tpl_vars['product_rule_type']->value=='attributes') {?><?php echo smartyTranslate(array('s'=>'Attributes'),$_smarty_tpl);?>
<?php }?>]
</td>
<td>
<input type="text" id="product_rule_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_group_id']->value);?>
_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_id']->value);?>
_match" value="" disabled="disabled" />
</td>
<td>
<a class="btn btn-default" id="product_rule_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_group_id']->value);?>
_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_id']->value);?>
_choose_link" href="#product_rule_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_group_id']->value);?>
_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_id']->value);?>
_choose_content">
<i class="icon-list-ul"></i>
<?php echo smartyTranslate(array('s'=>'Choose'),$_smarty_tpl);?>
</a>
<div>
<div id="product_rule_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_group_id']->value);?>
_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_id']->value);?>
_choose_content">
<?php echo $_smarty_tpl->tpl_vars['product_rule_choose_content']->value;?>
</div>
</div>
</td>
<td class="text-right">
<a class="btn btn-default" href="javascript:removeProductRule(<?php echo intval($_smarty_tpl->tpl_vars['product_rule_group_id']->value);?>
, <?php echo intval($_smarty_tpl->tpl_vars['product_rule_id']->value);?>
);">
<i class="icon-remove"></i>
</a>
</td>
</tr>
<script type="text/javascript">
$('#product_rule_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_group_id']->value);?>
_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_id']->value);?>
_choose_content').parent().hide();
$("#product_rule_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_group_id']->value);?>
_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_id']->value);?>
_choose_link").fancybox({
autoDimensions: false,
autoSize: false,
width: 600,
height: 250});
$(document).ready(function() { updateProductRuleShortDescription($('#product_rule_select_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_group_id']->value);?>
_<?php echo intval($_smarty_tpl->tpl_vars['product_rule_id']->value);?>
_add')); });
</script><?php }} ?>

View File

@@ -0,0 +1,157 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:41:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/modules/dashproducts/views/templates/hook/dashboard_zone_two.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1939800950568d2c03b5bf66-86775133%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'21b6c78cce58f9746063509dda7a42d7d5857eb2' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/dashproducts/views/templates/hook/dashboard_zone_two.tpl',
1 => 1452142877,
2 => 'file',
),
),
'nocache_hash' => '1939800950568d2c03b5bf66-86775133',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d2c03bcdce6_52297237',
'variables' =>
array (
'allow_push' => 0,
'dashproducts_config_form' => 0,
'DASHPRODUCT_NBR_SHOW_LAST_ORDER' => 0,
'DASHPRODUCT_NBR_SHOW_BEST_SELLER' => 0,
'date_from' => 0,
'date_to' => 0,
'DASHPRODUCT_NBR_SHOW_TOP_SEARCH' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d2c03bcdce6_52297237')) {function content_568d2c03bcdce6_52297237($_smarty_tpl) {?>
<section id="dashproducts" class="panel widget <?php if ($_smarty_tpl->tpl_vars['allow_push']->value) {?> allow_push<?php }?>">
<header class="panel-heading">
<i class="icon-bar-chart"></i> <?php echo smartyTranslate(array('s'=>'Products and Sales','mod'=>'dashproducts'),$_smarty_tpl);?>
<span class="panel-heading-action">
<a class="list-toolbar-btn" href="#" onclick="toggleDashConfig('dashproducts'); return false;" title="<?php echo smartyTranslate(array('s'=>'Configure','mod'=>'dashproducts'),$_smarty_tpl);?>
">
<i class="process-icon-configure"></i>
</a>
<a class="list-toolbar-btn" href="#" onclick="refreshDashboard('dashproducts'); return false;" title="<?php echo smartyTranslate(array('s'=>'Refresh','mod'=>'dashproducts'),$_smarty_tpl);?>
">
<i class="process-icon-refresh"></i>
</a>
</span>
</header>
<section id="dashproducts_config" class="dash_config hide">
<header><i class="icon-wrench"></i> <?php echo smartyTranslate(array('s'=>'Configuration','mod'=>'dashproducts'),$_smarty_tpl);?>
</header>
<?php echo $_smarty_tpl->tpl_vars['dashproducts_config_form']->value;?>
</section>
<section>
<nav>
<ul class="nav nav-pills">
<li class="active">
<a href="#dash_recent_orders" data-toggle="tab">
<i class="icon-fire"></i>
<span class="hidden-inline-xs"><?php echo smartyTranslate(array('s'=>'Recent Orders','mod'=>'dashproducts'),$_smarty_tpl);?>
</span>
</a>
</li>
<li>
<a href="#dash_best_sellers" data-toggle="tab">
<i class="icon-trophy"></i>
<span class="hidden-inline-xs"><?php echo smartyTranslate(array('s'=>'Best Sellers','mod'=>'dashproducts'),$_smarty_tpl);?>
</span>
</a>
</li>
<li>
<a href="#dash_most_viewed" data-toggle="tab">
<i class="icon-eye-open"></i>
<span class="hidden-inline-xs"><?php echo smartyTranslate(array('s'=>'Most Viewed','mod'=>'dashproducts'),$_smarty_tpl);?>
</span>
</a>
</li>
<li>
<a href="#dash_top_search" data-toggle="tab">
<i class="icon-search"></i>
<span class="hidden-inline-xs"><?php echo smartyTranslate(array('s'=>'Top Searches','mod'=>'dashproducts'),$_smarty_tpl);?>
</span>
</a>
</li>
</ul>
</nav>
<div class="tab-content panel">
<div class="tab-pane active" id="dash_recent_orders">
<h3><?php echo smartyTranslate(array('s'=>'Last %d orders','sprintf'=>intval($_smarty_tpl->tpl_vars['DASHPRODUCT_NBR_SHOW_LAST_ORDER']->value),'mod'=>'dashproducts'),$_smarty_tpl);?>
</h3>
<div class="table-responsive">
<table class="table data_table" id="table_recent_orders">
<thead></thead>
<tbody></tbody>
</table>
</div>
</div>
<div class="tab-pane" id="dash_best_sellers">
<h3>
<?php echo smartyTranslate(array('s'=>'Top %d products','sprintf'=>intval($_smarty_tpl->tpl_vars['DASHPRODUCT_NBR_SHOW_BEST_SELLER']->value),'mod'=>'dashproducts'),$_smarty_tpl);?>
<span><?php echo smartyTranslate(array('s'=>"From",'mod'=>'dashproducts'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['date_from']->value;?>
<?php echo smartyTranslate(array('s'=>"to",'mod'=>'dashproducts'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['date_to']->value;?>
</span>
</h3>
<div class="table-responsive">
<table class="table data_table" id="table_best_sellers">
<thead></thead>
<tbody></tbody>
</table>
</div>
</div>
<div class="tab-pane" id="dash_most_viewed">
<h3>
<?php echo smartyTranslate(array('s'=>"Most Viewed",'mod'=>'dashproducts'),$_smarty_tpl);?>
<span><?php echo smartyTranslate(array('s'=>"From",'mod'=>'dashproducts'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['date_from']->value;?>
<?php echo smartyTranslate(array('s'=>"to",'mod'=>'dashproducts'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['date_to']->value;?>
</span>
</h3>
<div class="table-responsive">
<table class="table data_table" id="table_most_viewed">
<thead></thead>
<tbody></tbody>
</table>
</div>
</div>
<div class="tab-pane" id="dash_top_search">
<h3>
<?php echo smartyTranslate(array('s'=>'Top %d most search terms','sprintf'=>intval($_smarty_tpl->tpl_vars['DASHPRODUCT_NBR_SHOW_TOP_SEARCH']->value),'mod'=>'dashproducts'),$_smarty_tpl);?>
<span><?php echo smartyTranslate(array('s'=>"From",'mod'=>'dashproducts'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['date_from']->value;?>
<?php echo smartyTranslate(array('s'=>"to",'mod'=>'dashproducts'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['date_to']->value;?>
</span>
</h3>
<div class="table-responsive">
<table class="table data_table" id="table_top_10_most_search">
<thead></thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
</section>
</section>
<?php }} ?>

View File

@@ -0,0 +1,37 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:40:20
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin251kmbvhm/themes/default/template/helpers/modules_list/modal.tpl" */ ?>
<?php /*%%SmartyHeaderCode:239503657568df33c63eb74-23706818%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'223dc12da220c20bcf333f24c29a4fc47db926cd' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin251kmbvhm/themes/default/template/helpers/modules_list/modal.tpl',
1 => 1452142887,
2 => 'file',
),
),
'nocache_hash' => '239503657568df33c63eb74-23706818',
'function' =>
array (
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df33c640f61_95565747',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df33c640f61_95565747')) {function content_568df33c640f61_95565747($_smarty_tpl) {?><div class="modal fade" id="modules_list_container">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3 class="modal-title"><?php echo smartyTranslate(array('s'=>'Recommended Modules and Services'),$_smarty_tpl);?>
</h3>
</div>
<div class="modal-body">
<div id="modules_list_container_tab_modal" style="display:none;"></div>
<div id="modules_list_loader"><i class="icon-refresh icon-spin"></i></div>
</div>
</div>
</div>
</div>
<?php }} ?>

View File

@@ -0,0 +1,43 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/shop/helpers/list/list_action_delete.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1686842492568df21a335423-85226581%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'224981ddbd292257d1aa53964741bb9d9db991a3' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/shop/helpers/list/list_action_delete.tpl',
1 => 1452142914,
2 => 'file',
),
),
'nocache_hash' => '1686842492568df21a335423-85226581',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'action' => 0,
'id_shop' => 0,
'shops_having_dependencies' => 0,
'confirm' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21a34c4a5_44811991',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21a34c4a5_44811991')) {function content_568df21a34c4a5_44811991($_smarty_tpl) {?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="delete" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
"
<?php if (in_array($_smarty_tpl->tpl_vars['id_shop']->value,$_smarty_tpl->tpl_vars['shops_having_dependencies']->value)) {?>
onclick="jAlert('<?php echo smartyTranslate(array('s'=>'You cannot delete this shop\'s (customer and/or order dependency)','js'=>1),$_smarty_tpl);?>
'); return false;"
<?php } elseif (isset($_smarty_tpl->tpl_vars['confirm']->value)) {?>
onclick="if (confirm('<?php echo $_smarty_tpl->tpl_vars['confirm']->value;?>
')){return true;}else{event.stopPropagation(); event.preventDefault();};"
<?php }?>>
<i class="icon-trash"></i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
</a><?php }} ?>

View File

@@ -0,0 +1,62 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-06 20:19:29
compiled from "/home/sumit/public_html/html/hotel-reservation-system/pdf/header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1812022988568d2979cf97c8-82166594%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'226e21d1aef32ad40caa2acc174a5446981dbf62' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/pdf/header.tpl',
1 => 1451999489,
2 => 'file',
),
),
'nocache_hash' => '1812022988568d2979cf97c8-82166594',
'function' =>
array (
),
'variables' =>
array (
'logo_path' => 0,
'width_logo' => 0,
'height_logo' => 0,
'header' => 0,
'date' => 0,
'title' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d2979d0dda9_06587866',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d2979d0dda9_06587866')) {function content_568d2979d0dda9_06587866($_smarty_tpl) {?>
<table style="width: 100%">
<tr>
<td style="width: 50%">
<?php if ($_smarty_tpl->tpl_vars['logo_path']->value) {?>
<img src="<?php echo $_smarty_tpl->tpl_vars['logo_path']->value;?>
" style="width:<?php echo $_smarty_tpl->tpl_vars['width_logo']->value;?>
px; height:<?php echo $_smarty_tpl->tpl_vars['height_logo']->value;?>
px;" />
<?php }?>
</td>
<td style="width: 50%; text-align: right;">
<table style="width: 100%">
<tr>
<td style="font-weight: bold; font-size: 14pt; color: #444; width: 100%"><?php if (isset($_smarty_tpl->tpl_vars['header']->value)) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['header']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php }?></td>
</tr>
<tr>
<td style="font-size: 14pt; color: #9E9F9E"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date']->value, ENT_QUOTES, 'UTF-8', true);?>
</td>
</tr>
<tr>
<td style="font-size: 14pt; color: #9E9F9E"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8', true);?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php }} ?>

View File

@@ -0,0 +1,78 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/carriers/helpers/view/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1437735445568df21a118826-51073398%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'237236ae7a5ca79a7040296dc911e53f3c070c21' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/carriers/helpers/view/view.tpl',
1 => 1452142912,
2 => 'file',
),
),
'nocache_hash' => '1437735445568df21a118826-51073398',
'function' =>
array (
),
'variables' =>
array (
'link' => 0,
'modules_list' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21a133ce4_69203594',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21a133ce4_69203594')) {function content_568df21a133ce4_69203594($_smarty_tpl) {?>
<div class="panel">
<h3><?php echo smartyTranslate(array('s'=>"Add a new carrier"),$_smarty_tpl);?>
</h3>
<div id="" class="row">
<div class="alert alert-info">
<p><?php echo smartyTranslate(array('s'=>'Your online store needs to have a proper carrier registered in PrestaShop as soon as you start shipping your products. This means sending yours parcels using your local postal service, or having a contract with a private carrier which in turn will ship your parcels to your customers. In order to have PrestaShop suggest the most adequate carrier to your customers during their order checkout process, you need to register all the carriers with which you have chosen to work.'),$_smarty_tpl);?>
</p>
<p><?php echo smartyTranslate(array('s'=>'PrestaShop comes with a number of carrier modules that you can activate. You can also buy carrier modules on the PrestaShop Addons marketplace. Recommended modules are listed below: install the module that matches your carrier, and configure it!'),$_smarty_tpl);?>
</p>
<p><?php echo smartyTranslate(array('s'=>'If there is no existing module for your carrier, then you can register that carrier by hand using the information that it can provide you: shipping rates, regional zones, size and weight limits, etc. Click on the "Add new carrier" button below to open the Carrier Wizard, which will help you register a new carrier in a few steps.'),$_smarty_tpl);?>
</p>
<p><?php echo smartyTranslate(array('s'=>'Note: DO NOT register a new carrier if there already exists a module for it! Using a module will be much faster and more accurate!'),$_smarty_tpl);?>
</p>
</div>
<div class="col-lg-12">
<form action="" id="configuration_form" method="post" enctype="multipart/form-data" class="form-horizontal">
<div class="form-group">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>"Create a custom carrier"),$_smarty_tpl);?>
</label>
<a data-selenium-id="create_custom_carrier" class="btn btn-default" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCarrierWizard'), ENT_QUOTES, 'UTF-8', true);?>
"><?php echo smartyTranslate(array('s'=>"Add new carrier"),$_smarty_tpl);?>
</a>
<div class="col-lg-9 col-lg-offset-3">
<p class="help-block"><?php echo smartyTranslate(array('s'=>"Use this tool to allow PrestaShop to know how an unknown carrier works. You can configure its shipping rates, its regional zones, its size and weight limits, etc."),$_smarty_tpl);?>
</p>
</div>
</div>
</form>
</div>
</div>
</div>
<?php if (is_null($_smarty_tpl->tpl_vars['modules_list']->value)) {?>
<div class="panel">
<h3><?php echo smartyTranslate(array('s'=>"Use one of our recommended carrier modules"),$_smarty_tpl);?>
</h3>
<p><?php echo smartyTranslate(array('s'=>"It seems there are no recommended carriers for your country."),$_smarty_tpl);?>
</p>
<p><a href="https://www.prestashop.com/en/contact-us"><?php echo smartyTranslate(array('s'=>"Do you think there should be one? Let us know!"),$_smarty_tpl);?>
</a></p>
</div>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['modules_list']->value;?>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,52 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/modules/modal_translation.tpl" */ ?>
<?php /*%%SmartyHeaderCode:62104913568df21a813bd0-40698932%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2403eb79370b87a5dcb5827bb3330c579257bf9b' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/modules/modal_translation.tpl',
1 => 1452142889,
2 => 'file',
),
),
'nocache_hash' => '62104913568df21a813bd0-40698932',
'function' =>
array (
),
'variables' =>
array (
'module_languages' => 0,
'trad_link' => 0,
'language' => 0,
'module_name' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21a825918_94511289',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21a825918_94511289')) {function content_568df21a825918_94511289($_smarty_tpl) {?>
<div class="modal-body">
<div class="input-group">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
<i class="icon-flag"></i>
<?php echo smartyTranslate(array('s'=>'Manage translations'),$_smarty_tpl);?>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['language']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['module_languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->_loop = true;
?>
<li><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['trad_link']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['iso_code'], ENT_QUOTES, 'UTF-8', true);?>
#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module_name']->value, ENT_QUOTES, 'UTF-8', true);?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</a></li>
<?php } ?>
</ul>
</div>
</div><?php }} ?>

View File

@@ -0,0 +1,41 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/groups/helpers/tree/tree_node_folder_radio.tpl" */ ?>
<?php /*%%SmartyHeaderCode:319420813568df21ae23794-65975143%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'265a3fcb48778d411aa1b5dd556adb0dac15e9c8' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/groups/helpers/tree/tree_node_folder_radio.tpl',
1 => 1452142912,
2 => 'file',
),
),
'nocache_hash' => '319420813568df21ae23794-65975143',
'function' =>
array (
),
'variables' =>
array (
'node' => 0,
'children' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21ae38a08_62651582',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21ae38a08_62651582')) {function content_568df21ae38a08_62651582($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_escape')) include '/home/sumit/public_html/html/hotel-reservation-system/tools/smarty/plugins/modifier.escape.php';
?>
<li class="tree-folder">
<span class="tree-folder-name<?php if (isset($_smarty_tpl->tpl_vars['node']->value['disabled'])&&$_smarty_tpl->tpl_vars['node']->value['disabled']==true) {?> tree-folder-name-disable<?php }?>">
<input type="radio" name="id_category" value="<?php echo $_smarty_tpl->tpl_vars['node']->value['id_category'];?>
"<?php if (isset($_smarty_tpl->tpl_vars['node']->value['disabled'])&&$_smarty_tpl->tpl_vars['node']->value['disabled']==true) {?> disabled="disabled"<?php }?> />
<i class="icon-folder-close"></i>
<label class="tree-toggler"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</label>
</span>
<ul class="tree">
<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');?>
</ul>
</li><?php }} ?>

View File

@@ -0,0 +1,351 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:51:16
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/modules/js.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1742675848568df5cc9b9956-93610758%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2728958ef564f237b9198038f4983487b4c0e826' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/modules/js.tpl',
1 => 1452142889,
2 => 'file',
),
),
'nocache_hash' => '1742675848568df5cc9b9956-93610758',
'function' =>
array (
),
'variables' =>
array (
'autocompleteList' => 0,
'currentIndex' => 0,
'token' => 0,
'dirNameCurrentIndex' => 0,
'ajaxCurrentIndex' => 0,
'installed_modules' => 0,
'error_module' => 0,
'dont_filter' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df5cca00b98_08392853',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df5cca00b98_08392853')) {function content_568df5cca00b98_08392853($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_replace')) include '/home/sumit/public_html/html/hotel-reservation-system/tools/smarty/plugins/modifier.replace.php';
?>
<script type="text/javascript"><?php echo $_smarty_tpl->tpl_vars['autocompleteList']->value;?>
</script>
<script type="text/javascript">
var header_confirm_reset = '<?php echo smartyTranslate(array('s'=>'Confirm reset'),$_smarty_tpl);?>
';
var body_confirm_reset = '<?php echo smartyTranslate(array('s'=>'Would you like to delete the content related to this module ?'),$_smarty_tpl);?>
';
var left_button_confirm_reset = '<?php echo smartyTranslate(array('s'=>'No - reset only the parameters'),$_smarty_tpl);?>
';
var right_button_confirm_reset = '<?php echo smartyTranslate(array('s'=>'Yes - reset everything'),$_smarty_tpl);?>
';
var currentIndex = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
';
var currentIndexWithToken = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
';
var dirNameCurrentIndex = '<?php echo $_smarty_tpl->tpl_vars['dirNameCurrentIndex']->value;?>
';
var ajaxCurrentIndex = '<?php echo $_smarty_tpl->tpl_vars['ajaxCurrentIndex']->value;?>
';
var installed_modules = <?php if (isset($_smarty_tpl->tpl_vars['installed_modules']->value)&&count($_smarty_tpl->tpl_vars['installed_modules']->value)) {?><?php echo $_smarty_tpl->tpl_vars['installed_modules']->value;?>
<?php } else { ?>false<?php }?>;
var by = '<?php echo smartyTranslate(array('s'=>'by'),$_smarty_tpl);?>
';
var confirmPreferencesSaved = '<?php echo smartyTranslate(array('s'=>'Preferences saved'),$_smarty_tpl);?>
';
<?php if (isset($_GET['anchor'])&&!isset($_smarty_tpl->tpl_vars['error_module']->value)) {?>var anchor = '<?php echo smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace(htmlentities($_GET['anchor']),'(',''),')',''),'{',''),'}',''),'\'',''),'/','');?>
';<?php } else { ?>var anchor = '';<?php }?>
<?php if (isset($_GET['module_name'])&&!isset($_smarty_tpl->tpl_vars['error_module']->value)&&(!isset($_smarty_tpl->tpl_vars['dont_filter']->value)||!$_smarty_tpl->tpl_vars['dont_filter']->value)) {?>var module_name = '<?php echo smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_replace(htmlentities($_GET['module_name']),'(',''),')',''),'{',''),'}',''),'\'',''),'/','');?>
';<?php } else { ?>var module_name = '';<?php }?>
function getPrestaStore(){if(getE("prestastore").style.display!='block')return;$.post(dirNameCurrentIndex+"/ajax.php",{page:"prestastore"},function(a){getE("prestastore-content").innerHTML=a;})}
function truncate_author(author){return ((author.length > 20) ? author.substring(0, 20)+"..." : author);}
function modules_management(action)
{
var modules = document.getElementsByName('modules');
var module_list = '';
for (var i = 0; i < modules.length; i++)
{
if (modules[i].checked == true)
{
rel = modules[i].getAttribute('data-rel');
if (rel != "false" && action == "uninstall")
{
if (!confirm(rel))
return false;
}
module_list += '|'+modules[i].value;
}
}
document.location.href=currentIndex+'&token='+token+'&'+action+'='+module_list.substring(1, module_list.length);
}
$('document').ready( function() {
// ScrollTo
if (anchor != '')
$.uiTableFilter($('#moduleContainer').find('table'), anchor);
if (module_name != '')
$.uiTableFilter($('#moduleContainer').find('table'), module_name);
$('#moduleQuicksearch').on('keyup', function(){
val = this.value;
if ($('#filter_all').hasClass('active'))
$.uiTableFilter($('#moduleContainer').find('table'), val);
else
$('#filter_all').trigger('click');
var interval = setInterval(function () {
if (!$('#loader_module_list').length)
{
$.uiTableFilter($('#moduleContainer').find('table'), val);
clearInterval(interval);
interval = null;
}
}, 100);
}).on('keydown', function(e){
if (e.keyCode == 13)
return false;
});
$('input[name="filtername"]').result(function(event, data, formatted) {
$('#filternameForm').submit();
});
// Method to check / uncheck all modules checkbox
$('#moduleContainer').on("click", "#checkme", function()
{
if ($(this).attr("rel") == 'false')
{
$(this).attr("checked", true);
$(this).attr("rel", "true");
$("input[name=modules]").attr("checked", true);
}
else
{
$(this).removeAttr("checked");
$(this).attr("rel", "false");
$("input[name=modules]").removeAttr("checked");
}
});
// Method to reload filter in ajax
$('.categoryModuleFilterLink').click(function()
{
if ($(this).hasClass('active'))
return false;
$('.categoryModuleFilterLink').removeClass('active');
$(this).addClass('active');
try
{
resAjax = $.ajax({
type:"POST",
url : $(this).attr('href')+'&rand=' + new Date().getTime(),
headers: {"cache-control": "no-cache"},
async: true,
cache: false,
data : {
ajax : "1",
token : token,
controller : "AdminModules",
action : "reloadModulesList"
},
beforeSend: function(xhr){
$('#moduleContainer').html('<img id="loader_module_list" src="../img/loader.gif" alt="" border="0" />');
},
success: function(data, status, request){
if (request.getResponseHeader('Login') === 'true')
return window.location.reload();
$('#moduleContainer').html(data);
$('.dropdown-toggle').dropdown();
$('.help-tooltip').tooltip();
}
});
}
catch(e){}
return false;
});
// Method to get modules_list.xml from prestashop.com and default_country_modules_list.xml from addons.prestashop.com
try
{
resAjax = $.ajax({
type:"POST",
url: ajaxCurrentIndex,
headers: {"cache-control": "no-cache"},
async: true,
cache: false,
data: {
ajaxMode : "1",
ajax : "1",
token : token,
controller : "AdminModules",
action : "refreshModuleList"
},
success: function(data){
if (data == '{"status":"refresh"}')
window.location.href = window.location.href;
}
});
}
catch(e) { }
// Method to set filter on modules
function setFilter()
{
var module_type = $("#module_type_filter").val();
var module_install = $("#module_install_filter").val();
var module_status = $("#module_status_filter").val();
var country_module_value = $("#country_module_value_filter").val();
try
{
resAjax = $.ajax({
type:"POST",
url : ajaxCurrentIndex,
async: true,
data : {
ajax : "1",
token : token,
controller : "AdminModules",
action : "setFilter",
module_type : module_type,
module_install : module_install,
module_status : module_status,
country_module_value : country_module_value,
filterModules : 'Filter'
},
success : function(data){
if (data == 'OK')
window.location.href = currentIndexWithToken;
}
});
}
catch(e){}
return false;
}
$(document).on('change', '#module_type_filter, #module_install_filter, #module_status_filter, #country_module_value_filter', function() {
setFilter();
});
$('.moduleTabPreferencesChoise').change(function()
{
var value_pref = $(this).val();
var module_pref = $(this).attr('name');
module_pref = module_pref.substring(2, module_pref.length);
$.ajax({
type:"POST",
url : ajaxCurrentIndex,
async: true,
data : {
ajax : "1",
token : token,
controller : "AdminModules",
action : "saveTabModulePreferences",
module_pref : module_pref,
value_pref : value_pref
},
success : function(data){
if (data == 'OK')
showSuccessMessage(confirmPreferencesSaved);
}
});
});
// Method to save favorites preferences
$('.moduleFavorite').change(function()
{
var value_pref = $(this).val();
var module_pref = $(this).attr('name');
var action_pref = module_pref.substring(0, 1);
module_pref = module_pref.substring(2, module_pref.length);
try
{
resAjax = $.ajax({
type:"POST",
url : ajaxCurrentIndex,
async: true,
data : {
ajax : "1",
token : token,
controller : "AdminModules",
action : "saveFavoritePreferences",
action_pref : action_pref,
module_pref : module_pref,
value_pref : value_pref
},
success : function(data){
if (data == 'OK')
showSuccessMessage(confirmPreferencesSaved);
}
});
}
catch(e){}
return false;
});
$('#moduleContainer').on("click", ".toggle_favorite", function()
{
var el = $(this);
var value_pref = el.data('value');
var module_pref = el.data('module');
var action_pref = 'f';
var total_favorites = parseInt($('#favorite-count').html());
try
{
resAjax = $.ajax({
type:"POST",
url : ajaxCurrentIndex,
async: true,
data : {
ajax : "1",
token : token,
controller : "AdminModules",
action : "saveFavoritePreferences",
action_pref : action_pref,
module_pref : module_pref,
value_pref : value_pref
},
success : function(data)
{
// res.status = cache or refresh
if (data == 'OK')
{
el.toggle();
el.parent('li').siblings().find('a.toggle_favorite').toggle();
if (value_pref)
$('#favorite-count').html(total_favorites+1);
else
$('#favorite-count').html(total_favorites-1);
}
},
error: function(res,textStatus,jqXHR)
{
//jAlert("TECHNICAL ERROR"+res);
}
});
}
catch(e){}
return false;
});
});
</script>
<?php }} ?>

View File

@@ -0,0 +1,39 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:32
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/products/helpers/tree/tree_toolbar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:436548986568df21c2eef73-35200170%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'28964155b46dcea83ac41c18d25633b89dde5322' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/products/helpers/tree/tree_toolbar.tpl',
1 => 1452142913,
2 => 'file',
),
),
'nocache_hash' => '436548986568df21c2eef73-35200170',
'function' =>
array (
),
'variables' =>
array (
'actions' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21c2fb507_31529766',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21c2fb507_31529766')) {function content_568df21c2fb507_31529766($_smarty_tpl) {?>
<div class="tree-actions pull-right">
<?php if (isset($_smarty_tpl->tpl_vars['actions']->value)) {?>
<?php $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['action']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) {
$_smarty_tpl->tpl_vars['action']->_loop = true;
?>
<?php echo $_smarty_tpl->tpl_vars['action']->value->render();?>
<?php } ?>
<?php }?>
</div><?php }} ?>

View File

@@ -0,0 +1,33 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:31
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/logs/employee_field.tpl" */ ?>
<?php /*%%SmartyHeaderCode:292351216568df21b046961-67705898%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'291d2877b2d6cec0c49863b41e0b5409f50e495e' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/logs/employee_field.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '292351216568df21b046961-67705898',
'function' =>
array (
),
'variables' =>
array (
'employee_image' => 0,
'employee_name' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21b04a2c2_80358271',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21b04a2c2_80358271')) {function content_568df21b04a2c2_80358271($_smarty_tpl) {?>
<span class="employee_avatar_small">
<img class="imgm img-thumbnail" alt="" src="<?php echo $_smarty_tpl->tpl_vars['employee_image']->value;?>
" width="32" height="32" />
</span>
<?php echo $_smarty_tpl->tpl_vars['employee_name']->value;?>
<?php }} ?>

View File

@@ -0,0 +1,38 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:33
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/products/specific_prices_shop_update.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1577711303568df21d63f876-18728682%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2a69f3b02e658283446544dab5780003765a9295' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/products/specific_prices_shop_update.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '1577711303568df21d63f876-18728682',
'function' =>
array (
),
'variables' =>
array (
'option_list' => 0,
'key_id' => 0,
'row' => 0,
'key_value' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21d64d951_43872570',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21d64d951_43872570')) {function content_568df21d64d951_43872570($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['option_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value) {
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
<option value="<?php echo intval($_smarty_tpl->tpl_vars['row']->value[$_smarty_tpl->tpl_vars['key_id']->value]);?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['row']->value[$_smarty_tpl->tpl_vars['key_value']->value], ENT_QUOTES, 'UTF-8', true);?>
</option>
<?php } ?><?php }} ?>

View File

@@ -0,0 +1,37 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/modules_list/modal.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1915613563568df2184b8b90-47429779%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2b1955c0e40e4e9d29cf8aa241dcd564b97b5271' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/modules_list/modal.tpl',
1 => 1452142887,
2 => 'file',
),
),
'nocache_hash' => '1915613563568df2184b8b90-47429779',
'function' =>
array (
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df2184bac04_80231548',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df2184bac04_80231548')) {function content_568df2184bac04_80231548($_smarty_tpl) {?><div class="modal fade" id="modules_list_container">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3 class="modal-title"><?php echo smartyTranslate(array('s'=>'Recommended Modules and Services'),$_smarty_tpl);?>
</h3>
</div>
<div class="modal-body">
<div id="modules_list_container_tab_modal" style="display:none;"></div>
<div id="modules_list_loader"><i class="icon-refresh icon-spin"></i></div>
</div>
</div>
</div>
</div>
<?php }} ?>

View File

@@ -0,0 +1,34 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:42:18
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/helpers/list/list_action_preview.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1343549661568df3b27bd0b0-37284903%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2c1ef2d21b686031abeab36dadc96ac21544da1b' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/helpers/list/list_action_preview.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '1343549661568df3b27bd0b0-37284903',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df3b27c5f82_62663414',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df3b27c5f82_62663414')) {function content_568df3b27c5f82_62663414($_smarty_tpl) {?>
<a href="<?php echo $_smarty_tpl->tpl_vars['href']->value;?>
" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
" target="_blank">
<i class="icon-eye"></i> <?php echo $_smarty_tpl->tpl_vars['action']->value;?>
</a>
<?php }} ?>

View File

@@ -0,0 +1,142 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 11:10:36
compiled from "/home/sumit/public_html/html/hotel-reservation-system/modules/wktestimonialblock/views/templates/hook/wktestimonialblock.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1819281308568d302b229c93-45908921%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2c88ebe4dac71024b9b74bd32af87050c2d87e48' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/wktestimonialblock/views/templates/hook/wktestimonialblock.tpl',
1 => 1452142877,
2 => 'file',
),
),
'nocache_hash' => '1819281308568d302b229c93-45908921',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d302b259a08_76233646',
'variables' =>
array (
'parent_testimonial_data' => 0,
'testimonials_data' => 0,
'module_dir' => 0,
'data' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d302b259a08_76233646')) {function content_568d302b259a08_76233646($_smarty_tpl) {?><hr class="gap-line">
<div class="row" id="testimonial_block">
<div class="col-xs-12 col-sm-12">
<div class="hotel_testimonial_heading">
<p><?php echo $_smarty_tpl->tpl_vars['parent_testimonial_data']->value['testimonial_heading'];?>
</p>
</div>
<div class="hotel_testimonial_content">
<p><?php echo $_smarty_tpl->tpl_vars['parent_testimonial_data']->value['testimonial_description'];?>
</p>
</div>
</div>
<div class="col-xs-12 col-sm-12">
<div class="span12">
<div id="owl-demo" class="owl-carousel">
<?php if (isset($_smarty_tpl->tpl_vars['testimonials_data']->value)&&$_smarty_tpl->tpl_vars['testimonials_data']->value) {?>
<?php $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['testimonials_data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value) {
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
<div>
<div class="row margin-lr-0 testimonial_container">
<!-- Hide for xs screen -->
<div class="row testimonial_content hidden-xs">
<div class='col-sm-offset-1 col-sm-2'>
<img src="<?php echo $_smarty_tpl->tpl_vars['module_dir']->value;?>
views/img/icon-double-codes.png" class="img-responsive">
</div>
<div class='col-sm-7 col-md-6 margin-top-70'>
<p class="testi_block_content"><?php echo $_smarty_tpl->tpl_vars['data']->value['testimonial_content'];?>
</p>
</div>
</div>
<!-- Visible for xs screen -->
<div class="row margin-lr-0 testimonial_content visible-xs">
<div class="row">
<div class='col-xs-3'>
<img src="<?php echo $_smarty_tpl->tpl_vars['module_dir']->value;?>
views/img/icon-double-codes.png" class="img-responsive">
</div>
</div>
<div class="row">
<div class='col-xs-12'>
<p class="testi_block_content"><?php echo $_smarty_tpl->tpl_vars['data']->value['testimonial_content'];?>
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12">
<?php if (isset($_smarty_tpl->tpl_vars['data']->value['testimonial_image'])&&$_smarty_tpl->tpl_vars['data']->value['testimonial_image']) {?>
<img src="<?php echo $_smarty_tpl->tpl_vars['module_dir']->value;?>
views/img/<?php echo $_smarty_tpl->tpl_vars['data']->value['testimonial_image'];?>
" class="testimonial_person_img">
<?php }?>
<p class="testimonial_person_name"><?php echo $_smarty_tpl->tpl_vars['data']->value['name'];?>
</p>
<p class="testimonial_person_desig"><?php echo $_smarty_tpl->tpl_vars['data']->value['designation'];?>
</p>
</div>
<!-- <div class="col-sm-offset-5 col-sm-1">
<?php if (isset($_smarty_tpl->tpl_vars['data']->value['testimonial_image'])&&$_smarty_tpl->tpl_vars['data']->value['testimonial_image']) {?>
<img height="85px" width="85px" src="<?php echo $_smarty_tpl->tpl_vars['module_dir']->value;?>
views/img/<?php echo $_smarty_tpl->tpl_vars['data']->value['testimonial_image'];?>
">
<?php } else { ?>
<img height="85px" width="85px" src="<?php echo $_smarty_tpl->tpl_vars['module_dir']->value;?>
views/img/default.png">
<?php }?>
</div>
<div class="col-sm-3 text-left">
<p class="testimonial_person_name"><?php echo $_smarty_tpl->tpl_vars['data']->value['name'];?>
</p>
<p class="testimonial_person_desig"><?php echo $_smarty_tpl->tpl_vars['data']->value['designation'];?>
</p>
</div> -->
</div>
</div>
</div>
<?php } ?>
<?php }?>
</div>
</div>
</div>
</div>
<style>
#owl-demo .owl-item div
{
padding:5px;
}
</style>
<script>
$(document).ready(function()
{
$("#owl-demo").owlCarousel({
autoPlay : 5000,
stopOnHover : true,
paginationSpeed : 1000,
goToFirstSpeed : 2000,
singleItem : true,
autoHeight : true,
pagination :true,
navigation:false,
// transitionStyle:"fade"
});
});
</script><?php }} ?>

View File

@@ -0,0 +1,35 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:29
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/list/list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1054900767568df2199e4242-49232150%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2d55ee33945512cda6e12c012db8428fd9ec1e8d' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/list/list.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '1054900767568df2199e4242-49232150',
'function' =>
array (
),
'variables' =>
array (
'header' => 0,
'content' => 0,
'footer' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df2199e9460_69380042',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df2199e9460_69380042')) {function content_568df2199e9460_69380042($_smarty_tpl) {?>
<?php echo $_smarty_tpl->tpl_vars['header']->value;?>
<?php echo $_smarty_tpl->tpl_vars['content']->value;?>
<?php echo $_smarty_tpl->tpl_vars['footer']->value;?>
<?php }} ?>

View File

@@ -0,0 +1,48 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:29
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/error.tpl" */ ?>
<?php /*%%SmartyHeaderCode:374519018568df219ea3e88-42930411%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2d703d328832e9a150284d30d52c9052b92e34ec' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/error.tpl',
1 => 1452142870,
2 => 'file',
),
),
'nocache_hash' => '374519018568df219ea3e88-42930411',
'function' =>
array (
),
'variables' =>
array (
'php_errors' => 0,
'php_error' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df219ebaf69_01900967',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df219ebaf69_01900967')) {function content_568df219ebaf69_01900967($_smarty_tpl) {?><?php if (isset($_smarty_tpl->tpl_vars['php_errors']->value)&&count($_smarty_tpl->tpl_vars['php_errors']->value)) {?>
<div class="bootstrap">
<div id="error-modal" class="modal fade">
<div class="modal-dialog">
<div class="alert alert-danger clearfix">
<?php $_smarty_tpl->tpl_vars['php_error'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['php_error']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['php_errors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['php_error']->key => $_smarty_tpl->tpl_vars['php_error']->value) {
$_smarty_tpl->tpl_vars['php_error']->_loop = true;
?>
<?php echo smartyTranslate(array('s'=>'%1$s on line %2$s in file %3$s','sprintf'=>array(htmlspecialchars($_smarty_tpl->tpl_vars['php_error']->value['type'], ENT_QUOTES, 'UTF-8', true),htmlspecialchars($_smarty_tpl->tpl_vars['php_error']->value['errline'], ENT_QUOTES, 'UTF-8', true),htmlspecialchars($_smarty_tpl->tpl_vars['php_error']->value['errfile'], ENT_QUOTES, 'UTF-8', true))),$_smarty_tpl);?>
<br />
[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['php_error']->value['errno'], ENT_QUOTES, 'UTF-8', true);?>
] <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['php_error']->value['errstr'], ENT_QUOTES, 'UTF-8', true);?>
<br /><br />
<?php } ?>
<button type="button" class="btn btn-default pull-right" data-dismiss="modal"><i class="icon-remove"></i> Close</button>
</div>
</div>
</div>
</div>
<?php }?><?php }} ?>

View File

@@ -0,0 +1,71 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/tree/tree_toolbar_search.tpl" */ ?>
<?php /*%%SmartyHeaderCode:303121004568df218b07631-05897689%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2e3fa35fd991054ac368633c83ac629e7bd93895' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/tree/tree_toolbar_search.tpl',
1 => 1452142887,
2 => 'file',
),
),
'nocache_hash' => '303121004568df218b07631-05897689',
'function' =>
array (
),
'variables' =>
array (
'label' => 0,
'id' => 0,
'name' => 0,
'class' => 0,
'typeahead_source' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df218b2f642_41210102',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df218b2f642_41210102')) {function content_568df218b2f642_41210102($_smarty_tpl) {?>
<!-- <label for="node-search"><?php echo smartyTranslate(array('s'=>$_smarty_tpl->tpl_vars['label']->value),$_smarty_tpl);?>
</label> -->
<div class="pull-right">
<input type="text"
<?php if (isset($_smarty_tpl->tpl_vars['id']->value)) {?>id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
"<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['name']->value)) {?>name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
"<?php }?>
class="search-field<?php if (isset($_smarty_tpl->tpl_vars['class']->value)) {?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['class']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php }?>"
placeholder="<?php echo smartyTranslate(array('s'=>'search...'),$_smarty_tpl);?>
" />
</div>
<?php if (isset($_smarty_tpl->tpl_vars['typeahead_source']->value)&&isset($_smarty_tpl->tpl_vars['id']->value)) {?>
<script type="text/javascript">
$(document).ready(
function()
{
$("#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
").typeahead(
{
name: "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>
",
valueKey: 'name',
local: [<?php echo $_smarty_tpl->tpl_vars['typeahead_source']->value;?>
]
});
$("#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
").keypress(function( event ) {
if ( event.which == 13 ) {
event.stopPropagation();
}
});
}
);
</script>
<?php }?><?php }} ?>

View File

@@ -0,0 +1,90 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:41:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/nav.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1272749580568d3caac65d73-53872196%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2f83a97a846598651dbf6cc24da5a334c8d33ce2' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/nav.tpl',
1 => 1452142870,
2 => 'file',
),
),
'nocache_hash' => '1272749580568d3caac65d73-53872196',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d3caaccdcc6_48304492',
'variables' =>
array (
'employee' => 0,
'tab' => 0,
'tabs' => 0,
't' => 0,
't2' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d3caaccdcc6_48304492')) {function content_568d3caaccdcc6_48304492($_smarty_tpl) {?><div class="bootstrap">
<nav id="<?php if ($_smarty_tpl->tpl_vars['employee']->value->bo_menu) {?>nav-sidebar<?php } else { ?>nav-topbar<?php }?>" role="navigation">
<?php if (!$_smarty_tpl->tpl_vars['tab']->value) {?>
<div class="mainsubtablist" style="display:none;"></div>
<?php }?>
<ul class="menu">
<li class="searchtab">
<?php echo $_smarty_tpl->getSubTemplate ("search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id'=>"header_search",'show_clear_btn'=>1), 0);?>
</li>
<?php $_smarty_tpl->tpl_vars['t'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['t']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['tabs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['t']->key => $_smarty_tpl->tpl_vars['t']->value) {
$_smarty_tpl->tpl_vars['t']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['t']->value['active']) {?>
<li class="maintab <?php if ($_smarty_tpl->tpl_vars['t']->value['current']) {?>active<?php }?> <?php if (count($_smarty_tpl->tpl_vars['t']->value['sub_tabs'])) {?>has_submenu<?php }?>" id="maintab-<?php echo $_smarty_tpl->tpl_vars['t']->value['class_name'];?>
" data-submenu="<?php echo $_smarty_tpl->tpl_vars['t']->value['id_tab'];?>
">
<a href="<?php if (count($_smarty_tpl->tpl_vars['t']->value['sub_tabs'])&&isset($_smarty_tpl->tpl_vars['t']->value['sub_tabs'][0]['href'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['t']->value['sub_tabs'][0]['href'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['t']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>" class="title" >
<i class="icon-<?php echo $_smarty_tpl->tpl_vars['t']->value['class_name'];?>
"></i>
<span><?php if ($_smarty_tpl->tpl_vars['t']->value['name']=='') {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['t']->value['class_name'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['t']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
<?php }?></span>
</a>
<?php if (count($_smarty_tpl->tpl_vars['t']->value['sub_tabs'])) {?>
<ul class="submenu">
<?php $_smarty_tpl->tpl_vars['t2'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['t2']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['t']->value['sub_tabs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['t2']->key => $_smarty_tpl->tpl_vars['t2']->value) {
$_smarty_tpl->tpl_vars['t2']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['t2']->value['active']) {?>
<li id="subtab-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['t2']->value['class_name'], ENT_QUOTES, 'UTF-8', true);?>
" <?php if ($_smarty_tpl->tpl_vars['t2']->value['current']) {?> class="active"<?php }?>>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['t2']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
">
<?php if ($_smarty_tpl->tpl_vars['t2']->value['name']=='') {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['t2']->value['class_name'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['t2']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>
</a>
</li>
<?php }?>
<?php } ?>
</ul>
<?php }?>
</li>
<?php }?>
<?php } ?>
</ul>
<span class="menu-collapse">
<i class="icon-align-justify icon-rotate-90"></i>
</span>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayAdminNavBarBeforeEnd'),$_smarty_tpl);?>
</nav>
</div>
<?php }} ?>

View File

@@ -0,0 +1,75 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:29
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/modal.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1199272716568df219d3e8d2-76199715%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2fa5f561c2b2a72b99adc18cdda8396325e0fda3' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/modal.tpl',
1 => 1452142870,
2 => 'file',
),
),
'nocache_hash' => '1199272716568df219d3e8d2-76199715',
'function' =>
array (
),
'variables' =>
array (
'modal_id' => 0,
'modal_class' => 0,
'modal_title' => 0,
'modal_content' => 0,
'modal_actions' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df219d64138_79964443',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df219d64138_79964443')) {function content_568df219d64138_79964443($_smarty_tpl) {?>
<div class="modal fade" id="<?php echo $_smarty_tpl->tpl_vars['modal_id']->value;?>
" tabindex="-1">
<div class="modal-dialog <?php if (isset($_smarty_tpl->tpl_vars['modal_class']->value)) {?><?php echo $_smarty_tpl->tpl_vars['modal_class']->value;?>
<?php }?>">
<div class="modal-content">
<?php if (isset($_smarty_tpl->tpl_vars['modal_title']->value)) {?>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title"><?php echo $_smarty_tpl->tpl_vars['modal_title']->value;?>
</h4>
</div>
<?php }?>
<?php echo $_smarty_tpl->tpl_vars['modal_content']->value;?>
<?php if (isset($_smarty_tpl->tpl_vars['modal_actions']->value)) {?>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo smartyTranslate(array('s'=>'Close'),$_smarty_tpl);?>
</button>
<?php $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['action']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['modal_actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) {
$_smarty_tpl->tpl_vars['action']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['action']->value['type']=='link') {?>
<a href="<?php echo $_smarty_tpl->tpl_vars['action']->value['href'];?>
" class="btn <?php echo $_smarty_tpl->tpl_vars['action']->value['class'];?>
"><?php echo $_smarty_tpl->tpl_vars['action']->value['label'];?>
</a>
<?php } elseif ($_smarty_tpl->tpl_vars['action']->value['type']=='button') {?>
<button type="button" value="<?php echo $_smarty_tpl->tpl_vars['action']->value['value'];?>
" class="btn <?php echo $_smarty_tpl->tpl_vars['action']->value['class'];?>
">
<?php echo $_smarty_tpl->tpl_vars['action']->value['label'];?>
</button>
<?php }?>
<?php } ?>
</div>
<?php }?>
</div>
</div>
</div><?php }} ?>

View File

@@ -0,0 +1,42 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:30
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/shop/helpers/tree/shop_tree_node_folder.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1262066590568df21a2ef100-94548570%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'309cea65902370f1d0ae93cf94c56515cc5e3b15' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/shop/helpers/tree/shop_tree_node_folder.tpl',
1 => 1452142914,
2 => 'file',
),
),
'nocache_hash' => '1262066590568df21a2ef100-94548570',
'function' =>
array (
),
'variables' =>
array (
'url_shop_group' => 0,
'node' => 0,
'children' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21a305a79_76392843',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21a305a79_76392843')) {function content_568df21a305a79_76392843($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_escape')) include '/home/sumit/public_html/html/hotel-reservation-system/tools/smarty/plugins/modifier.escape.php';
?>
<li class="tree-folder">
<span class="tree-folder-name">
<i class="icon-folder-close"></i>
<label class="tree-toggler"><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;id_shop_group=<?php echo $_smarty_tpl->tpl_vars['node']->value['id'];?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</a></label>
</span>
<ul class="tree">
<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');?>
</ul>
</li><?php }} ?>

View File

@@ -0,0 +1,460 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:42:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/images.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1683917908568df3bcb867f3-96638874%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'31f2d62856e31591b71c6103d5a9c9914d1c4a6d' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/controllers/products/images.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '1683917908568df3bcb867f3-96638874',
'function' =>
array (
),
'variables' =>
array (
'id_product' => 0,
'product' => 0,
'countImages' => 0,
'max_image_size' => 0,
'id_image' => 0,
'image_uploader' => 0,
'languages' => 0,
'language' => 0,
'input_class' => 0,
'images' => 0,
'image' => 0,
'shops' => 0,
'shop' => 0,
'iso_lang' => 0,
'imageType' => 0,
'link' => 0,
'table' => 0,
'current_shop_id' => 0,
'default_language' => 0,
'id_category_default' => 0,
'token' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df3bcc712b2_08476009',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df3bcc712b2_08476009')) {function content_568df3bcc712b2_08476009($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['id_product']->value)&&isset($_smarty_tpl->tpl_vars['product']->value)) {?>
<div id="product-images" class="panel product-tab">
<input type="hidden" name="submitted_tabs[]" value="Images" />
<div class="panel-heading tab" >
<?php echo smartyTranslate(array('s'=>'Images'),$_smarty_tpl);?>
<span class="badge" id="countImage"><?php echo $_smarty_tpl->tpl_vars['countImages']->value;?>
</span>
</div>
<div class="row">
<div class="form-group">
<label class="control-label col-lg-3 file_upload_label">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'Format:'),$_smarty_tpl);?>
JPG, GIF, PNG. <?php echo smartyTranslate(array('s'=>'Filesize:'),$_smarty_tpl);?>
<?php echo sprintf("%.2f",$_smarty_tpl->tpl_vars['max_image_size']->value);?>
<?php echo smartyTranslate(array('s'=>'MB max.'),$_smarty_tpl);?>
">
<?php if (isset($_smarty_tpl->tpl_vars['id_image']->value)) {?><?php echo smartyTranslate(array('s'=>'Edit this product\'s image:'),$_smarty_tpl);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Add a new image to this product'),$_smarty_tpl);?>
<?php }?>
</span>
</label>
<div class="col-lg-9">
<?php echo $_smarty_tpl->tpl_vars['image_uploader']->value;?>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'Update all captions at once, or select the position of the image whose caption you wish to edit. Invalid characters: %s','sprintf'=>array('<>;=#{}')),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Caption'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-4">
<?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['language']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->_loop = true;
?>
<?php if (count($_smarty_tpl->tpl_vars['languages']->value)>1) {?>
<div class="translatable-field row lang-<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
">
<div class="col-lg-8">
<?php }?>
<input type="text" id="legend_<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
"<?php if (isset($_smarty_tpl->tpl_vars['input_class']->value)) {?> class="<?php echo $_smarty_tpl->tpl_vars['input_class']->value;?>
"<?php }?> name="legend_<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
" value="<?php if (count($_smarty_tpl->tpl_vars['images']->value)) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['images']->value[0]->legend[$_smarty_tpl->tpl_vars['language']->value['id_lang']], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name[$_smarty_tpl->tpl_vars['language']->value['id_lang']], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>"<?php if (!$_smarty_tpl->tpl_vars['product']->value->id) {?> disabled="disabled"<?php }?>/>
<?php if (count($_smarty_tpl->tpl_vars['languages']->value)>1) {?>
</div>
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" tabindex="-1">
<?php echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];?>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<?php $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['language']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->_loop = true;
?>
<li>
<a href="javascript:hideOtherLanguage(<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
);"><?php echo $_smarty_tpl->tpl_vars['language']->value['name'];?>
</a>
</li>
<?php } ?>
</ul>
</div>
</div>
<?php }?>
<?php } ?>
</div>
<div class="col-lg-2<?php if (count($_smarty_tpl->tpl_vars['images']->value)<=1) {?> hidden<?php }?>" id="caption_selection">
<select name="id_caption">
<option value="0"><?php echo smartyTranslate(array('s'=>'All captions'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['image']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['images']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value) {
$_smarty_tpl->tpl_vars['image']->_loop = true;
?>
<option value="<?php echo intval($_smarty_tpl->tpl_vars['image']->value->id_image);?>
">
<?php echo smartyTranslate(array('s'=>'Position %d','sprintf'=>intval($_smarty_tpl->tpl_vars['image']->value->position)),$_smarty_tpl);?>
</option>
<?php } ?>
</select>
</div>
<div class="col-lg-2">
<button type="submit" class="btn btn-default" name="submitAddproductAndStay" value="update_legends"><i class="icon-random"></i> <?php echo smartyTranslate(array('s'=>'Update'),$_smarty_tpl);?>
</button>
</div>
</div>
</div>
<table class="table tableDnD" id="imageTable">
<thead>
<tr class="nodrag nodrop">
<th class="fixed-width-lg"><span class="title_box"><?php echo smartyTranslate(array('s'=>'Image'),$_smarty_tpl);?>
</span></th>
<th class="fixed-width-lg"><span class="title_box"><?php echo smartyTranslate(array('s'=>'Caption'),$_smarty_tpl);?>
</span></th>
<th class="fixed-width-xs"><span class="title_box"><?php echo smartyTranslate(array('s'=>'Position'),$_smarty_tpl);?>
</span></th>
<?php if ($_smarty_tpl->tpl_vars['shops']->value) {?>
<?php $_smarty_tpl->tpl_vars['shop'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['shop']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['shops']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['shop']->key => $_smarty_tpl->tpl_vars['shop']->value) {
$_smarty_tpl->tpl_vars['shop']->_loop = true;
?>
<th class="fixed-width-xs"><span class="title_box"><?php echo $_smarty_tpl->tpl_vars['shop']->value['name'];?>
</span></th>
<?php } ?>
<?php }?>
<th class="fixed-width-xs"><span class="title_box"><?php echo smartyTranslate(array('s'=>'Cover'),$_smarty_tpl);?>
</span></th>
<th></th> <!-- action -->
</tr>
</thead>
<tbody id="imageList">
</tbody>
</table>
<table id="lineType" style="display:none;">
<tr id="image_id">
<td>
<a href="<?php echo @constant('_THEME_PROD_DIR_');?>
image_path.jpg" class="fancybox">
<img
src="<?php echo @constant('_THEME_PROD_DIR_');?>
<?php echo $_smarty_tpl->tpl_vars['iso_lang']->value;?>
-default-<?php echo $_smarty_tpl->tpl_vars['imageType']->value;?>
.jpg"
alt="legend"
title="legend"
class="img-thumbnail" />
</a>
</td>
<td>legend</td>
<td id="td_image_id" class="pointer dragHandle center positionImage">
<div class="dragGroup">
<div class="positions">
image_position
</div>
</div>
</td>
<?php if ($_smarty_tpl->tpl_vars['shops']->value) {?>
<?php $_smarty_tpl->tpl_vars['shop'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['shop']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['shops']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['shop']->key => $_smarty_tpl->tpl_vars['shop']->value) {
$_smarty_tpl->tpl_vars['shop']->_loop = true;
?>
<td>
<input
type="checkbox"
class="image_shop"
name="id_image"
id="<?php echo $_smarty_tpl->tpl_vars['shop']->value['id_shop'];?>
image_id"
value="<?php echo $_smarty_tpl->tpl_vars['shop']->value['id_shop'];?>
" />
</td>
<?php } ?>
<?php }?>
<td class="cover">
<a href="#">
<i class="icon-check-empty icon-2x covered"></i>
</a>
</td>
<td>
<a href="#" class="delete_product_image pull-right btn btn-default" >
<i class="icon-trash"></i> <?php echo smartyTranslate(array('s'=>'Delete this image'),$_smarty_tpl);?>
</a>
</td>
</tr>
</table>
<div class="panel-footer">
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts'), ENT_QUOTES, 'UTF-8', true);?>
<?php if (isset($_REQUEST['page'])&&$_REQUEST['page']>1) {?>&amp;submitFilterproduct=<?php echo intval($_REQUEST['page']);?>
<?php }?>" class="btn btn-default"><i class="process-icon-cancel"></i> <?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
</a>
<button type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> <?php echo smartyTranslate(array('s'=>'Save'),$_smarty_tpl);?>
</button>
<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> <?php echo smartyTranslate(array('s'=>'Save and stay'),$_smarty_tpl);?>
</button>
</div>
<script type="text/javascript">
var upbutton = '<?php echo smartyTranslate(array('s'=>'Upload an image'),$_smarty_tpl);?>
';
var come_from = '<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
';
var success_add = '<?php echo smartyTranslate(array('s'=>'The image has been successfully added.'),$_smarty_tpl);?>
';
var id_tmp = 0;
var current_shop_id = <?php echo intval($_smarty_tpl->tpl_vars['current_shop_id']->value);?>
;
//Ready Function
function imageLine(id, path, position, cover, shops, legend)
{
line = $("#lineType").html();
line = line.replace(/image_id/g, id);
line = line.replace(/(\/)?[a-z]{0,2}-default/g, function($0, $1){
return $1 ? $1 + path : $0;
});
line = line.replace(/image_path/g, path);
line = line.replace(/image_position/g, position);
line = line.replace(/legend/g, legend);
line = line.replace(/icon-check-empty/g, cover);
line = line.replace(/<tbody>/gi, "");
line = line.replace(/<\/tbody>/gi, "");
if (shops != false)
{
$.each(shops, function(key, value){
if (value == 1)
line = line.replace('id="' + key + '' + id + '"','id="' + key + '' + id + '" checked=checked');
});
}
$("#imageList").append(line);
}
$(document).ready(function(){
<?php $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['image']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['images']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value) {
$_smarty_tpl->tpl_vars['image']->_loop = true;
?>
assoc = "{";
<?php if ($_smarty_tpl->tpl_vars['shops']->value) {?>
<?php $_smarty_tpl->tpl_vars['shop'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['shop']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['shops']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['shop']->key => $_smarty_tpl->tpl_vars['shop']->value) {
$_smarty_tpl->tpl_vars['shop']->_loop = true;
?>
assoc += '"<?php echo $_smarty_tpl->tpl_vars['shop']->value['id_shop'];?>
" : <?php if ($_smarty_tpl->tpl_vars['image']->value->isAssociatedToShop($_smarty_tpl->tpl_vars['shop']->value['id_shop'])) {?>1<?php } else { ?>0<?php }?>,';
<?php } ?>
<?php }?>
if (assoc != "{")
{
assoc = assoc.slice(0, -1);
assoc += "}";
assoc = jQuery.parseJSON(assoc);
}
else
assoc = false;
imageLine(<?php echo $_smarty_tpl->tpl_vars['image']->value->id;?>
, "<?php echo $_smarty_tpl->tpl_vars['image']->value->getExistingImgPath();?>
", <?php echo $_smarty_tpl->tpl_vars['image']->value->position;?>
, "<?php if ($_smarty_tpl->tpl_vars['image']->value->cover) {?>icon-check-sign<?php } else { ?>icon-check-empty<?php }?>", assoc, "<?php echo addcslashes($_smarty_tpl->tpl_vars['image']->value->legend[$_smarty_tpl->tpl_vars['default_language']->value],'\"');?>
");
<?php } ?>
var originalOrder = false;
$("#imageTable").tableDnD(
{ dragHandle: 'dragHandle',
onDragClass: 'myDragClass',
onDragStart: function(table, row) {
originalOrder = $.tableDnD.serialize();
reOrder = ':even';
if (table.tBodies[0].rows[1] && $('#' + table.tBodies[0].rows[1].id).hasClass('alt_row'))
reOrder = ':odd';
$(table).find('#' + row.id).parent('tr').addClass('myDragClass');
},
onDrop: function(table, row) {
if (originalOrder != $.tableDnD.serialize()) {
current = $(row).attr("id");
stop = false;
image_up = "{";
$("#imageList").find("tr").each(function(i) {
$("#td_" + $(this).attr("id")).html('<div class="dragGroup"><div class="positions">'+(i + 1)+'</div></div>');
if (!stop || (i + 1) == 2)
image_up += '"' + $(this).attr("id") + '" : ' + (i + 1) + ',';
});
image_up = image_up.slice(0, -1);
image_up += "}";
updateImagePosition(image_up);
}
}
});
/**
* on success function
*/
function afterDeleteProductImage(data)
{
data = $.parseJSON(data);
if (data)
{
cover = 0;
id = data.content.id;
if (data.status == 'ok')
{
if ($("#" + id + ' .covered').hasClass('icon-check-sign'))
cover = 1;
$("#" + id).remove();
}
if (cover)
$("#imageTable tr").eq(1).find(".covered").addClass('icon-check-sign');
$("#countImage").html(parseInt($("#countImage").html()) - 1);
refreshImagePositions($("#imageTable"));
showSuccessMessage(data.confirmations);
if (parseInt($("#countImage").html()) <= 1)
$('#caption_selection').addClass('hidden');
}
}
$('.delete_product_image').die().live('click', function(e)
{
e.preventDefault();
id = $(this).parent().parent().attr('id');
if (confirm("<?php echo smartyTranslate(array('s'=>'Are you sure?','js'=>1),$_smarty_tpl);?>
"))
doAdminAjax({
"action":"deleteProductImage",
"id_image":id,
"id_product" : <?php echo $_smarty_tpl->tpl_vars['id_product']->value;?>
,
"id_category" : <?php echo $_smarty_tpl->tpl_vars['id_category_default']->value;?>
,
"token" : "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
",
"tab" : "AdminProducts",
"ajax" : 1 }, afterDeleteProductImage
);
});
$('.covered').die().live('click', function(e)
{
e.preventDefault();
id = $(this).parent().parent().parent().attr('id');
$("#imageList .cover i").each( function(i){
$(this).removeClass('icon-check-sign').addClass('icon-check-empty');
});
$(this).removeClass('icon-check-empty').addClass('icon-check-sign');
if (current_shop_id != 0)
$('#' + current_shop_id + id).attr('check', true);
else
$(this).parent().parent().parent().children('td input').attr('check', true);
doAdminAjax({
"action":"UpdateCover",
"id_image":id,
"id_product" : <?php echo $_smarty_tpl->tpl_vars['id_product']->value;?>
,
"token" : "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
",
"controller" : "AdminProducts",
"ajax" : 1 }
);
});
$('.image_shop').die().live('click', function()
{
active = false;
if ($(this).attr("checked"))
active = true;
id = $(this).parent().parent().attr('id');
id_shop = $(this).attr("id").replace(id, "");
doAdminAjax(
{
"action":"UpdateProductImageShopAsso",
"id_image":id,
"id_product":id_product,
"id_shop": id_shop,
"active":active,
"token" : "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
",
"tab" : "AdminProducts",
"ajax" : 1
});
});
function updateImagePosition(json)
{
doAdminAjax(
{
"action":"updateImagePosition",
"json":json,
"token" : "<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
",
"tab" : "AdminProducts",
"ajax" : 1
});
}
function delQueue(id)
{
$("#img" + id).fadeOut("slow");
$("#img" + id).remove();
}
$('.fancybox').fancybox();
});
if (tabs_manager.allow_hide_other_languages)
hideOtherLanguage(default_language);
</script>
</div>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,62 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/shops_list/list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1083642818568df2183f54c3-67032300%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'32b8278ebd0108caedb3b9bf8747ccc48f7bcc68' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/shops_list/list.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '1083642818568df2183f54c3-67032300',
'function' =>
array (
),
'variables' =>
array (
'current_shop_name' => 0,
'current_shop_value' => 0,
'url' => 0,
'tree' => 0,
'multishop_context' => 0,
'is_group_context' => 0,
'group_id' => 0,
'multishop_context_group' => 0,
'group_data' => 0,
'is_shop_context' => 0,
'shop_data' => 0,
'shop_id' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df218450168_61320275',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df218450168_61320275')) {function content_568df218450168_61320275($_smarty_tpl) {?>
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown"><?php echo $_smarty_tpl->tpl_vars['current_shop_name']->value;?>
<i class="icon-caret-down"></i></a><ul class="dropdown-menu"><li<?php if (!isset($_smarty_tpl->tpl_vars['current_shop_value']->value)||$_smarty_tpl->tpl_vars['current_shop_value']->value=='') {?> class="active"<?php }?>><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['url']->value, ENT_QUOTES, 'UTF-8', true);?>
"><?php echo smartyTranslate(array('s'=>'All shops'),$_smarty_tpl);?>
</a></li><?php $_smarty_tpl->tpl_vars['group_data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['group_data']->_loop = false;
$_smarty_tpl->tpl_vars['group_id'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['tree']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['group_data']->key => $_smarty_tpl->tpl_vars['group_data']->value) {
$_smarty_tpl->tpl_vars['group_data']->_loop = true;
$_smarty_tpl->tpl_vars['group_id']->value = $_smarty_tpl->tpl_vars['group_data']->key;
?><?php if (!isset($_smarty_tpl->tpl_vars['multishop_context']->value)||$_smarty_tpl->tpl_vars['is_group_context']->value) {?><li class="group<?php if ($_smarty_tpl->tpl_vars['current_shop_value']->value==('g-').($_smarty_tpl->tpl_vars['group_id']->value)) {?> active<?php }?><?php if ($_smarty_tpl->tpl_vars['multishop_context_group']->value==false) {?> disabled<?php }?>"><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['url']->value, ENT_QUOTES, 'UTF-8', true);?>
g-<?php echo $_smarty_tpl->tpl_vars['group_id']->value;?>
"><?php echo smartyTranslate(array('s'=>'%s group','sprintf'=>array(htmlspecialchars($_smarty_tpl->tpl_vars['group_data']->value['name'], ENT_QUOTES, 'UTF-8', true))),$_smarty_tpl);?>
</a></li><?php } else { ?><ul class="group <?php if ($_smarty_tpl->tpl_vars['multishop_context_group']->value==false) {?> disabled<?php }?>"><?php echo smartyTranslate(array('s'=>'%s group','sprintf'=>array(htmlspecialchars($_smarty_tpl->tpl_vars['group_data']->value['name'], ENT_QUOTES, 'UTF-8', true))),$_smarty_tpl);?>
<?php }?><?php if (!isset($_smarty_tpl->tpl_vars['multishop_context']->value)||$_smarty_tpl->tpl_vars['is_shop_context']->value) {?><?php $_smarty_tpl->tpl_vars['shop_data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['shop_data']->_loop = false;
$_smarty_tpl->tpl_vars['shop_id'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['group_data']->value['shops']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['shop_data']->key => $_smarty_tpl->tpl_vars['shop_data']->value) {
$_smarty_tpl->tpl_vars['shop_data']->_loop = true;
$_smarty_tpl->tpl_vars['shop_id']->value = $_smarty_tpl->tpl_vars['shop_data']->key;
?><?php if (($_smarty_tpl->tpl_vars['shop_data']->value['active'])) {?><li class="shop<?php if ($_smarty_tpl->tpl_vars['current_shop_value']->value==('s-').($_smarty_tpl->tpl_vars['shop_id']->value)) {?> active<?php }?>"><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['url']->value, ENT_QUOTES, 'UTF-8', true);?>
s-<?php echo $_smarty_tpl->tpl_vars['shop_id']->value;?>
"><?php if ($_smarty_tpl->tpl_vars['multishop_context_group']->value==false) {?><?php echo (htmlspecialchars($_smarty_tpl->tpl_vars['group_data']->value['name'], ENT_QUOTES, 'UTF-8', true)).(' - ').($_smarty_tpl->tpl_vars['shop_data']->value['name']);?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['shop_data']->value['name'];?>
<?php }?></a></li><?php }?><?php } ?><?php }?><?php if (!(!isset($_smarty_tpl->tpl_vars['multishop_context']->value)||$_smarty_tpl->tpl_vars['is_group_context']->value)) {?></ul><?php }?><?php } ?></ul>
<?php }} ?>

View File

@@ -0,0 +1,29 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:32
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/products/helpers/tree/tree_associated_header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:561124287568df21c288797-65460859%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'33bcf5d647cf558f462f9660222d2762b6c94868' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/controllers/products/helpers/tree/tree_associated_header.tpl',
1 => 1452142913,
2 => 'file',
),
),
'nocache_hash' => '561124287568df21c288797-65460859',
'function' =>
array (
),
'variables' =>
array (
'toolbar' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df21c28e7f3_29404065',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df21c28e7f3_29404065')) {function content_568df21c28e7f3_29404065($_smarty_tpl) {?>
<div class="tree-panel-heading-controls clearfix"><?php if (isset($_smarty_tpl->tpl_vars['toolbar']->value)) {?><?php echo $_smarty_tpl->tpl_vars['toolbar']->value;?>
<?php }?></div>
<?php }} ?>

View File

@@ -0,0 +1,87 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/required_fields.tpl" */ ?>
<?php /*%%SmartyHeaderCode:736458834568df218a1cec7-10691118%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'341e77aa6e7bc88235c2ba74c4962b82afe7c819' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/required_fields.tpl',
1 => 1452142879,
2 => 'file',
),
),
'nocache_hash' => '736458834568df218a1cec7-10691118',
'function' =>
array (
),
'variables' =>
array (
'current' => 0,
'token' => 0,
'table_fields' => 0,
'field' => 0,
'required_class_fields' => 0,
'required_fields' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df218a39aa0_78368706',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df218a39aa0_78368706')) {function content_568df218a39aa0_78368706($_smarty_tpl) {?>
<a class="btn btn-default" href="#" onclick="if ($('.requiredFieldsParameters:visible').length == 0) $('.requiredFieldsParameters').slideDown('slow'); else $('.requiredFieldsParameters').slideUp('slow'); return false;">
<i class="icon-plus-sign"></i> <?php echo smartyTranslate(array('s'=>'Set required fields for this section'),$_smarty_tpl);?>
</a>
<div class="clearfix">&nbsp;</div>
<div style="display:none" class="panel requiredFieldsParameters">
<h3><i class="icon-asterisk"></i> <?php echo smartyTranslate(array('s'=>'Required Fields'),$_smarty_tpl);?>
</h3>
<form name="updateFields" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;submitFields=1&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post">
<div class="alert alert-info">
<?php echo smartyTranslate(array('s'=>'Select the fields you would like to be required for this section.'),$_smarty_tpl);?>
</div>
<div class="row">
<table class="table">
<thead>
<tr>
<th class="fixed-width-xs">
<input type="checkbox" onclick="checkDelBoxes(this.form, 'fieldsBox[]', this.checked)" class="noborder" name="checkme">
</th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Field Name'),$_smarty_tpl);?>
</span></th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['table_fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
$_smarty_tpl->tpl_vars['field']->_loop = true;
?>
<?php if (!in_array($_smarty_tpl->tpl_vars['field']->value,$_smarty_tpl->tpl_vars['required_class_fields']->value)) {?>
<tr>
<td class="noborder">
<input type="checkbox" name="fieldsBox[]" value="<?php echo $_smarty_tpl->tpl_vars['field']->value;?>
" <?php if (in_array($_smarty_tpl->tpl_vars['field']->value,$_smarty_tpl->tpl_vars['required_fields']->value)) {?> checked="checked"<?php }?> />
</td>
<td>
<?php echo $_smarty_tpl->tpl_vars['field']->value;?>
</td>
</tr>
<?php }?>
<?php } ?>
</tbody>
</table>
</div>
<div class="panel-footer">
<button name="submitFields" type="submit" class="btn btn-default pull-right">
<i class="process-icon-save "></i> <span><?php echo smartyTranslate(array('s'=>'Save'),$_smarty_tpl);?>
</span>
</button>
</div>
</form>
</div><?php }} ?>

View File

@@ -0,0 +1,34 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:29
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/list/list_action_removestock.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1064633096568df219c76518-67829023%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'34427262507aac89d1ecdea808a442e11f532f7b' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/list/list_action_removestock.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '1064633096568df219c76518-67829023',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df219c804d7_45253070',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df219c804d7_45253070')) {function content_568df219c804d7_45253070($_smarty_tpl) {?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<i class="icon-circle-arrow-down"></i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
</a>
<?php }} ?>

View File

@@ -0,0 +1,40 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-06 20:18:57
compiled from "/home/sumit/public_html/html/hotel-reservation-system/modules/wkpaypaladaptive/views/templates/front/redirect_pay.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1146692343568d2959a7e137-82821123%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'34d45df20846b0b0e50863805e76a591cc2eda9c' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/wkpaypaladaptive/views/templates/front/redirect_pay.tpl',
1 => 1451999532,
2 => 'file',
),
),
'nocache_hash' => '1146692343568d2959a7e137-82821123',
'function' =>
array (
),
'variables' =>
array (
'payPalURL' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d2959a856b4_06609493',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d2959a856b4_06609493')) {function content_568d2959a856b4_06609493($_smarty_tpl) {?><div class="col-md-12 text-center">
<h1><?php echo smartyTranslate(array('s'=>'If you are not redirected within 10 seconds...','mod'=>'wkpaypaladaptive'),$_smarty_tpl);?>
</h1>
<a class="btn btn-primary" id="paypalredirect" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['payPalURL']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<span><?php echo smartyTranslate(array('s'=>'Click here','mod'=>'wkpaypaladaptive'),$_smarty_tpl);?>
</span>
</a>
</div>
<script type="text/javascript">
function redirect(){
document.getElementById("paypalredirect").click();
}
setTimeout(redirect, 2000);
</script><?php }} ?>

View File

@@ -0,0 +1,37 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:53:33
compiled from "/home/sumit/public_html/html/hotel-reservation-system/modules/wkpaypaladaptive/views/templates/hook/payment.tpl" */ ?>
<?php /*%%SmartyHeaderCode:887413181568d3059da6e03-97269672%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'3539a7ba3c9270c4d1d3d6d56dc0dbb19a58a6f2' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/wkpaypaladaptive/views/templates/hook/payment.tpl',
1 => 1452144187,
2 => 'file',
),
),
'nocache_hash' => '887413181568d3059da6e03-97269672',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d3059daf930_73062559',
'variables' =>
array (
'link' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d3059daf930_73062559')) {function content_568d3059daf930_73062559($_smarty_tpl) {?><div class="row">
<div class="col-xs-12 col-md-12">
<p class="payment_module">
<a class="wk_paypal_adaptive" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getModuleLink('wkpaypaladaptive','payment'), ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'Paypal Adaptive Payment','mod'=>'wkpaypaladaptive'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Paypal Adaptive Payment','mod'=>'wkpaypaladaptive'),$_smarty_tpl);?>
</a>
</p>
</div>
</div><?php }} ?>

View File

@@ -0,0 +1,39 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:41:28
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/content.tpl" */ ?>
<?php /*%%SmartyHeaderCode:302553866568d3caa90cba7-02544580%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'364df416d2146b25cd83ed8765e8af13c5bfa940' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin_htl/themes/default/template/content.tpl',
1 => 1452142870,
2 => 'file',
),
),
'nocache_hash' => '302553866568d3caa90cba7-02544580',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d3caa913d83_98322978',
'variables' =>
array (
'content' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d3caa913d83_98322978')) {function content_568d3caa913d83_98322978($_smarty_tpl) {?>
<div id="ajax_confirmation" class="alert alert-success hide"></div>
<div id="ajaxBox" style="display:none"></div>
<div class="row">
<div class="col-lg-12">
<?php if (isset($_smarty_tpl->tpl_vars['content']->value)) {?>
<?php echo $_smarty_tpl->tpl_vars['content']->value;?>
<?php }?>
</div>
</div><?php }} ?>

View File

@@ -0,0 +1,883 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 11:48:24
compiled from "/home/sumit/public_html/html/hotel-reservation-system/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2049424683568d3caa620b70-29585763%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'36b7d02f4de52541726dd68f59c75fb1d40ab12d' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/view.tpl',
1 => 1452142909,
2 => 'file',
),
),
'nocache_hash' => '2049424683568d3caa620b70-29585763',
'function' =>
array (
),
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568d3caa8bf4b5_75884067',
'variables' =>
array (
'ajax_delete' => 0,
'rms_in_cart' => 0,
'booking_data' => 0,
'date_from' => 0,
'date_to' => 0,
'hotel_name' => 0,
'name_val' => 0,
'hotel_id' => 0,
'room_type' => 0,
'all_room_type' => 0,
'val_type' => 0,
'book_k' => 0,
'book_v' => 0,
'avai_v' => 0,
'part_v' => 0,
'sub_part_v' => 0,
'sub_part_k' => 0,
'booked_v' => 0,
'rm_dtl_v' => 0,
'unavai_v' => 0,
'cart_bdata' => 0,
'cart_data' => 0,
'cart_tamount' => 0,
'link' => 0,
'id_cart' => 0,
'id_guest' => 0,
'currency' => 0,
'booking_calendar_data' => 0,
'check_css_condition_var' => 0,
'check_calender_var' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568d3caa8bf4b5_75884067')) {function content_568d3caa8bf4b5_75884067($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/sumit/public_html/html/hotel-reservation-system/tools/smarty/plugins/modifier.date_format.php';
?><?php if (!isset($_smarty_tpl->tpl_vars['ajax_delete']->value)) {?>
<div class="panel col-sm-12">
<h3 class="tab">
<i class="icon-info"></i> <?php echo smartyTranslate(array('s'=>'Booking Information','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<button type="button" class="btn btn-primary pull-right margin-right-10" id="cart_btn" data-toggle="modal" data-target="#cartModal"><i class="icon-shopping-cart"></i> <?php echo smartyTranslate(array('s'=>'Cart','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<span class="badge" id="cart_record"><?php echo $_smarty_tpl->tpl_vars['rms_in_cart']->value;?>
</span></button>
</h3>
<div class="panel-body padding-0">
<?php if ($_smarty_tpl->tpl_vars['booking_data']->value) {?>
<div class="row">
<div class="col-sm-4">
<div class="row box-border margin-right-10">
<form method="post" action="">
<div class="row">
<div class="form-group col-sm-12">
<label for="from_date" class="control-label col-sm-4 required">
<span title="" data-toggle="tooltip" class="label-tooltip"><?php echo smartyTranslate(array('s'=>'From','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</label>
<div class="col-sm-8">
<input type="text" name="from_date" class="form-control" id="from_date" <?php if (isset($_smarty_tpl->tpl_vars['date_from']->value)) {?>value="<?php echo $_smarty_tpl->tpl_vars['date_from']->value;?>
"<?php }?>>
<input type="hidden" name="search_date_from" id="search_date_from" <?php if (isset($_smarty_tpl->tpl_vars['date_from']->value)) {?>value="<?php echo $_smarty_tpl->tpl_vars['date_from']->value;?>
"<?php }?>>
</div>
</div>
<div class="form-group col-sm-12">
<label for="to_date" class="control-label col-sm-4 required">
<span title="" data-toggle="tooltip" class="label-tooltip"><?php echo smartyTranslate(array('s'=>'To','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</label>
<div class="col-sm-8">
<input type="text" name="to_date" class="form-control" id="to_date" <?php if (isset($_smarty_tpl->tpl_vars['date_to']->value)) {?>value="<?php echo $_smarty_tpl->tpl_vars['date_to']->value;?>
"<?php }?>>
<input type="hidden" name="search_date_to" id="search_date_to" <?php if (isset($_smarty_tpl->tpl_vars['date_to']->value)) {?>value="<?php echo $_smarty_tpl->tpl_vars['date_to']->value;?>
"<?php }?>>
</div>
</div>
<div class="form-group col-sm-12">
<label for="hotel_id" class="control-label col-sm-4 required">
<span title="" data-toggle="tooltip" class="label-tooltip"><?php echo smartyTranslate(array('s'=>'Hotel Name','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</label>
<div class="col-sm-8">
<select name="hotel_id" class="form-control" id="hotel_id">
<?php if (isset($_smarty_tpl->tpl_vars['hotel_name']->value)&&$_smarty_tpl->tpl_vars['hotel_name']->value) {?>
<option value='0' selected><?php echo smartyTranslate(array('s'=>'Select Hotel','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['name_val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['name_val']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['hotel_name']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['name_val']->key => $_smarty_tpl->tpl_vars['name_val']->value) {
$_smarty_tpl->tpl_vars['name_val']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['name_val']->value['id'];?>
" <?php if (isset($_smarty_tpl->tpl_vars['hotel_id']->value)&&($_smarty_tpl->tpl_vars['name_val']->value['id']==$_smarty_tpl->tpl_vars['hotel_id']->value)) {?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['name_val']->value['hotel_name'];?>
</option>
<?php } ?>
<?php }?>
</select>
</div>
</div>
<div class="form-group col-sm-12">
<label for="room_type" class="control-label col-sm-4">
<span title="" data-toggle="tooltip" class="label-tooltip"><?php echo smartyTranslate(array('s'=>'Room Type','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</label>
<div class="col-sm-8">
<select class="form-control" name="room_type" id="room_type">
<?php if (isset($_smarty_tpl->tpl_vars['room_type']->value)) {?>
<option value='0' <?php if (($_smarty_tpl->tpl_vars['room_type']->value==0)) {?>selected<?php }?>><?php echo smartyTranslate(array('s'=>'All Types','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['val_type'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val_type']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['all_room_type']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val_type']->key => $_smarty_tpl->tpl_vars['val_type']->value) {
$_smarty_tpl->tpl_vars['val_type']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['val_type']->value['id_product'];?>
" <?php if (($_smarty_tpl->tpl_vars['val_type']->value['id_product']==$_smarty_tpl->tpl_vars['room_type']->value)) {?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['val_type']->value['room_type'];?>
</option>
<?php } ?>
<?php }?>
</select>
<input type="hidden" name="search_id_prod" id="search_id_prod" value="<?php echo $_smarty_tpl->tpl_vars['room_type']->value;?>
">
</div>
</div>
<div class="col-sm-12">
<button id="search_hotel_list" name="search_hotel_list" type="submit" class="btn btn-primary pull-right">
<i class="icon-search"></i>&nbsp&nbsp<?php echo smartyTranslate(array('s'=>'Search','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</button>
</div>
</div>
</form>
</div>
</div>
<div class="col-sm-8">
<div class="row margin-lr-0 box-border calender-main-div">
<div class="hotel_date col-sm-7">
<div class="row margin-leftrgt-0">
<div class="col-sm-12 htl_date_header">
<div class="col-sm-3">
<p class="htl_date_disp"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['date_from']->value,"%d");?>
</p>
<span class="htl_month_disp"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['date_from']->value,"%b");?>
</span>
</div>
<div class="col-sm-1">
<p class="htl_date_disp">-</p>
</div>
<div class="col-sm-3">
<p class="htl_date_disp"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['date_to']->value,"%d");?>
</p>
<span class="htl_month_disp"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['date_to']->value,"%b");?>
</span>
</div>
</div>
</div>
</div>
<div class="col-sm-5 htl_room_data_cont">
<div class="row">
<div class="col-sm-6">
<div class="row">
<div class="col-sm-12 htl_room_cat_data">
<p class="room_cat_header"><?php echo smartyTranslate(array('s'=>'Total Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</p>
<p class="room_cat_data"><?php if (isset($_smarty_tpl->tpl_vars['booking_data']->value)&&$_smarty_tpl->tpl_vars['booking_data']->value) {?><?php echo $_smarty_tpl->tpl_vars['booking_data']->value['stats']['total_rooms'];?>
<?php }?></p>
</div>
</div>
<hr class="hr_style" />
</div>
<div class="col-sm-6">
<div class="row">
<div class="col-sm-12 htl_room_cat_data no_border">
<p class="room_cat_header"><?php echo smartyTranslate(array('s'=>'Partially Available','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</p>
<p class="room_cat_data" id="num_part"><?php if (isset($_smarty_tpl->tpl_vars['booking_data']->value)&&$_smarty_tpl->tpl_vars['booking_data']->value) {?><?php echo $_smarty_tpl->tpl_vars['booking_data']->value['stats']['num_part_avai'];?>
<?php }?></p>
</div>
</div>
<hr class="hr_style" />
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="row">
<div class="col-sm-12 htl_room_cat_data">
<p class="room_cat_header"><?php echo smartyTranslate(array('s'=>'Available Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</p>
<p class="room_cat_data" id="num_avail"><?php if (isset($_smarty_tpl->tpl_vars['booking_data']->value)&&$_smarty_tpl->tpl_vars['booking_data']->value) {?><?php echo $_smarty_tpl->tpl_vars['booking_data']->value['stats']['num_avail'];?>
<?php }?></p>
</div>
</div>
<hr class="hr_style" />
</div>
<div class="col-sm-6">
<div class="row">
<div class="col-sm-12 htl_room_cat_data no_border">
<p class="room_cat_header"><?php echo smartyTranslate(array('s'=>'Booked Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</p>
<p class="room_cat_data"><?php if (isset($_smarty_tpl->tpl_vars['booking_data']->value)&&$_smarty_tpl->tpl_vars['booking_data']->value) {?><?php echo $_smarty_tpl->tpl_vars['booking_data']->value['stats']['num_booked'];?>
<?php }?></p>
</div>
</div>
<hr class="hr_style" />
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="row">
<div class="col-sm-12 htl_room_cat_data">
<p class="room_cat_header"><?php echo smartyTranslate(array('s'=>'Unavailable Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</p>
<p class="room_cat_data"><?php if (isset($_smarty_tpl->tpl_vars['booking_data']->value)&&$_smarty_tpl->tpl_vars['booking_data']->value) {?><?php echo $_smarty_tpl->tpl_vars['booking_data']->value['stats']['num_unavail'];?>
<?php }?></p>
</div>
</div>
<hr class="hr_style" />
</div>
<div class="col-sm-6">
<div class="row">
<div class="col-sm-12 htl_room_cat_data">
<p class="room_cat_header"><?php echo smartyTranslate(array('s'=>'In-Cart Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</p>
<p class="room_cat_data" id="cart_stats"><?php if (isset($_smarty_tpl->tpl_vars['booking_data']->value)&&$_smarty_tpl->tpl_vars['booking_data']->value) {?><?php echo $_smarty_tpl->tpl_vars['booking_data']->value['stats']['num_cart'];?>
<?php }?></p>
</div>
</div>
<hr class="hr_style" />
</div>
</div>
<div class="row">
<div class="col-sm-6 indi_cont clearfix">
<div class="color_indicate bg-green"></div>
<span class="indi_label"><?php echo smartyTranslate(array('s'=>'Available Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</div>
<div class="col-sm-6 indi_cont clearfix">
<div class="color_indicate bg-yellow"></div>
<span class="indi_label"><?php echo smartyTranslate(array('s'=>'Partially Available','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</div>
<div class="col-sm-6 indi_cont clearfix">
<div class="color_indicate bg-red"></div>
<span class="indi_label"><?php echo smartyTranslate(array('s'=>'Unavailable Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</div>
<!-- <div class="col-sm-6 indi_cont clearfix">
<div class="color_indicate bg-gray"></div>
<span class="indi_label"><?php echo smartyTranslate(array('s'=>'Hold For Maintenance','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</div> -->
</div>
</div>
</div>
</div>
</div>
<?php } else { ?>
<p class="alert alert-warning"> <?php echo smartyTranslate(array('s'=>"Please add Hotels and rooms First !",'mod'=>"hotelreservationsystem"),$_smarty_tpl);?>
</p>
<?php }?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['booking_data']->value)&&$_smarty_tpl->tpl_vars['booking_data']->value) {?>
<div class="row margin-div" id="htl_rooms_list">
<div class="col-sm-12">
<ul class="nav nav-tabs">
<?php $_smarty_tpl->tpl_vars['book_v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['book_v']->_loop = false;
$_smarty_tpl->tpl_vars['book_k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['booking_data']->value['rm_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['book_v']->key => $_smarty_tpl->tpl_vars['book_v']->value) {
$_smarty_tpl->tpl_vars['book_v']->_loop = true;
$_smarty_tpl->tpl_vars['book_k']->value = $_smarty_tpl->tpl_vars['book_v']->key;
?>
<li <?php if ($_smarty_tpl->tpl_vars['book_k']->value==0) {?>class="active"<?php }?> ><a href="#room_type_<?php echo $_smarty_tpl->tpl_vars['book_k']->value;?>
" data-toggle="tab"><?php echo $_smarty_tpl->tpl_vars['book_v']->value['name'];?>
</a></li>
<?php } ?>
</ul>
<div class="tab-content panel">
<?php $_smarty_tpl->tpl_vars['book_v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['book_v']->_loop = false;
$_smarty_tpl->tpl_vars['book_k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['booking_data']->value['rm_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['book_v']->key => $_smarty_tpl->tpl_vars['book_v']->value) {
$_smarty_tpl->tpl_vars['book_v']->_loop = true;
$_smarty_tpl->tpl_vars['book_k']->value = $_smarty_tpl->tpl_vars['book_v']->key;
?>
<div id="room_type_<?php echo $_smarty_tpl->tpl_vars['book_k']->value;?>
" class="tab-pane <?php if ($_smarty_tpl->tpl_vars['book_k']->value==0) {?>active<?php }?>">
<ul class="nav nav-tabs">
<li class="active"><a href="#avail_room_data_<?php echo $_smarty_tpl->tpl_vars['book_k']->value;?>
" data-toggle="tab"><?php echo smartyTranslate(array('s'=>'Available Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</a></li>
<li><a href="#part_room_data_<?php echo $_smarty_tpl->tpl_vars['book_k']->value;?>
" data-toggle="tab"><?php echo smartyTranslate(array('s'=>'Partially Available','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</a></li>
<li><a href="#book_room_data_<?php echo $_smarty_tpl->tpl_vars['book_k']->value;?>
" data-toggle="tab"><?php echo smartyTranslate(array('s'=>'Booked Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</a></li>
<li><a href="#unavail_room_data_<?php echo $_smarty_tpl->tpl_vars['book_k']->value;?>
" data-toggle="tab"><?php echo smartyTranslate(array('s'=>'Unavailable Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</a></li>
</ul>
<div class="tab-content panel">
<div id="avail_room_data_<?php echo $_smarty_tpl->tpl_vars['book_k']->value;?>
" class="tab-pane active">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Room No.','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Duration','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Message','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Allotment Type','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Action','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['avai_v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['avai_v']->_loop = false;
$_smarty_tpl->tpl_vars['avai_k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['book_v']->value['data']['available']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['avai_v']->key => $_smarty_tpl->tpl_vars['avai_v']->value) {
$_smarty_tpl->tpl_vars['avai_v']->_loop = true;
$_smarty_tpl->tpl_vars['avai_k']->value = $_smarty_tpl->tpl_vars['avai_v']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['avai_v']->value['room_num'];?>
</td>
<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['date_from']->value,'%d %b %Y');?>
- <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['date_to']->value,'%d %b %Y');?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['avai_v']->value['room_comment'];?>
</td>
<td>
<label class="control-label">
<input type="radio" value="1" name="bk_type_<?php echo $_smarty_tpl->tpl_vars['avai_v']->value['id_room'];?>
" data-id-room="<?php echo $_smarty_tpl->tpl_vars['avai_v']->value['id_room'];?>
" class="avai_bk_type" checked>
<span><?php echo smartyTranslate(array('s'=>'Auto Allotment','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</label>
<label class="control-label">
<input type="radio" value="2" name="bk_type_<?php echo $_smarty_tpl->tpl_vars['avai_v']->value['id_room'];?>
" data-id-room="<?php echo $_smarty_tpl->tpl_vars['avai_v']->value['id_room'];?>
" class="avai_bk_type">
<span><?php echo smartyTranslate(array('s'=>'Manual Allotment','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</label>
<input type="text" id="comment_<?php echo $_smarty_tpl->tpl_vars['avai_v']->value['id_room'];?>
" class="form-control avai_comment">
</td>
<td>
<button type="button" data-id-cart="" data-id-cart-book-data="" data-id-product="<?php echo $_smarty_tpl->tpl_vars['avai_v']->value['id_product'];?>
" data-id-room="<?php echo $_smarty_tpl->tpl_vars['avai_v']->value['id_room'];?>
" data-id-hotel="<?php echo $_smarty_tpl->tpl_vars['avai_v']->value['id_hotel'];?>
" data-date-from="<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['date_from']->value,'%Y-%m-%d');?>
" data-date-to ="<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['date_to']->value,'%Y-%m-%d');?>
" class="btn btn-primary avai_add_cart"><?php echo smartyTranslate(array('s'=>'Add To Cart','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</button>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<div id="part_room_data_<?php echo $_smarty_tpl->tpl_vars['book_k']->value;?>
" class="tab-pane">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Room No.','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th class="text-center"><span class="title_box"><?php echo smartyTranslate(array('s'=>'Duration','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th class="text-center"><span class="title_box"><?php echo smartyTranslate(array('s'=>'Allotment Type','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th class="text-center"><span class="title_box"><?php echo smartyTranslate(array('s'=>'Action','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['part_v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['part_v']->_loop = false;
$_smarty_tpl->tpl_vars['part_k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['book_v']->value['data']['partially_available']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['part_v']->key => $_smarty_tpl->tpl_vars['part_v']->value) {
$_smarty_tpl->tpl_vars['part_v']->_loop = true;
$_smarty_tpl->tpl_vars['part_k']->value = $_smarty_tpl->tpl_vars['part_v']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['part_v']->value['room_num'];?>
</td>
<td colspan="3">
<table class="table">
<?php $_smarty_tpl->tpl_vars['sub_part_v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sub_part_v']->_loop = false;
$_smarty_tpl->tpl_vars['sub_part_k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['part_v']->value['avai_dates']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sub_part_v']->key => $_smarty_tpl->tpl_vars['sub_part_v']->value) {
$_smarty_tpl->tpl_vars['sub_part_v']->_loop = true;
$_smarty_tpl->tpl_vars['sub_part_k']->value = $_smarty_tpl->tpl_vars['sub_part_v']->key;
?>
<tr>
<td class="text-center">
<p><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['sub_part_v']->value['date_from'],'%d %b %Y');?>
- <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['sub_part_v']->value['date_to'],'%d %b %Y');?>
</p>
</td>
<td class="text-center">
<label class="control-label">
<input type="radio" value="1" class="par_bk_type" name="bk_type_<?php echo $_smarty_tpl->tpl_vars['part_v']->value['id_room'];?>
_<?php echo $_smarty_tpl->tpl_vars['sub_part_k']->value;?>
" data-id-room="<?php echo $_smarty_tpl->tpl_vars['part_v']->value['id_room'];?>
" data-sub-key="<?php echo $_smarty_tpl->tpl_vars['sub_part_k']->value;?>
" checked>
<span><?php echo smartyTranslate(array('s'=>'Auto Allotment','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</label>
<label class="control-label">
<input type="radio" value="2" class="par_bk_type" name="bk_type_<?php echo $_smarty_tpl->tpl_vars['part_v']->value['id_room'];?>
_<?php echo $_smarty_tpl->tpl_vars['sub_part_k']->value;?>
" data-id-room="<?php echo $_smarty_tpl->tpl_vars['part_v']->value['id_room'];?>
" data-sub-key="<?php echo $_smarty_tpl->tpl_vars['sub_part_k']->value;?>
">
<span><?php echo smartyTranslate(array('s'=>'Manual Allotment','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</label>
<input type="text" id="comment_<?php echo $_smarty_tpl->tpl_vars['part_v']->value['id_room'];?>
_<?php echo $_smarty_tpl->tpl_vars['sub_part_k']->value;?>
" class="form-control par_comment">
</td>
<td class="text-center">
<button type="button" data-id-cart="" data-id-cart-book-data="" data-id-product="<?php echo $_smarty_tpl->tpl_vars['part_v']->value['id_product'];?>
" data-id-room="<?php echo $_smarty_tpl->tpl_vars['part_v']->value['id_room'];?>
" data-id-hotel="<?php echo $_smarty_tpl->tpl_vars['part_v']->value['id_hotel'];?>
" data-date-from="<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['sub_part_v']->value['date_from'],'%Y-%m-%d');?>
" data-date-to ="<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['sub_part_v']->value['date_to'],'%Y-%m-%d');?>
" data-sub-key="<?php echo $_smarty_tpl->tpl_vars['sub_part_k']->value;?>
" class="btn btn-primary par_add_cart"><?php echo smartyTranslate(array('s'=>'Add To Cart','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</button>
</td>
</tr>
<?php } ?>
</table>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<div id="book_room_data_<?php echo $_smarty_tpl->tpl_vars['book_k']->value;?>
" class="tab-pane">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Room No.','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th class="text-center"><span class="title_box"><?php echo smartyTranslate(array('s'=>'Duration','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th class="text-center"><span class="title_box"><?php echo smartyTranslate(array('s'=>'Message','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th class="text-center"><span class="title_box"><?php echo smartyTranslate(array('s'=>'Allotment Type','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Reallocate','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['booked_v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['booked_v']->_loop = false;
$_smarty_tpl->tpl_vars['booked_k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['book_v']->value['data']['booked']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['booked_v']->key => $_smarty_tpl->tpl_vars['booked_v']->value) {
$_smarty_tpl->tpl_vars['booked_v']->_loop = true;
$_smarty_tpl->tpl_vars['booked_k']->value = $_smarty_tpl->tpl_vars['booked_v']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['booked_v']->value['room_num'];?>
</td>
<td colspan="4">
<table class="table">
<?php $_smarty_tpl->tpl_vars['rm_dtl_v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['rm_dtl_v']->_loop = false;
$_smarty_tpl->tpl_vars['rm_dtl_k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['booked_v']->value['detail']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['rm_dtl_v']->key => $_smarty_tpl->tpl_vars['rm_dtl_v']->value) {
$_smarty_tpl->tpl_vars['rm_dtl_v']->_loop = true;
$_smarty_tpl->tpl_vars['rm_dtl_k']->value = $_smarty_tpl->tpl_vars['rm_dtl_v']->key;
?>
<tr>
<td class="col-xs-3"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['rm_dtl_v']->value['date_from'],'%d %b %Y');?>
- <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['rm_dtl_v']->value['date_to'],'%d %b %Y');?>
</td>
<td class="col-xs-3"><?php echo $_smarty_tpl->tpl_vars['rm_dtl_v']->value['comment'];?>
</td>
<td class="col-xs-3">
<label class="control-label">
<input type="radio" value="1" <?php if ($_smarty_tpl->tpl_vars['rm_dtl_v']->value['booking_type']==1) {?>checked<?php }?> name="bt_type_<?php echo $_smarty_tpl->tpl_vars['booked_v']->value['id_room'];?>
_<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['rm_dtl_v']->value['date_from'],'%Y%m%d');?>
">
<span><?php echo smartyTranslate(array('s'=>'Auto Allotment','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</label>
<label class="control-label">
<input type="radio" value="2" <?php if ($_smarty_tpl->tpl_vars['rm_dtl_v']->value['booking_type']==2) {?>checked<?php }?> name="bt_type_<?php echo $_smarty_tpl->tpl_vars['booked_v']->value['id_room'];?>
_<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['rm_dtl_v']->value['date_from'],'%Y%m%d');?>
">
<span><?php echo smartyTranslate(array('s'=>'Manual Allotment','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</label>
</td>
<?php if ($_smarty_tpl->tpl_vars['rm_dtl_v']->value['booking_type']==1) {?>
<td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#mySwappigModal" data-room_num=<?php echo $_smarty_tpl->tpl_vars['booked_v']->value['room_num'];?>
data-date_from=<?php echo $_smarty_tpl->tpl_vars['rm_dtl_v']->value['date_from'];?>
data-date_to=<?php echo $_smarty_tpl->tpl_vars['rm_dtl_v']->value['date_to'];?>
data-id_room=<?php echo $_smarty_tpl->tpl_vars['booked_v']->value['id_room'];?>
data-cust_name="<?php echo $_smarty_tpl->tpl_vars['rm_dtl_v']->value['alloted_cust_name'];?>
" data-cust_email="<?php echo $_smarty_tpl->tpl_vars['rm_dtl_v']->value['alloted_cust_email'];?>
" data-avail_rm_realloc=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['rm_dtl_v']->value['avail_rooms_to_realloc']);?>
data-avail_rm_swap=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['rm_dtl_v']->value['avail_rooms_to_swap']);?>
>
<?php echo smartyTranslate(array('s'=>'Reallocate Room','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</button>
</td>
<?php }?>
</tr>
<?php } ?>
</table>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<div id="unavail_room_data_<?php echo $_smarty_tpl->tpl_vars['book_k']->value;?>
" class="tab-pane">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Room No.','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Message','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span></th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['unavai_v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['unavai_v']->_loop = false;
$_smarty_tpl->tpl_vars['unavai_k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['book_v']->value['data']['unavailable']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['unavai_v']->key => $_smarty_tpl->tpl_vars['unavai_v']->value) {
$_smarty_tpl->tpl_vars['unavai_v']->_loop = true;
$_smarty_tpl->tpl_vars['unavai_k']->value = $_smarty_tpl->tpl_vars['unavai_v']->key;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['unavai_v']->value['room_num'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['unavai_v']->value['room_comment'];?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<?php }?>
<?php if (!isset($_smarty_tpl->tpl_vars['ajax_delete']->value)) {?>
</div>
</div>
</div>
<div class="modal fade" id="cartModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close margin-right-10" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" id="myModalLabel"><i class="icon-shopping-cart"></i>&nbsp <?php echo smartyTranslate(array('s'=>'Cart Options','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</h4>
</div>
<div class="modal-body">
<div class="row margin-lr-0">
<div class="cart_table_container">
<table class="table table-responsive addtocart-table">
<thead class="cart-table-thead">
<tr>
<th><?php echo smartyTranslate(array('s'=>'Room No.','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</th>
<th><?php echo smartyTranslate(array('s'=>'Room Type','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</th>
<th><?php echo smartyTranslate(array('s'=>'Duration','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</th>
<th><?php echo smartyTranslate(array('s'=>'Amount','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</th>
<th></th>
</tr>
</thead>
<tbody class="cart_tbody">
<?php if (isset($_smarty_tpl->tpl_vars['cart_bdata']->value)) {?>
<?php $_smarty_tpl->tpl_vars['cart_data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['cart_data']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['cart_bdata']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['cart_data']->key => $_smarty_tpl->tpl_vars['cart_data']->value) {
$_smarty_tpl->tpl_vars['cart_data']->_loop = true;
?>
<tr>
<td><?php echo $_smarty_tpl->tpl_vars['cart_data']->value['room_num'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['cart_data']->value['room_type'];?>
</td>
<td>
<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['cart_data']->value['date_from'],'%d %b %Y');?>
- <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['cart_data']->value['date_to'],'%d %b %Y');?>
</td>
<td><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price'=>$_smarty_tpl->tpl_vars['cart_data']->value['amt_with_qty']),$_smarty_tpl);?>
</td>
<td><button class="btn btn-default ajax_cart_delete_data" data-id-product="<?php echo $_smarty_tpl->tpl_vars['cart_data']->value['id_product'];?>
" data-id-hotel="<?php echo $_smarty_tpl->tpl_vars['cart_data']->value['id_hotel'];?>
" data-id-cart="<?php echo $_smarty_tpl->tpl_vars['cart_data']->value['id_cart'];?>
" data-id-cart-book-data="<?php echo $_smarty_tpl->tpl_vars['cart_data']->value['id_cart_book_data'];?>
" data-date-from="<?php echo $_smarty_tpl->tpl_vars['cart_data']->value['date_from'];?>
" data-date-to="<?php echo $_smarty_tpl->tpl_vars['cart_data']->value['date_to'];?>
"><i class='icon-trash'></i></button></td>
</tr>
<?php } ?>
<?php }?>
</tbody>
</table>
</div>
<div class="row cart_amt_div">
<table class="table table-responsive">
<tr>
<th colspan="2"><?php echo smartyTranslate(array('s'=>'Total Amount','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</th>
<th colspan="2" class="text-right" id="cart_total_amt">
<?php if (isset($_smarty_tpl->tpl_vars['cart_tamount']->value)) {?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price'=>$_smarty_tpl->tpl_vars['cart_tamount']->value),$_smarty_tpl);?>
<?php } else { ?>0<?php }?>
</th>
<th colspan="1"></th>
</tr>
</table>
</div>
</div>
</div>
<div class="modal-footer">
<a href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminOrders');?>
&amp;addorder&amp;cart_id=<?php echo intval($_smarty_tpl->tpl_vars['id_cart']->value);?>
&amp;guest_id=<?php echo intval($_smarty_tpl->tpl_vars['id_guest']->value);?>
" class="btn btn-primary cart_booking_btn" <?php if (empty($_smarty_tpl->tpl_vars['cart_bdata']->value)) {?>disabled="disabled"<?php }?>>
<?php echo smartyTranslate(array('s'=>'Book Now','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</a>
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo smartyTranslate(array('s'=>'Close','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</button>
</div>
</div>
</div>
</div>
<!-- Modal for reallocation of rooms -->
<div class="modal fade" id="mySwappigModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#reallocate_room_tab" aria-controls="reallocate" role="tab" data-toggle="tab"><?php echo smartyTranslate(array('s'=>'Room Reallocation','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</a></li>
<li role="presentation"><a href="#swap_room_tab" aria-controls="swap" role="tab" data-toggle="tab"><?php echo smartyTranslate(array('s'=>'Swap Room','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</a></li>
</ul>
<div class="tab-content panel active">
<div role="tabpanel" class="tab-pane active" id="reallocate_room_tab">
<form method="post" action="">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="realloc_myModalLabel"><?php echo smartyTranslate(array('s'=>'Reallocate Rooms'),$_smarty_tpl);?>
</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="curr_room_num" class="control-label"><?php echo smartyTranslate(array('s'=>'Current Room Number:','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<input type="text" class="form-control modal_curr_room_num" name="modal_curr_room_num" readonly="true">
<input type="hidden" class="form-control modal_date_from" name="modal_date_from">
<input type="hidden" class="form-control modal_date_to" name="modal_date_to">
<input type="hidden" class="form-control modal_id_room" name="modal_id_room">
</div>
<div class="form-group">
<label for="realloc_avail_rooms" class="control-label"><?php echo smartyTranslate(array('s'=>'Available Rooms To Reallocate:','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div style="width: 195px;">
<select class="form-control" name="realloc_avail_rooms" id="realloc_avail_rooms">
<option value="0" selected="selected"><?php echo smartyTranslate(array('s'=>'Select Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</option>
</select>
<p class="error_text" id="realloc_sel_rm_err_p"></p>
</div>
</div>
<div class="form-group">
<label style="text-decoration:underline;margin-top:5px;" for="message-text" class="col-sm-12 control-label"><i class="icon-info-circle"></i>&nbsp;<?php echo smartyTranslate(array('s'=>'Currently Alloted Customer Information:','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<dl class="well list-detail">
<dt><?php echo smartyTranslate(array('s'=>'Name'),$_smarty_tpl);?>
</dt>
<dd class="cust_name"></dd><br>
<dt><?php echo smartyTranslate(array('s'=>'Email'),$_smarty_tpl);?>
</dt>
<dd class="cust_email"></dd><br>
</dl>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo smartyTranslate(array('s'=>"Close",'mod'=>"hotelreservationsyatem"),$_smarty_tpl);?>
</button>
<input type="submit" id="realloc_allocated_rooms" name="realloc_allocated_rooms" class="btn btn-primary" value="Reallocate">
</div>
</form>
</div>
<div role="tabpanel" class="tab-pane" id="swap_room_tab">
<form method="post" action="">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="swap_myModalLabel"><?php echo smartyTranslate(array('s'=>'Swap Rooms'),$_smarty_tpl);?>
</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="swap_curr_room_num" class="control-label"><?php echo smartyTranslate(array('s'=>'Current Room Number:','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<input type="text" class="form-control modal_curr_room_num" name="modal_curr_room_num" readonly="true">
<input type="hidden" class="form-control modal_date_from" name="modal_date_from">
<input type="hidden" class="form-control modal_date_to" name="modal_date_to">
<input type="hidden" class="form-control modal_id_room" name="modal_id_room">
</div>
<div class="form-group">
<label for="swap_avail_rooms" class="control-label"><?php echo smartyTranslate(array('s'=>'Available Rooms To Swap:','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div style="width: 195px;">
<select class="form-control" name="swap_avail_rooms" id="swap_avail_rooms">
<option value="0" selected="selected"><?php echo smartyTranslate(array('s'=>'Select Rooms','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</option>
</select>
<p class="error_text" id="swap_sel_rm_err_p"></p>
</div>
</div>
<div class="form-group">
<label style="text-decoration:underline;margin-top:5px;" for="message-text" class="col-sm-12 control-label"><i class="icon-info-circle"></i>&nbsp;<?php echo smartyTranslate(array('s'=>'Currently Alloted Customer Information:','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<dl class="well list-detail">
<dt><?php echo smartyTranslate(array('s'=>'Name'),$_smarty_tpl);?>
</dt>
<dd class="cust_name"></dd><br>
<dt><?php echo smartyTranslate(array('s'=>'Email'),$_smarty_tpl);?>
</dt>
<dd class="cust_email"></dd><br>
</dl>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo smartyTranslate(array('s'=>"Close",'mod'=>"hotelreservationsyatem"),$_smarty_tpl);?>
</button>
<input type="submit" id="swap_allocated_rooms" name="swap_allocated_rooms" class="btn btn-primary" value="Swap">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('rooms_booking_url'=>$_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminHotelRoomsBooking')),$_smarty_tpl);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'opt_select_all')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'opt_select_all'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'All Types','js'=>1,'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'opt_select_all'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'slt_another_htl')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'slt_another_htl'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Select Another Hotel','js'=>1,'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'slt_another_htl'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'from_date_cond')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'from_date_cond'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'From date is required','js'=>1,'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'from_date_cond'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'to_date_cond')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'to_date_cond'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'To date is required','js'=>1,'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'to_date_cond'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'hotel_name_cond')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'hotel_name_cond'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Hotel Name is required','js'=>1,'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'hotel_name_cond'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'num_rooms_cond')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'num_rooms_cond'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Number of Rooms is required','js'=>1,'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'num_rooms_cond'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'add_to_cart')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'add_to_cart'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Add To Cart','js'=>1,'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'add_to_cart'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'remove')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'remove'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Remove','js'=>1,'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'remove'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currency_prefix'=>$_smarty_tpl->tpl_vars['currency']->value->prefix),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currency_suffix'=>$_smarty_tpl->tpl_vars['currency']->value->suffix),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currency_sign'=>$_smarty_tpl->tpl_vars['currency']->value->sign),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currency_format'=>$_smarty_tpl->tpl_vars['currency']->value->format),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currency_blank'=>$_smarty_tpl->tpl_vars['currency']->value->blank),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('booking_calendar_data'=>$_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['booking_calendar_data']->value)),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('check_css_condition_var'=>$_smarty_tpl->tpl_vars['check_css_condition_var']->value),$_smarty_tpl);?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('check_calender_var'=>$_smarty_tpl->tpl_vars['check_calender_var']->value),$_smarty_tpl);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'no_rm_avail_txt')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'no_rm_avail_txt'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'No rooms available.','js'=>1,'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'no_rm_avail_txt'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'slct_rm_err')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'slct_rm_err'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo smartyTranslate(array('s'=>'Please select a room first.','js'=>1,'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'slct_rm_err'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php }?>
<script type="text/javascript">
$(document).ready(function()
{
$('.avai_comment, .par_comment').hide();
$('.avai_bk_type').on('change', function()
{
var id_room = $(this).attr('data-id-room');
var booking_type = $(this).val();
if (booking_type == 1)
{
$('#comment_'+id_room).hide().val('');
}
else if (booking_type == 2)
$('#comment_'+id_room).show();
});
$('.par_bk_type').on('change', function()
{
var id_room = $(this).attr('data-id-room');
var sub_key = $(this).attr('data-sub-key');
var booking_type = $(this).val();
if (booking_type == 1)
{
$('#comment_'+id_room+'_'+sub_key).hide().val('');
}
else if (booking_type == 2)
{
$('#comment_'+id_room+'_'+sub_key).show();
}
});
});
</script>
<?php }} ?>

View File

@@ -0,0 +1,41 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-07 10:35:29
compiled from "/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/list/list_action_duplicate.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1242399589568df2199cd330-38855980%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'36f72d9345fae81bc7ca320556410401e84fa835' =>
array (
0 => '/home/sumit/public_html/html/hotel-reservation-system/admin/themes/default/template/helpers/list/list_action_duplicate.tpl',
1 => 1452142888,
2 => 'file',
),
),
'nocache_hash' => '1242399589568df2199cd330-38855980',
'function' =>
array (
),
'variables' =>
array (
'action' => 0,
'confirm' => 0,
'location_ok' => 0,
'location_ko' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_568df2199e2e34_89198742',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_568df2199e2e34_89198742')) {function content_568df2199e2e34_89198742($_smarty_tpl) {?>
<a href="#" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
" onclick="<?php if ($_smarty_tpl->tpl_vars['confirm']->value) {?>confirm_link('', '<?php echo $_smarty_tpl->tpl_vars['confirm']->value;?>
', '<?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
', '<?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['location_ok']->value, ENT_QUOTES, 'UTF-8', true);?>
', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['location_ko']->value, ENT_QUOTES, 'UTF-8', true);?>
')<?php } else { ?>document.location = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['location_ko']->value, ENT_QUOTES, 'UTF-8', true);?>
'<?php }?>">
<i class="icon-copy"></i> <?php echo $_smarty_tpl->tpl_vars['action']->value;?>
</a>
<?php }} ?>

Some files were not shown because too many files have changed in this diff Show More