version 0.0.3: theme preview image, issue of country having no states at the time of installation has been resolved

This commit is contained in:
Vinay Yadav
2016-02-01 22:43:00 +05:30
parent 7346079bd7
commit 0dd9b82fa8
545 changed files with 76658 additions and 33 deletions

29
cache/sandbox/16ar.xml vendored Normal file
View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<localizationPack name="Argentina" version="1.0">
<currencies>
<currency name="Peso Argentino" iso_code="ARS" iso_code_num="032" sign="ARS" blank="1" conversion_rate="5.39" format="2" decimals="1" />
</currencies>
<languages>
<language iso_code="ag" />
<language iso_code="es" />
</languages>
<taxes>
<tax id="1" name="IVA AR 21%" rate="21" />
<tax id="2" name="IVA AR 10.5%" rate="10.5" />
<taxRulesGroup name="AR Standard rate (21%)">
<taxRule iso_code_country="ar" id_tax="1" />
</taxRulesGroup>
<taxRulesGroup name="AR Reduced rate (10.5%)">
<taxRule iso_code_country="ar" id_tax="2" />
</taxRulesGroup>
</taxes>
<units>
<unit type="weight" value="kg" />
<unit type="volume" value="L" />
<unit type="short_distance" value="cm" />
<unit type="base_distance" value="m" />
<unit type="long_distance" value="km" />
</units>
</localizationPack>

28
cache/sandbox/16id.xml vendored Normal file
View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" ?>
<localizationPack name="Indonesia" version="1.0">
<currencies>
<currency name="Rupiah" iso_code="IDR" iso_code_num="360" sign="Rp‎" blank="1" conversion_rate="12177.63" format="2" decimals="1" />
</currencies>
<languages>
<language iso_code="id" />
</languages>
<taxes>
<tax id="1" name="PPN ID 10%" rate="10" />
<tax id="2" name="PPN ID 5%" rate="5" />
<taxRulesGroup name="ID Standard Rate (10%)">
<taxRule iso_code_country="id" id_tax="1" />
</taxRulesGroup>
<taxRulesGroup name="ID Reduced Rate (5%)">
<taxRule iso_code_country="id" id_tax="2" />
</taxRulesGroup>
</taxes>
<units>
<unit type="weight" value="kg" />
<unit type="volume" value="L" />
<unit type="short_distance" value="cm" />
<unit type="base_distance" value="m" />
<unit type="long_distance" value="km" />
</units>
</localizationPack>

73
cache/sandbox/16jp.xml vendored Normal file
View File

@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8" ?>
<localizationPack name="Japan" version="1.0">
<currencies>
<currency name="Yen" iso_code="JPY" iso_code_num="392" sign="¥" blank="1" conversion_rate="113.786" format="1" decimals="0" />
</currencies>
<languages>
<language iso_code="ja" />
</languages>
<taxes>
<tax id="1" name="消費税 JP 5%" rate="5" />
<taxRulesGroup name="JP Standard Rate (5%)">
<taxRule iso_code_country="jp" id_tax="1" />
</taxRulesGroup>
</taxes>
<units>
<unit type="weight" value="匁" />
<unit type="volume" value="升" />
<unit type="short_distance" value="曲尺" />
<unit type="base_distance" value="丈" />
</units>
<states>
<state name="Aichi" iso_code="JP-23" country="JP" zone="Asia"/>
<state name="Akita" iso_code="JP-05" country="JP" zone="Asia"/>
<state name="Aomori" iso_code="JP-02" country="JP" zone="Asia"/>
<state name="Chiba" iso_code="JP-12" country="JP" zone="Asia"/>
<state name="Ehime" iso_code="JP-38" country="JP" zone="Asia"/>
<state name="Fukui" iso_code="JP-18" country="JP" zone="Asia"/>
<state name="Fukuoka" iso_code="JP-40" country="JP" zone="Asia"/>
<state name="Fukushima" iso_code="JP-07" country="JP" zone="Asia"/>
<state name="Gifu" iso_code="JP-21" country="JP" zone="Asia"/>
<state name="Gunma" iso_code="JP-10" country="JP" zone="Asia"/>
<state name="Hiroshima" iso_code="JP-34" country="JP" zone="Asia"/>
<state name="Hokkaido" iso_code="JP-01" country="JP" zone="Asia"/>
<state name="Hyōgo" iso_code="JP-28" country="JP" zone="Asia"/>
<state name="Ibaraki" iso_code="JP-08" country="JP" zone="Asia"/>
<state name="Ishikawa" iso_code="JP-17" country="JP" zone="Asia"/>
<state name="Iwate" iso_code="JP-03" country="JP" zone="Asia"/>
<state name="Kagawa" iso_code="JP-37" country="JP" zone="Asia"/>
<state name="Kagoshima" iso_code="JP-46" country="JP" zone="Asia"/>
<state name="Kanagawa" iso_code="JP-14" country="JP" zone="Asia"/>
<state name="Kōchi" iso_code="JP-39" country="JP" zone="Asia"/>
<state name="Kumamoto" iso_code="JP-43" country="JP" zone="Asia"/>
<state name="Kyoto" iso_code="JP-26" country="JP" zone="Asia"/>
<state name="Mie" iso_code="JP-24" country="JP" zone="Asia"/>
<state name="Miyagi" iso_code="JP-04" country="JP" zone="Asia"/>
<state name="Miyazaki" iso_code="JP-45" country="JP" zone="Asia"/>
<state name="Nagano" iso_code="JP-20" country="JP" zone="Asia"/>
<state name="Nagasaki" iso_code="JP-42" country="JP" zone="Asia"/>
<state name="Nara" iso_code="JP-29" country="JP" zone="Asia"/>
<state name="Niigata" iso_code="JP-15" country="JP" zone="Asia"/>
<state name="Ōita" iso_code="JP-44" country="JP" zone="Asia"/>
<state name="Okayama" iso_code="JP-33" country="JP" zone="Asia"/>
<state name="Okinawa" iso_code="JP-47" country="JP" zone="Asia"/>
<state name="Osaka" iso_code="JP-27" country="JP" zone="Asia"/>
<state name="Saga" iso_code="JP-41" country="JP" zone="Asia"/>
<state name="Saitama" iso_code="JP-11" country="JP" zone="Asia"/>
<state name="Shiga" iso_code="JP-25" country="JP" zone="Asia"/>
<state name="Shimane" iso_code="JP-32" country="JP" zone="Asia"/>
<state name="Shizuoka" iso_code="JP-22" country="JP" zone="Asia"/>
<state name="Tochigi" iso_code="JP-09" country="JP" zone="Asia"/>
<state name="Tokushima" iso_code="JP-36" country="JP" zone="Asia"/>
<state name="Tokyo" iso_code="JP-13" country="JP" zone="Asia"/>
<state name="Tottori" iso_code="JP-31" country="JP" zone="Asia"/>
<state name="Toyama" iso_code="JP-16" country="JP" zone="Asia"/>
<state name="Wakayama" iso_code="JP-30" country="JP" zone="Asia"/>
<state name="Yamagata" iso_code="JP-06" country="JP" zone="Asia"/>
<state name="Yamaguchi" iso_code="JP-35" country="JP" zone="Asia"/>
<state name="Yamanashi" iso_code="JP-19" country="JP" zone="Asia"/>
</states>
</localizationPack>

21
cache/sandbox/16th.xml vendored Normal file
View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<localizationPack name="Thailand" version="1.0">
<currencies>
<currency name="Baht" iso_code="THB" iso_code_num="978" sign="฿" blank="1" conversion_rate="41.4441" format="2" decimals="1" />
</currencies>
<languages>
<language iso_code="th" />
</languages>
<taxes>
<tax id="1" name="VAT TH 7%" rate="7" />
<taxRulesGroup name="TH Standard Rate (7%)">
<taxRule iso_code_country="th" id_tax="1" />
</taxRulesGroup>
</taxes>
<units>
<unit type="weight" value="kg" />
<unit type="volume" value="L" />
<unit type="base_distance" value="wah" />
</units>
</localizationPack>

View File

@@ -0,0 +1,45 @@
<?php /*%%SmartyHeaderCode:892279856ab3d3c31b195-15121976%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'8894a2c5511181d4e555f2b74d8d81cc3f9436b3' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/themes/hotel-reservation-theme/modules/blocksocial/blocksocial.tpl',
1 => 1454061942,
2 => 'file',
),
),
'nocache_hash' => '892279856ab3d3c31b195-15121976',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8f78a16e45_28068087',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8f78a16e45_28068087')) {function content_56ab8f78a16e45_28068087($_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:892279856ab3d3c31b195-15121976%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'8894a2c5511181d4e555f2b74d8d81cc3f9436b3' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/themes/hotel-reservation-theme/modules/blocksocial/blocksocial.tpl',
1 => 1454061942,
2 => 'file',
),
),
'nocache_hash' => '892279856ab3d3c31b195-15121976',
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8db0530045_36977184',
'has_nocache_code' => false,
'cache_lifetime' => 31536000,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8db0530045_36977184')) {function content_56ab8db0530045_36977184($_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,29 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:59
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/helpers/tree/tree_associated_header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:43292648056ab3ba3cdc0a6-86254848%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'00d05ec06446dcdb7456504771ced47c76c293e6' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/helpers/tree/tree_associated_header.tpl',
1 => 1454062130,
2 => 'file',
),
),
'nocache_hash' => '43292648056ab3ba3cdc0a6-86254848',
'function' =>
array (
),
'variables' =>
array (
'toolbar' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba3ce25a2_60673107',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba3ce25a2_60673107')) {function content_56ab3ba3ce25a2_60673107($_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,37 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:55
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/tree/tree_node_item_checkbox.tpl" */ ?>
<?php /*%%SmartyHeaderCode:123878614056ab3b9f48f962-10430115%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0156ecb0cd31ad1ec0e6ff51bd33281feef780c0' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/tree/tree_node_item_checkbox.tpl',
1 => 1454062117,
2 => 'file',
),
),
'nocache_hash' => '123878614056ab3b9f48f962-10430115',
'function' =>
array (
),
'variables' =>
array (
'node' => 0,
'input_name' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3b9f4a7e85_49527711',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3b9f4a7e85_49527711')) {function content_56ab3b9f4a7e85_49527711($_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<?php if (isset($_smarty_tpl->tpl_vars['node']->value['disabled'])&&$_smarty_tpl->tpl_vars['node']->value['disabled']==true) {?> tree-item-name-disable<?php }?>">
<input type="checkbox" name="<?php echo $_smarty_tpl->tpl_vars['input_name']->value;?>
[]" 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,35 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:58
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/login/layout.tpl" */ ?>
<?php /*%%SmartyHeaderCode:16476774456ab3ba23a70a0-62824569%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'027b4ea74492f4dcc9fbfa5e0301bda215217b4d' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/login/layout.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '16476774456ab3ba23a70a0-62824569',
'function' =>
array (
),
'variables' =>
array (
'header' => 0,
'page' => 0,
'footer' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba23ac697_52228860',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba23ac697_52228860')) {function content_56ab3ba23ac697_52228860($_smarty_tpl) {?>
<?php echo $_smarty_tpl->tpl_vars['header']->value;?>
<?php echo $_smarty_tpl->tpl_vars['page']->value;?>
<?php echo $_smarty_tpl->tpl_vars['footer']->value;?>
<?php }} ?>

View File

@@ -0,0 +1,550 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 05:22:26
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin267x7js2k/themes/default/template/header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:56853239156ab3d629d7b57-14920210%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0284a9b69437d097d724dcec333837d5907e034c' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin267x7js2k/themes/default/template/header.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '56853239156ab3d629d7b57-14920210',
'function' =>
array (
),
'variables' =>
array (
'iso' => 0,
'img_dir' => 0,
'meta_title' => 0,
'shop_name' => 0,
'display_header_javascript' => 0,
'controller_name' => 0,
'iso_user' => 0,
'full_language_code' => 0,
'country_iso_code' => 0,
'round_mode' => 0,
'shop_context' => 0,
'autorefresh_notifications' => 0,
'token' => 0,
'currentIndex' => 0,
'default_language' => 0,
'link' => 0,
'tab_modules_list' => 0,
'css_files' => 0,
'css_uri' => 0,
'js_def' => 0,
'js_files' => 0,
'displayBackOfficeHeader' => 0,
'brightness' => 0,
'display_header' => 0,
'employee' => 0,
'collapse_menu' => 0,
'default_tab_link' => 0,
'version' => 0,
'is_multishop' => 0,
'shop_list' => 0,
'multishop_context' => 0,
'show_new_orders' => 0,
'show_new_customers' => 0,
'show_new_messages' => 0,
'quick_access' => 0,
'quick' => 0,
'matchQuickLink' => 0,
'quick_access_current_link_name' => 0,
'quick_access_current_link_icon' => 0,
'logged_on_addons' => 0,
'display_addons_connection' => 0,
'base_url' => 0,
'base_url_tc' => 0,
'maintenance_mode' => 0,
'host_mode' => 0,
'login_link' => 0,
'displayBackOfficeTop' => 0,
'bootstrap' => 0,
'page_header_toolbar' => 0,
'modal_module_list' => 0,
'install_dir_exists' => 0,
'lite_display' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3d62b9e015_79112573',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3d62b9e015_79112573')) {function content_56ab3d62b9e015_79112573($_smarty_tpl) {?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6 " lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8 ie7" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9 ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]> <html lang="fr" class="no-js ie9" lang="en"> <![endif]-->
<html lang="<?php echo $_smarty_tpl->tpl_vars['iso']->value;?>
">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=0.75, maximum-scale=0.75, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="icon" type="image/x-icon" href="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?>
favicon.ico" />
<link rel="apple-touch-icon" href="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?>
app_icon.png" />
<meta name="robots" content="NOFOLLOW, NOINDEX">
<title><?php if ($_smarty_tpl->tpl_vars['meta_title']->value!='') {?><?php echo $_smarty_tpl->tpl_vars['meta_title']->value;?>
• <?php }?><?php echo $_smarty_tpl->tpl_vars['shop_name']->value;?>
</title>
<?php if (!isset($_smarty_tpl->tpl_vars['display_header_javascript']->value)||$_smarty_tpl->tpl_vars['display_header_javascript']->value) {?>
<script type="text/javascript">
var help_class_name = '<?php echo addcslashes($_smarty_tpl->tpl_vars['controller_name']->value,'\'');?>
';
var iso_user = '<?php echo addcslashes($_smarty_tpl->tpl_vars['iso_user']->value,'\'');?>
';
var full_language_code = '<?php echo addcslashes($_smarty_tpl->tpl_vars['full_language_code']->value,'\'');?>
';
var country_iso_code = '<?php echo addcslashes($_smarty_tpl->tpl_vars['country_iso_code']->value,'\'');?>
';
var _PS_VERSION_ = '<?php echo addcslashes(@constant('_PS_VERSION_'),'\'');?>
';
var roundMode = <?php echo intval($_smarty_tpl->tpl_vars['round_mode']->value);?>
;
<?php if (isset($_smarty_tpl->tpl_vars['shop_context']->value)) {?>
<?php if ($_smarty_tpl->tpl_vars['shop_context']->value==Shop::CONTEXT_ALL) {?>
var youEditFieldFor = '<?php echo smartyTranslate(array('s'=>'This field will be modified for all your shops.','js'=>1),$_smarty_tpl);?>
';
<?php } elseif ($_smarty_tpl->tpl_vars['shop_context']->value==Shop::CONTEXT_GROUP) {?>
var youEditFieldFor = '<?php echo smartyTranslate(array('s'=>'This field will be modified for all shops in this shop group:','js'=>1),$_smarty_tpl);?>
<b><?php echo addcslashes($_smarty_tpl->tpl_vars['shop_name']->value,'\'');?>
</b>';
<?php } else { ?>
var youEditFieldFor = '<?php echo smartyTranslate(array('s'=>'This field will be modified for this shop:','js'=>1),$_smarty_tpl);?>
<b><?php echo addcslashes($_smarty_tpl->tpl_vars['shop_name']->value,'\'');?>
</b>';
<?php }?>
<?php } else { ?>
var youEditFieldFor = '';
<?php }?>
var autorefresh_notifications = '<?php echo addcslashes($_smarty_tpl->tpl_vars['autorefresh_notifications']->value,'\'');?>
';
var new_order_msg = '<?php echo smartyTranslate(array('s'=>'A new order has been placed on your shop.','js'=>1),$_smarty_tpl);?>
';
var order_number_msg = '<?php echo smartyTranslate(array('s'=>'Order number:','js'=>1),$_smarty_tpl);?>
';
var total_msg = '<?php echo smartyTranslate(array('s'=>'Total:','js'=>1),$_smarty_tpl);?>
';
var from_msg = '<?php echo smartyTranslate(array('s'=>'From:','js'=>1),$_smarty_tpl);?>
';
var see_order_msg = '<?php echo smartyTranslate(array('s'=>'View this order','js'=>1),$_smarty_tpl);?>
';
var new_customer_msg = '<?php echo smartyTranslate(array('s'=>'A new customer registered on your shop.','js'=>1),$_smarty_tpl);?>
';
var customer_name_msg = '<?php echo smartyTranslate(array('s'=>'Customer name:','js'=>1),$_smarty_tpl);?>
';
var new_msg = '<?php echo smartyTranslate(array('s'=>'A new message was posted on your shop.','js'=>1),$_smarty_tpl);?>
';
var see_msg = '<?php echo smartyTranslate(array('s'=>'Read this message','js'=>1),$_smarty_tpl);?>
';
var token = '<?php echo addslashes($_smarty_tpl->tpl_vars['token']->value);?>
';
var token_admin_orders = '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminOrders'),$_smarty_tpl);?>
';
var token_admin_customers = '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminCustomers'),$_smarty_tpl);?>
';
var token_admin_customer_threads = '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminCustomerThreads'),$_smarty_tpl);?>
';
var currentIndex = '<?php echo addcslashes($_smarty_tpl->tpl_vars['currentIndex']->value,'\'');?>
';
var employee_token = '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminEmployees'),$_smarty_tpl);?>
';
var choose_language_translate = '<?php echo smartyTranslate(array('s'=>'Choose language','js'=>1),$_smarty_tpl);?>
';
var default_language = '<?php echo intval($_smarty_tpl->tpl_vars['default_language']->value);?>
';
var admin_modules_link = '<?php echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink("AdminModules"));?>
';
var tab_modules_list = '<?php if (isset($_smarty_tpl->tpl_vars['tab_modules_list']->value)&&$_smarty_tpl->tpl_vars['tab_modules_list']->value) {?><?php echo addslashes($_smarty_tpl->tpl_vars['tab_modules_list']->value);?>
<?php }?>';
var update_success_msg = '<?php echo smartyTranslate(array('s'=>'Update successful','js'=>1),$_smarty_tpl);?>
';
var errorLogin = '<?php echo smartyTranslate(array('s'=>'PrestaShop was unable to log in to Addons. Please check your credentials and your Internet connection.','js'=>1),$_smarty_tpl);?>
';
var search_product_msg = '<?php echo smartyTranslate(array('s'=>'Search for a product','js'=>1),$_smarty_tpl);?>
';
</script>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['css_files']->value)) {?>
<?php $_smarty_tpl->tpl_vars['media'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['media']->_loop = false;
$_smarty_tpl->tpl_vars['css_uri'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['css_files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['media']->key => $_smarty_tpl->tpl_vars['media']->value) {
$_smarty_tpl->tpl_vars['media']->_loop = true;
$_smarty_tpl->tpl_vars['css_uri']->value = $_smarty_tpl->tpl_vars['media']->key;
?>
<link href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['css_uri']->value, ENT_QUOTES, 'UTF-8', true);?>
" rel="stylesheet" type="text/css"/>
<?php } ?>
<?php }?>
<?php if ((isset($_smarty_tpl->tpl_vars['js_def']->value)&&count($_smarty_tpl->tpl_vars['js_def']->value)||isset($_smarty_tpl->tpl_vars['js_files']->value)&&count($_smarty_tpl->tpl_vars['js_files']->value))) {?>
<?php echo $_smarty_tpl->getSubTemplate ((@constant('_PS_ALL_THEMES_DIR_')).("javascript.tpl"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['displayBackOfficeHeader']->value)) {?>
<?php echo $_smarty_tpl->tpl_vars['displayBackOfficeHeader']->value;?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['brightness']->value)) {?>
<!--
// @todo: multishop color
<style type="text/css">
div#header_infos, div#header_infos a#header_shopname, div#header_infos a#header_logout, div#header_infos a#header_foaccess {color:<?php echo $_smarty_tpl->tpl_vars['brightness']->value;?>
}
</style>
-->
<?php }?>
</head>
<?php if ($_smarty_tpl->tpl_vars['display_header']->value) {?>
<body class="ps_back-office<?php if ($_smarty_tpl->tpl_vars['employee']->value->bo_menu) {?> page-sidebar<?php if ($_smarty_tpl->tpl_vars['collapse_menu']->value) {?> page-sidebar-closed<?php }?><?php } else { ?> page-topbar<?php }?> <?php echo strtolower(htmlspecialchars($_GET['controller'], ENT_QUOTES, 'UTF-8', true));?>
">
<header id="header" class="bootstrap">
<nav id="header_infos" role="navigation">
<div class="navbar-header">
<button id="header_nav_toggle" type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-primary">
<i class="icon-reorder"></i>
</button>
<a id="header_shopversion" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['default_tab_link']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<span id="shop_version"><?php echo $_smarty_tpl->tpl_vars['version']->value;?>
</span>
</a>
<?php if (isset($_smarty_tpl->tpl_vars['is_multishop']->value)&&$_smarty_tpl->tpl_vars['is_multishop']->value&&$_smarty_tpl->tpl_vars['shop_list']->value&&(isset($_smarty_tpl->tpl_vars['multishop_context']->value)&&$_smarty_tpl->tpl_vars['multishop_context']->value&Shop::CONTEXT_GROUP||$_smarty_tpl->tpl_vars['multishop_context']->value&Shop::CONTEXT_SHOP)) {?>
<ul id="header_shop">
<li class="dropdown">
<?php echo $_smarty_tpl->tpl_vars['shop_list']->value;?>
</li>
</ul>
<?php } else { ?>
<a id="header_shopname" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['default_tab_link']->value, ENT_QUOTES, 'UTF-8', true);?>
"><?php echo $_smarty_tpl->tpl_vars['shop_name']->value;?>
</a>
<?php }?>
<ul id="header_notifs_icon_wrapper">
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['show_new_orders']->value;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==1) {?>
<li id="orders_notif" class="dropdown" data-type="order">
<a href="javascript:void(0);" class="dropdown-toggle notifs" data-toggle="dropdown">
<i class="icon-shopping-cart"></i>
<span id="orders_notif_number_wrapper" class="notifs_badge hide">
<span id="orders_notif_value">0</span>
</span>
</a>
<div class="dropdown-menu notifs_dropdown">
<section id="orders_notif_wrapper" class="notifs_panel">
<div class="notifs_panel_header">
<h3><?php echo smartyTranslate(array('s'=>'Latest Orders'),$_smarty_tpl);?>
</h3>
</div>
<div id="list_orders_notif" class="list_notif">
<span class="no_notifs">
<?php echo smartyTranslate(array('s'=>'No new orders have been placed on your shop.'),$_smarty_tpl);?>
</span>
</div>
<div class="notifs_panel_footer">
<a href="index.php?controller=AdminOrders&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminOrders'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Show all orders'),$_smarty_tpl);?>
</a>
</div>
</section>
</div>
</li>
<?php }?>
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['show_new_customers']->value;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==1) {?>
<li id="customers_notif" class="dropdown" data-type="customer">
<a href="javascript:void(0);" class="dropdown-toggle notifs" data-toggle="dropdown">
<i class="icon-user"></i>
<span id="customers_notif_number_wrapper" class="notifs_badge hide">
<span id="customers_notif_value">0</span>
</span>
</a>
<div class="dropdown-menu notifs_dropdown">
<section id="customers_notif_wrapper" class="notifs_panel">
<div class="notifs_panel_header">
<h3><?php echo smartyTranslate(array('s'=>'Latest Registrations'),$_smarty_tpl);?>
</h3>
</div>
<div id="list_customers_notif" class="list_notif">
<span class="no_notifs">
<?php echo smartyTranslate(array('s'=>'No new customers have registered on your shop.'),$_smarty_tpl);?>
</span>
</div>
<div class="notifs_panel_footer">
<a href="index.php?controller=AdminCustomers&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminCustomers'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Show all customers'),$_smarty_tpl);?>
</a>
</div>
</section>
</div>
</li>
<?php }?>
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['show_new_messages']->value;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==1) {?>
<li id="customer_messages_notif" class="dropdown" data-type="customer_message">
<a href="javascript:void(0);" class="dropdown-toggle notifs" data-toggle="dropdown">
<i class="icon-envelope"></i>
<span id="customer_messages_notif_number_wrapper" class="notifs_badge hide">
<span id="customer_messages_notif_value" >0</span>
</span>
</a>
<div class="dropdown-menu notifs_dropdown">
<section id="customer_messages_notif_wrapper" class="notifs_panel">
<div class="notifs_panel_header">
<h3><?php echo smartyTranslate(array('s'=>'Latest Messages'),$_smarty_tpl);?>
</h3>
</div>
<div id="list_customer_messages_notif" class="list_notif">
<span class="no_notifs">
<?php echo smartyTranslate(array('s'=>'No new messages have been posted on your shop.'),$_smarty_tpl);?>
</span>
</div>
<div class="notifs_panel_footer">
<a href="index.php?controller=AdminCustomerThreads&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminCustomerThreads'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Show all messages'),$_smarty_tpl);?>
</a>
</div>
</section>
</div>
</li>
<?php }?>
</ul>
<?php if (count($_smarty_tpl->tpl_vars['quick_access']->value)>=0) {?>
<ul id="header_quick">
<li class="dropdown">
<a href="javascript:void(0)" id="quick_select" class="dropdown-toggle" data-toggle="dropdown"><?php echo smartyTranslate(array('s'=>'Quick Access'),$_smarty_tpl);?>
<i class="icon-caret-down"></i></a>
<ul class="dropdown-menu">
<?php $_smarty_tpl->tpl_vars['quick'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['quick']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['quick_access']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['quick']->key => $_smarty_tpl->tpl_vars['quick']->value) {
$_smarty_tpl->tpl_vars['quick']->_loop = true;
?>
<li <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['quick']->value['link'];?>
<?php $_tmp4=ob_get_clean();?><?php if ($_smarty_tpl->tpl_vars['link']->value->matchQuickLink($_tmp4)) {?><?php $_smarty_tpl->tpl_vars["matchQuickLink"] = new Smarty_variable($_smarty_tpl->tpl_vars['quick']->value['id_quick_access'], null, 0);?>class="active"<?php }?>>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['quick']->value['link'], ENT_QUOTES, 'UTF-8', true);?>
"<?php if ($_smarty_tpl->tpl_vars['quick']->value['new_window']) {?> class="_blank"<?php }?>>
<?php if (isset($_smarty_tpl->tpl_vars['quick']->value['icon'])) {?>
<i class="icon-<?php echo $_smarty_tpl->tpl_vars['quick']->value['icon'];?>
icon-fw"></i>
<?php } else { ?>
<i class="icon-chevron-right icon-fw"></i>
<?php }?>
<?php echo $_smarty_tpl->tpl_vars['quick']->value['name'];?>
</a>
</li>
<?php } ?>
<li class="divider"></li>
<?php if (isset($_smarty_tpl->tpl_vars['matchQuickLink']->value)) {?>
<li>
<a href="javascript:void(0);" class="ajax-quick-link" data-method="remove" data-quicklink-id="<?php echo $_smarty_tpl->tpl_vars['matchQuickLink']->value;?>
">
<i class="icon-minus-circle"></i>
<?php echo smartyTranslate(array('s'=>'Remove from QuickAccess'),$_smarty_tpl);?>
</a>
</li>
<?php }?>
<li <?php if (isset($_smarty_tpl->tpl_vars['matchQuickLink']->value)) {?>class="hide"<?php }?>>
<a href="javascript:void(0);" class="ajax-quick-link" data-method="add">
<i class="icon-plus-circle"></i>
<?php echo smartyTranslate(array('s'=>'Add current page to QuickAccess'),$_smarty_tpl);?>
</a>
</li>
</ul>
</li>
</ul>
<?php $_smarty_tpl->tpl_vars['quick_access_current_link_name'] = new Smarty_variable(explode(" - ",$_smarty_tpl->tpl_vars['quick_access_current_link_name']->value), null, 0);?>
<script>
$(function() {
$('.ajax-quick-link').on('click', function(e){
e.preventDefault();
var method = $(this).data('method');
if(method == 'add')
var name = prompt('<?php echo smartyTranslate(array('s'=>'Please name this shortcut:','js'=>1),$_smarty_tpl);?>
', '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['quick_access_current_link_name']->value[0],32);?>
');
if(method == 'add' && name || method == 'remove')
{
$.ajax({
type: 'POST',
headers: { "cache-control": "no-cache" },
async: false,
url: "<?php echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminQuickAccesses');?>
" + "&action=GetUrl" + "&rand=<?php echo rand(1,200);?>
" + "&ajax=1" + "&method=" + method + ( $(this).data('quicklink-id') ? "&id_quick_access=" + $(this).data('quicklink-id') : ""),
data: {
"url": "<?php echo $_smarty_tpl->tpl_vars['link']->value->getQuickLink($_SERVER['REQUEST_URI']);?>
",
"name": name,
"icon": "<?php echo $_smarty_tpl->tpl_vars['quick_access_current_link_icon']->value;?>
"
},
dataType: "json",
success: function(data) {
var quicklink_list ='';
$.each(data, function(index,value){
if (typeof data[index]['name'] !== 'undefined')
quicklink_list += '<li><a href="' + data[index]['link'] + '&token=' + data[index]['token'] + '"><i class="icon-chevron-right"></i> ' + data[index]['name'] + '</a></li>';
});
if (typeof data['has_errors'] !== 'undefined' && data['has_errors'])
$.each(data, function(index, value)
{
if (typeof data[index] == 'string')
$.growl.error({ title: "", message: data[index]});
});
else if (quicklink_list)
{
$("#header_quick ul.dropdown-menu").html(quicklink_list);
showSuccessMessage(update_success_msg);
}
}
});
}
});
});
</script>
<?php }?>
<ul id="header_employee_box">
<?php if ((!isset($_smarty_tpl->tpl_vars['logged_on_addons']->value)||!$_smarty_tpl->tpl_vars['logged_on_addons']->value)&&(isset($_smarty_tpl->tpl_vars['display_addons_connection']->value)&&$_smarty_tpl->tpl_vars['display_addons_connection']->value)) {?>
<li class="hidden-sm hidden-xs">
<a href="#" class="addons_connect toolbar_btn" data-toggle="modal" data-target="#modal_addons_connect" title="<?php echo smartyTranslate(array('s'=>'Connect to PrestaShop Marketplace account'),$_smarty_tpl);?>
">
<i class="icon-chain-broken"></i>
<span class="string-long"><?php echo smartyTranslate(array('s'=>'Connect to PrestaShop Marketplace account'),$_smarty_tpl);?>
</span>
<span class="string-short"><?php echo smartyTranslate(array('s'=>'PrestaShop Marketplace'),$_smarty_tpl);?>
</span>
</a>
</li>
<?php }?>
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5) {?>
<li>
<a href="<?php if (isset($_smarty_tpl->tpl_vars['base_url_tc']->value)) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_url_tc']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_url']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php }?>" id="header_foaccess" class="_blank" title="<?php echo smartyTranslate(array('s'=>'View my shop'),$_smarty_tpl);?>
">
<span class="string-long"><?php echo smartyTranslate(array('s'=>'My shop'),$_smarty_tpl);?>
</span>
<span class="string-short"><?php echo smartyTranslate(array('s'=>'Shop'),$_smarty_tpl);?>
</span>
</a>
<?php if (isset($_smarty_tpl->tpl_vars['maintenance_mode']->value)&&$_smarty_tpl->tpl_vars['maintenance_mode']->value==true) {?>
<span class="maintenance-mode">
&mdash;
<span class="label-tooltip" data-toggle="tooltip" data-placement="bottom" data-html="true"
title="<p class='text-left text-nowrap'><strong><?php echo smartyTranslate(array('s'=>'Your shop is in maintenance.'),$_smarty_tpl);?>
</strong></p><p class='text-left'><?php echo smartyTranslate(array('s'=>'Your visitors and customers cannot access your shop while in maintenance mode.%s To manage the maintenance settings, go to Preferences > Maintenance.','sprintf'=>'<br />'),$_smarty_tpl);?>
</p>"><?php echo smartyTranslate(array('s'=>'Maintenance mode'),$_smarty_tpl);?>
</span>
</span>
<?php }?>
</li>
<?php }?>
<li id="employee_infos" class="dropdown">
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminEmployees'), ENT_QUOTES, 'UTF-8', true);?>
&amp;id_employee=<?php echo intval($_smarty_tpl->tpl_vars['employee']->value->id);?>
&amp;updateemployee" class="employee_name dropdown-toggle" data-toggle="dropdown">
<span class="employee_avatar_small">
<?php if (isset($_smarty_tpl->tpl_vars['employee']->value)) {?>
<img class="imgm img-thumbnail" alt="" src="<?php echo $_smarty_tpl->tpl_vars['employee']->value->getImage();?>
" width="32" height="32" />
<?php }?>
</span>
<span class="string-long"><?php echo $_smarty_tpl->tpl_vars['employee']->value->firstname;?>
&nbsp;<?php echo $_smarty_tpl->tpl_vars['employee']->value->lastname;?>
</span>
<span class="string-short"><?php echo smartyTranslate(array('s'=>'Me'),$_smarty_tpl);?>
</span>
<i class="caret"></i>
</a>
<ul id="employee_links" class="dropdown-menu">
<li>
<span class="employee_avatar">
<img class="imgm img-thumbnail" alt="" src="<?php echo $_smarty_tpl->tpl_vars['employee']->value->getImage();?>
" width="96" height="96" />
</span>
</li>
<li class="text-center text-nowrap"><?php echo $_smarty_tpl->tpl_vars['employee']->value->firstname;?>
<?php echo $_smarty_tpl->tpl_vars['employee']->value->lastname;?>
</li>
<li class="divider"></li>
<li><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminEmployees'), ENT_QUOTES, 'UTF-8', true);?>
&amp;id_employee=<?php echo intval($_smarty_tpl->tpl_vars['employee']->value->id);?>
&amp;updateemployee"><i class="icon-wrench"></i> <?php echo smartyTranslate(array('s'=>'My preferences'),$_smarty_tpl);?>
</a></li>
<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>
<li><a href="https://www.prestashop.com/cloud/" class="_blank"><i class="icon-wrench"></i> <?php echo smartyTranslate(array('s'=>'My PrestaShop account'),$_smarty_tpl);?>
</a></li>
<?php }?>
<li class="divider"></li>
<li><a id="header_logout" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['login_link']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;logout"><i class="icon-signout"></i> <?php echo smartyTranslate(array('s'=>'Sign out'),$_smarty_tpl);?>
</a></li>
</ul>
</li>
</ul>
<span id="ajax_running">
<i class="icon-refresh icon-spin icon-fw"></i>
</span>
<?php if (isset($_smarty_tpl->tpl_vars['displayBackOfficeTop']->value)) {?><?php echo $_smarty_tpl->tpl_vars['displayBackOfficeTop']->value;?>
<?php }?>
</div>
</nav>
</header>
<div id="main">
<?php echo $_smarty_tpl->getSubTemplate ('nav.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<div id="content" class="<?php if (!$_smarty_tpl->tpl_vars['bootstrap']->value) {?>nobootstrap<?php } else { ?>bootstrap<?php }?>">
<?php if (isset($_smarty_tpl->tpl_vars['page_header_toolbar']->value)) {?><?php echo $_smarty_tpl->tpl_vars['page_header_toolbar']->value;?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['modal_module_list']->value)) {?><?php echo $_smarty_tpl->tpl_vars['modal_module_list']->value;?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['install_dir_exists']->value) {?>
<div class="alert alert-warning">
<?php echo smartyTranslate(array('s'=>'For security reasons, you must also delete the /install folder.'),$_smarty_tpl);?>
</div>
<?php }?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayAdminAfterHeader'),$_smarty_tpl);?>
<?php } else { ?>
<body<?php if (isset($_smarty_tpl->tpl_vars['lite_display']->value)&&$_smarty_tpl->tpl_vars['lite_display']->value) {?> class="ps_back-office display-modal"<?php }?>>
<div id="main">
<div id="content" class="<?php if (!$_smarty_tpl->tpl_vars['bootstrap']->value) {?>nobootstrap<?php } else { ?>bootstrap<?php }?>">
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,126 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:59
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/referrers/form_settings.tpl" */ ?>
<?php /*%%SmartyHeaderCode:180047649656ab3ba300ac79-27886838%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'02fdf2f2f4b2987bac37e9337337f377609b9de1' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/referrers/form_settings.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '180047649656ab3ba300ac79-27886838',
'function' =>
array (
),
'variables' =>
array (
'current' => 0,
'token' => 0,
'tracking_dt' => 0,
'statsdata_name' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba30430e6_62580978',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba30430e6_62580978')) {function content_56ab3ba30430e6_62580978($_smarty_tpl) {?>
<div class="row">
<div class="col-lg-6">
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post" id="refresh_index_form" name="refresh_index_form" class="form-horizontal">
<div class="panel">
<h3>
<i class="icon-fullscreen"></i> <?php echo smartyTranslate(array('s'=>'Indexing'),$_smarty_tpl);?>
</h3>
<div class="alert alert-info"><?php echo smartyTranslate(array('s'=>'There is a huge quantity of data, so each connection corresponding to a referrer is indexed. You can also refresh this index by clicking the "Refresh index" button. This process may take a while, and it\'s only needed if you modified or added a referrer, or if you want changes to be retroactive.'),$_smarty_tpl);?>
</div>
<button type="submit" class="btn btn-default" name="submitRefreshIndex" id="submitRefreshIndex">
<i class="icon-refresh"></i> <?php echo smartyTranslate(array('s'=>'Refresh index'),$_smarty_tpl);?>
</button>
</div>
</form>
</div>
<div class="col-lg-6">
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post" id="refresh_cache_form" name="refresh_cache_form" class="form-horizontal">
<div class="panel">
<h3>
<i class="icon-briefcase"></i> <?php echo smartyTranslate(array('s'=>'Cache'),$_smarty_tpl);?>
</h3>
<div class="alert alert-info"><?php echo smartyTranslate(array('s'=>'Your data is cached in order to sort it and filter it. You can refresh the cache by clicking on the "Refresh cache" button.'),$_smarty_tpl);?>
</div>
<button type="submit" class="btn btn-default" name="submitRefreshCache" id="submitRefreshCache">
<i class="icon-refresh"></i> <?php echo smartyTranslate(array('s'=>'Refresh cache'),$_smarty_tpl);?>
</button>
</div>
</form>
</div>
</div>
</div>
<div id="settings_referrers" class="row">
<div class="col-lg-3">
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post" id="settings_form" name="settings_form" class="form-horizontal">
<div class="panel">
<h3>
<i class="icon-cog"></i> <?php echo smartyTranslate(array('s'=>'Settings'),$_smarty_tpl);?>
</h3>
<div class="alert alert-info"><?php echo smartyTranslate(array('s'=>'Direct traffic can be quite resource-intensive. You should consider enabling it only if you have a strong need for it.'),$_smarty_tpl);?>
</div>
<div class="form-group">
<label class="control-label col-lg-6"><?php echo smartyTranslate(array('s'=>'Save direct traffic?'),$_smarty_tpl);?>
</label>
<div class="col-lg-6">
<div class="row">
<div class="input-group fixed-width-md">
<span class="switch prestashop-switch">
<input type="radio" name="tracking_dt" id="tracking_dt_on" value="1" <?php if ($_smarty_tpl->tpl_vars['tracking_dt']->value) {?>checked="checked"<?php }?> />
<label class="t" for="tracking_dt_on">
<?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</label>
<input type="radio" name="tracking_dt" id="tracking_dt_off" value="0" <?php if (!$_smarty_tpl->tpl_vars['tracking_dt']->value) {?>checked="checked"<?php }?> />
<label class="t" for="tracking_dt_off">
<?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
</div>
</div>
<button type="submit" class="btn btn-default" name="submitSettings" id="submitSettings">
<i class="icon-save"></i> <?php echo smartyTranslate(array('s'=>'Save'),$_smarty_tpl);?>
</button>
</div>
</form>
</div>
<?php if ($_smarty_tpl->tpl_vars['statsdata_name']->value) {?>
<div class="col-lg-3">
<div class="panel">
<div class="alert alert-info">
<?php echo smartyTranslate(array('s'=>"The module '%s' must be activated and configurated in order to have all the statistics",'sprintf'=>$_smarty_tpl->tpl_vars['statsdata_name']->value),$_smarty_tpl);?>
</div>
</div>
</div>
<?php }?>
</div>
<?php }} ?>

View File

@@ -0,0 +1,62 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:54
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/shops_list/list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:46912795556ab3b9eb7e605-31199540%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'03049564b8622a3e63a674887bd22b2f5329ccd9' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/shops_list/list.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '46912795556ab3b9eb7e605-31199540',
'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_56ab3b9ebd9a25_23432364',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3b9ebd9a25_23432364')) {function content_56ab3b9ebd9a25_23432364($_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,90 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 01:03:39
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/nav.tpl" */ ?>
<?php /*%%SmartyHeaderCode:31857558356ab8d5b48f446-15860705%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'03b4c620dc0d7860773181595d68a66e1570fc7d' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/nav.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '31857558356ab8d5b48f446-15860705',
'function' =>
array (
),
'variables' =>
array (
'employee' => 0,
'tab' => 0,
'tabs' => 0,
't' => 0,
't2' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8d5b4f67c2_29101590',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8d5b4f67c2_29101590')) {function content_56ab8d5b4f67c2_29101590($_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,92 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 01:02:45
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/controllers/login/header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:138649458856ab8d25794fa4-20256083%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'05ea87d0238f45b259ac3c4e6a25bf9237a03856' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/controllers/login/header.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '138649458856ab8d25794fa4-20256083',
'function' =>
array (
),
'variables' =>
array (
'iso' => 0,
'img_dir' => 0,
'shop_name' => 0,
'meta_title' => 0,
'navigationPipe' => 0,
'css_files' => 0,
'css_uri' => 0,
'media' => 0,
'js_files' => 0,
'js_uri' => 0,
'js_def' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8d257c89b3_56616782',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8d257c89b3_56616782')) {function content_56ab8d257c89b3_56616782($_smarty_tpl) {?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8 ie7"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9 ie8"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js ie9"> <![endif]-->
<html lang="<?php echo $_smarty_tpl->tpl_vars['iso']->value;?>
">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="icon" type="image/x-icon" href="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?>
favicon.ico" />
<link rel="apple-touch-icon" href="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?>
app_icon.png" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="robots" content="NOFOLLOW, NOINDEX">
<title>
<?php echo $_smarty_tpl->tpl_vars['shop_name']->value;?>
<?php if ($_smarty_tpl->tpl_vars['meta_title']->value!='') {?><?php if (isset($_smarty_tpl->tpl_vars['navigationPipe']->value)) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['navigationPipe']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?>&gt;<?php }?> <?php echo $_smarty_tpl->tpl_vars['meta_title']->value;?>
<?php }?> (PrestaShop&trade;)
</title>
<?php $_smarty_tpl->tpl_vars['media'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['media']->_loop = false;
$_smarty_tpl->tpl_vars['css_uri'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['css_files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['media']->key => $_smarty_tpl->tpl_vars['media']->value) {
$_smarty_tpl->tpl_vars['media']->_loop = true;
$_smarty_tpl->tpl_vars['css_uri']->value = $_smarty_tpl->tpl_vars['media']->key;
?>
<link href="<?php echo $_smarty_tpl->tpl_vars['css_uri']->value;?>
" rel="stylesheet" type="text/css" media="<?php echo $_smarty_tpl->tpl_vars['media']->value;?>
" />
<?php } ?>
<?php $_smarty_tpl->tpl_vars['js_uri'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['js_uri']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['js_files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['js_uri']->key => $_smarty_tpl->tpl_vars['js_uri']->value) {
$_smarty_tpl->tpl_vars['js_uri']->_loop = true;
?>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js_uri']->value;?>
"></script>
<?php } ?>
<script type="text/javascript" src="../js/admin/login.js?<?php echo time();?>
"></script>
<?php if ((isset($_smarty_tpl->tpl_vars['js_def']->value)&&count($_smarty_tpl->tpl_vars['js_def']->value)||isset($_smarty_tpl->tpl_vars['js_files']->value)&&count($_smarty_tpl->tpl_vars['js_files']->value))) {?>
<?php echo $_smarty_tpl->getSubTemplate ((@constant('_PS_ALL_THEMES_DIR_')).("javascript.tpl"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }?>
</head>
<body class="ps_back-office bootstrap">
<div id="login">
<div id="content">
<?php }} ?>

View File

@@ -0,0 +1,25 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:58
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/shop_url/content.tpl" */ ?>
<?php /*%%SmartyHeaderCode:114941751356ab3ba2d010c3-85169481%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'060d0a8f54243bc5960c217efc0d3c326120482c' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/shop_url/content.tpl',
1 => 1454062120,
2 => 'file',
),
),
'nocache_hash' => '114941751356ab3ba2d010c3-85169481',
'function' =>
array (
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba2d049d0_34391616',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba2d049d0_34391616')) {function content_56ab3ba2d049d0_34391616($_smarty_tpl) {?>
<?php echo $_smarty_tpl->getSubTemplate ("controllers/shop/content.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>

View File

@@ -0,0 +1,30 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:58
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/warning_module.tpl" */ ?>
<?php /*%%SmartyHeaderCode:6227325056ab3ba207b4a3-66503551%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0650d1c7dd492029e1ce889e0fc1e3c1709929c3' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/warning_module.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '6227325056ab3ba207b4a3-66503551',
'function' =>
array (
),
'variables' =>
array (
'module_link' => 0,
'text' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba2080c76_18145008',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba2080c76_18145008')) {function content_56ab3ba2080c76_18145008($_smarty_tpl) {?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module_link']->value, ENT_QUOTES, 'UTF-8', true);?>
"><?php echo $_smarty_tpl->tpl_vars['text']->value;?>
</a><?php }} ?>

View File

@@ -0,0 +1,114 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 05:20:42
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin267x7js2k/themes/default/template/controllers/modules/login_addons.tpl" */ ?>
<?php /*%%SmartyHeaderCode:129646904956ab3cfa6c5d56-60959481%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'068b9341f4dee7ac00ab445b586e71a9bcfaa54e' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin267x7js2k/themes/default/template/controllers/modules/login_addons.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '129646904956ab3cfa6c5d56-60959481',
'function' =>
array (
),
'variables' =>
array (
'add_permission' => 0,
'logged_on_addons' => 0,
'check_url_fopen' => 0,
'check_openssl' => 0,
'addons_register_link' => 0,
'addons_forgot_password_link' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3cfa713bd9_11328713',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3cfa713bd9_11328713')) {function content_56ab3cfa713bd9_11328713($_smarty_tpl) {?>
<div class="modal-body">
<?php if ($_smarty_tpl->tpl_vars['add_permission']->value=='1') {?>
<?php if (!isset($_smarty_tpl->tpl_vars['logged_on_addons']->value)||!$_smarty_tpl->tpl_vars['logged_on_addons']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['check_url_fopen']->value=='ko'||$_smarty_tpl->tpl_vars['check_openssl']->value=='ko') {?>
<div class="alert alert-warning">
<?php echo smartyTranslate(array('s'=>'If you want to be able to fully use the AdminModules panel and have free modules available, you should enable the following configuration on your server:'),$_smarty_tpl);?>
<br />
<?php if ($_smarty_tpl->tpl_vars['check_url_fopen']->value=='ko') {?>- <?php echo smartyTranslate(array('s'=>'Enable PHP\'s allow_url_fopen setting'),$_smarty_tpl);?>
<br /><?php }?>
<?php if ($_smarty_tpl->tpl_vars['check_openssl']->value=='ko') {?>- <?php echo smartyTranslate(array('s'=>'Enable PHP\'s OpenSSL extension'),$_smarty_tpl);?>
<br /><?php }?>
</div>
<?php } else { ?>
<!--start addons login-->
<form id="addons_login_form" method="post" >
<div>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addons_register_link']->value, ENT_QUOTES, 'UTF-8', true);?>
"><img class="img-responsive center-block" src="themes/default/img/prestashop-addons-logo.png" alt="Logo PrestaShop Addons"/></a>
<h3 class="text-center"><?php echo smartyTranslate(array('s'=>"Connect your shop with PrestaShop's marketplace in order to automatically import all your Addons purchases."),$_smarty_tpl);?>
</h3>
<hr />
</div>
<div class="row">
<div class="col-md-6">
<h4><?php echo smartyTranslate(array('s'=>"Don't have an account?"),$_smarty_tpl);?>
</h4>
<p class='text-justify'><?php echo smartyTranslate(array('s'=>"Discover the Power of PrestaShop Addons! Explore the PrestaShop Official Marketplace and find over 3 500 innovative modules and themes that optimize conversion rates, increase traffic, build customer loyalty and maximize your productivity"),$_smarty_tpl);?>
</p>
</div>
<div class="col-md-6">
<h4><?php echo smartyTranslate(array('s'=>'Connect to PrestaShop Addons'),$_smarty_tpl);?>
</h4>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="icon-user"></i></span>
<input id="username_addons" name="username_addons" type="text" value="" autocomplete="off" class="form-control ac_input">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="icon-key"></i></span>
<input id="password_addons" name="password_addons" type="password" value="" autocomplete="off" class="form-control ac_input">
</div>
<a class="btn btn-link pull-right _blank" href="<?php echo $_smarty_tpl->tpl_vars['addons_forgot_password_link']->value;?>
"><?php echo smartyTranslate(array('s'=>'I forgot my password'),$_smarty_tpl);?>
</a>
<br>
</div>
</div>
</div>
<div class="row row-padding-top">
<div class="col-md-6">
<div class="form-group">
<a class="btn btn-default btn-block btn-lg _blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addons_register_link']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<?php echo smartyTranslate(array('s'=>"Create an Account"),$_smarty_tpl);?>
<i class="icon-external-link"></i>
</a>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<button id="addons_login_button" class="btn btn-primary btn-block btn-lg" type="submit">
<i class="icon-unlock"></i> <?php echo smartyTranslate(array('s'=>'Sign in'),$_smarty_tpl);?>
</button>
</div>
</div>
</div>
<div id="addons_loading" class="help-block"></div>
</form>
<!--end addons login-->
<?php }?>
<?php }?>
<?php }?>
</div>
<?php }} ?>

View File

@@ -0,0 +1,39 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:58
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/slip/_print_pdf_icon.tpl" */ ?>
<?php /*%%SmartyHeaderCode:191395123456ab3ba250eeb2-92544788%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'068c99f2a81efb3db3ae38541d0961baeacb2841' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/slip/_print_pdf_icon.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '191395123456ab3ba250eeb2-92544788',
'function' =>
array (
),
'variables' =>
array (
'link' => 0,
'order_slip' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba2519003_03139784',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba2519003_03139784')) {function content_56ab3ba2519003_03139784($_smarty_tpl) {?>
<a class="btn btn-default _blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminPdf'), ENT_QUOTES, 'UTF-8', true);?>
&amp;submitAction=generateOrderSlipPDF&amp;id_order_slip=<?php echo intval($_smarty_tpl->tpl_vars['order_slip']->value->id);?>
">
<i class="icon-file-text"></i>
<?php echo smartyTranslate(array('s'=>'Download credit slip'),$_smarty_tpl);?>
</a>
<?php }} ?>

View File

@@ -0,0 +1,201 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:57
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/page.tpl" */ ?>
<?php /*%%SmartyHeaderCode:144873659756ab3ba1c50972-31273986%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'07456fdb3c34a750fd47d3a31fde3601c04f4f32' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/page.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '144873659756ab3ba1c50972-31273986',
'function' =>
array (
),
'variables' =>
array (
'logged_on_addons' => 0,
'addons_register_link' => 0,
'kpis' => 0,
'add_permission' => 0,
'currentIndex' => 0,
'token' => 0,
'upgrade_available' => 0,
'module' => 0,
'categoryFiltered' => 0,
'nb_modules_favorites' => 0,
'nb_modules' => 0,
'list_modules_categories' => 0,
'module_category_key' => 0,
'module_category' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba1cc6c74_86845512',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba1cc6c74_86845512')) {function content_56ab3ba1cc6c74_86845512($_smarty_tpl) {?>
<?php if (!isset($_smarty_tpl->tpl_vars['logged_on_addons']->value)||!$_smarty_tpl->tpl_vars['logged_on_addons']->value) {?>
<div class="alert bg-info">
<div class="row modules-addons-info">
<h4><?php echo smartyTranslate(array('s'=>'Addons membership provides access to all our PrestaShop modules.'),$_smarty_tpl);?>
</h4>
<p><?php echo smartyTranslate(array('s'=>'Once connected, your new modules will be automatically installed.'),$_smarty_tpl);?>
</p>
</div>
<div class="row modules-addons-buttons">
<a class="btn btn-default btn-primary _blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addons_register_link']->value, ENT_QUOTES, 'UTF-8', true);?>
"><i class="icon-pencil"></i> <?php echo smartyTranslate(array('s'=>'Sign up'),$_smarty_tpl);?>
</a><a href="#" class="addons_connect btn btn-default" data-toggle="modal" data-target="#modal_addons_connect" title="<?php echo smartyTranslate(array('s'=>'Connect to PrestaShop Marketplace account'),$_smarty_tpl);?>
"><i class="icon-user"></i> <?php echo smartyTranslate(array('s'=>'Log in'),$_smarty_tpl);?>
</a>
</div>
</div>
<?php }?>
<?php echo $_smarty_tpl->tpl_vars['kpis']->value;?>
<?php if ($_smarty_tpl->tpl_vars['add_permission']->value=='1') {?>
<div id="module_install" class="row" style="<?php if (!isset($_POST['downloadflag'])) {?>display: none;<?php }?>">
<div class="panel col-lg-12">
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post" enctype="multipart/form-data" class="form-horizontal">
<h3><?php echo smartyTranslate(array('s'=>'Add a new module'),$_smarty_tpl);?>
</h3>
<p class="alert alert-info"><?php echo smartyTranslate(array('s'=>'The module must either be a Zip file (.zip) or a tarball file (.tar, .tar.gz, .tgz).'),$_smarty_tpl);?>
</p>
<div class="form-group">
<label for="file" class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'Upload a module from your computer.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Module file'),$_smarty_tpl);?>
</span>
</label>
<div class="col-sm-9">
<div class="row">
<div class="col-lg-7">
<input id="file" type="file" name="file" class="hide" />
<div class="dummyfile input-group">
<span class="input-group-addon"><i class="icon-file"></i></span>
<input id="file-name" type="text" class="disabled" name="filename" readonly />
<span class="input-group-btn">
<button id="file-selectbutton" type="button" name="submitAddAttachments" class="btn btn-default">
<i class="icon-folder-open"></i> <?php echo smartyTranslate(array('s'=>'Choose a file'),$_smarty_tpl);?>
</button>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-9 col-lg-push-3">
<button class="btn btn-default" type="submit" name="download">
<i class="icon-upload-alt" ></i>
<?php echo smartyTranslate(array('s'=>'Upload this module'),$_smarty_tpl);?>
</button>
</div>
</div>
</form>
</div>
</div>
<?php }?>
<?php if (count($_smarty_tpl->tpl_vars['upgrade_available']->value)) {?>
<div class="alert alert-info">
<?php echo smartyTranslate(array('s'=>'An upgrade is available for some of your modules!'),$_smarty_tpl);?>
<ul>
<?php $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['upgrade_available']->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;
?>
<li><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;anchor=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value['anchor'], ENT_QUOTES, 'UTF-8', true);?>
"><b><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value['displayName'], ENT_QUOTES, 'UTF-8', true);?>
</b></a></li>
<?php } ?>
</ul>
</div>
<?php }?>
<div class="panel">
<div class="panel-heading">
<i class="icon-list-ul"></i>
<?php echo smartyTranslate(array('s'=>'Modules list'),$_smarty_tpl);?>
</div>
<!--start sidebar module-->
<div class="row">
<div class="categoriesTitle col-md-3">
<div class="list-group">
<form id="filternameForm" method="post" class="list-group-item form-horizontal">
<div class="input-group">
<span class="input-group-addon">
<i class="icon-search"></i>
</span>
<input class="form-control" placeholder="<?php echo smartyTranslate(array('s'=>'Search'),$_smarty_tpl);?>
" type="text" value="" name="moduleQuicksearch" id="moduleQuicksearch" autocomplete="off" />
</div>
</form>
<a class="categoryModuleFilterLink list-group-item <?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value['favorites'])) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;filterCategory=favorites" id="filter_favorite">
<?php echo smartyTranslate(array('s'=>'Favorites'),$_smarty_tpl);?>
<span id="favorite-count" class="badge pull-right"><?php echo $_smarty_tpl->tpl_vars['nb_modules_favorites']->value;?>
</span>
</a>
<a class="categoryModuleFilterLink list-group-item <?php if (count($_smarty_tpl->tpl_vars['categoryFiltered']->value)<=0) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;unfilterCategory=yes" id="filter_all">
<?php echo smartyTranslate(array('s'=>'All'),$_smarty_tpl);?>
<span class="badge pull-right"><?php echo $_smarty_tpl->tpl_vars['nb_modules']->value;?>
</span>
</a>
<?php $_smarty_tpl->tpl_vars['module_category'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module_category']->_loop = false;
$_smarty_tpl->tpl_vars['module_category_key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['list_modules_categories']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['module_category']->key => $_smarty_tpl->tpl_vars['module_category']->value) {
$_smarty_tpl->tpl_vars['module_category']->_loop = true;
$_smarty_tpl->tpl_vars['module_category_key']->value = $_smarty_tpl->tpl_vars['module_category']->key;
?>
<a class="categoryModuleFilterLink list-group-item <?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value[$_smarty_tpl->tpl_vars['module_category_key']->value])) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;<?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value[$_smarty_tpl->tpl_vars['module_category_key']->value])) {?>un<?php }?>filterCategory=<?php echo $_smarty_tpl->tpl_vars['module_category_key']->value;?>
" id="filter_<?php echo $_smarty_tpl->tpl_vars['module_category_key']->value;?>
">
<?php echo $_smarty_tpl->tpl_vars['module_category']->value['name'];?>
<span class="badge pull-right"><?php echo $_smarty_tpl->tpl_vars['module_category']->value['nb'];?>
</span>
</a>
<?php } ?>
</div>
</div>
<div id="moduleContainer" class="col-md-9">
<?php echo $_smarty_tpl->getSubTemplate ('controllers/modules/list.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('#file-selectbutton').click(function(e){
$('#file').trigger('click');
});
$('#file-name').click(function(e){
$('#file').trigger('click');
});
$('#file').change(function(e){
var val = $(this).val();
var file = val.split(/[\\/]/);
$('#file-name').val(file[file.length-1]);
});
});
</script>
<?php }} ?>

View File

@@ -0,0 +1,550 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 13:14:49
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:90176746256ab8ff94a1bb0-94036471%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'07c4a0293822ce1568ee0397e7af019f8692afd7' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/header.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '90176746256ab8ff94a1bb0-94036471',
'function' =>
array (
),
'variables' =>
array (
'iso' => 0,
'img_dir' => 0,
'meta_title' => 0,
'shop_name' => 0,
'display_header_javascript' => 0,
'controller_name' => 0,
'iso_user' => 0,
'full_language_code' => 0,
'country_iso_code' => 0,
'round_mode' => 0,
'shop_context' => 0,
'autorefresh_notifications' => 0,
'token' => 0,
'currentIndex' => 0,
'default_language' => 0,
'link' => 0,
'tab_modules_list' => 0,
'css_files' => 0,
'css_uri' => 0,
'js_def' => 0,
'js_files' => 0,
'displayBackOfficeHeader' => 0,
'brightness' => 0,
'display_header' => 0,
'employee' => 0,
'collapse_menu' => 0,
'default_tab_link' => 0,
'version' => 0,
'is_multishop' => 0,
'shop_list' => 0,
'multishop_context' => 0,
'show_new_orders' => 0,
'show_new_customers' => 0,
'show_new_messages' => 0,
'quick_access' => 0,
'quick' => 0,
'matchQuickLink' => 0,
'quick_access_current_link_name' => 0,
'quick_access_current_link_icon' => 0,
'logged_on_addons' => 0,
'display_addons_connection' => 0,
'base_url' => 0,
'base_url_tc' => 0,
'maintenance_mode' => 0,
'host_mode' => 0,
'login_link' => 0,
'displayBackOfficeTop' => 0,
'bootstrap' => 0,
'page_header_toolbar' => 0,
'modal_module_list' => 0,
'install_dir_exists' => 0,
'lite_display' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8ff96379e2_81160337',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8ff96379e2_81160337')) {function content_56ab8ff96379e2_81160337($_smarty_tpl) {?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6 " lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8 ie7" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9 ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]> <html lang="fr" class="no-js ie9" lang="en"> <![endif]-->
<html lang="<?php echo $_smarty_tpl->tpl_vars['iso']->value;?>
">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=0.75, maximum-scale=0.75, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="icon" type="image/x-icon" href="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?>
favicon.ico" />
<link rel="apple-touch-icon" href="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?>
app_icon.png" />
<meta name="robots" content="NOFOLLOW, NOINDEX">
<title><?php if ($_smarty_tpl->tpl_vars['meta_title']->value!='') {?><?php echo $_smarty_tpl->tpl_vars['meta_title']->value;?>
• <?php }?><?php echo $_smarty_tpl->tpl_vars['shop_name']->value;?>
</title>
<?php if (!isset($_smarty_tpl->tpl_vars['display_header_javascript']->value)||$_smarty_tpl->tpl_vars['display_header_javascript']->value) {?>
<script type="text/javascript">
var help_class_name = '<?php echo addcslashes($_smarty_tpl->tpl_vars['controller_name']->value,'\'');?>
';
var iso_user = '<?php echo addcslashes($_smarty_tpl->tpl_vars['iso_user']->value,'\'');?>
';
var full_language_code = '<?php echo addcslashes($_smarty_tpl->tpl_vars['full_language_code']->value,'\'');?>
';
var country_iso_code = '<?php echo addcslashes($_smarty_tpl->tpl_vars['country_iso_code']->value,'\'');?>
';
var _PS_VERSION_ = '<?php echo addcslashes(@constant('_PS_VERSION_'),'\'');?>
';
var roundMode = <?php echo intval($_smarty_tpl->tpl_vars['round_mode']->value);?>
;
<?php if (isset($_smarty_tpl->tpl_vars['shop_context']->value)) {?>
<?php if ($_smarty_tpl->tpl_vars['shop_context']->value==Shop::CONTEXT_ALL) {?>
var youEditFieldFor = '<?php echo smartyTranslate(array('s'=>'This field will be modified for all your shops.','js'=>1),$_smarty_tpl);?>
';
<?php } elseif ($_smarty_tpl->tpl_vars['shop_context']->value==Shop::CONTEXT_GROUP) {?>
var youEditFieldFor = '<?php echo smartyTranslate(array('s'=>'This field will be modified for all shops in this shop group:','js'=>1),$_smarty_tpl);?>
<b><?php echo addcslashes($_smarty_tpl->tpl_vars['shop_name']->value,'\'');?>
</b>';
<?php } else { ?>
var youEditFieldFor = '<?php echo smartyTranslate(array('s'=>'This field will be modified for this shop:','js'=>1),$_smarty_tpl);?>
<b><?php echo addcslashes($_smarty_tpl->tpl_vars['shop_name']->value,'\'');?>
</b>';
<?php }?>
<?php } else { ?>
var youEditFieldFor = '';
<?php }?>
var autorefresh_notifications = '<?php echo addcslashes($_smarty_tpl->tpl_vars['autorefresh_notifications']->value,'\'');?>
';
var new_order_msg = '<?php echo smartyTranslate(array('s'=>'A new order has been placed on your shop.','js'=>1),$_smarty_tpl);?>
';
var order_number_msg = '<?php echo smartyTranslate(array('s'=>'Order number:','js'=>1),$_smarty_tpl);?>
';
var total_msg = '<?php echo smartyTranslate(array('s'=>'Total:','js'=>1),$_smarty_tpl);?>
';
var from_msg = '<?php echo smartyTranslate(array('s'=>'From:','js'=>1),$_smarty_tpl);?>
';
var see_order_msg = '<?php echo smartyTranslate(array('s'=>'View this order','js'=>1),$_smarty_tpl);?>
';
var new_customer_msg = '<?php echo smartyTranslate(array('s'=>'A new customer registered on your shop.','js'=>1),$_smarty_tpl);?>
';
var customer_name_msg = '<?php echo smartyTranslate(array('s'=>'Customer name:','js'=>1),$_smarty_tpl);?>
';
var new_msg = '<?php echo smartyTranslate(array('s'=>'A new message was posted on your shop.','js'=>1),$_smarty_tpl);?>
';
var see_msg = '<?php echo smartyTranslate(array('s'=>'Read this message','js'=>1),$_smarty_tpl);?>
';
var token = '<?php echo addslashes($_smarty_tpl->tpl_vars['token']->value);?>
';
var token_admin_orders = '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminOrders'),$_smarty_tpl);?>
';
var token_admin_customers = '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminCustomers'),$_smarty_tpl);?>
';
var token_admin_customer_threads = '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminCustomerThreads'),$_smarty_tpl);?>
';
var currentIndex = '<?php echo addcslashes($_smarty_tpl->tpl_vars['currentIndex']->value,'\'');?>
';
var employee_token = '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminEmployees'),$_smarty_tpl);?>
';
var choose_language_translate = '<?php echo smartyTranslate(array('s'=>'Choose language','js'=>1),$_smarty_tpl);?>
';
var default_language = '<?php echo intval($_smarty_tpl->tpl_vars['default_language']->value);?>
';
var admin_modules_link = '<?php echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink("AdminModules"));?>
';
var tab_modules_list = '<?php if (isset($_smarty_tpl->tpl_vars['tab_modules_list']->value)&&$_smarty_tpl->tpl_vars['tab_modules_list']->value) {?><?php echo addslashes($_smarty_tpl->tpl_vars['tab_modules_list']->value);?>
<?php }?>';
var update_success_msg = '<?php echo smartyTranslate(array('s'=>'Update successful','js'=>1),$_smarty_tpl);?>
';
var errorLogin = '<?php echo smartyTranslate(array('s'=>'PrestaShop was unable to log in to Addons. Please check your credentials and your Internet connection.','js'=>1),$_smarty_tpl);?>
';
var search_product_msg = '<?php echo smartyTranslate(array('s'=>'Search for a product','js'=>1),$_smarty_tpl);?>
';
</script>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['css_files']->value)) {?>
<?php $_smarty_tpl->tpl_vars['media'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['media']->_loop = false;
$_smarty_tpl->tpl_vars['css_uri'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['css_files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['media']->key => $_smarty_tpl->tpl_vars['media']->value) {
$_smarty_tpl->tpl_vars['media']->_loop = true;
$_smarty_tpl->tpl_vars['css_uri']->value = $_smarty_tpl->tpl_vars['media']->key;
?>
<link href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['css_uri']->value, ENT_QUOTES, 'UTF-8', true);?>
" rel="stylesheet" type="text/css"/>
<?php } ?>
<?php }?>
<?php if ((isset($_smarty_tpl->tpl_vars['js_def']->value)&&count($_smarty_tpl->tpl_vars['js_def']->value)||isset($_smarty_tpl->tpl_vars['js_files']->value)&&count($_smarty_tpl->tpl_vars['js_files']->value))) {?>
<?php echo $_smarty_tpl->getSubTemplate ((@constant('_PS_ALL_THEMES_DIR_')).("javascript.tpl"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['displayBackOfficeHeader']->value)) {?>
<?php echo $_smarty_tpl->tpl_vars['displayBackOfficeHeader']->value;?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['brightness']->value)) {?>
<!--
// @todo: multishop color
<style type="text/css">
div#header_infos, div#header_infos a#header_shopname, div#header_infos a#header_logout, div#header_infos a#header_foaccess {color:<?php echo $_smarty_tpl->tpl_vars['brightness']->value;?>
}
</style>
-->
<?php }?>
</head>
<?php if ($_smarty_tpl->tpl_vars['display_header']->value) {?>
<body class="ps_back-office<?php if ($_smarty_tpl->tpl_vars['employee']->value->bo_menu) {?> page-sidebar<?php if ($_smarty_tpl->tpl_vars['collapse_menu']->value) {?> page-sidebar-closed<?php }?><?php } else { ?> page-topbar<?php }?> <?php echo strtolower(htmlspecialchars($_GET['controller'], ENT_QUOTES, 'UTF-8', true));?>
">
<header id="header" class="bootstrap">
<nav id="header_infos" role="navigation">
<div class="navbar-header">
<button id="header_nav_toggle" type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-primary">
<i class="icon-reorder"></i>
</button>
<a id="header_shopversion" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['default_tab_link']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<span id="shop_version"><?php echo $_smarty_tpl->tpl_vars['version']->value;?>
</span>
</a>
<?php if (isset($_smarty_tpl->tpl_vars['is_multishop']->value)&&$_smarty_tpl->tpl_vars['is_multishop']->value&&$_smarty_tpl->tpl_vars['shop_list']->value&&(isset($_smarty_tpl->tpl_vars['multishop_context']->value)&&$_smarty_tpl->tpl_vars['multishop_context']->value&Shop::CONTEXT_GROUP||$_smarty_tpl->tpl_vars['multishop_context']->value&Shop::CONTEXT_SHOP)) {?>
<ul id="header_shop">
<li class="dropdown">
<?php echo $_smarty_tpl->tpl_vars['shop_list']->value;?>
</li>
</ul>
<?php } else { ?>
<a id="header_shopname" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['default_tab_link']->value, ENT_QUOTES, 'UTF-8', true);?>
"><?php echo $_smarty_tpl->tpl_vars['shop_name']->value;?>
</a>
<?php }?>
<ul id="header_notifs_icon_wrapper">
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['show_new_orders']->value;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==1) {?>
<li id="orders_notif" class="dropdown" data-type="order">
<a href="javascript:void(0);" class="dropdown-toggle notifs" data-toggle="dropdown">
<i class="icon-shopping-cart"></i>
<span id="orders_notif_number_wrapper" class="notifs_badge hide">
<span id="orders_notif_value">0</span>
</span>
</a>
<div class="dropdown-menu notifs_dropdown">
<section id="orders_notif_wrapper" class="notifs_panel">
<div class="notifs_panel_header">
<h3><?php echo smartyTranslate(array('s'=>'Latest Orders'),$_smarty_tpl);?>
</h3>
</div>
<div id="list_orders_notif" class="list_notif">
<span class="no_notifs">
<?php echo smartyTranslate(array('s'=>'No new orders have been placed on your shop.'),$_smarty_tpl);?>
</span>
</div>
<div class="notifs_panel_footer">
<a href="index.php?controller=AdminOrders&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminOrders'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Show all orders'),$_smarty_tpl);?>
</a>
</div>
</section>
</div>
</li>
<?php }?>
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['show_new_customers']->value;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==1) {?>
<li id="customers_notif" class="dropdown" data-type="customer">
<a href="javascript:void(0);" class="dropdown-toggle notifs" data-toggle="dropdown">
<i class="icon-user"></i>
<span id="customers_notif_number_wrapper" class="notifs_badge hide">
<span id="customers_notif_value">0</span>
</span>
</a>
<div class="dropdown-menu notifs_dropdown">
<section id="customers_notif_wrapper" class="notifs_panel">
<div class="notifs_panel_header">
<h3><?php echo smartyTranslate(array('s'=>'Latest Registrations'),$_smarty_tpl);?>
</h3>
</div>
<div id="list_customers_notif" class="list_notif">
<span class="no_notifs">
<?php echo smartyTranslate(array('s'=>'No new customers have registered on your shop.'),$_smarty_tpl);?>
</span>
</div>
<div class="notifs_panel_footer">
<a href="index.php?controller=AdminCustomers&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminCustomers'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Show all customers'),$_smarty_tpl);?>
</a>
</div>
</section>
</div>
</li>
<?php }?>
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['show_new_messages']->value;?>
<?php $_tmp3=ob_get_clean();?><?php if ($_tmp3==1) {?>
<li id="customer_messages_notif" class="dropdown" data-type="customer_message">
<a href="javascript:void(0);" class="dropdown-toggle notifs" data-toggle="dropdown">
<i class="icon-envelope"></i>
<span id="customer_messages_notif_number_wrapper" class="notifs_badge hide">
<span id="customer_messages_notif_value" >0</span>
</span>
</a>
<div class="dropdown-menu notifs_dropdown">
<section id="customer_messages_notif_wrapper" class="notifs_panel">
<div class="notifs_panel_header">
<h3><?php echo smartyTranslate(array('s'=>'Latest Messages'),$_smarty_tpl);?>
</h3>
</div>
<div id="list_customer_messages_notif" class="list_notif">
<span class="no_notifs">
<?php echo smartyTranslate(array('s'=>'No new messages have been posted on your shop.'),$_smarty_tpl);?>
</span>
</div>
<div class="notifs_panel_footer">
<a href="index.php?controller=AdminCustomerThreads&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminCustomerThreads'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Show all messages'),$_smarty_tpl);?>
</a>
</div>
</section>
</div>
</li>
<?php }?>
</ul>
<?php if (count($_smarty_tpl->tpl_vars['quick_access']->value)>=0) {?>
<ul id="header_quick">
<li class="dropdown">
<a href="javascript:void(0)" id="quick_select" class="dropdown-toggle" data-toggle="dropdown"><?php echo smartyTranslate(array('s'=>'Quick Access'),$_smarty_tpl);?>
<i class="icon-caret-down"></i></a>
<ul class="dropdown-menu">
<?php $_smarty_tpl->tpl_vars['quick'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['quick']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['quick_access']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['quick']->key => $_smarty_tpl->tpl_vars['quick']->value) {
$_smarty_tpl->tpl_vars['quick']->_loop = true;
?>
<li <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['quick']->value['link'];?>
<?php $_tmp4=ob_get_clean();?><?php if ($_smarty_tpl->tpl_vars['link']->value->matchQuickLink($_tmp4)) {?><?php $_smarty_tpl->tpl_vars["matchQuickLink"] = new Smarty_variable($_smarty_tpl->tpl_vars['quick']->value['id_quick_access'], null, 0);?>class="active"<?php }?>>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['quick']->value['link'], ENT_QUOTES, 'UTF-8', true);?>
"<?php if ($_smarty_tpl->tpl_vars['quick']->value['new_window']) {?> class="_blank"<?php }?>>
<?php if (isset($_smarty_tpl->tpl_vars['quick']->value['icon'])) {?>
<i class="icon-<?php echo $_smarty_tpl->tpl_vars['quick']->value['icon'];?>
icon-fw"></i>
<?php } else { ?>
<i class="icon-chevron-right icon-fw"></i>
<?php }?>
<?php echo $_smarty_tpl->tpl_vars['quick']->value['name'];?>
</a>
</li>
<?php } ?>
<li class="divider"></li>
<?php if (isset($_smarty_tpl->tpl_vars['matchQuickLink']->value)) {?>
<li>
<a href="javascript:void(0);" class="ajax-quick-link" data-method="remove" data-quicklink-id="<?php echo $_smarty_tpl->tpl_vars['matchQuickLink']->value;?>
">
<i class="icon-minus-circle"></i>
<?php echo smartyTranslate(array('s'=>'Remove from QuickAccess'),$_smarty_tpl);?>
</a>
</li>
<?php }?>
<li <?php if (isset($_smarty_tpl->tpl_vars['matchQuickLink']->value)) {?>class="hide"<?php }?>>
<a href="javascript:void(0);" class="ajax-quick-link" data-method="add">
<i class="icon-plus-circle"></i>
<?php echo smartyTranslate(array('s'=>'Add current page to QuickAccess'),$_smarty_tpl);?>
</a>
</li>
</ul>
</li>
</ul>
<?php $_smarty_tpl->tpl_vars['quick_access_current_link_name'] = new Smarty_variable(explode(" - ",$_smarty_tpl->tpl_vars['quick_access_current_link_name']->value), null, 0);?>
<script>
$(function() {
$('.ajax-quick-link').on('click', function(e){
e.preventDefault();
var method = $(this).data('method');
if(method == 'add')
var name = prompt('<?php echo smartyTranslate(array('s'=>'Please name this shortcut:','js'=>1),$_smarty_tpl);?>
', '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['quick_access_current_link_name']->value[0],32);?>
');
if(method == 'add' && name || method == 'remove')
{
$.ajax({
type: 'POST',
headers: { "cache-control": "no-cache" },
async: false,
url: "<?php echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminQuickAccesses');?>
" + "&action=GetUrl" + "&rand=<?php echo rand(1,200);?>
" + "&ajax=1" + "&method=" + method + ( $(this).data('quicklink-id') ? "&id_quick_access=" + $(this).data('quicklink-id') : ""),
data: {
"url": "<?php echo $_smarty_tpl->tpl_vars['link']->value->getQuickLink($_SERVER['REQUEST_URI']);?>
",
"name": name,
"icon": "<?php echo $_smarty_tpl->tpl_vars['quick_access_current_link_icon']->value;?>
"
},
dataType: "json",
success: function(data) {
var quicklink_list ='';
$.each(data, function(index,value){
if (typeof data[index]['name'] !== 'undefined')
quicklink_list += '<li><a href="' + data[index]['link'] + '&token=' + data[index]['token'] + '"><i class="icon-chevron-right"></i> ' + data[index]['name'] + '</a></li>';
});
if (typeof data['has_errors'] !== 'undefined' && data['has_errors'])
$.each(data, function(index, value)
{
if (typeof data[index] == 'string')
$.growl.error({ title: "", message: data[index]});
});
else if (quicklink_list)
{
$("#header_quick ul.dropdown-menu").html(quicklink_list);
showSuccessMessage(update_success_msg);
}
}
});
}
});
});
</script>
<?php }?>
<ul id="header_employee_box">
<?php if ((!isset($_smarty_tpl->tpl_vars['logged_on_addons']->value)||!$_smarty_tpl->tpl_vars['logged_on_addons']->value)&&(isset($_smarty_tpl->tpl_vars['display_addons_connection']->value)&&$_smarty_tpl->tpl_vars['display_addons_connection']->value)) {?>
<li class="hidden-sm hidden-xs">
<a href="#" class="addons_connect toolbar_btn" data-toggle="modal" data-target="#modal_addons_connect" title="<?php echo smartyTranslate(array('s'=>'Connect to PrestaShop Marketplace account'),$_smarty_tpl);?>
">
<i class="icon-chain-broken"></i>
<span class="string-long"><?php echo smartyTranslate(array('s'=>'Connect to PrestaShop Marketplace account'),$_smarty_tpl);?>
</span>
<span class="string-short"><?php echo smartyTranslate(array('s'=>'PrestaShop Marketplace'),$_smarty_tpl);?>
</span>
</a>
</li>
<?php }?>
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5) {?>
<li>
<a href="<?php if (isset($_smarty_tpl->tpl_vars['base_url_tc']->value)) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_url_tc']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_url']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php }?>" id="header_foaccess" class="_blank" title="<?php echo smartyTranslate(array('s'=>'View my shop'),$_smarty_tpl);?>
">
<span class="string-long"><?php echo smartyTranslate(array('s'=>'My shop'),$_smarty_tpl);?>
</span>
<span class="string-short"><?php echo smartyTranslate(array('s'=>'Shop'),$_smarty_tpl);?>
</span>
</a>
<?php if (isset($_smarty_tpl->tpl_vars['maintenance_mode']->value)&&$_smarty_tpl->tpl_vars['maintenance_mode']->value==true) {?>
<span class="maintenance-mode">
&mdash;
<span class="label-tooltip" data-toggle="tooltip" data-placement="bottom" data-html="true"
title="<p class='text-left text-nowrap'><strong><?php echo smartyTranslate(array('s'=>'Your shop is in maintenance.'),$_smarty_tpl);?>
</strong></p><p class='text-left'><?php echo smartyTranslate(array('s'=>'Your visitors and customers cannot access your shop while in maintenance mode.%s To manage the maintenance settings, go to Preferences > Maintenance.','sprintf'=>'<br />'),$_smarty_tpl);?>
</p>"><?php echo smartyTranslate(array('s'=>'Maintenance mode'),$_smarty_tpl);?>
</span>
</span>
<?php }?>
</li>
<?php }?>
<li id="employee_infos" class="dropdown">
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminEmployees'), ENT_QUOTES, 'UTF-8', true);?>
&amp;id_employee=<?php echo intval($_smarty_tpl->tpl_vars['employee']->value->id);?>
&amp;updateemployee" class="employee_name dropdown-toggle" data-toggle="dropdown">
<span class="employee_avatar_small">
<?php if (isset($_smarty_tpl->tpl_vars['employee']->value)) {?>
<img class="imgm img-thumbnail" alt="" src="<?php echo $_smarty_tpl->tpl_vars['employee']->value->getImage();?>
" width="32" height="32" />
<?php }?>
</span>
<span class="string-long"><?php echo $_smarty_tpl->tpl_vars['employee']->value->firstname;?>
&nbsp;<?php echo $_smarty_tpl->tpl_vars['employee']->value->lastname;?>
</span>
<span class="string-short"><?php echo smartyTranslate(array('s'=>'Me'),$_smarty_tpl);?>
</span>
<i class="caret"></i>
</a>
<ul id="employee_links" class="dropdown-menu">
<li>
<span class="employee_avatar">
<img class="imgm img-thumbnail" alt="" src="<?php echo $_smarty_tpl->tpl_vars['employee']->value->getImage();?>
" width="96" height="96" />
</span>
</li>
<li class="text-center text-nowrap"><?php echo $_smarty_tpl->tpl_vars['employee']->value->firstname;?>
<?php echo $_smarty_tpl->tpl_vars['employee']->value->lastname;?>
</li>
<li class="divider"></li>
<li><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminEmployees'), ENT_QUOTES, 'UTF-8', true);?>
&amp;id_employee=<?php echo intval($_smarty_tpl->tpl_vars['employee']->value->id);?>
&amp;updateemployee"><i class="icon-wrench"></i> <?php echo smartyTranslate(array('s'=>'My preferences'),$_smarty_tpl);?>
</a></li>
<?php if ($_smarty_tpl->tpl_vars['host_mode']->value) {?>
<li><a href="https://www.prestashop.com/cloud/" class="_blank"><i class="icon-wrench"></i> <?php echo smartyTranslate(array('s'=>'My PrestaShop account'),$_smarty_tpl);?>
</a></li>
<?php }?>
<li class="divider"></li>
<li><a id="header_logout" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['login_link']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;logout"><i class="icon-signout"></i> <?php echo smartyTranslate(array('s'=>'Sign out'),$_smarty_tpl);?>
</a></li>
</ul>
</li>
</ul>
<span id="ajax_running">
<i class="icon-refresh icon-spin icon-fw"></i>
</span>
<?php if (isset($_smarty_tpl->tpl_vars['displayBackOfficeTop']->value)) {?><?php echo $_smarty_tpl->tpl_vars['displayBackOfficeTop']->value;?>
<?php }?>
</div>
</nav>
</header>
<div id="main">
<?php echo $_smarty_tpl->getSubTemplate ('nav.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<div id="content" class="<?php if (!$_smarty_tpl->tpl_vars['bootstrap']->value) {?>nobootstrap<?php } else { ?>bootstrap<?php }?>">
<?php if (isset($_smarty_tpl->tpl_vars['page_header_toolbar']->value)) {?><?php echo $_smarty_tpl->tpl_vars['page_header_toolbar']->value;?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['modal_module_list']->value)) {?><?php echo $_smarty_tpl->tpl_vars['modal_module_list']->value;?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['install_dir_exists']->value) {?>
<div class="alert alert-warning">
<?php echo smartyTranslate(array('s'=>'For security reasons, you must also delete the /install folder.'),$_smarty_tpl);?>
</div>
<?php }?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayAdminAfterHeader'),$_smarty_tpl);?>
<?php } else { ?>
<body<?php if (isset($_smarty_tpl->tpl_vars['lite_display']->value)&&$_smarty_tpl->tpl_vars['lite_display']->value) {?> class="ps_back-office display-modal"<?php }?>>
<div id="main">
<div id="content" class="<?php if (!$_smarty_tpl->tpl_vars['bootstrap']->value) {?>nobootstrap<?php } else { ?>bootstrap<?php }?>">
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,68 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 05:21:47
compiled from "/home/sumit/public_html/html/hotelcommerce-master/themes/hotel-reservation-theme/modules/blockuserinfo/nav.tpl" */ ?>
<?php /*%%SmartyHeaderCode:151132028756ab3d3be727e5-70534895%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'07f9e3361e05d405ce4d342c8d99b2b0167d46de' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/themes/hotel-reservation-theme/modules/blockuserinfo/nav.tpl',
1 => 1454061942,
2 => 'file',
),
),
'nocache_hash' => '151132028756ab3d3be727e5-70534895',
'function' =>
array (
),
'variables' =>
array (
'ajaxCustomerLogin' => 0,
'logged' => 0,
'cookie' => 0,
'link' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3d3be9e067_83478207',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3d3be9e067_83478207')) {function content_56ab3d3be9e067_83478207($_smarty_tpl) {?><!-- Block user information module NAV -->
<?php if (!isset($_smarty_tpl->tpl_vars['ajaxCustomerLogin']->value)) {?>
<div class="nav_menu_padding header_user_info pull-right user_info_xs">
<?php }?>
<ul class="navbar-nav userlogin_block">
<?php if ($_smarty_tpl->tpl_vars['logged']->value) {?>
<li class="dropdown account_info_cont">
<button class="btn dropdown-toggle" type="button" id="user_info_acc" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span class="account_user_name hide_xs"><?php echo $_smarty_tpl->tpl_vars['cookie']->value->customer_firstname;?>
</span>
<span class="account_user_name visi_xs"><i class="icon-user"></i></span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="user_info_acc">
<li><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'View my customer account','mod'=>'blockuserinfo'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Accounts','mod'=>'blockuserinfo'),$_smarty_tpl);?>
</a></li>
<li><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('history',true), ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'View my orders','mod'=>'blockuserinfo'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Orders'),$_smarty_tpl);?>
</a></li>
<li><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('index',true,null,"mylogout"), ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'Log me out','mod'=>'blockuserinfo'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Logout'),$_smarty_tpl);?>
</a></li>
</ul>
</li>
<?php } else { ?>
<li class="active"><a class="user_login navigation-link" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
" rel="nofollow" title="<?php echo smartyTranslate(array('s'=>'Log in to your customer account','mod'=>'blockuserinfo'),$_smarty_tpl);?>
"><span class="hide_xs"><?php echo smartyTranslate(array('s'=>'Sign in','mod'=>'blockuserinfo'),$_smarty_tpl);?>
</span><span class="visi_xs"><i class="icon-user"></i></span></a></li>
<?php }?>
</ul>
<?php if (!isset($_smarty_tpl->tpl_vars['ajaxCustomerLogin']->value)) {?>
</div>
<?php }?>
<!-- /Block user information module NAV -->
<?php }} ?>

View File

@@ -0,0 +1,910 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:00
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/prices.tpl" */ ?>
<?php /*%%SmartyHeaderCode:156680566556ab3ba4833855-52454659%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0910c143453b8ede93c2d3c01f4959ee6a268bfb' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/prices.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '156680566556ab3ba4833855-52454659',
'function' =>
array (
),
'variables' =>
array (
'link' => 0,
'ecotax_tax_excl' => 0,
'country_display_tax_label' => 0,
'tax_exclude_taxe_option' => 0,
'currency' => 0,
'product' => 0,
'priceDisplayPrecisionFormat' => 0,
'pack' => 0,
'taxesRatesByGroup' => 0,
'tax_by_group' => 0,
'ecotaxTaxRate' => 0,
'tax_rules_groups' => 0,
'tax_rules_group' => 0,
'ps_use_ecotax' => 0,
'unit_price' => 0,
'ps_tax' => 0,
'WK_ALLOW_ADVANCED_PAYMENT' => 0,
'adv_pay_dtl' => 0,
'specificPriceModificationForm' => 0,
'combinations' => 0,
'combination' => 0,
'multi_shop' => 0,
'admin_one_shop' => 0,
'shops' => 0,
'shop' => 0,
'currencies' => 0,
'curr' => 0,
'countries' => 0,
'country' => 0,
'groups' => 0,
'group' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba4ae1e32_51476084',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba4ae1e32_51476084')) {function content_56ab3ba4ae1e32_51476084($_smarty_tpl) {?>
<script type="text/javascript">
var Customer = new Object();
var product_url = '<?php echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts',true));?>
';
var ecotax_tax_excl = parseFloat(<?php echo $_smarty_tpl->tpl_vars['ecotax_tax_excl']->value;?>
);
var priceDisplayPrecision = <?php echo intval(@constant('_PS_PRICE_DISPLAY_PRECISION_'));?>
;
$(document).ready(function () {
Customer = {
"hiddenField": jQuery('#id_customer'),
"field": jQuery('#customer'),
"container": jQuery('#customers'),
"loader": jQuery('#customerLoader'),
"init": function() {
jQuery(Customer.field).typeWatch({
"captureLength": 1,
"highlight": true,
"wait": 50,
"callback": Customer.search
}).focus(Customer.placeholderIn).blur(Customer.placeholderOut);
},
"placeholderIn": function() {
if (this.value == '<?php echo smartyTranslate(array('s'=>'All customers'),$_smarty_tpl);?>
') {
this.value = '';
}
},
"placeholderOut": function() {
if (this.value == '') {
this.value = '<?php echo smartyTranslate(array('s'=>'All customers'),$_smarty_tpl);?>
';
}
},
"search": function()
{
Customer.showLoader();
jQuery.ajax({
"type": "POST",
"url": "<?php echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCustomers'));?>
",
"async": true,
"dataType": "json",
"data": {
"ajax": "1",
"token": "<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminCustomers'),$_smarty_tpl);?>
",
"tab": "AdminCustomers",
"action": "searchCustomers",
"customer_search": Customer.field.val()
},
"success": Customer.success
});
},
"success": function(result)
{
if(result.found) {
var html = '<ul class="list-unstyled">';
jQuery.each(result.customers, function() {
html += '<li><a class="fancybox" href="<?php echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCustomers');?>
&id_customer='+this.id_customer+'&viewcustomer&liteDisplaying=1">'+this.firstname+' '+this.lastname+'</a>'+(this.birthday ? ' - '+this.birthday:'');
html += ' - '+this.email;
html += '<a onclick="Customer.select('+this.id_customer+', \''+this.firstname+' '+this.lastname+'\'); return false;" href="#" class="btn btn-default"><?php echo smartyTranslate(array('s'=>'Choose'),$_smarty_tpl);?>
</a></li>';
});
html += '</ul>';
}
else
html = '<div class="alert alert-warning"><?php echo smartyTranslate(array('s'=>'No customers found'),$_smarty_tpl);?>
</div>';
Customer.hideLoader();
Customer.container.html(html);
jQuery('.fancybox', Customer.container).fancybox();
},
"select": function(id_customer, fullname)
{
Customer.hiddenField.val(id_customer);
Customer.field.val(fullname);
Customer.container.empty();
return false;
},
"showLoader": function() {
Customer.loader.fadeIn();
},
"hideLoader": function() {
Customer.loader.fadeOut();
}
};
Customer.init();
});
</script>
<?php $_smarty_tpl->_capture_stack[0][] = array('default', 'priceDisplayPrecisionFormat', null); ob_start(); ?><?php echo (('%.').(@constant('_PS_PRICE_DISPLAY_PRECISION_'))).('f');?>
<?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();?>
<div id="product-prices" class="panel product-tab">
<input type="hidden" name="submitted_tabs[]" value="Prices" />
<h3><?php echo smartyTranslate(array('s'=>'Product price'),$_smarty_tpl);?>
</h3>
<div class="alert alert-info" <?php if (!$_smarty_tpl->tpl_vars['country_display_tax_label']->value||$_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {?>style="display:none;"<?php }?>>
<?php echo smartyTranslate(array('s'=>'You must enter either the pre-tax retail price, or the retail price with tax. The input field will be automatically calculated.'),$_smarty_tpl);?>
</div>
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/check_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_tab'=>"Prices"), 0);?>
<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'=>"wholesale_price",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="wholesale_price">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'The wholesale price is the price you paid for the product. Do not include the tax.'),$_smarty_tpl);?>
"><?php if (!$_smarty_tpl->tpl_vars['country_display_tax_label']->value||$_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {?><?php echo smartyTranslate(array('s'=>'Wholesale price'),$_smarty_tpl);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Pre-tax wholesale price'),$_smarty_tpl);?>
<?php }?></span>
</label>
<div class="col-lg-2">
<div class="input-group">
<span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix;?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
</span>
<input maxlength="27" name="wholesale_price" id="wholesale_price" type="text" value="<?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price'=>$_smarty_tpl->tpl_vars['product']->value->wholesale_price),$_smarty_tpl);?>
<?php $_tmp14=ob_get_clean();?><?php echo sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value,$_tmp14);?>
" onchange="this.value = this.value.replace(/,/g, '.');" />
</div>
<?php if (isset($_smarty_tpl->tpl_vars['pack']->value)&&$_smarty_tpl->tpl_vars['pack']->value->isPack($_smarty_tpl->tpl_vars['product']->value->id)) {?><p class="help-block"><?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price'=>sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value,$_smarty_tpl->tpl_vars['pack']->value->noPackWholesalePrice($_smarty_tpl->tpl_vars['product']->value->id))),$_smarty_tpl);?>
<?php $_tmp15=ob_get_clean();?><?php echo smartyTranslate(array('s'=>'The sum of wholesale prices of the products in the pack is %s%s%s','sprintf'=>array($_smarty_tpl->tpl_vars['currency']->value->prefix,$_tmp15,$_smarty_tpl->tpl_vars['currency']->value->suffix)),$_smarty_tpl);?>
</p><?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'=>"price",'type'=>"price"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="priceTE">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'The pre-tax retail price is the price for which you intend sell this product to your customers. It should be higher than the pre-tax wholesale price: the difference between the two will be your margin.'),$_smarty_tpl);?>
"><?php if (!$_smarty_tpl->tpl_vars['country_display_tax_label']->value||$_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {?><?php echo smartyTranslate(array('s'=>'Retail price'),$_smarty_tpl);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Pre-tax retail price'),$_smarty_tpl);?>
<?php }?></span>
</label>
<div class="col-lg-2">
<div class="input-group">
<span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix;?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
</span>
<input type="hidden" id="priceTEReal" name="price" value="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price'=>$_smarty_tpl->tpl_vars['product']->value->price),$_smarty_tpl);?>
"/>
<input size="11" maxlength="27" id="priceTE" name="price_displayed" type="text" value="<?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price'=>$_smarty_tpl->tpl_vars['product']->value->price),$_smarty_tpl);?>
<?php $_tmp16=ob_get_clean();?><?php echo sprintf('%.6f',$_tmp16);?>
" onchange="noComma('priceTE'); $('#priceTEReal').val(this.value);" onkeyup="$('#priceType').val('TE'); $('#priceTEReal').val(this.value.replace(/,/g, '.')); if (isArrowKey(event)) return; calcPriceTI();" />
</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'=>"id_tax_rules_group",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="id_tax_rules_group">
<?php echo smartyTranslate(array('s'=>'Tax rule:'),$_smarty_tpl);?>
</label>
<div class="col-lg-8">
<script type="text/javascript">
noTax = <?php if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {?>true<?php } else { ?>false<?php }?>;
taxesArray = new Array();
<?php $_smarty_tpl->tpl_vars['tax_by_group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tax_by_group']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['taxesRatesByGroup']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tax_by_group']->key => $_smarty_tpl->tpl_vars['tax_by_group']->value) {
$_smarty_tpl->tpl_vars['tax_by_group']->_loop = true;
?>
taxesArray[<?php echo $_smarty_tpl->tpl_vars['tax_by_group']->value['id_tax_rules_group'];?>
] = <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['json_encode'][0][0]->jsonEncode($_smarty_tpl->tpl_vars['tax_by_group']->value);?>
;
<?php } ?>
ecotaxTaxRate = <?php echo $_smarty_tpl->tpl_vars['ecotaxTaxRate']->value/100;?>
;
</script>
<div class="row">
<div class="col-lg-6">
<select onchange="javascript:calcPrice(); unitPriceWithTax('unit');" name="id_tax_rules_group" id="id_tax_rules_group" <?php if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {?>disabled="disabled"<?php }?> >
<option value="0"><?php echo smartyTranslate(array('s'=>'No Tax'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['tax_rules_group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tax_rules_group']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['tax_rules_groups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tax_rules_group']->key => $_smarty_tpl->tpl_vars['tax_rules_group']->value) {
$_smarty_tpl->tpl_vars['tax_rules_group']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group'];?>
" <?php if ($_smarty_tpl->tpl_vars['product']->value->getIdTaxRulesGroup()==$_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group']) {?>selected="selected"<?php }?> >
<?php echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['tax_rules_group']->value['name']);?>
</option>
<?php } ?>
</select>
</div>
<div class="col-lg-2">
<a class="btn btn-link confirm_leave" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminTaxRulesGroup'), ENT_QUOTES, 'UTF-8', true);?>
&amp;addtax_rules_group&amp;id_product=<?php echo $_smarty_tpl->tpl_vars['product']->value->id;?>
"<?php if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {?> disabled="disabled"<?php }?>>
<i class="icon-plus-sign"></i> <?php echo smartyTranslate(array('s'=>'Create new tax'),$_smarty_tpl);?>
<i class="icon-external-link-sign"></i>
</a>
</div>
</div>
</div>
</div>
<?php if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {?>
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<div class="alert">
<?php echo smartyTranslate(array('s'=>'Taxes are currently disabled:'),$_smarty_tpl);?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminTaxes'), ENT_QUOTES, 'UTF-8', true);?>
"><?php echo smartyTranslate(array('s'=>'Click here to open the Taxes configuration page.'),$_smarty_tpl);?>
</a>
<input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['product']->value->getIdTaxRulesGroup();?>
" name="id_tax_rules_group" />
</div>
</div>
</div>
<?php }?>
<div class="form-group" <?php if (!$_smarty_tpl->tpl_vars['ps_use_ecotax']->value) {?> style="display:none;"<?php }?>>
<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'=>"ecotax",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="ecotax">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'The ecotax is a local set of taxes intended to "promote ecologically sustainable activities via economic incentives". It is already included in retail price: the higher this ecotax is, the lower your margin will be.'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Ecotax (tax incl.)'),$_smarty_tpl);?>
</span>
</label>
<div class="input-group col-lg-2">
<span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix;?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
</span>
<input maxlength="27" id="ecotax" name="ecotax" type="text" value="<?php echo sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value,$_smarty_tpl->tpl_vars['product']->value->ecotax);?>
" onkeyup="$('#priceType').val('TI');if (isArrowKey(event))return; calcPriceTE(); this.value = this.value.replace(/,/g, '.'); if (parseInt(this.value) > getE('priceTE').value) this.value = getE('priceTE').value; if (isNaN(this.value)) this.value = 0;" />
</div>
</div>
<div class="form-group" <?php if (!$_smarty_tpl->tpl_vars['country_display_tax_label']->value||$_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {?>style="display:none;"<?php }?> >
<label class="control-label col-lg-3" for="priceTI"><?php echo smartyTranslate(array('s'=>'Retail price with tax'),$_smarty_tpl);?>
</label>
<div class="input-group col-lg-2">
<span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix;?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
</span>
<input id="priceType" name="priceType" type="hidden" value="TE" />
<input id="priceTI" name="priceTI" type="text" value="" onchange="noComma('priceTI');" maxlength="27" onkeyup="$('#priceType').val('TI');if (isArrowKey(event)) return; calcPriceTE();" />
</div>
<?php if (isset($_smarty_tpl->tpl_vars['pack']->value)&&$_smarty_tpl->tpl_vars['pack']->value->isPack($_smarty_tpl->tpl_vars['product']->value->id)) {?><p class="col-lg-9 col-lg-offset-3 help-block"><?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price'=>sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value,$_smarty_tpl->tpl_vars['pack']->value->noPackPrice($_smarty_tpl->tpl_vars['product']->value->id))),$_smarty_tpl);?>
<?php $_tmp17=ob_get_clean();?><?php echo smartyTranslate(array('s'=>'The sum of prices of the products in the pack is %s%s%s','sprintf'=>array($_smarty_tpl->tpl_vars['currency']->value->prefix,$_tmp17,$_smarty_tpl->tpl_vars['currency']->value->suffix)),$_smarty_tpl);?>
</p><?php }?>
</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'=>"unit_price",'type'=>"unit_price"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="unit_price">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'When selling a pack of items, you can indicate the unit price for each item of the pack. For instance, "per bottle" or "per pound".'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Unit price (tax excl.)'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix;?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
</span>
<input id="unit_price" name="unit_price" type="text" value="<?php echo sprintf('%.6f',$_smarty_tpl->tpl_vars['unit_price']->value);?>
" maxlength="27" onkeyup="if (isArrowKey(event)) return ;this.value = this.value.replace(/,/g, '.'); unitPriceWithTax('unit');"/>
<span class="input-group-addon"><?php echo smartyTranslate(array('s'=>'per'),$_smarty_tpl);?>
</span>
<input id="unity" name="unity" type="text" value="<?php echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->unity);?>
" maxlength="255" onkeyup="if (isArrowKey(event)) return ;unitySecond();" onchange="unitySecond();"/>
</div>
</div>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['product']->value->unity)&&$_smarty_tpl->tpl_vars['product']->value->unity) {?>
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<div class="alert alert-warning">
<span><?php echo smartyTranslate(array('s'=>'or'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix;?>
<span id="unit_price_with_tax">0.00</span><?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
<?php echo smartyTranslate(array('s'=>'per'),$_smarty_tpl);?>
<span id="unity_second"><?php echo $_smarty_tpl->tpl_vars['product']->value->unity;?>
</span><?php if ($_smarty_tpl->tpl_vars['ps_tax']->value&&$_smarty_tpl->tpl_vars['country_display_tax_label']->value) {?> <?php echo smartyTranslate(array('s'=>'(tax incl.)'),$_smarty_tpl);?>
<?php }?>
</span>
</div>
</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'=>"on_sale",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="on_sale">&nbsp;</label>
<div class="col-lg-9">
<div class="checkbox">
<label class="control-label" for="on_sale" >
<input type="checkbox" name="on_sale" id="on_sale" <?php if ($_smarty_tpl->tpl_vars['product']->value->on_sale) {?>checked="checked"<?php }?> value="1" />
<?php echo smartyTranslate(array('s'=>'Display the "on sale" icon on the product page, and in the text found within the product listing.'),$_smarty_tpl);?>
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<div class="alert alert-warning">
<strong><?php echo smartyTranslate(array('s'=>'Final retail price:'),$_smarty_tpl);?>
</strong>
<span>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix;?>
<span id="finalPrice" >0.00</span>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
<span<?php if (!$_smarty_tpl->tpl_vars['ps_tax']->value) {?> style="display:none;"<?php }?>> (<?php echo smartyTranslate(array('s'=>'tax incl.'),$_smarty_tpl);?>
)</span>
</span>
<span<?php if (!$_smarty_tpl->tpl_vars['ps_tax']->value) {?> style="display:none;"<?php }?> >
<?php if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {?>
/
<?php }?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix;?>
<span id="finalPriceWithoutTax"></span>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
<?php if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {?>(<?php echo smartyTranslate(array('s'=>'tax excl.'),$_smarty_tpl);?>
)<?php }?>
</span>
</div>
</div>
</div>
<!-- by webkul -->
<?php if ($_smarty_tpl->tpl_vars['WK_ALLOW_ADVANCED_PAYMENT']->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'=>"price",'type'=>"price"), 0);?>
</span></div>
<label class="control-label col-sm-2">
<input type="hidden" name="id_adv_pmt" <?php if (isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)) {?>value="<?php echo $_smarty_tpl->tpl_vars['adv_pay_dtl']->value['id'];?>
"<?php }?>>
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'If Disabled, Advanced payment will not appliy on this product.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Allow Advanced Payment'),$_smarty_tpl);?>
</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" <?php if (((isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)&&$_smarty_tpl->tpl_vars['adv_pay_dtl']->value['active'])||!isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value))) {?>checked="checked"<?php }?>>
<label for="adv_payment_active_on"><?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</label>
<input type="radio" value="0" id="adv_payment_active_off" name="adv_payment_active" class="adv_payment_active" <?php if ((isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)&&!$_smarty_tpl->tpl_vars['adv_pay_dtl']->value['active'])) {?>checked="checked"<?php }?>>
<label for="adv_payment_active_off"><?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</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"><?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field'=>"price",'type'=>"price"), 0);?>
</span></div>
<label class="control-label col-sm-2">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'If disabled, Advanced Payment for the product will be calculated By Global Advanced payment settings.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Apply Product Advanced Payment Setting.'),$_smarty_tpl);?>
</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" <?php if ((isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)&&$_smarty_tpl->tpl_vars['adv_pay_dtl']->value['calculate_from'])) {?>checked="checked"<?php }?>>
<label for="cal_from_on"><?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</label>
<input type="radio" value="0" id="cal_from_off" name="cal_from" <?php if (((isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)&&!$_smarty_tpl->tpl_vars['adv_pay_dtl']->value['calculate_from'])||!isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value))) {?>checked="checked"<?php }?>>
<label for="cal_from_off"><?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</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"><?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('field'=>"price",'type'=>"price"), 0);?>
</span></div>
<label class="control-label col-sm-2"><?php echo smartyTranslate(array('s'=>'Payment type'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<div class="radio">
<label for="percent_type">
<input type="radio" name="payment_type" class="payment_type" value="1" <?php if (((isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)&&($_smarty_tpl->tpl_vars['adv_pay_dtl']->value['payment_type']==1))||!isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)||!$_smarty_tpl->tpl_vars['adv_pay_dtl']->value['payment_type'])) {?>checked="checked"<?php }?>>
<?php echo smartyTranslate(array('s'=>'Percent (%) '),$_smarty_tpl);?>
</label>
</div>
<div class="radio">
<label for="fixed_type">
<input type="radio" name="payment_type" class="payment_type" value="2" <?php if (isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)&&($_smarty_tpl->tpl_vars['adv_pay_dtl']->value['payment_type']==2)) {?>checked="checked"<?php }?>>
<?php echo smartyTranslate(array('s'=>'Amount'),$_smarty_tpl);?>
</label>
</div>
</div>
</div>
<div class="form-group adv_payment_field">
<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'=>"price",'type'=>"price"), 0);?>
</span></div>
<div class="col-lg-11">
<div class="row" id="type_percent">
<label class="control-label col-sm-2"><?php echo smartyTranslate(array('s'=>'Value'),$_smarty_tpl);?>
</label>
<div class="col-sm-4 col-lg-3">
<div class="input-group">
<span class="input-group-addon">%</span>
<input type="text" value="<?php if (isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)&&($_smarty_tpl->tpl_vars['adv_pay_dtl']->value['payment_type']==1)) {?><?php echo $_smarty_tpl->tpl_vars['adv_pay_dtl']->value['value'];?>
<?php }?>" name="adv_pay_percent" />
</div>
</div>
</div>
<div class="row" id="type_amount">
<label class="control-label col-sm-2"><?php echo smartyTranslate(array('s'=>'Amount'),$_smarty_tpl);?>
</label>
<div class="col-sm-4 col-lg-3">
<div class="input-group">
<span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix;?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
</span>
<input name="adv_pay_amount" type="text" value="<?php if (isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)&&($_smarty_tpl->tpl_vars['adv_pay_dtl']->value['payment_type']==2)) {?><?php ob_start();?><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['toolsConvertPrice'][0][0]->toolsConvertPrice(array('price'=>$_smarty_tpl->tpl_vars['adv_pay_dtl']->value['value']),$_smarty_tpl);?>
<?php $_tmp18=ob_get_clean();?><?php echo sprintf('%.6f',$_tmp18);?>
<?php }?>"/>
</div>
</div>
</div>
</div>
</div>
<div class="form-group adv_payment_field">
<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'=>"price",'type'=>"price"), 0);?>
</span></div>
<label class="control-label col-sm-2">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'If Enable, customer will pay : (Advanced payment price + tax) and if Disabled, customer will onluy pay advanced payment price'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Tax Include'),$_smarty_tpl);?>
</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" <?php if ((isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)&&$_smarty_tpl->tpl_vars['adv_pay_dtl']->value['tax_include'])||!isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)) {?>checked="checked"<?php }?>>
<label for="adv_tax_include_on"><?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</label>
<input type="radio" value="0" id="adv_tax_include_off" name="adv_tax_include" <?php if (isset($_smarty_tpl->tpl_vars['adv_pay_dtl']->value)&&!$_smarty_tpl->tpl_vars['adv_pay_dtl']->value['tax_include']) {?>checked="checked"<?php }?>>
<label for="adv_tax_include_off"><?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<?php }?>
<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>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['specificPriceModificationForm']->value)) {?>
<div class="panel">
<h3><?php echo smartyTranslate(array('s'=>'Specific prices'),$_smarty_tpl);?>
</h3>
<div class="alert alert-info">
<?php echo smartyTranslate(array('s'=>'You can set specific prices for clients belonging to different groups, different countries, etc.'),$_smarty_tpl);?>
</div>
<div class="form-group">
<div class="col-lg-12">
<a class="btn btn-default" href="#" id="show_specific_price">
<i class="icon-plus-sign"></i> <?php echo smartyTranslate(array('s'=>'Add a new specific price'),$_smarty_tpl);?>
</a>
<a class="btn btn-default" href="#" id="hide_specific_price" style="display:none">
<i class="icon-remove text-danger"></i> <?php echo smartyTranslate(array('s'=>'Cancel new specific price'),$_smarty_tpl);?>
</a>
</div>
</div>
<script type="text/javascript">
var product_prices = new Array();
<?php $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['combination']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['combinations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value) {
$_smarty_tpl->tpl_vars['combination']->_loop = true;
?>
product_prices['<?php echo $_smarty_tpl->tpl_vars['combination']->value['id_product_attribute'];?>
'] = "<?php echo addcslashes($_smarty_tpl->tpl_vars['combination']->value['price'],'\'');?>
";
/*product_prices['<?php echo $_smarty_tpl->tpl_vars['combination']->value['id_product_attribute'];?>
'] = '<?php echo addcslashes($_smarty_tpl->tpl_vars['combination']->value['price'],'\'');?>
';*/
<?php } ?>
</script>
<div id="add_specific_price" class="well clearfix" style="display: none;">
<div class="col-lg-12">
<div class="form-group">
<label class="control-label col-lg-2" for="<?php if (!$_smarty_tpl->tpl_vars['multi_shop']->value) {?>spm_currency_0<?php } else { ?>sp_id_shop<?php }?>"><?php echo smartyTranslate(array('s'=>'For'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<div class="row">
<?php if (!$_smarty_tpl->tpl_vars['multi_shop']->value) {?>
<input type="hidden" name="sp_id_shop" value="0" />
<?php } else { ?>
<div class="col-lg-3">
<select name="sp_id_shop" id="sp_id_shop">
<?php if (!$_smarty_tpl->tpl_vars['admin_one_shop']->value) {?><option value="0"><?php echo smartyTranslate(array('s'=>'All shops'),$_smarty_tpl);?>
</option><?php }?>
<?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;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['shop']->value['id_shop'];?>
"><?php echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['shop']->value['name']);?>
</option>
<?php } ?>
</select>
</div>
<?php }?>
<div class="col-lg-3">
<select name="sp_id_currency" id="spm_currency_0" onchange="changeCurrencySpecificPrice(0);">
<option value="0"><?php echo smartyTranslate(array('s'=>'All currencies'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['curr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['curr']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['currencies']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['curr']->key => $_smarty_tpl->tpl_vars['curr']->value) {
$_smarty_tpl->tpl_vars['curr']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['curr']->value['id_currency'];?>
"><?php echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['curr']->value['name']);?>
</option>
<?php } ?>
</select>
</div>
<div class="col-lg-3">
<select name="sp_id_country" id="sp_id_country">
<option value="0"><?php echo smartyTranslate(array('s'=>'All countries'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['country'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['country']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['countries']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['country']->key => $_smarty_tpl->tpl_vars['country']->value) {
$_smarty_tpl->tpl_vars['country']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['country']->value['id_country'];?>
"><?php echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['country']->value['name']);?>
</option>
<?php } ?>
</select>
</div>
<div class="col-lg-3">
<select name="sp_id_group" id="sp_id_group">
<option value="0"><?php echo smartyTranslate(array('s'=>'All groups'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['group']->_loop = false;
$_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;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['group']->value['id_group'];?>
"><?php echo $_smarty_tpl->tpl_vars['group']->value['name'];?>
</option>
<?php } ?>
</select>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2" for="customer"><?php echo smartyTranslate(array('s'=>'Customer'),$_smarty_tpl);?>
</label>
<div class="col-lg-4">
<input type="hidden" name="sp_id_customer" id="id_customer" value="0" />
<div class="input-group">
<input type="text" name="customer" value="<?php echo smartyTranslate(array('s'=>'All customers'),$_smarty_tpl);?>
" id="customer" autocomplete="off" />
<span class="input-group-addon"><i id="customerLoader" class="icon-refresh icon-spin" style="display: none;"></i> <i class="icon-search"></i></span>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-10 col-lg-offset-2">
<div id="customers"></div>
</div>
</div>
<?php if (count($_smarty_tpl->tpl_vars['combinations']->value)!=0) {?>
<div class="form-group">
<label class="control-label col-lg-2" for="sp_id_product_attribute"><?php echo smartyTranslate(array('s'=>'Combination:'),$_smarty_tpl);?>
</label>
<div class="col-lg-4">
<select id="sp_id_product_attribute" name="sp_id_product_attribute">
<option value="0"><?php echo smartyTranslate(array('s'=>'Apply to all combinations'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['combination']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['combinations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value) {
$_smarty_tpl->tpl_vars['combination']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['combination']->value['id_product_attribute'];?>
"><?php echo $_smarty_tpl->tpl_vars['combination']->value['attributes'];?>
</option>
<?php } ?>
</select>
</div>
</div>
<?php }?>
<div class="form-group">
<label class="control-label col-lg-2" for="sp_from"><?php echo smartyTranslate(array('s'=>'Available'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon"><?php echo smartyTranslate(array('s'=>'from'),$_smarty_tpl);?>
</span>
<input type="text" name="sp_from" class="datepicker" value="" style="text-align: center" id="sp_from" />
<span class="input-group-addon"><i class="icon-calendar-empty"></i></span>
</div>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon"><?php echo smartyTranslate(array('s'=>'to'),$_smarty_tpl);?>
</span>
<input type="text" name="sp_to" class="datepicker" value="" style="text-align: center" id="sp_to" />
<span class="input-group-addon"><i class="icon-calendar-empty"></i></span>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2" for="sp_from_quantity"><?php echo smartyTranslate(array('s'=>'Starting at'),$_smarty_tpl);?>
</label>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon"><?php echo smartyTranslate(array('s'=>'unit'),$_smarty_tpl);?>
</span>
<input type="text" name="sp_from_quantity" id="sp_from_quantity" value="1" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2" for="sp_price"><?php echo smartyTranslate(array('s'=>'Product price'),$_smarty_tpl);?>
<?php if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {?>
<?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>
<?php }?>
</label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value->prefix;?>
<?php echo $_smarty_tpl->tpl_vars['currency']->value->suffix;?>
</span>
<input type="text" disabled="disabled" name="sp_price" id="sp_price" value="<?php echo sprintf($_smarty_tpl->tpl_vars['priceDisplayPrecisionFormat']->value,$_smarty_tpl->tpl_vars['product']->value->price);?>
" />
</div>
<p class="checkbox">
<label for="leave_bprice"><?php echo smartyTranslate(array('s'=>'Leave base price:'),$_smarty_tpl);?>
</label>
<input type="checkbox" id="leave_bprice" name="leave_bprice" value="1" checked="checked" />
</p>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2" for="sp_reduction"><?php echo smartyTranslate(array('s'=>'Apply a discount of'),$_smarty_tpl);?>
</label>
<div class="col-lg-4">
<div class="row">
<div class="col-lg-3">
<input type="text" name="sp_reduction" id="sp_reduction" value="0.00"/>
</div>
<div class="col-lg-6">
<select name="sp_reduction_type" id="sp_reduction_type">
<option value="amount" selected="selected"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value->name, ENT_QUOTES, 'UTF-8', true);?>
</option>
<option value="percentage"><?php echo smartyTranslate(array('s'=>'%'),$_smarty_tpl);?>
</option>
</select>
</div>
<div class="col-lg-3">
<select name="sp_reduction_tax" id="sp_reduction_tax">
<option value="0"><?php echo smartyTranslate(array('s'=>'Tax excluded'),$_smarty_tpl);?>
</option>
<option value="1" selected="selected"><?php echo smartyTranslate(array('s'=>'Tax included'),$_smarty_tpl);?>
</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var currencyName = "<?php echo addcslashes(htmlspecialchars($_smarty_tpl->tpl_vars['currency']->value->name, ENT_QUOTES, 'UTF-8', true),'\'');?>
";
$(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()]);
});
$('#leave_bprice').click(function() {
if (this.checked)
$('#sp_price').attr('disabled', 'disabled');
else
$('#sp_price').removeAttr('disabled');
});
$('.datepicker').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);?>
'
});
$('#sp_reduction_type').on('change', function() {
if (this.value == 'percentage')
$('#sp_reduction_tax').hide();
else
$('#sp_reduction_tax').show();
});
});
</script>
<div class="table-responsive">
<table id="specific_prices_list" class="table table-bordered">
<thead>
<tr>
<th><?php echo smartyTranslate(array('s'=>'Rule'),$_smarty_tpl);?>
</th>
<th><?php echo smartyTranslate(array('s'=>'Combination'),$_smarty_tpl);?>
</th>
<?php if ($_smarty_tpl->tpl_vars['multi_shop']->value) {?><th><?php echo smartyTranslate(array('s'=>'Shop'),$_smarty_tpl);?>
</th><?php }?>
<th><?php echo smartyTranslate(array('s'=>'Currency'),$_smarty_tpl);?>
</th>
<th><?php echo smartyTranslate(array('s'=>'Country'),$_smarty_tpl);?>
</th>
<th><?php echo smartyTranslate(array('s'=>'Group'),$_smarty_tpl);?>
</th>
<th><?php echo smartyTranslate(array('s'=>'Customer'),$_smarty_tpl);?>
</th>
<?php if ($_smarty_tpl->tpl_vars['country_display_tax_label']->value) {?>
<th><?php echo smartyTranslate(array('s'=>'Fixed price (tax excl.)'),$_smarty_tpl);?>
</th>
<?php } else { ?>
<th><?php echo smartyTranslate(array('s'=>'Fixed price'),$_smarty_tpl);?>
</th>
<?php }?>
<th><?php echo smartyTranslate(array('s'=>'Impact'),$_smarty_tpl);?>
</th>
<th><?php echo smartyTranslate(array('s'=>'Period'),$_smarty_tpl);?>
</th>
<th><?php echo smartyTranslate(array('s'=>'From (quantity)'),$_smarty_tpl);?>
</th>
<th><?php echo smartyTranslate(array('s'=>'Action'),$_smarty_tpl);?>
</th>
</tr>
</thead>
<tbody>
<?php echo $_smarty_tpl->tpl_vars['specificPriceModificationForm']->value;?>
<script type="text/javascript">
$(document).ready(function() {
delete_price_rule = '<?php echo smartyTranslate(array('s'=>"Do you really want to remove this price rule?"),$_smarty_tpl);?>
';
calcPriceTI();
unitPriceWithTax('unit');
});
</script>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,38 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:00
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/specific_prices_shop_update.tpl" */ ?>
<?php /*%%SmartyHeaderCode:136213360356ab3ba4ed3039-59882131%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'09660f3924e12c2bc79d7f1bafc4cef4e43f5f50' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/specific_prices_shop_update.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '136213360356ab3ba4ed3039-59882131',
'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_56ab3ba4ee0d14_96337587',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba4ee0d14_96337587')) {function content_56ab3ba4ee0d14_96337587($_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,208 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 13:13:39
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/controllers/login/content.tpl" */ ?>
<?php /*%%SmartyHeaderCode:130051447156ab8fb32b2a93-79175463%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'096a4882eeba408fb992c0c88f7429a9ef1e3a77' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/controllers/login/content.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '130051447156ab8fb32b2a93-79175463',
'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_56ab8fb3313058_06580945',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8fb3313058_06580945')) {function content_56ab8fb3313058_06580945($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/sumit/public_html/html/hotelcommerce-master/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 }} ?>

View File

@@ -0,0 +1,44 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:55
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/tree/tree_node_folder_checkbox_shops.tpl" */ ?>
<?php /*%%SmartyHeaderCode:42318919356ab3b9f575c04-94998517%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'09beb46b9522194e6a6962ed5657b370359ecb08' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/tree/tree_node_folder_checkbox_shops.tpl',
1 => 1454062117,
2 => 'file',
),
),
'nocache_hash' => '42318919356ab3b9f575c04-94998517',
'function' =>
array (
),
'variables' =>
array (
'node' => 0,
'table' => 0,
'children' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3b9f58f3e6_14293254',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3b9f58f3e6_14293254')) {function content_56ab3b9f58f3e6_14293254($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_escape')) include '/home/sumit/public_html/html/hotelcommerce-master/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="checkbox" name="checkBoxShopGroupAsso_<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
[<?php echo $_smarty_tpl->tpl_vars['node']->value['id'];?>
]" value="<?php echo $_smarty_tpl->tpl_vars['node']->value['id'];?>
"<?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 smartyTranslate(array('s'=>'Group: %s','sprintf'=>htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true)),$_smarty_tpl);?>
</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,105 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:57
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/modal_not_trusted.tpl" */ ?>
<?php /*%%SmartyHeaderCode:142669637056ab3ba1ed9bb4-51097433%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'09dad734c314f2f197d7f6a660845f2a96dacd1e' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/modal_not_trusted.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '142669637056ab3ba1ed9bb4-51097433',
'function' =>
array (
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba1ef2c63_80275658',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba1ef2c63_80275658')) {function content_56ab3ba1ef2c63_80275658($_smarty_tpl) {?>
<div class="untrusted-content-action">
<div class="modal-body">
<div class="alert alert-warning">
<h3><?php echo smartyTranslate(array('s'=>'Do you want to install this module that could not be verified by PrestaShop?'),$_smarty_tpl);?>
</h3>
<p><?php echo smartyTranslate(array('s'=>"This generally happens when the module isn't distributed through our official marketplace, PrestaShop Addons - or when your server failed to communicate with PrestaShop Addons."),$_smarty_tpl);?>
</p>
</div>
<div class="row">
<div class="col-sm-2" style="text-align: center;">
<img id="untrusted-module-logo" class="" src="" alt="">
</div>
<div class="col-sm-10">
<table class="table">
<tr>
<td><?php echo smartyTranslate(array('s'=>'Module'),$_smarty_tpl);?>
</td>
<td><strong><span class="module-display-name-placeholder"></span></strong></td>
</tr>
<tr>
<td><?php echo smartyTranslate(array('s'=>'Author'),$_smarty_tpl);?>
</td>
<td><strong><span class="author-name-placeholder"></span></strong></td>
</tr>
</table>
</div>
<div class="col-sm-12" style="text-align: center; padding-top: 12px;">
<a id="proceed-install-anyway" href="#" class="btn btn-warning"><?php echo smartyTranslate(array('s'=>'Proceed with the installation'),$_smarty_tpl);?>
</a>
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo smartyTranslate(array('s'=>'Back to modules list'),$_smarty_tpl);?>
</button>
</div>
</div>
</div>
<div class="modal-footer">
<div class="alert alert-info">
<p>
<?php echo smartyTranslate(array('s'=>'Since you may not have downloaded this module from PrestaShop Addons, we cannot assert that the module is not adding some undisclosed functionalities. We advise you to install it only if you trust the source of the content.'),$_smarty_tpl);?>
<a id="untrusted-show-risk" href="#"><strong><?php echo smartyTranslate(array('s'=>"What's the risk?"),$_smarty_tpl);?>
</strong></a>
</p>
</div>
</div>
</div>
<div class="untrusted-content-more-info" style="display:none;">
<div class="modal-body">
<h4><?php echo smartyTranslate(array('s'=>'Am I at Risk?'),$_smarty_tpl);?>
</h4>
<p><?php echo smartyTranslate(array('s'=>"A module that hasn't been verified may be dangerous and could add hidden functionalities like backdoors, ads, hidden links, spam, etc. Don’t worry, this alert is simply a warning."),$_smarty_tpl);?>
</p>
<p><?php echo smartyTranslate(array('s'=>"PrestaShop, being an open-source software, has an awesome community with a long history of developing and sharing high quality modules. Before installing this module, making sure its author is a known community member is always a good idea (by checking [1]our forum[/1] for instance).",'tags'=>array('<a href="https://www.prestashop.com/forums/">')),$_smarty_tpl);?>
</p>
<h4><?php echo smartyTranslate(array('s'=>'What Should I Do?'),$_smarty_tpl);?>
</h4>
<p><?php echo smartyTranslate(array('s'=>"If you trust or find the author of this module to be an active community member, you can proceed with the installation."),$_smarty_tpl);?>
<p><?php echo smartyTranslate(array('s'=>"Otherwise you can look for similar modules on the official marketplace. [1]Click here to browse PrestaShop Addons[/1].",'tags'=>array('<a class="catalog-link" href="#">')),$_smarty_tpl);?>
</div>
<div class="modal-footer">
<a id="untrusted-show-action" class="btn btn-default" href="#"><?php echo smartyTranslate(array('s'=>'Back'),$_smarty_tpl);?>
</a>
</div>
</div>
<?php }} ?>

View File

@@ -0,0 +1,124 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 13:14:49
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/search_form.tpl" */ ?>
<?php /*%%SmartyHeaderCode:37394142256ab8ff96ac338-10690795%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0a160ec0ea654f004d1aa2b71ff50e6ee6068b7b' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/search_form.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '37394142256ab8ff96ac338-10690795',
'function' =>
array (
),
'variables' =>
array (
'id' => 0,
'show_clear_btn' => 0,
'bo_query' => 0,
'search_type' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8ff96df3d5_04130496',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8ff96df3d5_04130496')) {function content_56ab8ff96df3d5_04130496($_smarty_tpl) {?>
<form id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="bo_search_form" method="post" action="index.php?controller=AdminSearch&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminSearch'),$_smarty_tpl);?>
" role="search">
<div class="form-group">
<input type="hidden" name="bo_search_type" id="bo_search_type" />
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i id="search_type_icon" class="icon-search"></i>
<i class="icon-caret-down"></i>
</button>
<ul id="header_search_options" class="dropdown-menu">
<li class="search-all search-option active">
<a href="#" data-value="0" data-placeholder="<?php echo smartyTranslate(array('s'=>'What are you looking for?'),$_smarty_tpl);?>
" data-icon="icon-search">
<i class="icon-search"></i> <?php echo smartyTranslate(array('s'=>'Everywhere'),$_smarty_tpl);?>
</a>
</li>
<li class="divider"></li>
<li class="search-book search-option">
<a href="#" data-value="1" data-placeholder="<?php echo smartyTranslate(array('s'=>'Product name, SKU, reference...'),$_smarty_tpl);?>
" data-icon="icon-book">
<i class="icon-book"></i> <?php echo smartyTranslate(array('s'=>'Catalog'),$_smarty_tpl);?>
</a>
</li>
<li class="search-customers-name search-option">
<a href="#" data-value="2" data-placeholder="<?php echo smartyTranslate(array('s'=>'Email, name...'),$_smarty_tpl);?>
" data-icon="icon-group">
<i class="icon-group"></i> <?php echo smartyTranslate(array('s'=>'Customers'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'by name'),$_smarty_tpl);?>
</a>
</li>
<li class="search-customers-addresses search-option">
<a href="#" data-value="6" data-placeholder="<?php echo smartyTranslate(array('s'=>'123.45.67.89'),$_smarty_tpl);?>
" data-icon="icon-desktop">
<i class="icon-desktop"></i> <?php echo smartyTranslate(array('s'=>'Customers'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'by ip address'),$_smarty_tpl);?>
</a>
</li>
<li class="search-orders search-option">
<a href="#" data-value="3" data-placeholder="<?php echo smartyTranslate(array('s'=>'Order ID'),$_smarty_tpl);?>
" data-icon="icon-credit-card">
<i class="icon-credit-card"></i> <?php echo smartyTranslate(array('s'=>'Orders'),$_smarty_tpl);?>
</a>
</li>
<li class="search-invoices search-option">
<a href="#" data-value="4" data-placeholder="<?php echo smartyTranslate(array('s'=>'Invoice Number'),$_smarty_tpl);?>
" data-icon="icon-book">
<i class="icon-book"></i> <?php echo smartyTranslate(array('s'=>'Invoices'),$_smarty_tpl);?>
</a>
</li>
<li class="search-carts search-option">
<a href="#" data-value="5" data-placeholder="<?php echo smartyTranslate(array('s'=>'Cart ID'),$_smarty_tpl);?>
" data-icon="icon-shopping-cart">
<i class="icon-shopping-cart"></i> <?php echo smartyTranslate(array('s'=>'Carts'),$_smarty_tpl);?>
</a>
</li>
<li class="search-modules search-option">
<a href="#" data-value="7" data-placeholder="<?php echo smartyTranslate(array('s'=>'Module name'),$_smarty_tpl);?>
" data-icon="icon-puzzle-piece">
<i class="icon-puzzle-piece"></i> <?php echo smartyTranslate(array('s'=>'Modules'),$_smarty_tpl);?>
</a>
</li>
</ul>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['show_clear_btn']->value)&&$_smarty_tpl->tpl_vars['show_clear_btn']->value) {?>
<a href="#" class="clear_search hide"><i class="icon-remove"></i></a>
<?php }?>
<input id="bo_query" name="bo_query" type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['bo_query']->value;?>
" placeholder="<?php echo smartyTranslate(array('s'=>'Search'),$_smarty_tpl);?>
" />
<!-- <span class="input-group-btn">
<button type="submit" id="bo_search_submit" class="btn btn-primary">
<i class="icon-search"></i>
</button>
</span> -->
</div>
</div>
<script>
<?php if (isset($_smarty_tpl->tpl_vars['search_type']->value)&&$_smarty_tpl->tpl_vars['search_type']->value) {?>
$(document).ready(function() {
$('.search-option a[data-value='+<?php echo intval($_smarty_tpl->tpl_vars['search_type']->value);?>
+']').click();
});
<?php }?>
</script>
</form><?php }} ?>

View File

@@ -0,0 +1,124 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 05:22:26
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin267x7js2k/themes/default/template/search_form.tpl" */ ?>
<?php /*%%SmartyHeaderCode:9967136156ab3d62c58c46-62705117%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0a1a2e15069e8b9841dba0e81f23a36fa58376e7' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin267x7js2k/themes/default/template/search_form.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '9967136156ab3d62c58c46-62705117',
'function' =>
array (
),
'variables' =>
array (
'id' => 0,
'show_clear_btn' => 0,
'bo_query' => 0,
'search_type' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3d62c8cf39_45331357',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3d62c8cf39_45331357')) {function content_56ab3d62c8cf39_45331357($_smarty_tpl) {?>
<form id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="bo_search_form" method="post" action="index.php?controller=AdminSearch&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminSearch'),$_smarty_tpl);?>
" role="search">
<div class="form-group">
<input type="hidden" name="bo_search_type" id="bo_search_type" />
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i id="search_type_icon" class="icon-search"></i>
<i class="icon-caret-down"></i>
</button>
<ul id="header_search_options" class="dropdown-menu">
<li class="search-all search-option active">
<a href="#" data-value="0" data-placeholder="<?php echo smartyTranslate(array('s'=>'What are you looking for?'),$_smarty_tpl);?>
" data-icon="icon-search">
<i class="icon-search"></i> <?php echo smartyTranslate(array('s'=>'Everywhere'),$_smarty_tpl);?>
</a>
</li>
<li class="divider"></li>
<li class="search-book search-option">
<a href="#" data-value="1" data-placeholder="<?php echo smartyTranslate(array('s'=>'Product name, SKU, reference...'),$_smarty_tpl);?>
" data-icon="icon-book">
<i class="icon-book"></i> <?php echo smartyTranslate(array('s'=>'Catalog'),$_smarty_tpl);?>
</a>
</li>
<li class="search-customers-name search-option">
<a href="#" data-value="2" data-placeholder="<?php echo smartyTranslate(array('s'=>'Email, name...'),$_smarty_tpl);?>
" data-icon="icon-group">
<i class="icon-group"></i> <?php echo smartyTranslate(array('s'=>'Customers'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'by name'),$_smarty_tpl);?>
</a>
</li>
<li class="search-customers-addresses search-option">
<a href="#" data-value="6" data-placeholder="<?php echo smartyTranslate(array('s'=>'123.45.67.89'),$_smarty_tpl);?>
" data-icon="icon-desktop">
<i class="icon-desktop"></i> <?php echo smartyTranslate(array('s'=>'Customers'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'by ip address'),$_smarty_tpl);?>
</a>
</li>
<li class="search-orders search-option">
<a href="#" data-value="3" data-placeholder="<?php echo smartyTranslate(array('s'=>'Order ID'),$_smarty_tpl);?>
" data-icon="icon-credit-card">
<i class="icon-credit-card"></i> <?php echo smartyTranslate(array('s'=>'Orders'),$_smarty_tpl);?>
</a>
</li>
<li class="search-invoices search-option">
<a href="#" data-value="4" data-placeholder="<?php echo smartyTranslate(array('s'=>'Invoice Number'),$_smarty_tpl);?>
" data-icon="icon-book">
<i class="icon-book"></i> <?php echo smartyTranslate(array('s'=>'Invoices'),$_smarty_tpl);?>
</a>
</li>
<li class="search-carts search-option">
<a href="#" data-value="5" data-placeholder="<?php echo smartyTranslate(array('s'=>'Cart ID'),$_smarty_tpl);?>
" data-icon="icon-shopping-cart">
<i class="icon-shopping-cart"></i> <?php echo smartyTranslate(array('s'=>'Carts'),$_smarty_tpl);?>
</a>
</li>
<li class="search-modules search-option">
<a href="#" data-value="7" data-placeholder="<?php echo smartyTranslate(array('s'=>'Module name'),$_smarty_tpl);?>
" data-icon="icon-puzzle-piece">
<i class="icon-puzzle-piece"></i> <?php echo smartyTranslate(array('s'=>'Modules'),$_smarty_tpl);?>
</a>
</li>
</ul>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['show_clear_btn']->value)&&$_smarty_tpl->tpl_vars['show_clear_btn']->value) {?>
<a href="#" class="clear_search hide"><i class="icon-remove"></i></a>
<?php }?>
<input id="bo_query" name="bo_query" type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['bo_query']->value;?>
" placeholder="<?php echo smartyTranslate(array('s'=>'Search'),$_smarty_tpl);?>
" />
<!-- <span class="input-group-btn">
<button type="submit" id="bo_search_submit" class="btn btn-primary">
<i class="icon-search"></i>
</button>
</span> -->
</div>
</div>
<script>
<?php if (isset($_smarty_tpl->tpl_vars['search_type']->value)&&$_smarty_tpl->tpl_vars['search_type']->value) {?>
$(document).ready(function() {
$('.search-option a[data-value='+<?php echo intval($_smarty_tpl->tpl_vars['search_type']->value);?>
+']').click();
});
<?php }?>
</script>
</form><?php }} ?>

View File

@@ -0,0 +1,355 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:59
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/orders/_customized_data.tpl" */ ?>
<?php /*%%SmartyHeaderCode:178046598056ab3ba34a1791-63443034%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0ae1c1db95192332d3372325b2f9289c3636ab35' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/orders/_customized_data.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '178046598056ab3ba34a1791-63443034',
'function' =>
array (
),
'variables' =>
array (
'product' => 0,
'order' => 0,
'link' => 0,
'product_price' => 0,
'currency' => 0,
'can_edit' => 0,
'display_warehouse' => 0,
'stock_management' => 0,
'customizationPerAddress' => 0,
'customization' => 0,
'type' => 0,
'datas' => 0,
'data' => 0,
'customizationId' => 0,
'amount_refundable' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba36c6d82_87600563',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba36c6d82_87600563')) {function content_56ab3ba36c6d82_87600563($_smarty_tpl) {?>
<?php if ($_smarty_tpl->tpl_vars['product']->value['customizedDatas']) {?>
<?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 }?>
<tr class="customized customized-<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']);?>
product-line-row">
<td>
<input type="hidden" class="edit_product_id_order_detail" value="<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']);?>
" />
<?php if (isset($_smarty_tpl->tpl_vars['product']->value['image'])&&intval($_smarty_tpl->tpl_vars['product']->value['image']->id)) {?><?php echo $_smarty_tpl->tpl_vars['product']->value['image_tag'];?>
<?php } else { ?>--<?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'];?>
- <?php echo smartyTranslate(array('s'=>'Customized'),$_smarty_tpl);?>
</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>
</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'=>intval($_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 intval($_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);?>
" size="5" />
<?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);?>
" size="5" />
<?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"><?php echo $_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal'];?>
</td>
<?php if ($_smarty_tpl->tpl_vars['display_warehouse']->value) {?><td>&nbsp;</td><?php }?>
<?php if (($_smarty_tpl->tpl_vars['order']->value->hasBeenPaid())) {?><td class="productQuantity text-center"><?php echo $_smarty_tpl->tpl_vars['product']->value['customizationQuantityRefunded'];?>
</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['customizationQuantityReturned'];?>
</td><?php }?>
<?php if ($_smarty_tpl->tpl_vars['stock_management']->value) {?><td class="text-center"><?php echo $_smarty_tpl->tpl_vars['product']->value['current_stock'];?>
</td><?php }?>
<td class="total_product">
<?php if (($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod()==@constant('PS_TAX_EXC'))) {?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>Tools::ps_round($_smarty_tpl->tpl_vars['product']->value['product_price']*$_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal'],2),'currency'=>intval($_smarty_tpl->tpl_vars['currency']->value->id)),$_smarty_tpl);?>
<?php } else { ?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>Tools::ps_round($_smarty_tpl->tpl_vars['product']->value['product_price_wt']*$_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal'],2),'currency'=>intval($_smarty_tpl->tpl_vars['currency']->value->id)),$_smarty_tpl);?>
<?php }?>
</td>
<td class="cancelQuantity standard_refund_fields current-edit" style="display:none" colspan="2">
&nbsp;
</td>
<td class="edit_product_fields" colspan="2" style="display:none">&nbsp;</td>
<td class="partial_refund_fields current-edit" style="text-align:left;display:none;"></td>
<?php if (($_smarty_tpl->tpl_vars['can_edit']->value&&!$_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered())) {?>
<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 $_smarty_tpl->tpl_vars['customizationPerAddress'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['customizationPerAddress']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['product']->value['customizedDatas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['customizationPerAddress']->key => $_smarty_tpl->tpl_vars['customizationPerAddress']->value) {
$_smarty_tpl->tpl_vars['customizationPerAddress']->_loop = true;
?>
<?php $_smarty_tpl->tpl_vars['customization'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['customization']->_loop = false;
$_smarty_tpl->tpl_vars['customizationId'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['customizationPerAddress']->value; 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;
$_smarty_tpl->tpl_vars['customizationId']->value = $_smarty_tpl->tpl_vars['customization']->key;
?>
<tr class="customized customized-<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']);?>
">
<td colspan="2">
<input type="hidden" class="edit_product_id_order_detail" value="<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']);?>
" />
<div class="form-horizontal">
<?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');}
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;
?>
<?php if (($_smarty_tpl->tpl_vars['type']->value==Product::CUSTOMIZE_FILE)) {?>
<?php $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['datas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_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['data']->iteration++;
?>
<div class="form-group">
<span class="col-lg-4 control-label"><strong><?php if ($_smarty_tpl->tpl_vars['data']->value['name']) {?><?php echo $_smarty_tpl->tpl_vars['data']->value['name'];?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Picture #'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['data']->iteration;?>
<?php }?></strong></span>
<div class="col-lg-8">
<a href="displayImage.php?img=<?php echo $_smarty_tpl->tpl_vars['data']->value['value'];?>
&amp;name=<?php echo intval($_smarty_tpl->tpl_vars['order']->value->id);?>
-file<?php echo $_smarty_tpl->tpl_vars['data']->iteration;?>
" class="_blank">
<img class="img-thumbnail" src="<?php echo @constant('_THEME_PROD_PIC_DIR_');?>
<?php echo $_smarty_tpl->tpl_vars['data']->value['value'];?>
_small" alt=""/>
</a>
</div>
</div>
<?php } ?>
<?php } elseif (($_smarty_tpl->tpl_vars['type']->value==Product::CUSTOMIZE_TEXTFIELD)) {?>
<?php $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['datas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_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['data']->iteration++;
?>
<div class="form-group">
<span class="col-lg-4 control-label"><strong><?php if ($_smarty_tpl->tpl_vars['data']->value['name']) {?><?php echo smartyTranslate(array('s'=>'%s','sprintf'=>$_smarty_tpl->tpl_vars['data']->value['name']),$_smarty_tpl);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Text #%s','sprintf'=>$_smarty_tpl->tpl_vars['data']->iteration),$_smarty_tpl);?>
<?php }?></strong></span>
<div class="col-lg-8">
<p class="form-control-static"><?php echo $_smarty_tpl->tpl_vars['data']->value['value'];?>
</p>
</div>
</div>
<?php } ?>
<?php }?>
<?php } ?>
</div>
</td>
<td>-</td>
<td class="productQuantity text-center">
<span class="product_quantity_show<?php if ((int)$_smarty_tpl->tpl_vars['customization']->value['quantity']>1) {?> red bold<?php }?>"><?php echo $_smarty_tpl->tpl_vars['customization']->value['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[<?php echo intval($_smarty_tpl->tpl_vars['customizationId']->value);?>
]" class="edit_product_quantity" value="<?php echo htmlentities($_smarty_tpl->tpl_vars['customization']->value['quantity']);?>
" size="2" />
</span>
<?php }?>
</td>
<?php if ($_smarty_tpl->tpl_vars['display_warehouse']->value) {?><td>&nbsp;</td><?php }?>
<?php if (($_smarty_tpl->tpl_vars['order']->value->hasBeenPaid())) {?>
<td class="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['customization']->value['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" />
</td>
<?php }?>
<?php if (($_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered())) {?><td class="text-center"><?php echo $_smarty_tpl->tpl_vars['customization']->value['quantity_returned'];?>
</td><?php }?>
<td class="text-center">-</td>
<td class="total_product">
<?php if (($_smarty_tpl->tpl_vars['order']->value->getTaxCalculationMethod()==@constant('PS_TAX_EXC'))) {?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>Tools::ps_round($_smarty_tpl->tpl_vars['product']->value['product_price']*$_smarty_tpl->tpl_vars['customization']->value['quantity'],2),'currency'=>intval($_smarty_tpl->tpl_vars['currency']->value->id)),$_smarty_tpl);?>
<?php } else { ?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>Tools::ps_round($_smarty_tpl->tpl_vars['product']->value['product_price_wt']*$_smarty_tpl->tpl_vars['customization']->value['quantity'],2),'currency'=>intval($_smarty_tpl->tpl_vars['currency']->value->id)),$_smarty_tpl);?>
<?php }?>
</td>
<td class="cancelCheck standard_refund_fields current-edit" style="display:none">
<input type="hidden" name="totalQtyReturn" id="totalQtyReturn" value="<?php echo intval($_smarty_tpl->tpl_vars['customization']->value['quantity_returned']);?>
" />
<input type="hidden" name="totalQty" id="totalQty" value="<?php echo intval($_smarty_tpl->tpl_vars['customization']->value['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['customization']->value['quantity_returned'])<(int)($_smarty_tpl->tpl_vars['customization']->value['quantity']))) {?>
<input type="checkbox" name="id_customization[<?php echo intval($_smarty_tpl->tpl_vars['customizationId']->value);?>
]" id="id_customization[<?php echo intval($_smarty_tpl->tpl_vars['customizationId']->value);?>
]" value="<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']);?>
" onchange="setCancelQuantity(this, <?php echo intval($_smarty_tpl->tpl_vars['customizationId']->value);?>
, <?php echo $_smarty_tpl->tpl_vars['customization']->value['quantity']-$_smarty_tpl->tpl_vars['product']->value['customizationQuantityTotal']-$_smarty_tpl->tpl_vars['product']->value['product_quantity_reinjected'];?>
)" <?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['customization']->value['quantity_returned']+$_smarty_tpl->tpl_vars['customization']->value['quantity_refunded']>=$_smarty_tpl->tpl_vars['customization']->value['quantity'])) {?>
<input type="hidden" name="cancelCustomizationQuantity[<?php echo intval($_smarty_tpl->tpl_vars['customizationId']->value);?>
]" value="0" />
<?php } elseif ((!$_smarty_tpl->tpl_vars['order']->value->hasBeenDelivered()||Configuration::get('PS_ORDER_RETURN'))) {?>
<input type="text" id="cancelQuantity_<?php echo intval($_smarty_tpl->tpl_vars['customizationId']->value);?>
" name="cancelCustomizationQuantity[<?php echo intval($_smarty_tpl->tpl_vars['customizationId']->value);?>
]" size="2" onclick="selectCheckbox(this);" value="" />0/<?php echo $_smarty_tpl->tpl_vars['customization']->value['quantity']-$_smarty_tpl->tpl_vars['customization']->value['quantity_refunded'];?>
<?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 echo intval($_smarty_tpl->tpl_vars['product']->value['id_order_detail']);?>
]" value="<?php if (($_smarty_tpl->tpl_vars['customization']->value['quantity']-$_smarty_tpl->tpl_vars['customization']->value['quantity_refunded'])>0) {?>1<?php } else { ?>0<?php }?>" />
<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 intval($_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="edit_product_fields" colspan="2" style="display:none"></td>
<td class="product_action" style="text-align:right"></td>
<?php }?>
</tr>
<?php } ?>
<?php } ?>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,208 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 00:51:53
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/controllers/login/content.tpl" */ ?>
<?php /*%%SmartyHeaderCode:208576821556ab8a99e9f9c1-62907299%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0bbfb5e9ec7824dcc546202e6ea32160d01d9fd0' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/controllers/login/content.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '208576821556ab8a99e9f9c1-62907299',
'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_56ab8a99f1ddd0_73437228',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8a99f1ddd0_73437228')) {function content_56ab8a99f1ddd0_73437228($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/sumit/public_html/html/hotelcommerce-master/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 }} ?>

View File

@@ -0,0 +1,116 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:57
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/quickview.tpl" */ ?>
<?php /*%%SmartyHeaderCode:178384428156ab3ba1cc8a51-99684975%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0cda7887de1ca9f457302714d2c9bb77f4ed1464' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/quickview.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '178384428156ab3ba1cc8a51-99684975',
'function' =>
array (
),
'variables' =>
array (
'image' => 0,
'displayName' => 0,
'badges' => 0,
'badge' => 0,
'_badge' => 0,
'nb_rates' => 0,
'avg_rate' => 0,
'price' => 0,
'id_currency' => 0,
'description_full' => 0,
'additional_description' => 0,
'is_addons_partner' => 0,
'url' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba1d172d7_25029625',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba1d172d7_25029625')) {function content_56ab3ba1d172d7_25029625($_smarty_tpl) {?>
<div class="bootstrap">
<div class="col-lg-2">
<img src="<?php echo $_smarty_tpl->tpl_vars['image']->value;?>
" alt="<?php echo $_smarty_tpl->tpl_vars['displayName']->value;?>
" class="img-thumbnail" />
<?php if (isset($_smarty_tpl->tpl_vars['badges']->value)) {?>
<?php $_smarty_tpl->tpl_vars['badge'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['badge']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['badges']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['badge']->key => $_smarty_tpl->tpl_vars['badge']->value) {
$_smarty_tpl->tpl_vars['badge']->_loop = true;
?>
<?php if (is_array($_smarty_tpl->tpl_vars['badge']->value)) {?>
<?php $_smarty_tpl->tpl_vars['_badge'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['_badge']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['badge']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['_badge']->key => $_smarty_tpl->tpl_vars['_badge']->value) {
$_smarty_tpl->tpl_vars['_badge']->_loop = true;
?>
<img src="<?php echo $_smarty_tpl->tpl_vars['_badge']->value;?>
" alt="" class="clearfix quickview-badge" />
<?php } ?>
<?php } else { ?>
<img src="<?php echo $_smarty_tpl->tpl_vars['badge']->value;?>
" alt="" class="clearfix quickview-badge" />
<?php }?>
<?php } ?>
<?php }?>
</div>
<div class="col-lg-10">
<h1><?php echo $_smarty_tpl->tpl_vars['displayName']->value;?>
</h1>
<div class="row">
<div class="col-sm-6">
<?php if ((int)$_smarty_tpl->tpl_vars['nb_rates']->value>0) {?>
<span class="rating">
<span class="star<?php if ($_smarty_tpl->tpl_vars['avg_rate']->value==5) {?> active<?php }?>"></span>
<span class="star<?php if ($_smarty_tpl->tpl_vars['avg_rate']->value==4) {?> active<?php }?>"></span>
<span class="star<?php if ($_smarty_tpl->tpl_vars['avg_rate']->value==3) {?> active<?php }?>"></span>
<span class="star<?php if ($_smarty_tpl->tpl_vars['avg_rate']->value==2) {?> active<?php }?>"></span>
<span class="star<?php if ($_smarty_tpl->tpl_vars['avg_rate']->value==1) {?> active<?php }?>"></span>
</span>
<p class="small"><?php if ((int)$_smarty_tpl->tpl_vars['nb_rates']->value>1) {?><?php echo smartyTranslate(array('s'=>"(%s votes)",'sprintf'=>$_smarty_tpl->tpl_vars['nb_rates']->value),$_smarty_tpl);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>"(%s vote)",'sprintf'=>$_smarty_tpl->tpl_vars['nb_rates']->value),$_smarty_tpl);?>
<?php }?></p>
<?php }?>
</div>
<div class="col-sm-6">
<?php if ((int)$_smarty_tpl->tpl_vars['price']->value) {?>
<div class="quickview-price">
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['price']->value,'currency'=>$_smarty_tpl->tpl_vars['id_currency']->value),$_smarty_tpl);?>
</div>
<?php }?>
</div>
</div>
<hr />
<h3><?php echo smartyTranslate(array('s'=>"Description"),$_smarty_tpl);?>
</h3>
<p class="text-justify"><?php echo $_smarty_tpl->tpl_vars['description_full']->value;?>
</p>
<?php if (isset($_smarty_tpl->tpl_vars['additional_description']->value)&&trim($_smarty_tpl->tpl_vars['additional_description']->value)!='') {?>
<hr />
<h3><?php echo smartyTranslate(array('s'=>"Merchant benefits"),$_smarty_tpl);?>
</h3>
<p class="text-justify"><?php echo $_smarty_tpl->tpl_vars['additional_description']->value;?>
</p>
<?php }?>
<hr />
<?php if ($_smarty_tpl->tpl_vars['is_addons_partner']->value) {?>
<a class="btn btn-success btn-lg pull-right" href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
"><?php echo smartyTranslate(array('s'=>'Install module'),$_smarty_tpl);?>
</a>
<?php } else { ?>
<a class="btn btn-success btn-lg pull-right" href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
" onclick="return !window.open(this.href);"><?php echo smartyTranslate(array('s'=>'View on PrestaShop Addons'),$_smarty_tpl);?>
</a>
<?php }?>
</div>
</div><?php }} ?>

View File

@@ -0,0 +1,97 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 05:22:26
compiled from "/home/sumit/public_html/html/hotelcommerce-master/modules/dashgoals/views/templates/hook/dashboard_zone_two.tpl" */ ?>
<?php /*%%SmartyHeaderCode:36962670556ab3d626977d2-27142309%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0ce0d94adf681a768d6382620be354867e4db398' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/modules/dashgoals/views/templates/hook/dashboard_zone_two.tpl',
1 => 1454061953,
2 => 'file',
),
),
'nocache_hash' => '36962670556ab3d626977d2-27142309',
'function' =>
array (
),
'variables' =>
array (
'currency' => 0,
'goals_year' => 0,
'dashgoals_ajax_link' => 0,
'colors' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3d626c3005_74753724',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3d626c3005_74753724')) {function content_56ab3d626c3005_74753724($_smarty_tpl) {?>
<div class="clearfix"></div>
<script>
var currency_format = <?php echo intval($_smarty_tpl->tpl_vars['currency']->value->format);?>
;
var currency_sign = '<?php echo addslashes($_smarty_tpl->tpl_vars['currency']->value->sign);?>
';
var currency_blank = <?php echo intval($_smarty_tpl->tpl_vars['currency']->value->blank);?>
;
var priceDisplayPrecision = 0;
var dashgoals_year = <?php echo intval($_smarty_tpl->tpl_vars['goals_year']->value);?>
;
var dashgoals_ajax_link = '<?php echo addslashes($_smarty_tpl->tpl_vars['dashgoals_ajax_link']->value);?>
';
</script>
<section id="dashgoals" class="panel widget">
<header class="panel-heading">
<i class="icon-bar-chart"></i>
<?php echo smartyTranslate(array('s'=>'Forecast','mod'=>'dashgoals'),$_smarty_tpl);?>
<span id="dashgoals_title" class="badge"><?php echo $_smarty_tpl->tpl_vars['goals_year']->value;?>
</span>
<span class="btn-group">
<a href="javascript:void(0);" onclick="dashgoals_changeYear('backward');" class="btn btn-default btn-xs"><i class="icon-backward"></i></a>
<a href="javascript:void(0);" onclick="dashgoals_changeYear('forward');" class="btn btn-default btn-xs"><i class="icon-forward"></i></a>
</span>
<span class="panel-heading-action">
<a class="list-toolbar-btn" href="javascript:void(0);" onclick="toggleDashConfig('dashgoals');" title="<?php echo smartyTranslate(array('s'=>'Configure','mod'=>'dashtrends'),$_smarty_tpl);?>
">
<i class="process-icon-configure"></i>
</a>
<a class="list-toolbar-btn" href="javascript:void(0);" onclick="refreshDashboard('dashgoals');" title="<?php echo smartyTranslate(array('s'=>'Refresh','mod'=>'dashtrends'),$_smarty_tpl);?>
">
<i class="process-icon-refresh"></i>
</a>
</span>
</header>
<?php echo $_smarty_tpl->getSubTemplate ('./config.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<section class="loading">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type="radio" name="options" onchange="selectDashgoalsChart('traffic');"/><i class="icon-circle" style="color:<?php echo $_smarty_tpl->tpl_vars['colors']->value[0];?>
"></i> <?php echo smartyTranslate(array('s'=>'Traffic','mod'=>'dashgoals'),$_smarty_tpl);?>
</label>
<label class="btn btn-default">
<input type="radio" name="options" onchange="selectDashgoalsChart('conversion');"/><i class="icon-circle" style="color:<?php echo $_smarty_tpl->tpl_vars['colors']->value[1];?>
"></i> <?php echo smartyTranslate(array('s'=>'Conversion','mod'=>'dashgoals'),$_smarty_tpl);?>
</label>
<label class="btn btn-default">
<input type="radio" name="options" onchange="selectDashgoalsChart('avg_cart_value');"/><i class="icon-circle" style="color:<?php echo $_smarty_tpl->tpl_vars['colors']->value[2];?>
"></i> <?php echo smartyTranslate(array('s'=>'Average Cart Value','mod'=>'dashgoals'),$_smarty_tpl);?>
</label>
<label class="btn btn-default active">
<input type="radio" name="options" onchange="selectDashgoalsChart('sales');"/><i class="icon-circle" style="color:<?php echo $_smarty_tpl->tpl_vars['colors']->value[3];?>
"></i> <?php echo smartyTranslate(array('s'=>'Sales','mod'=>'dashgoals'),$_smarty_tpl);?>
</label>
</div>
<div id="dash_goals_chart1" class="chart with-transitions">
<svg></svg>
</div>
</section>
</section><?php }} ?>

View File

@@ -0,0 +1,254 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:01
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/states/helpers/list/list_footer.tpl" */ ?>
<?php /*%%SmartyHeaderCode:207356637856ab3ba5739bc2-59673512%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0dc8f05dabbcafb8d39017d2f468e54e5e5fc947' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/states/helpers/list/list_footer.tpl',
1 => 1454062128,
2 => 'file',
),
),
'nocache_hash' => '207356637856ab3ba5739bc2-59673512',
'function' =>
array (
),
'variables' =>
array (
'bulk_actions' => 0,
'params' => 0,
'key' => 0,
'zones' => 0,
'z' => 0,
'table' => 0,
'simple_header' => 0,
'list_total' => 0,
'selected_pagination' => 0,
'pagination' => 0,
'value' => 0,
'page' => 0,
'p' => 0,
'total_pages' => 0,
'token' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba57df0d5_23077491',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba57df0d5_23077491')) {function content_56ab3ba57df0d5_23077491($_smarty_tpl) {?>
</table>
</div>
<div class="row">
<div class="col-lg-8">
<?php if ($_smarty_tpl->tpl_vars['bulk_actions']->value) {?>
<?php if (count($_smarty_tpl->tpl_vars['bulk_actions']->value)>1) {?>
<div class="form-group bulk-actions">
<div class="col-lg-6">
<select id="select_submitBulk" name="select_submitBulk" >
<?php $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['params']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['bulk_actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['params']->value['text']=='divider') {?>
<option value="" disabled="disabled" class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['params']->value['text'], ENT_QUOTES, 'UTF-8', true);?>
">--</option>
<?php } else { ?>
<option value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"<?php if (isset($_smarty_tpl->tpl_vars['params']->value['confirm'])) {?> data-confirm="<?php echo $_smarty_tpl->tpl_vars['params']->value['confirm'];?>
"<?php }?>><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['params']->value['text'], ENT_QUOTES, 'UTF-8', true);?>
</option>
<?php }?>
<?php } ?>
</select>
</div>
<div class="col-lg-6">
<input type="submit" class="btn btn-default" name="submitBulk" id="submitBulk" value="<?php echo smartyTranslate(array('s'=>'Apply'),$_smarty_tpl);?>
" />
</div>
</div>
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['params']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['bulk_actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
?>
<div class="form-group bulk-actions">
<div class="col-lg-6">
<?php if ($_smarty_tpl->tpl_vars['key']->value=='affectzone') {?>
<select id="zone_to_affect" name="zone_to_affect">
<?php $_smarty_tpl->tpl_vars['z'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['z']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['zones']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['z']->key => $_smarty_tpl->tpl_vars['z']->value) {
$_smarty_tpl->tpl_vars['z']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['z']->value['id_zone'];?>
"><?php echo $_smarty_tpl->tpl_vars['z']->value['name'];?>
</option>
<?php } ?>
</select>
<?php }?>
</div>
<div class="col-lg-6">
<input type="submit" class="btn btn-default" name="submitBulk<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['params']->value['text'];?>
" <?php if (isset($_smarty_tpl->tpl_vars['params']->value['confirm'])) {?>onclick="return confirm('<?php echo $_smarty_tpl->tpl_vars['params']->value['confirm'];?>
');"<?php }?> />
</div>
</div>
<?php } ?>
<?php }?>
<?php }?>
</div>
<?php if (!$_smarty_tpl->tpl_vars['simple_header']->value&&$_smarty_tpl->tpl_vars['list_total']->value>20) {?>
<div class="col-lg-4">
<div class="pagination">
<?php echo smartyTranslate(array('s'=>'Display'),$_smarty_tpl);?>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<?php echo $_smarty_tpl->tpl_vars['selected_pagination']->value;?>
<i class="icon-caret-down"></i>
</button>
<ul class="dropdown-menu">
<?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['pagination']->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;
?>
<li>
<a href="javascript:void(0);" class="pagination-items-page" data-items="<?php echo intval($_smarty_tpl->tpl_vars['value']->value);?>
"><?php echo $_smarty_tpl->tpl_vars['value']->value;?>
</a>
</li>
<?php } ?>
</ul>
/ <?php echo $_smarty_tpl->tpl_vars['list_total']->value;?>
<?php echo smartyTranslate(array('s'=>'result(s)'),$_smarty_tpl);?>
<input type="hidden" id="pagination-items-page" name="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_pagination" value="<?php echo intval($_smarty_tpl->tpl_vars['selected_pagination']->value);?>
" />
</div>
<script type="text/javascript">
$('.pagination-items-page').on('click',function(e){
e.preventDefault();
$('#pagination-items-page').val($(this).data("items")).closest("form").submit();
});
</script>
<ul class="pagination pull-right">
<li <?php if ($_smarty_tpl->tpl_vars['page']->value<=1) {?>class="disabled"<?php }?>>
<a href="javascript:void(0);" class="pagination-link" data-page="1">
<i class="icon-double-angle-left"></i>
</a>
</li>
<li <?php if ($_smarty_tpl->tpl_vars['page']->value<=1) {?>class="disabled"<?php }?>>
<a href="javascript:void(0);" class="pagination-link" data-page="<?php echo $_smarty_tpl->tpl_vars['page']->value-1;?>
">
<i class="icon-angle-left"></i>
</a>
</li>
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_variable(0, null, 0);?>
<?php while ($_smarty_tpl->tpl_vars['p']->value++<$_smarty_tpl->tpl_vars['total_pages']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['p']->value<$_smarty_tpl->tpl_vars['page']->value-2) {?>
<li class="disabled">
<a href="javascript:void(0);">&hellip;</a>
</li>
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_variable($_smarty_tpl->tpl_vars['page']->value-3, null, 0);?>
<?php } elseif ($_smarty_tpl->tpl_vars['p']->value>$_smarty_tpl->tpl_vars['page']->value+2) {?>
<li class="disabled">
<a href="javascript:void(0);">&hellip;</a>
</li>
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_variable($_smarty_tpl->tpl_vars['total_pages']->value, null, 0);?>
<?php } else { ?>
<li <?php if ($_smarty_tpl->tpl_vars['p']->value==$_smarty_tpl->tpl_vars['page']->value) {?>class="active"<?php }?>>
<a href="javascript:void(0);" class="pagination-link" data-page="<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
</a>
</li>
<?php }?>
<?php }?>
<li <?php if ($_smarty_tpl->tpl_vars['page']->value>$_smarty_tpl->tpl_vars['total_pages']->value) {?>class="disabled"<?php }?>>
<a href="javascript:void(0);" class="pagination-link" data-page="<?php echo $_smarty_tpl->tpl_vars['page']->value+1;?>
">
<i class="icon-angle-right"></i>
</a>
</li>
<li <?php if ($_smarty_tpl->tpl_vars['page']->value>$_smarty_tpl->tpl_vars['total_pages']->value) {?>class="disabled"<?php }?>>
<a href="javascript:void(0);" class="pagination-link" data-page="<?php echo $_smarty_tpl->tpl_vars['total_pages']->value;?>
">
<i class="icon-double-angle-right"></i>
</a>
</li>
</ul>
<script type="text/javascript">
$('.pagination-link').on('click',function(e){
e.preventDefault();
$('#submitFilter'+'<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
').val($(this).data("page")).closest("form").submit();
});
</script>
</div>
<?php }?>
</div>
</div>
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" />
</form>
<script type="text/javascript">
$(document).ready(function(){
<?php if (count($_smarty_tpl->tpl_vars['bulk_actions']->value)>1) {?>
$('#submitBulk').click(function(){
if ($('#select_submitBulk option:selected').data('confirm') !== undefined)
return confirm($('#select_submitBulk option:selected').data('confirm'));
else
return true;
});
$('#select_submitBulk').change(function(){
if ($(this).val() == 'affectzone')
loadZones();
else if (loaded)
$('#zone_to_affect').fadeOut('slow');
});
<?php }?>
});
var loaded = false;
function loadZones()
{
if (!loaded)
{
$.ajax({
type: 'POST',
url: 'ajax.php',
data: 'getZones=true&token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
',
async : true,
cache: false,
dataType: 'json',
success: function(data) {
var html = $(data.data);
html.hide();
$('#select_submitBulk').after(html);
html.fadeIn('slow');
}
});
loaded = true;
}
else
{
$('#zone_to_affect').fadeIn('slow');
}
}
</script>
<?php }} ?>

View File

@@ -0,0 +1,86 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 05:21:47
compiled from "/home/sumit/public_html/html/hotelcommerce-master/modules/blocknavigationmenu/views/templates/hook/navigationmenublock.tpl" */ ?>
<?php /*%%SmartyHeaderCode:190896277056ab3d3ba2af42-35645307%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0dce6779eb2c57f03d6a3a16c2302ecd99bd6ea8' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/modules/blocknavigationmenu/views/templates/hook/navigationmenublock.tpl',
1 => 1454061953,
2 => 'file',
),
),
'nocache_hash' => '190896277056ab3d3ba2af42-35645307',
'function' =>
array (
),
'variables' =>
array (
'force_ssl' => 0,
'base_dir_ssl' => 0,
'base_dir' => 0,
'page_name' => 0,
'link' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3d3ba73c53_55560237',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3d3ba73c53_55560237')) {function content_56ab3d3ba73c53_55560237($_smarty_tpl) {?><div class="pull-right clearfix nav_menu_padding">
<button type="button" class="nav_toggle">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="menu_cont" class="menu_cont_right">
<div class="row margin-lr-0">
<div class="col-xs-12 col-sm-12">
<div class="row margin-lr-0">
<span class="pull-right close_navbar"><i class="icon-close"></i></span>
</div>
<div class="row margin-lr-0 margin-top-20">
<ul class="nav nav-pills nav-stacked">
<li>
<a class="navigation-link" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value)&&$_smarty_tpl->tpl_vars['force_ssl']->value) {?><?php echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value;?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
<?php }?>"><?php echo smartyTranslate(array('s'=>'Home','mod'=>'blocknevigationmenu'),$_smarty_tpl);?>
</a>
<hr class="upper">
<hr class="lower">
</li>
<li>
<a class="navigation-link" id="htl_our_rooms_link" href="<?php if (($_smarty_tpl->tpl_vars['page_name']->value=='index')) {?>#<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
#htmlcontent_home<?php }?>"><?php echo smartyTranslate(array('s'=>'Our Rooms','mod'=>'blocknevigationmenu'),$_smarty_tpl);?>
</a>
<hr class="upper">
<hr class="lower">
</li>
<li>
<a class="navigation-link" id="htl_features_link" href="<?php if (($_smarty_tpl->tpl_vars['page_name']->value=='index')) {?>#<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
#features_block<?php }?>"><?php echo smartyTranslate(array('s'=>'Features','mod'=>'blocknevigationmenu'),$_smarty_tpl);?>
</a>
<hr class="upper">
<hr class="lower">
</li>
<li>
<a class="navigation-link" id="htl_testimonial_link" href="<?php if (($_smarty_tpl->tpl_vars['page_name']->value=='index')) {?>#<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
#testimonial_block<?php }?>"><?php echo smartyTranslate(array('s'=>'Testimonials','mod'=>'blocknevigationmenu'),$_smarty_tpl);?>
</a>
<hr class="upper">
<hr class="lower">
</li>
<li>
<a class="navigation-link" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('contact',true), ENT_QUOTES, 'UTF-8', true);?>
"><?php echo smartyTranslate(array('s'=>'Contact','mod'=>'blocknevigationmenu'),$_smarty_tpl);?>
</a>
<hr class="upper">
<hr class="lower">
</li>
</ul>
</div>
</div>
</div>
</div><?php }} ?>

View File

@@ -0,0 +1,114 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 00:51:04
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/controllers/modules/login_addons.tpl" */ ?>
<?php /*%%SmartyHeaderCode:108857379256ab8a68a7ac22-34137596%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0ec0b8542cfc72c391530c14ee0258b8911e9809' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/controllers/modules/login_addons.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '108857379256ab8a68a7ac22-34137596',
'function' =>
array (
),
'variables' =>
array (
'add_permission' => 0,
'logged_on_addons' => 0,
'check_url_fopen' => 0,
'check_openssl' => 0,
'addons_register_link' => 0,
'addons_forgot_password_link' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8a68b1b6b2_48660115',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8a68b1b6b2_48660115')) {function content_56ab8a68b1b6b2_48660115($_smarty_tpl) {?>
<div class="modal-body">
<?php if ($_smarty_tpl->tpl_vars['add_permission']->value=='1') {?>
<?php if (!isset($_smarty_tpl->tpl_vars['logged_on_addons']->value)||!$_smarty_tpl->tpl_vars['logged_on_addons']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['check_url_fopen']->value=='ko'||$_smarty_tpl->tpl_vars['check_openssl']->value=='ko') {?>
<div class="alert alert-warning">
<?php echo smartyTranslate(array('s'=>'If you want to be able to fully use the AdminModules panel and have free modules available, you should enable the following configuration on your server:'),$_smarty_tpl);?>
<br />
<?php if ($_smarty_tpl->tpl_vars['check_url_fopen']->value=='ko') {?>- <?php echo smartyTranslate(array('s'=>'Enable PHP\'s allow_url_fopen setting'),$_smarty_tpl);?>
<br /><?php }?>
<?php if ($_smarty_tpl->tpl_vars['check_openssl']->value=='ko') {?>- <?php echo smartyTranslate(array('s'=>'Enable PHP\'s OpenSSL extension'),$_smarty_tpl);?>
<br /><?php }?>
</div>
<?php } else { ?>
<!--start addons login-->
<form id="addons_login_form" method="post" >
<div>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addons_register_link']->value, ENT_QUOTES, 'UTF-8', true);?>
"><img class="img-responsive center-block" src="themes/default/img/prestashop-addons-logo.png" alt="Logo PrestaShop Addons"/></a>
<h3 class="text-center"><?php echo smartyTranslate(array('s'=>"Connect your shop with PrestaShop's marketplace in order to automatically import all your Addons purchases."),$_smarty_tpl);?>
</h3>
<hr />
</div>
<div class="row">
<div class="col-md-6">
<h4><?php echo smartyTranslate(array('s'=>"Don't have an account?"),$_smarty_tpl);?>
</h4>
<p class='text-justify'><?php echo smartyTranslate(array('s'=>"Discover the Power of PrestaShop Addons! Explore the PrestaShop Official Marketplace and find over 3 500 innovative modules and themes that optimize conversion rates, increase traffic, build customer loyalty and maximize your productivity"),$_smarty_tpl);?>
</p>
</div>
<div class="col-md-6">
<h4><?php echo smartyTranslate(array('s'=>'Connect to PrestaShop Addons'),$_smarty_tpl);?>
</h4>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="icon-user"></i></span>
<input id="username_addons" name="username_addons" type="text" value="" autocomplete="off" class="form-control ac_input">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="icon-key"></i></span>
<input id="password_addons" name="password_addons" type="password" value="" autocomplete="off" class="form-control ac_input">
</div>
<a class="btn btn-link pull-right _blank" href="<?php echo $_smarty_tpl->tpl_vars['addons_forgot_password_link']->value;?>
"><?php echo smartyTranslate(array('s'=>'I forgot my password'),$_smarty_tpl);?>
</a>
<br>
</div>
</div>
</div>
<div class="row row-padding-top">
<div class="col-md-6">
<div class="form-group">
<a class="btn btn-default btn-block btn-lg _blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addons_register_link']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<?php echo smartyTranslate(array('s'=>"Create an Account"),$_smarty_tpl);?>
<i class="icon-external-link"></i>
</a>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<button id="addons_login_button" class="btn btn-primary btn-block btn-lg" type="submit">
<i class="icon-unlock"></i> <?php echo smartyTranslate(array('s'=>'Sign in'),$_smarty_tpl);?>
</button>
</div>
</div>
</div>
<div id="addons_loading" class="help-block"></div>
</form>
<!--end addons login-->
<?php }?>
<?php }?>
<?php }?>
</div>
<?php }} ?>

View File

@@ -0,0 +1,653 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:59
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/informations.tpl" */ ?>
<?php /*%%SmartyHeaderCode:152817259956ab3ba3e155a6-35425735%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'107f6e9aafe94800d1a0cd166ae114ffcdfb8276' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/informations.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '152817259956ab3ba3e155a6-35425735',
'function' =>
array (
),
'variables' =>
array (
'check_product_association_ajax' => 0,
'ps_force_friendly_product' => 0,
'PS_ALLOW_ACCENTED_CHARS_URL' => 0,
'combinationImagesJs' => 0,
'link' => 0,
'id_lang' => 0,
'display_common_field' => 0,
'bullet_common_field' => 0,
'product_type' => 0,
'is_in_pack' => 0,
'languages' => 0,
'class_input_ajax' => 0,
'product' => 0,
'product_name_redirected' => 0,
'display_multishop_checkboxes' => 0,
'PS_PRODUCT_SHORT_DESC_LIMIT' => 0,
'images' => 0,
'key' => 0,
'image' => 0,
'imagesTypes' => 0,
'type' => 0,
'language' => 0,
'table' => 0,
'default_form_language' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba40c6d10_49071793',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba40c6d10_49071793')) {function content_56ab3ba40c6d10_49071793($_smarty_tpl) {?>
<?php if ($_smarty_tpl->tpl_vars['check_product_association_ajax']->value) {?>
<?php $_smarty_tpl->tpl_vars['class_input_ajax'] = new Smarty_variable('check_product_name ', null, 0);?>
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars['class_input_ajax'] = new Smarty_variable('', null, 0);?>
<?php }?>
<div id="product-informations" class="panel product-tab">
<input type="hidden" name="submitted_tabs[]" value="Informations" />
<h3 class="tab"> <i class="icon-info"></i> <?php echo smartyTranslate(array('s'=>'Information'),$_smarty_tpl);?>
</h3>
<script type="text/javascript">
var msg_select_one = "<?php echo smartyTranslate(array('s'=>'Please select at least one product.','js'=>1),$_smarty_tpl);?>
";
var msg_set_quantity = "<?php echo smartyTranslate(array('s'=>'Please set a quantity to add a product.','js'=>1),$_smarty_tpl);?>
";
<?php if (isset($_smarty_tpl->tpl_vars['ps_force_friendly_product']->value)&&$_smarty_tpl->tpl_vars['ps_force_friendly_product']->value) {?>
var ps_force_friendly_product = 1;
<?php } else { ?>
var ps_force_friendly_product = 0;
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['PS_ALLOW_ACCENTED_CHARS_URL']->value)&&$_smarty_tpl->tpl_vars['PS_ALLOW_ACCENTED_CHARS_URL']->value) {?>
var PS_ALLOW_ACCENTED_CHARS_URL = 1;
<?php } else { ?>
var PS_ALLOW_ACCENTED_CHARS_URL = 0;
<?php }?>
<?php echo $_smarty_tpl->tpl_vars['combinationImagesJs']->value;?>
<?php if ($_smarty_tpl->tpl_vars['check_product_association_ajax']->value) {?>
var search_term = '';
$('document').ready( function() {
$(".check_product_name")
.autocomplete(
'<?php echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts',true));?>
', {
minChars: 3,
max: 10,
width: $(".check_product_name").width(),
selectFirst: false,
scroll: false,
dataType: "json",
formatItem: function(data, i, max, value, term) {
search_term = term;
// adding the little
if ($('.ac_results').find('.separation').length == 0)
$('.ac_results').css('background-color', '#EFEFEF')
.prepend('<div style="color:#585A69; padding:2px 5px"><?php echo smartyTranslate(array('s'=>'Use a product from the list'),$_smarty_tpl);?>
<div class="separation"></div></div>');
return value;
},
parse: function(data) {
var mytab = new Array();
for (var i = 0; i < data.length; i++)
mytab[mytab.length] = { data: data[i], value: data[i].name };
return mytab;
},
extraParams: {
ajax: 1,
action: 'checkProductName',
id_lang: <?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
}
}
)
.result(function(event, data, formatted) {
// keep the searched term in the input
$('#name_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
').val(search_term);
jConfirm('<?php echo smartyTranslate(array('s'=>'Do you want to use this product?'),$_smarty_tpl);?>
&nbsp;<strong>'+data.name+'</strong>', '<?php echo smartyTranslate(array('s'=>'Confirmation'),$_smarty_tpl);?>
', function(confirm){
if (confirm == true)
document.location.href = '<?php echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminProducts',true);?>
&updateproduct&id_product='+data.id_product;
else
return false;
});
});
});
<?php }?>
</script>
<?php if (isset($_smarty_tpl->tpl_vars['display_common_field']->value)&&$_smarty_tpl->tpl_vars['display_common_field']->value) {?>
<div class="alert alert-warning" style="display: block"><?php echo smartyTranslate(array('s'=>'Warning, if you change the value of fields with an orange bullet %s, the value will be changed for all other shops for this product','sprintf'=>$_smarty_tpl->tpl_vars['bullet_common_field']->value),$_smarty_tpl);?>
</div>
<?php }?>
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/check_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_tab'=>"Informations"), 0);?>
<div class="form-group hidden">
<label class="control-label col-lg-3" for="simple_product">
<?php echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;?>
<?php echo smartyTranslate(array('s'=>'Type'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<div class="radio">
<label for="simple_product">
<input type="radio" name="type_product" id="simple_product" value="<?php echo Product::PTYPE_SIMPLE;?>
" <?php if ($_smarty_tpl->tpl_vars['product_type']->value==Product::PTYPE_SIMPLE) {?>checked="checked"<?php }?>>
<?php echo smartyTranslate(array('s'=>'Standard product'),$_smarty_tpl);?>
</label>
</div>
<div class="radio">
<label for="pack_product">
<input type="radio" name="type_product" <?php if ($_smarty_tpl->tpl_vars['is_in_pack']->value) {?>disabled="disabled"<?php }?> id="pack_product" value="<?php echo Product::PTYPE_PACK;?>
" <?php if ($_smarty_tpl->tpl_vars['product_type']->value==Product::PTYPE_PACK) {?>checked="checked"<?php }?>> <?php echo smartyTranslate(array('s'=>'Pack of existing products'),$_smarty_tpl);?>
</label>
</div>
<div class="radio">
<label for="virtual_product">
<input type="radio" name="type_product" id="virtual_product" <?php if ($_smarty_tpl->tpl_vars['is_in_pack']->value) {?>disabled="disabled"<?php }?> value="<?php echo Product::PTYPE_VIRTUAL;?>
" <?php if ($_smarty_tpl->tpl_vars['product_type']->value==Product::PTYPE_VIRTUAL) {?>checked="checked"<?php }?>>
<?php echo smartyTranslate(array('s'=>'Virtual product (services, booking, downloadable products, etc.)'),$_smarty_tpl);?>
</label>
</div>
<div class="row row-padding-top">
<div id="warn_virtual_combinations" class="alert alert-warning" style="display:none"><?php echo smartyTranslate(array('s'=>'You cannot use combinations with a virtual product.'),$_smarty_tpl);?>
</div>
<div id="warn_pack_combinations" class="alert alert-warning" style="display:none"><?php echo smartyTranslate(array('s'=>'You cannot use combinations with a pack.'),$_smarty_tpl);?>
</div>
</div>
</div>
</div>
<div id="product-pack-container" <?php if ($_smarty_tpl->tpl_vars['product_type']->value!=Product::PTYPE_PACK) {?>style="display:none"<?php }?>></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'=>"name",'type'=>"default",'multilang'=>"true"), 0);?>
</span></div>
<label class="control-label col-lg-2 required" for="name_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'Write the name of the Room Type for ex. Delux, Executive etc.'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'Invalid characters:'),$_smarty_tpl);?>
&lt;&gt;;=#{}">
<?php echo smartyTranslate(array('s'=>'Room Type'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-5">
<?php ob_start();?><?php if (!$_smarty_tpl->tpl_vars['product']->value->id||Configuration::get('PS_FORCE_FRIENDLY_PRODUCT')) {?><?php echo "copy2friendlyUrl";?><?php }?><?php $_tmp13=ob_get_clean();?><?php echo $_smarty_tpl->getSubTemplate ("controllers/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages'=>$_smarty_tpl->tpl_vars['languages']->value,'input_class'=>((string)$_smarty_tpl->tpl_vars['class_input_ajax']->value).$_tmp13." updateCurrentText",'input_value'=>$_smarty_tpl->tpl_vars['product']->value->name,'input_name'=>"name",'required'=>true), 0);?>
</div>
</div>
<div class="form-group hidden">
<label class="control-label col-lg-3" for="reference">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'Your internal reference code for this product.'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'Allowed special characters:'),$_smarty_tpl);?>
.-_#\">
<?php echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;?>
<?php echo smartyTranslate(array('s'=>'Reference code'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-5">
<input type="text" id="reference" name="reference" value="<?php echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->reference);?>
" />
</div>
</div>
<div class="form-group hidden">
<label class="control-label col-lg-3" for="ean13">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'This type of product code is specific to Europe and Japan, but is widely used internationally. It is a superset of the UPC code: all products marked with an EAN will be accepted in North America.'),$_smarty_tpl);?>
">
<?php echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;?>
<?php echo smartyTranslate(array('s'=>'EAN-13 or JAN barcode'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-3">
<input maxlength="13" type="text" id="ean13" name="ean13" value="<?php echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->ean13);?>
" />
</div>
</div>
<div class="form-group hidden">
<label class="control-label col-lg-3" for="upc">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'This type of product code is widely used in the United States, Canada, the United Kingdom, Australia, New Zealand and in other countries.'),$_smarty_tpl);?>
">
<?php echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;?>
<?php echo smartyTranslate(array('s'=>'UPC barcode'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-3">
<input maxlength="12" type="text" id="upc" name="upc" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->upc, ENT_QUOTES, 'UTF-8', true);?>
" />
</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'=>"active",'type'=>"radio",'onclick'=>''), 0);?>
</span></div>
<label class="control-label col-lg-2">
<?php echo smartyTranslate(array('s'=>'Enabled'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input onclick="toggleDraftWarning(false);showOptions(true);showRedirectProductOptions(false);" type="radio" name="active" id="active_on" value="1" <?php if ($_smarty_tpl->tpl_vars['product']->value->active||!$_smarty_tpl->tpl_vars['product']->value->isAssociatedToShop()) {?>checked="checked" <?php }?> />
<label for="active_on" class="radioCheck">
<?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</label>
<input onclick="toggleDraftWarning(true);showOptions(false);showRedirectProductOptions(true);" type="radio" name="active" id="active_off" value="0" <?php if (!$_smarty_tpl->tpl_vars['product']->value->active&&$_smarty_tpl->tpl_vars['product']->value->isAssociatedToShop()) {?>checked="checked"<?php }?> />
<label for="active_off" class="radioCheck">
<?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group redirect_product_options" style="display:none">
<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'=>"redirect_type",'type'=>"radio",'onclick'=>''), 0);?>
</span></div>
<label class="control-label col-lg-2" for="redirect_type">
<?php echo smartyTranslate(array('s'=>'Redirect when disabled'),$_smarty_tpl);?>
</label>
<div class="col-lg-5">
<select name="redirect_type" id="redirect_type">
<option value="404" <?php if ($_smarty_tpl->tpl_vars['product']->value->redirect_type=='404') {?> selected="selected" <?php }?>><?php echo smartyTranslate(array('s'=>'No redirect (404)'),$_smarty_tpl);?>
</option>
<option value="301" <?php if ($_smarty_tpl->tpl_vars['product']->value->redirect_type=='301') {?> selected="selected" <?php }?>><?php echo smartyTranslate(array('s'=>'Redirected permanently (301)'),$_smarty_tpl);?>
</option>
<option value="302" <?php if ($_smarty_tpl->tpl_vars['product']->value->redirect_type=='302') {?> selected="selected" <?php }?>><?php echo smartyTranslate(array('s'=>'Redirected temporarily (302)'),$_smarty_tpl);?>
</option>
</select>
</div>
</div>
<div class="form-group redirect_product_options" style="display:none">
<div class="col-lg-9 col-lg-offset-3">
<div class="alert alert-info">
<?php echo smartyTranslate(array('s'=>'404 Not Found = Do not redirect and display a 404 page.'),$_smarty_tpl);?>
<br/>
<?php echo smartyTranslate(array('s'=>'301 Moved Permanently = Permanently display another product instead.'),$_smarty_tpl);?>
<br/>
<?php echo smartyTranslate(array('s'=>'302 Moved Temporarily = Temporarily display another product instead.'),$_smarty_tpl);?>
</div>
</div>
</div>
<div class="form-group redirect_product_options redirect_product_options_product_choise" style="display:none">
<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'=>"id_product_redirected",'type'=>"radio",'onclick'=>''), 0);?>
</span></div>
<label class="control-label col-lg-2" for="related_product_autocomplete_input">
<?php echo smartyTranslate(array('s'=>'Related product:'),$_smarty_tpl);?>
</label>
<div class="col-lg-7">
<input type="hidden" value="" name="id_product_redirected" />
<div class="input-group">
<input type="text" id="related_product_autocomplete_input" name="related_product_autocomplete_input" autocomplete="off" class="ac_input" />
<span class="input-group-addon"><i class="icon-search"></i></span>
</div>
<div class="form-control-static">
<span id="related_product_name"><i class="icon-warning-sign"></i>&nbsp;<?php echo smartyTranslate(array('s'=>'No related product.'),$_smarty_tpl);?>
</span>
<span id="related_product_remove" style="display:none">
<a class="btn btn-default" href="#" onclick="removeRelatedProduct(); return false" id="related_product_remove_link">
<i class="icon-remove text-danger"></i>
</a>
</span>
</div>
</div>
<script>
var no_related_product = '<?php echo smartyTranslate(array('s'=>'No related product'),$_smarty_tpl);?>
';
var id_product_redirected = <?php echo intval($_smarty_tpl->tpl_vars['product']->value->id_product_redirected);?>
;
var product_name_redirected = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_name_redirected']->value, ENT_QUOTES, 'UTF-8', true);?>
';
</script>
</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'=>"visibility",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="visibility">
<?php echo smartyTranslate(array('s'=>'Visibility'),$_smarty_tpl);?>
</label>
<div class="col-lg-3">
<select name="visibility" id="visibility">
<option value="both" <?php if ($_smarty_tpl->tpl_vars['product']->value->visibility=='both') {?>selected="selected"<?php }?> ><?php echo smartyTranslate(array('s'=>'Everywhere'),$_smarty_tpl);?>
</option>
<option value="catalog" <?php if ($_smarty_tpl->tpl_vars['product']->value->visibility=='catalog') {?>selected="selected"<?php }?> ><?php echo smartyTranslate(array('s'=>'Catalog only'),$_smarty_tpl);?>
</option>
<option value="search" <?php if ($_smarty_tpl->tpl_vars['product']->value->visibility=='search') {?>selected="selected"<?php }?> ><?php echo smartyTranslate(array('s'=>'Search only'),$_smarty_tpl);?>
</option>
<option value="none" <?php if ($_smarty_tpl->tpl_vars['product']->value->visibility=='none') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Nowhere'),$_smarty_tpl);?>
</option>
</select>
</div>
</div>
<div id="product_options" class="form-group">
<div class="col-lg-12">
<div class="form-group">
<div class="col-lg-1">
<span class="pull-right">
<?php if (isset($_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value)&&$_smarty_tpl->tpl_vars['display_multishop_checkboxes']->value) {?>
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_checkbox'=>"true",'field'=>"available_for_order",'type'=>"default"), 0);?>
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_checkbox'=>"true",'field'=>"show_price",'type'=>"show_price"), 0);?>
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/checkbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_checkbox'=>"true",'field'=>"online_only",'type'=>"default"), 0);?>
<?php }?>
</span>
</div>
<label class="control-label col-lg-2" for="available_for_order">
<?php echo smartyTranslate(array('s'=>'Options'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<div class="checkbox">
<label for="available_for_order">
<input type="checkbox" name="available_for_order" id="available_for_order" value="1" <?php if ($_smarty_tpl->tpl_vars['product']->value->available_for_order) {?>checked="checked"<?php }?> >
<?php echo smartyTranslate(array('s'=>'Available for order'),$_smarty_tpl);?>
</label>
</div>
<div class="checkbox">
<label for="show_price">
<input type="checkbox" name="show_price" id="show_price" value="1" <?php if ($_smarty_tpl->tpl_vars['product']->value->show_price) {?>checked="checked"<?php }?> <?php if ($_smarty_tpl->tpl_vars['product']->value->available_for_order) {?>disabled="disabled"<?php }?> >
<?php echo smartyTranslate(array('s'=>'Show price'),$_smarty_tpl);?>
</label>
</div>
<div class="checkbox">
<label for="online_only">
<input type="checkbox" name="online_only" id="online_only" value="1" <?php if ($_smarty_tpl->tpl_vars['product']->value->online_only) {?>checked="checked"<?php }?> >
<?php echo smartyTranslate(array('s'=>'Online only (not sold in your retail store)'),$_smarty_tpl);?>
</label>
</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'=>"condition",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="condition">
<?php echo smartyTranslate(array('s'=>'Condition'),$_smarty_tpl);?>
</label>
<div class="col-lg-3">
<select name="condition" id="condition">
<option value="new" <?php if ($_smarty_tpl->tpl_vars['product']->value->condition=='new') {?>selected="selected"<?php }?> ><?php echo smartyTranslate(array('s'=>'New'),$_smarty_tpl);?>
</option>
<option value="used" <?php if ($_smarty_tpl->tpl_vars['product']->value->condition=='used') {?>selected="selected"<?php }?> ><?php echo smartyTranslate(array('s'=>'Used'),$_smarty_tpl);?>
</option>
<option value="refurbished" <?php if ($_smarty_tpl->tpl_vars['product']->value->condition=='refurbished') {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Refurbished'),$_smarty_tpl);?>
</option>
</select>
</div>
</div>
</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'=>"description_short",'type'=>"tinymce",'multilang'=>"true"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="description_short_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'Appears in the product list(s), and at the top of the product page.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Short description'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-9">
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/textarea_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages'=>$_smarty_tpl->tpl_vars['languages']->value,'input_name'=>'description_short','class'=>"autoload_rte",'input_value'=>$_smarty_tpl->tpl_vars['product']->value->description_short,'max'=>$_smarty_tpl->tpl_vars['PS_PRODUCT_SHORT_DESC_LIMIT']->value), 0);?>
</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'=>"description",'type'=>"tinymce",'multilang'=>"true"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="description_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'Appears in the body of the product page.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Description'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-9">
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/textarea_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages'=>$_smarty_tpl->tpl_vars['languages']->value,'input_name'=>'description','class'=>"autoload_rte",'input_value'=>$_smarty_tpl->tpl_vars['product']->value->description), 0);?>
</div>
</div>
<?php if ($_smarty_tpl->tpl_vars['images']->value) {?>
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<div class="alert alert-info">
<?php $_smarty_tpl->_capture_stack[0][] = array('default', null, null); ob_start(); ?><a class="addImageDescription" href="javascript:void(0);"><?php echo smartyTranslate(array('s'=>'Click here'),$_smarty_tpl);?>
</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 echo smartyTranslate(array('s'=>'Would you like to add an image in your description? %s and paste the given tag in the description.','sprintf'=>Smarty::$_smarty_vars['capture']['default']),$_smarty_tpl);?>
</div>
</div>
</div>
<div id="createImageDescription" class="panel" style="display:none">
<div class="form-group">
<label class="control-label col-lg-3" for="smallImage_0"><?php echo smartyTranslate(array('s'=>'Select your image'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<ul class="list-inline">
<?php $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['image']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = 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['key']->value = $_smarty_tpl->tpl_vars['image']->key;
?>
<li>
<input type="radio" name="smallImage" id="smallImage_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
" <?php if ($_smarty_tpl->tpl_vars['key']->value==0) {?>checked="checked"<?php }?> >
<label for="smallImage_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" >
<img src="<?php echo $_smarty_tpl->tpl_vars['image']->value['src'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['image']->value['legend'];?>
" />
</label>
</li>
<?php } ?>
</ul>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="leftRight_1"><?php echo smartyTranslate(array('s'=>'Position'),$_smarty_tpl);?>
</label>
<div class="col-lg-5">
<p class="checkbox">
<input type="radio" name="leftRight" id="leftRight_1" value="left" checked>
<label for="leftRight_1" ><?php echo smartyTranslate(array('s'=>'left'),$_smarty_tpl);?>
</label>
</p>
<p class="checkbox">
<input type="radio" name="leftRight" id="leftRight_2" value="right">
<label for="leftRight_2" ><?php echo smartyTranslate(array('s'=>'right'),$_smarty_tpl);?>
</label>
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="imageTypes_0"><?php echo smartyTranslate(array('s'=>'Select the type of picture'),$_smarty_tpl);?>
</label>
<div class="col-lg-5">
<?php $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['type']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['imagesTypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) {
$_smarty_tpl->tpl_vars['type']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['type']->key;
?>
<p class="checkbox">
<input type="radio" name="imageTypes" id="imageTypes_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['type']->value['name'];?>
" <?php if ($_smarty_tpl->tpl_vars['key']->value==0) {?>checked="checked"<?php }?>>
<label for="imageTypes_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" >
<?php echo $_smarty_tpl->tpl_vars['type']->value['name'];?>
<span><?php echo smartyTranslate(array('s'=>'%dpx by %dpx','sprintf'=>array($_smarty_tpl->tpl_vars['type']->value['width'],$_smarty_tpl->tpl_vars['type']->value['height'])),$_smarty_tpl);?>
</span>
</label>
</p>
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3" for="resultImage">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'The tag to copy/paste into the description.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Image tag to insert'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-4">
<input type="text" id="resultImage" name="resultImage" />
</div>
<p class="help-block"></p>
</div>
</div>
<?php }?>
<div class="form-group">
<label class="control-label col-lg-3" for="tags_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'Will be displayed in the tags block when enabled. Tags help customers easily find your products.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Tags:'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-9">
<?php if (count($_smarty_tpl->tpl_vars['languages']->value)>1) {?>
<div class="row">
<?php }?>
<?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;
?>
<script type="text/javascript">
$().ready(function () {
var input_id = 'tags_<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
';
$('#'+input_id).tagify({delimiters: [13,44], addTagPrompt: '<?php echo smartyTranslate(array('s'=>'Add tag','js'=>1),$_smarty_tpl);?>
'});
$('#<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_form').submit( function() {
$(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
});
});
</script>
<?php if (count($_smarty_tpl->tpl_vars['languages']->value)>1) {?>
<div class="translatable-field lang-<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
">
<div class="col-lg-9">
<?php }?>
<input type="text" id="tags_<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
" class="tagify updateCurrentText" name="tags_<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
" value="<?php echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->getTags($_smarty_tpl->tpl_vars['language']->value['id_lang'],true));?>
" />
<?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">
<?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:tabs_manager.allow_hide_other_languages = false;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 } ?>
<?php if (count($_smarty_tpl->tpl_vars['languages']->value)>1) {?>
</div>
<?php }?>
</div>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block"><?php echo smartyTranslate(array('s'=>'Each tag has to be followed by a comma. The following characters are forbidden: %s','sprintf'=>'!&lt;;&gt;;?=+#&quot;&deg;{}_$%.'),$_smarty_tpl);?>
</div>
</div>
</div>
<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>
</div>
<script type="text/javascript">
hideOtherLanguage(<?php echo $_smarty_tpl->tpl_vars['default_form_language']->value;?>
);
var missing_product_name = '<?php echo smartyTranslate(array('s'=>'Please fill product name input field','js'=>1),$_smarty_tpl);?>
';
</script>
<?php }} ?>

View File

@@ -0,0 +1,263 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:59
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/helpers/uploader/ajax.tpl" */ ?>
<?php /*%%SmartyHeaderCode:111272047656ab3ba3a4dc62-64927083%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'109d22313f371c2906874b5a7cd3c0dbcd484304' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/helpers/uploader/ajax.tpl',
1 => 1454062130,
2 => 'file',
),
),
'nocache_hash' => '111272047656ab3ba3a4dc62-64927083',
'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_56ab3ba3b5d501_91466989',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba3b5d501_91466989')) {function content_56ab3ba3b5d501_91466989($_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,90 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 00:52:23
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/nav.tpl" */ ?>
<?php /*%%SmartyHeaderCode:82272772856ab8ab7458aa2-54328429%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'112ae0115eea4ef4f4033885d0b8751c1e2ec365' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/nav.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '82272772856ab8ab7458aa2-54328429',
'function' =>
array (
),
'variables' =>
array (
'employee' => 0,
'tab' => 0,
'tabs' => 0,
't' => 0,
't2' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8ab74aad75_34744679',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8ab74aad75_34744679')) {function content_56ab8ab74aad75_34744679($_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,150 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:00
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/seo.tpl" */ ?>
<?php /*%%SmartyHeaderCode:12566394156ab3ba47a6160-98600665%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'116363091018809fcc68d1bcf700850226814f73' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/seo.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '12566394156ab3ba47a6160-98600665',
'function' =>
array (
),
'variables' =>
array (
'id_lang' => 0,
'languages' => 0,
'product' => 0,
'language' => 0,
'rewritten_links' => 0,
'link' => 0,
'default_form_language' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba4831e43_48200268',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba4831e43_48200268')) {function content_56ab3ba4831e43_48200268($_smarty_tpl) {?>
<div id="product-seo" class="panel product-tab">
<input type="hidden" name="submitted_tabs[]" value="Seo" />
<h3><?php echo smartyTranslate(array('s'=>'SEO'),$_smarty_tpl);?>
</h3>
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/check_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_tab'=>"Seo"), 0);?>
<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'=>"meta_title",'type'=>"default",'multilang'=>"true"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="meta_title_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'Public title for the product\'s page, and for search engines. Leave blank to use the product name.'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'The number of remaining characters is displayed to the left of the field.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Meta title'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-8">
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages'=>$_smarty_tpl->tpl_vars['languages']->value,'input_name'=>'meta_title','input_value'=>$_smarty_tpl->tpl_vars['product']->value->meta_title,'maxchar'=>70), 0);?>
</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'=>"meta_description",'type'=>"default",'multilang'=>"true"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="meta_description_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'This description will appear in search engines. You need a single sentence, shorter than 160 characters (including spaces).'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Meta description'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-8">
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages'=>$_smarty_tpl->tpl_vars['languages']->value,'input_name'=>'meta_description','input_value'=>$_smarty_tpl->tpl_vars['product']->value->meta_description,'maxchar'=>160), 0);?>
</div>
</div>
<div class="form-group hide">
<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'=>"meta_keywords",'type'=>"default",'multilang'=>"true"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="meta_keywords_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'Keywords for search engines, separated by commas.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Meta keywords'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-8">
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages'=>$_smarty_tpl->tpl_vars['languages']->value,'input_value'=>$_smarty_tpl->tpl_vars['product']->value->meta_keywords,'input_name'=>'meta_keywords'), 0);?>
</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'=>"link_rewrite",'type'=>"seo_friendly_url",'multilang'=>"true"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="link_rewrite_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'This is the human-readable URL, as generated from the product\'s name. You can change it if you want.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Friendly URL:'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-6">
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages'=>$_smarty_tpl->tpl_vars['languages']->value,'input_value'=>$_smarty_tpl->tpl_vars['product']->value->link_rewrite,'input_name'=>'link_rewrite'), 0);?>
</div>
<div class="col-lg-2">
<button type="button" class="btn btn-default" id="generate-friendly-url" onmousedown="updateFriendlyURLByName();"><i class="icon-random"></i> <?php echo smartyTranslate(array('s'=>'Generate'),$_smarty_tpl);?>
</button>
</div>
</div>
<div class="row">
<div class="col-lg-9 col-lg-offset-3">
<?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;
?>
<div class="alert alert-warning translatable-field lang-<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
">
<i class="icon-link"></i> <?php echo smartyTranslate(array('s'=>'The product link will look like this:'),$_smarty_tpl);?>
<br/>
<strong><?php if (isset($_smarty_tpl->tpl_vars['rewritten_links']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']][0])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rewritten_links']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']][0], ENT_QUOTES, 'UTF-8', true);?>
<?php }?><span id="friendly-url_<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->link_rewrite[$_smarty_tpl->tpl_vars['language']->value['id_lang']], ENT_QUOTES, 'UTF-8', true);?>
</span><?php if (isset($_smarty_tpl->tpl_vars['rewritten_links']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']][1])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rewritten_links']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']][1], ENT_QUOTES, 'UTF-8', true);?>
<?php }?></strong>
</div>
<?php } ?>
</div>
</div>
<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>
</div>
<script type="text/javascript">
if (tabs_manager.allow_hide_other_languages)
hideOtherLanguage(<?php echo $_smarty_tpl->tpl_vars['default_form_language']->value;?>
);
</script>
<?php }} ?>

View File

@@ -0,0 +1,192 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 13:14:49
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/controllers/dashboard/helpers/view/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:91162761256ab8ff9406c21-74488772%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'12e5d1dbc5a66e08fae560dfb4f6b8d65dc75b96' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/controllers/dashboard/helpers/view/view.tpl',
1 => 1454062131,
2 => 'file',
),
),
'nocache_hash' => '91162761256ab8ff9406c21-74488772',
'function' =>
array (
),
'variables' =>
array (
'link' => 0,
'dashboard_use_push' => 0,
'warning' => 0,
'action' => 0,
'preselect_date_range' => 0,
'date_from' => 0,
'date_to' => 0,
'calendar' => 0,
'hookDashboardZoneOne' => 0,
'hookDashboardZoneTwo' => 0,
'lang_iso' => 0,
'host_mode' => 0,
'new_version_url' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8ff948f076_25772048',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8ff948f076_25772048')) {function content_56ab8ff948f076_25772048($_smarty_tpl) {?>
<script>
var dashboard_ajax_url = '<?php echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminDashboard');?>
';
var adminstats_ajax_url = '<?php echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminStats');?>
';
var no_results_translation = '<?php echo smartyTranslate(array('s'=>'No result','js'=>1),$_smarty_tpl);?>
';
var dashboard_use_push = '<?php echo intval($_smarty_tpl->tpl_vars['dashboard_use_push']->value);?>
';
var read_more = '<?php echo smartyTranslate(array('s'=>'Read more','js'=>1),$_smarty_tpl);?>
';
</script>
<div id="dashboard">
<div class="row">
<div class="col-lg-12">
<?php if ($_smarty_tpl->tpl_vars['warning']->value) {?>
<div class="alert alert-warning"><?php echo $_smarty_tpl->tpl_vars['warning']->value;?>
</div>
<?php }?>
<div id="calendar" class="panel">
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post" id="calendar_form" name="calendar_form" class="form-inline">
<div class="btn-group">
<button type="button" name="submitDateDay" class="btn btn-default submitDateDay<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='day') {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Day'),$_smarty_tpl);?>
</button>
<button type="button" name="submitDateMonth" class="btn btn-default submitDateMonth<?php if ((!isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)||!$_smarty_tpl->tpl_vars['preselect_date_range']->value)||(isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='month')) {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Month'),$_smarty_tpl);?>
</button>
<button type="button" name="submitDateYear" class="btn btn-default submitDateYear<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='year') {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Year'),$_smarty_tpl);?>
</button>
<button type="button" name="submitDateDayPrev" class="btn btn-default submitDateDayPrev<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='prev-day') {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Day'),$_smarty_tpl);?>
-1
</button>
<button type="button" name="submitDateMonthPrev" class="btn btn-default submitDateMonthPrev<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='prev-month') {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Month'),$_smarty_tpl);?>
-1
</button>
<button type="button" name="submitDateYearPrev" class="btn btn-default submitDateYearPrev<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='prev-year') {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Year'),$_smarty_tpl);?>
-1
</button>
<!--
<button type="submit" name="submitDateRealTime" class="hide btn btn-default submitDateRealTime <?php if ($_smarty_tpl->tpl_vars['dashboard_use_push']->value) {?>active<?php }?>" value="<?php echo !intval($_smarty_tpl->tpl_vars['dashboard_use_push']->value);?>
">
<?php echo smartyTranslate(array('s'=>'Real Time'),$_smarty_tpl);?>
</button> -->
</div>
<input type="hidden" name="datepickerFrom" id="datepickerFrom" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_from']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="form-control">
<input type="hidden" name="datepickerTo" id="datepickerTo" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_to']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="form-control">
<input type="hidden" name="preselectDateRange" id="preselectDateRange" value="<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)) {?><?php echo $_smarty_tpl->tpl_vars['preselect_date_range']->value;?>
<?php }?>" class="form-control">
<div class="form-group pull-right">
<button id="datepickerExpand" class="btn btn-default" type="button">
<i class="icon-calendar-empty"></i>
<span class="hidden-xs">
<?php echo smartyTranslate(array('s'=>'From'),$_smarty_tpl);?>
<strong class="text-info" id="datepicker-from-info"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_from']->value, ENT_QUOTES, 'UTF-8', true);?>
</strong>
<?php echo smartyTranslate(array('s'=>'To'),$_smarty_tpl);?>
<strong class="text-info" id="datepicker-to-info"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_to']->value, ENT_QUOTES, 'UTF-8', true);?>
</strong>
<strong class="text-info" id="datepicker-diff-info"></strong>
</span>
<i class="icon-caret-down"></i>
</button>
</div>
<?php echo $_smarty_tpl->tpl_vars['calendar']->value;?>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 col-lg-3" id="hookDashboardZoneOne">
<?php echo $_smarty_tpl->tpl_vars['hookDashboardZoneOne']->value;?>
</div>
<div class="col-md-8 col-lg-7" id="hookDashboardZoneTwo">
<?php echo $_smarty_tpl->tpl_vars['hookDashboardZoneTwo']->value;?>
<div id="dashaddons" class="row-margin-bottom">
<a href="http://addons.prestashop.com/en/209-dashboards?utm_source=back-office&amp;utm_medium=dashboard&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">
<i class="icon-plus"></i> <?php echo smartyTranslate(array('s'=>'Add more dashboard modules'),$_smarty_tpl);?>
</a>
</div>
</div>
<div class="col-md-12 col-lg-2">
<section class="dash_news panel">
<h3><i class="icon-rss"></i> <?php echo smartyTranslate(array('s'=>'PrestaShop News'),$_smarty_tpl);?>
</h3>
<div class="dash_news_content"></div>
<div class="text-center"><h4><a href="http://www.prestashop.com/blog/" onclick="return !window.open(this.href);"><?php echo smartyTranslate(array('s'=>'Find more news'),$_smarty_tpl);?>
</a></h4></div>
</section>
<section id="dash_version" class="visible-lg">
<iframe style="overflow:hidden;border:none" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['new_version_url']->value, ENT_QUOTES, 'UTF-8', true);?>
" ></iframe>
</section>
<section class="dash_links panel">
<h3><i class="icon-link"></i> <?php echo smartyTranslate(array('s'=>"Useful links"),$_smarty_tpl);?>
</h3>
<dl>
<dt><a href="http://doc.prestashop.com/display/PS16?utm_source=back-office&amp;utm_medium=dashboard&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 echo smartyTranslate(array('s'=>"Official Documentation"),$_smarty_tpl);?>
</a></dt>
<dd><?php echo smartyTranslate(array('s'=>"User, Developer and Designer Guides"),$_smarty_tpl);?>
</dd>
</dl>
<dl>
<dt><a href="http://www.prestashop.com/forums?utm_source=back-office&amp;utm_medium=dashboard&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 echo smartyTranslate(array('s'=>"PrestaShop Forum"),$_smarty_tpl);?>
</a></dt>
<dd><?php echo smartyTranslate(array('s'=>"Connect with the PrestaShop community"),$_smarty_tpl);?>
</dd>
</dl>
<dl>
<dt><a href="http://addons.prestashop.com?utm_source=back-office&amp;utm_medium=dashboard&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 echo smartyTranslate(array('s'=>"PrestaShop Addons"),$_smarty_tpl);?>
</a></dt>
<dd><?php echo smartyTranslate(array('s'=>"Enhance your store with templates & modules"),$_smarty_tpl);?>
</dd>
</dl>
<dl>
<dt><a href="http://forge.prestashop.com?utm_source=back-office&amp;utm_medium=dashboard&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 echo smartyTranslate(array('s'=>"The Forge"),$_smarty_tpl);?>
</a></dt>
<dd><?php echo smartyTranslate(array('s'=>"Report issues in the Bug Tracker"),$_smarty_tpl);?>
</dd>
</dl>
<dl>
<dt><a href="http://www.prestashop.com/en/contact-us?utm_source=back-office&amp;utm_medium=dashboard&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 echo smartyTranslate(array('s'=>"Contact Us!"),$_smarty_tpl);?>
</a></dt>
<dd></dd>
</dl>
</section>
</div>
</div>
</div>
<?php }} ?>

View File

@@ -0,0 +1,92 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 00:51:54
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/controllers/login/header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:173539417656ab8a9a148ed3-58835586%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'12ff2db4fabecfaae846e9c71e555b640c19ffda' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/controllers/login/header.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '173539417656ab8a9a148ed3-58835586',
'function' =>
array (
),
'variables' =>
array (
'iso' => 0,
'img_dir' => 0,
'shop_name' => 0,
'meta_title' => 0,
'navigationPipe' => 0,
'css_files' => 0,
'css_uri' => 0,
'media' => 0,
'js_files' => 0,
'js_uri' => 0,
'js_def' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8a9a1a0eb8_27723674',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8a9a1a0eb8_27723674')) {function content_56ab8a9a1a0eb8_27723674($_smarty_tpl) {?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8 ie7"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9 ie8"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js ie9"> <![endif]-->
<html lang="<?php echo $_smarty_tpl->tpl_vars['iso']->value;?>
">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="icon" type="image/x-icon" href="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?>
favicon.ico" />
<link rel="apple-touch-icon" href="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value;?>
app_icon.png" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="robots" content="NOFOLLOW, NOINDEX">
<title>
<?php echo $_smarty_tpl->tpl_vars['shop_name']->value;?>
<?php if ($_smarty_tpl->tpl_vars['meta_title']->value!='') {?><?php if (isset($_smarty_tpl->tpl_vars['navigationPipe']->value)) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['navigationPipe']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?>&gt;<?php }?> <?php echo $_smarty_tpl->tpl_vars['meta_title']->value;?>
<?php }?> (PrestaShop&trade;)
</title>
<?php $_smarty_tpl->tpl_vars['media'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['media']->_loop = false;
$_smarty_tpl->tpl_vars['css_uri'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['css_files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['media']->key => $_smarty_tpl->tpl_vars['media']->value) {
$_smarty_tpl->tpl_vars['media']->_loop = true;
$_smarty_tpl->tpl_vars['css_uri']->value = $_smarty_tpl->tpl_vars['media']->key;
?>
<link href="<?php echo $_smarty_tpl->tpl_vars['css_uri']->value;?>
" rel="stylesheet" type="text/css" media="<?php echo $_smarty_tpl->tpl_vars['media']->value;?>
" />
<?php } ?>
<?php $_smarty_tpl->tpl_vars['js_uri'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['js_uri']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['js_files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['js_uri']->key => $_smarty_tpl->tpl_vars['js_uri']->value) {
$_smarty_tpl->tpl_vars['js_uri']->_loop = true;
?>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js_uri']->value;?>
"></script>
<?php } ?>
<script type="text/javascript" src="../js/admin/login.js?<?php echo time();?>
"></script>
<?php if ((isset($_smarty_tpl->tpl_vars['js_def']->value)&&count($_smarty_tpl->tpl_vars['js_def']->value)||isset($_smarty_tpl->tpl_vars['js_files']->value)&&count($_smarty_tpl->tpl_vars['js_files']->value))) {?>
<?php echo $_smarty_tpl->getSubTemplate ((@constant('_PS_ALL_THEMES_DIR_')).("javascript.tpl"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }?>
</head>
<body class="ps_back-office bootstrap">
<div id="login">
<div id="content">
<?php }} ?>

View File

@@ -0,0 +1,45 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:01
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/stats/stats.tpl" */ ?>
<?php /*%%SmartyHeaderCode:177669896756ab3ba5727491-53678331%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'13b6424226e784e5cd014f37e923628961494536' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/stats/stats.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '177669896756ab3ba5727491-53678331',
'function' =>
array (
),
'variables' =>
array (
'module_name' => 0,
'module_instance' => 0,
'hook' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba5737af5_71464001',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba5737af5_71464001')) {function content_56ab3ba5737af5_71464001($_smarty_tpl) {?>
<div class="panel">
<?php if ($_smarty_tpl->tpl_vars['module_name']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['module_instance']->value&&$_smarty_tpl->tpl_vars['module_instance']->value->active) {?>
<?php echo $_smarty_tpl->tpl_vars['hook']->value;?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'Module not found'),$_smarty_tpl);?>
<?php }?>
<?php } else { ?>
<h3 class="space"><?php echo smartyTranslate(array('s'=>'Please select a module from the left column.'),$_smarty_tpl);?>
</h3>
<?php }?>
</div>
</div>
</div><?php }} ?>

View File

@@ -0,0 +1,218 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:00
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/virtualproduct.tpl" */ ?>
<?php /*%%SmartyHeaderCode:207148770556ab3ba46bdb26-77466821%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1409985939bec99b575a7a65856418262d94ffaa' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/virtualproduct.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '207148770556ab3ba46bdb26-77466821',
'function' =>
array (
),
'variables' =>
array (
'product' => 0,
'product_downloaded' => 0,
'download_product_file_missing' => 0,
'download_dir_writable' => 0,
'is_file' => 0,
'virtual_product_file_uploader' => 0,
'currentIndex' => 0,
'token' => 0,
'error_product_download' => 0,
'link' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba4776232_12446837',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba4776232_12446837')) {function content_56ab3ba4776232_12446837($_smarty_tpl) {?>
<script type="text/javascript">
var newLabel = '<?php echo smartyTranslate(array('s'=>'New label'),$_smarty_tpl);?>
';
var choose_language = '<?php echo smartyTranslate(array('s'=>'Choose language:'),$_smarty_tpl);?>
';
var required = '<?php echo smartyTranslate(array('s'=>'Required'),$_smarty_tpl);?>
';
var customizationUploadableFileNumber = '<?php echo $_smarty_tpl->tpl_vars['product']->value->uploadable_files;?>
';
var customizationTextFieldNumber = '<?php echo $_smarty_tpl->tpl_vars['product']->value->text_fields;?>
';
var uploadableFileLabel = 0;
var textFieldLabel = 0;
</script>
<div id="product-virtualproduct" class="panel product-tab">
<input type="hidden" name="submitted_tabs[]" value="VirtualProduct" />
<input type="hidden" id="virtual_product_filename" name="virtual_product_filename" value="<?php echo $_smarty_tpl->tpl_vars['product']->value->productDownload->filename;?>
" />
<h3><?php echo smartyTranslate(array('s'=>'Virtual Product (services, booking or downloadable products)'),$_smarty_tpl);?>
</h3>
<div class="is_virtual_good" class="form-group">
<input type="checkbox" id="is_virtual_good" name="is_virtual_good" value="true" <?php if ($_smarty_tpl->tpl_vars['product']->value->is_virtual&&$_smarty_tpl->tpl_vars['product']->value->productDownload->active) {?>checked="checked"<?php }?> />
<label for="is_virtual_good" class="t bold"><?php echo smartyTranslate(array('s'=>'Is this a virtual product?'),$_smarty_tpl);?>
</label>
</div>
<div id="virtual_good" <?php if (!$_smarty_tpl->tpl_vars['product']->value->productDownload->id||$_smarty_tpl->tpl_vars['product']->value->productDownload->active) {?>style="display:none"<?php }?> class="form-group">
<div class="form-group">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Does this product have an associated file?'),$_smarty_tpl);?>
</label>
<div class="col-lg-2">
<span class="switch prestashop-switch">
<input type="radio" name="is_virtual_file" id="is_virtual_file_on" value="1" <?php if ($_smarty_tpl->tpl_vars['product_downloaded']->value) {?> checked="checked"<?php }?> />
<label for="is_virtual_file_on"><?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</label>
<input type="radio" name="is_virtual_file" id="is_virtual_file_off" value="0" <?php if (!$_smarty_tpl->tpl_vars['product_downloaded']->value) {?> checked="checked"<?php }?> />
<label for="is_virtual_file_off"><?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div id="is_virtual_file_product" style="display:none;">
<?php if ($_smarty_tpl->tpl_vars['download_product_file_missing']->value) {?>
<div class="form-group">
<div class="col-lg-push-3 col-lg-9">
<div class="alert alert-danger" id="file_missing">
<?php echo $_smarty_tpl->tpl_vars['download_product_file_missing']->value;?>
:<br/>
<strong><?php echo smartyTranslate(array('s'=>sprintf('Server file name : %s',$_smarty_tpl->tpl_vars['product']->value->productDownload->filename)),$_smarty_tpl);?>
</strong>
</div>
</div>
</div>
<?php }?>
<?php if (!$_smarty_tpl->tpl_vars['download_dir_writable']->value) {?>
<div class="form-group">
<div class="col-lg-push-3 col-lg-9">
<div class="alert alert-danger">
<?php echo smartyTranslate(array('s'=>'Your download repository is not writable.'),$_smarty_tpl);?>
</div>
</div>
</div>
<?php }?>
<?php if (empty($_smarty_tpl->tpl_vars['product']->value->cache_default_attribute)) {?>
<?php if ($_smarty_tpl->tpl_vars['product']->value->productDownload->id) {?>
<input type="hidden" id="virtual_product_id" name="virtual_product_id" value="<?php echo $_smarty_tpl->tpl_vars['product']->value->productDownload->id;?>
" />
<?php }?>
<div class="form-group"<?php if ($_smarty_tpl->tpl_vars['is_file']->value) {?> style="display:none"<?php }?>>
<label id="virtual_product_file_label" for="virtual_product_file" class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'Upload a file from your computer'),$_smarty_tpl);?>
(<?php echo sprintf('%.2f',Configuration::get('PS_ATTACHMENT_MAXIMUM_SIZE'));?>
<?php echo smartyTranslate(array('s'=>'MB max.'),$_smarty_tpl);?>
)">
<?php echo smartyTranslate(array('s'=>'File'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-5">
<?php echo $_smarty_tpl->tpl_vars['virtual_product_file_uploader']->value;?>
<p class="help-block"><?php echo smartyTranslate(array('s'=>'Upload a file from your computer'),$_smarty_tpl);?>
(<?php echo sprintf('%.2f',Configuration::get('PS_ATTACHMENT_MAXIMUM_SIZE'));?>
<?php echo smartyTranslate(array('s'=>'MB max.'),$_smarty_tpl);?>
)</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required"><?php echo smartyTranslate(array('s'=>'Filename'),$_smarty_tpl);?>
</label>
<div class="col-lg-5">
<input type="text" id="virtual_product_name" name="virtual_product_name" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->productDownload->display_filename, ENT_QUOTES, 'UTF-8', true);?>
" />
<p class="help-block"><?php echo smartyTranslate(array('s'=>'The full filename with its extension (e.g. Book.pdf)'),$_smarty_tpl);?>
</p>
</div>
</div>
<?php if ($_smarty_tpl->tpl_vars['is_file']->value) {?>
<div class="form-group">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Link to the file:'),$_smarty_tpl);?>
</label>
<div class="col-lg-5">
<a href="<?php echo $_smarty_tpl->tpl_vars['product']->value->productDownload->getTextLink(true);?>
" class="btn btn-default"><i class="icon-download"></i> <?php echo smartyTranslate(array('s'=>'Download file'),$_smarty_tpl);?>
</a>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;deleteVirtualProduct=true&amp;updateproduct&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;id_product=<?php echo $_smarty_tpl->tpl_vars['product']->value->id;?>
" class="btn btn-default" onclick="return confirm('<?php echo smartyTranslate(array('s'=>'Do you really want to delete this file?','js'=>1),$_smarty_tpl);?>
');"><i class="icon-trash"></i> <?php echo smartyTranslate(array('s'=>'Delete this file'),$_smarty_tpl);?>
</a>
</div>
</div>
<?php }?>
<div class="form-group">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Number of allowed downloads'),$_smarty_tpl);?>
</label>
<div class="col-lg-3">
<input type="text" id="virtual_product_nb_downloable" name="virtual_product_nb_downloable" value="<?php echo htmlentities($_smarty_tpl->tpl_vars['product']->value->productDownload->nb_downloadable);?>
" class="" size="6" />
<p class="help-block"><?php echo smartyTranslate(array('s'=>'Number of downloads allowed per customer. Set to 0 for unlimited downloads.'),$_smarty_tpl);?>
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="<?php echo smartyTranslate(array('s'=>'Format: YYYY-MM-DD.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Expiration date'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-5">
<input class="datepicker" type="text" id="virtual_product_expiration_date" name="virtual_product_expiration_date" value="<?php echo $_smarty_tpl->tpl_vars['product']->value->productDownload->date_expiration;?>
" size="11" maxlength="10" autocomplete="off" />
<p class="help-block"><?php echo smartyTranslate(array('s'=>'If set, the file will not be downloadable after this date. Leave blank if you do not wish to attach an expiration date.'),$_smarty_tpl);?>
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required"><?php echo smartyTranslate(array('s'=>'Number of days'),$_smarty_tpl);?>
</label>
<div class="col-lg-3">
<input type="text" id="virtual_product_nb_days" name="virtual_product_nb_days" value="<?php if (!$_smarty_tpl->tpl_vars['product']->value->productDownload->nb_days_accessible) {?>0<?php } else { ?><?php echo htmlentities($_smarty_tpl->tpl_vars['product']->value->productDownload->nb_days_accessible);?>
<?php }?>" class="" size="4" />
<p class="help-block"><?php echo smartyTranslate(array('s'=>'Number of days this file can be accessed by customers. Set to zero for unlimited access.'),$_smarty_tpl);?>
</p>
</div>
</div>
<?php } else { ?>
<div class="alert alert-info">
<?php echo smartyTranslate(array('s'=>'You cannot edit your file here because you used combinations. Please edit this file in the Combinations tab.'),$_smarty_tpl);?>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['error_product_download']->value)) {?><?php echo $_smarty_tpl->tpl_vars['error_product_download']->value;?>
<?php }?>
<?php }?>
</div>
</div>
<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>
</div>
<?php }} ?>

View File

@@ -0,0 +1,33 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 00:52:29
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/helpers/list/list_action_edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:9913508256ab8abd5fc556-59118395%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'15900ece85d1214a956651e5b2ef781856bb46e0' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/helpers/list/list_action_edit.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '9913508256ab8abd5fc556-59118395',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8abd632aa7_88487965',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8abd632aa7_88487965')) {function content_56ab8abd632aa7_88487965($_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);?>
" class="edit">
<i class="icon-pencil"></i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
</a><?php }} ?>

View File

@@ -0,0 +1,146 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:58
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/themes/helpers/view/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:19194955856ab3ba2207221-01672757%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'15f1918ba2566dce48455dea7ae8286698983101' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/themes/helpers/view/view.tpl',
1 => 1454062131,
2 => 'file',
),
),
'nocache_hash' => '19194955856ab3ba2207221-01672757',
'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_56ab3ba2253eb8_73909787',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba2253eb8_73909787')) {function content_56ab3ba2253eb8_73909787($_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,220 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 13:14:49
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/helpers/calendar/calendar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:58829806456ab8ff9338557-66113505%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'16ba24314fbef3c4f73b63c15c70f63a1ae56211' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/helpers/calendar/calendar.tpl',
1 => 1454062117,
2 => 'file',
),
),
'nocache_hash' => '58829806456ab8ff9338557-66113505',
'function' =>
array (
),
'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,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8ff9400992_06571325',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8ff9400992_06571325')) {function content_56ab8ff9400992_06571325($_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,39 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 01:03:39
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/content.tpl" */ ?>
<?php /*%%SmartyHeaderCode:138164469856ab8d5b29e1d3-95403667%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'17498469beff355916ca2232606c596839cbeed9' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/content.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '138164469856ab8d5b29e1d3-95403667',
'function' =>
array (
),
'variables' =>
array (
'content' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8d5b2a43b1_83849533',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8d5b2a43b1_83849533')) {function content_56ab8d5b2a43b1_83849533($_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,127 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:58
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/groups/helpers/tree/tree_categories.tpl" */ ?>
<?php /*%%SmartyHeaderCode:150141152356ab3ba226dfd7-59947404%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1798480031ba1dd04c6cc070d08c0ac0b0e82df4' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/groups/helpers/tree/tree_categories.tpl',
1 => 1454062128,
2 => 'file',
),
),
'nocache_hash' => '150141152356ab3ba226dfd7-59947404',
'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_56ab3ba22a20e0_60446537',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba22a20e0_60446537')) {function content_56ab3ba22a20e0_60446537($_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)
{
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
$(this).parents("ul.tree").each(
function()
{
$(this).children().children().children(".icon-folder-close")
.removeClass("icon-folder-close")
.addClass("icon-folder-open");
$(this).show();
}
);
}
}
);
});
<?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).children().children().children(".icon-folder-close")
.removeClass("icon-folder-close")
.addClass("icon-folder-open");
$(this).show();
}
);
}
}
);
<?php }?>
});
</script><?php }} ?>

View File

@@ -0,0 +1,197 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:58
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/images/content.tpl" */ ?>
<?php /*%%SmartyHeaderCode:13010695356ab3ba243f7e5-32413027%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'17d9d142c372847b7c442eefb6bb9baf9293a3b3' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/images/content.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '13010695356ab3ba243f7e5-32413027',
'function' =>
array (
),
'variables' =>
array (
'content' => 0,
'display_move' => 0,
'safe_mode' => 0,
'current' => 0,
'token' => 0,
'table' => 0,
'display_regenerate' => 0,
'types' => 0,
'k' => 0,
'type' => 0,
'formats' => 0,
'format' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba2494e87_75582031',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba2494e87_75582031')) {function content_56ab3ba2494e87_75582031($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['content']->value)) {?>
<?php echo $_smarty_tpl->tpl_vars['content']->value;?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['display_move']->value)&&$_smarty_tpl->tpl_vars['display_move']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['safe_mode']->value) {?>
<div class="alert alert-warning">
<p><?php echo smartyTranslate(array('s'=>'PrestaShop has detected that your server configuration is not compatible with the new storage system (directive "safe_mode" is activated). You should therefore continue to use the existing system.'),$_smarty_tpl);?>
</p>
</div>
<?php } else { ?>
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post" class="form-horizontal">
<div class="panel">
<h3>
<i class="icon-picture"></i>
<?php echo smartyTranslate(array('s'=>'Move images'),$_smarty_tpl);?>
</h3>
<div class="alert alert-warning">
<p><?php echo smartyTranslate(array('s'=>'You can choose to keep your images stored in the previous system. There\'s nothing wrong with that.'),$_smarty_tpl);?>
</p>
<p><?php echo smartyTranslate(array('s'=>'You can also decide to move your images to the new storage system. In this case, click on the "Move images" button below. Please be patient. This can take several minutes.'),$_smarty_tpl);?>
</p>
</div>
<div class="alert alert-info">&nbsp;
<?php echo smartyTranslate(array('s'=>'After moving all of your product images, set the "Use the legacy image filesystem" option above to "No" for best performance.'),$_smarty_tpl);?>
</div>
<div class="row">
<div class="col-lg-12 pull-right">
<button type="submit" name="submitMoveImages<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
" class="btn btn-default pull-right" onclick="return confirm('<?php echo smartyTranslate(array('s'=>'Are you sure?'),$_smarty_tpl);?>
');"><i class="process-icon-cogs"></i> <?php echo smartyTranslate(array('s'=>'Move images'),$_smarty_tpl);?>
</button>
</div>
</div>
</div>
</form>
<?php }?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['display_regenerate']->value)) {?>
<form class="form-horizontal" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post">
<div class="panel">
<h3>
<i class="icon-picture"></i>
<?php echo smartyTranslate(array('s'=>'Regenerate thumbnails'),$_smarty_tpl);?>
</h3>
<div class="alert alert-info">
<?php echo smartyTranslate(array('s'=>'Regenerates thumbnails for all existing images'),$_smarty_tpl);?>
<br />
<?php echo smartyTranslate(array('s'=>'Please be patient. This can take several minutes.'),$_smarty_tpl);?>
<br />
<?php echo smartyTranslate(array('s'=>'Be careful! Manually uploaded thumbnails will be erased and replaced by automatically generated thumbnails.'),$_smarty_tpl);?>
</div>
<div class="form-group">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Select an image'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<select name="type" onchange="changeFormat(this)">
<option value="all"><?php echo smartyTranslate(array('s'=>'All'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['type']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) {
$_smarty_tpl->tpl_vars['type']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['type']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['type']->value;?>
</option>
<?php } ?>
</select>
</div>
</div>
<?php $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['type']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) {
$_smarty_tpl->tpl_vars['type']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['type']->key;
?>
<div class="form-group second-select format_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
" style="display:none;">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Select a format'),$_smarty_tpl);?>
</label>
<div class="col-lg-9 margin-form">
<select name="format_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
">
<option value="all"><?php echo smartyTranslate(array('s'=>'All'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['format'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['format']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['formats']->value[$_smarty_tpl->tpl_vars['k']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['format']->key => $_smarty_tpl->tpl_vars['format']->value) {
$_smarty_tpl->tpl_vars['format']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['format']->value['id_image_type'];?>
"><?php echo $_smarty_tpl->tpl_vars['format']->value['name'];?>
</option>
<?php } ?>
</select>
</div>
</div>
<?php } ?>
<script>
function changeFormat(elt)
{
$('.second-select').hide();
$('.format_' + $(elt).val()).show();
}
</script>
<div class="form-group">
<label class="control-label col-lg-3">
<?php echo smartyTranslate(array('s'=>'Erase previous images'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="erase" id="erase_on" value="1" checked="checked">
<label for="erase_on" class="radioCheck">
<?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</label>
<input type="radio" name="erase" id="erase_off" value="0">
<label for="erase_off" class="radioCheck">
<?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">
<?php echo smartyTranslate(array('s'=>'Select "No" only if your server timed out and you need to resume the regeneration.'),$_smarty_tpl);?>
</p>
</div>
</div>
<div class="panel-footer">
<button type="submit" name="submitRegenerate<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
" class="btn btn-default pull-right" onclick="return confirm('<?php echo smartyTranslate(array('s'=>'Are you sure?'),$_smarty_tpl);?>
');">
<i class="process-icon-cogs"></i> <?php echo smartyTranslate(array('s'=>'Regenerate thumbnails'),$_smarty_tpl);?>
</button>
</div>
</div>
</form>
<?php }?><?php }} ?>

View File

@@ -0,0 +1,174 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 21:37:40
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin066crc2rr/themes/default/template/page_header_toolbar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:176658843156ab7934781b29-27556109%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'17f5e1e355f362b5ac3bff3ca68ffb470283bb1b' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin066crc2rr/themes/default/template/page_header_toolbar.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '176658843156ab7934781b29-27556109',
'function' =>
array (
),
'variables' =>
array (
'title' => 0,
'page_header_toolbar_title' => 0,
'page_header_toolbar_btn' => 0,
'breadcrumbs2' => 0,
'toolbar_btn' => 0,
'k' => 0,
'table' => 0,
'btn' => 0,
'help_link' => 0,
'tab_modules_open' => 0,
'tab_modules_list' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab79348c7869_77808172',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab79348c7869_77808172')) {function content_56ab79348c7869_77808172($_smarty_tpl) {?>
<?php if (!isset($_smarty_tpl->tpl_vars['title']->value)&&isset($_smarty_tpl->tpl_vars['page_header_toolbar_title']->value)) {?>
<?php $_smarty_tpl->tpl_vars['title'] = new Smarty_variable($_smarty_tpl->tpl_vars['page_header_toolbar_title']->value, null, 0);?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['page_header_toolbar_btn']->value)) {?>
<?php $_smarty_tpl->tpl_vars['toolbar_btn'] = new Smarty_variable($_smarty_tpl->tpl_vars['page_header_toolbar_btn']->value, null, 0);?>
<?php }?>
<div class="bootstrap">
<div class="page-head">
<h2 class="page-title">
<?php if (is_array($_smarty_tpl->tpl_vars['title']->value)) {?><?php echo htmlspecialchars(end($_smarty_tpl->tpl_vars['title']->value), ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php }?>
</h2>
<ul class="breadcrumb page-breadcrumb">
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name']!='') {?>
<li class="breadcrumb-container">
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href']!='') {?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href'], ENT_QUOTES, 'UTF-8', true);?>
"><?php }?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name'], ENT_QUOTES, 'UTF-8', true);?>
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href']!='') {?></a><?php }?>
</li>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name']!=''&&$_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name']!=$_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name']) {?>
<li class="breadcrumb-current">
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href']!='') {?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href'], ENT_QUOTES, 'UTF-8', true);?>
"><?php }?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name'], ENT_QUOTES, 'UTF-8', true);?>
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href']!='') {?></a><?php }?>
</li>
<?php }?>
</ul>
<div class="page-bar toolbarBox">
<div class="btn-toolbar">
<a href="#" class="toolbar_btn dropdown-toolbar navbar-toggle" data-toggle="collapse" data-target="#toolbar-nav"><i class="process-icon-dropdown"></i><div><?php echo smartyTranslate(array('s'=>'Menu'),$_smarty_tpl);?>
</div></a>
<ul id="toolbar-nav" class="nav nav-pills pull-right collapse navbar-collapse">
<?php $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['btn']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['toolbar_btn']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
$_smarty_tpl->tpl_vars['btn']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['k']->value!='back'&&$_smarty_tpl->tpl_vars['k']->value!='modules-list') {?>
<li>
<a id="page-header-desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
-<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['imgclass'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
<?php }?>" class="toolbar_btn <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['target'])&&$_smarty_tpl->tpl_vars['btn']->value['target']) {?> _blank<?php }?> pointer"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['href'])) {?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
"<?php }?> title="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['help'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['help'];?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['desc'], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js'])&&$_smarty_tpl->tpl_vars['btn']->value['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js'];?>
"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['modal_target'])&&$_smarty_tpl->tpl_vars['btn']->value['modal_target']) {?> data-target="<?php echo $_smarty_tpl->tpl_vars['btn']->value['modal_target'];?>
" data-toggle="modal"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['help'])) {?> data-toggle="tooltip" data-placement="bottom"<?php }?>>
<i class="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['icon'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?>process-icon-<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['imgclass'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
<?php }?><?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['class'], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>"></i>
<div<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['force_desc'])&&$_smarty_tpl->tpl_vars['btn']->value['force_desc']==true) {?> class="locked"<?php }?>><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['desc'], ENT_QUOTES, 'UTF-8', true);?>
</div>
</a>
</li>
<?php }?>
<?php } ?>
<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list'])) {?>
<li>
<a id="page-header-desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
-<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'];?>
<?php } else { ?>modules-list<?php }?>" class="toolbar_btn<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['class'];?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['target'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['target']) {?> _blank<?php }?>" <?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['href'])) {?>href="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['href'];?>
"<?php }?> title="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['desc'];?>
"<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js'];?>
"<?php }?>>
<i class="<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['icon'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['icon'];?>
<?php } else { ?>process-icon-<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'];?>
<?php } else { ?>modules-list<?php }?><?php }?>"></i>
<div<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['force_desc'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['force_desc']==true) {?> class="locked"<?php }?>><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['desc'];?>
</div>
</a>
</li>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['help_link']->value)) {?>
<li>
<a class="toolbar_btn btn-help" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['help_link']->value, ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'Help'),$_smarty_tpl);?>
">
<i class="process-icon-help"></i>
<div><?php echo smartyTranslate(array('s'=>'Help'),$_smarty_tpl);?>
</div>
</a>
</li>
<?php }?>
</ul>
<?php if ((isset($_smarty_tpl->tpl_vars['tab_modules_open']->value)&&$_smarty_tpl->tpl_vars['tab_modules_open']->value)||isset($_smarty_tpl->tpl_vars['tab_modules_list']->value)) {?>
<script type="text/javascript">
//<![CDATA[
var modules_list_loaded = false;
<?php if (isset($_smarty_tpl->tpl_vars['tab_modules_open']->value)&&$_smarty_tpl->tpl_vars['tab_modules_open']->value) {?>
$(function() {
$('#modules_list_container').modal('show');
openModulesList();
});
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['tab_modules_list']->value)) {?>
$('.process-icon-modules-list').parent('a').unbind().bind('click', function (){
$('#modules_list_container').modal('show');
openModulesList();
});
<?php }?>
//]]>
</script>
<?php }?>
</div>
</div>
</div>
</div>
<?php }} ?>

View File

@@ -0,0 +1,311 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 21:38:22
compiled from "/home/sumit/public_html/html/hotelcommerce-master/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl" */ ?>
<?php /*%%SmartyHeaderCode:183305097856ab795edec691-76124527%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'187e82d5372bdc42495c924daaac21056b87da1f' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl',
1 => 1454062125,
2 => 'file',
),
),
'nocache_hash' => '183305097856ab795edec691-76124527',
'function' =>
array (
),
'variables' =>
array (
'edit' => 0,
'table' => 0,
'name_controller' => 0,
'current' => 0,
'submit_action' => 0,
'token' => 0,
'style' => 0,
'hotel_info' => 0,
'max_phone_digit' => 0,
'country_var' => 0,
'countr' => 0,
'state_var' => 0,
'state' => 0,
'link' => 0,
'iso' => 0,
'ad' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab795f08ecc3_36150895',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab795f08ecc3_36150895')) {function content_56ab795f08ecc3_36150895($_smarty_tpl) {?><div class="panel">
<div class="panel-heading">
<?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?>
<i class='icon-pencil'></i>&nbsp<?php echo smartyTranslate(array('s'=>'Edit Hotel','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php } else { ?>
<i class='icon-plus'></i>&nbsp<?php echo smartyTranslate(array('s'=>'Add New Hotel','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php }?>
</div>
<form id="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['table']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
_form" class="defaultForm <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['name_controller']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
form-horizontal" action="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
&<?php if (!empty($_smarty_tpl->tpl_vars['submit_action']->value)) {?><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['submit_action']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
<?php }?>&token=<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
" method="post" enctype="multipart/form-data" <?php if (isset($_smarty_tpl->tpl_vars['style']->value)) {?>style="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['style']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
<?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?>
<input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['hotel_info']->value['id'], ENT_QUOTES, 'UTF-8', true);?>
" name="id" />
<?php }?>
<div class="form-group">
<label class="control-label col-lg-3">
<span>
<?php echo smartyTranslate(array('s'=>'Enable Hotel','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-9 ">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)&&$_smarty_tpl->tpl_vars['hotel_info']->value['active']==1) {?> checked="checked" <?php } else { ?>checked="checked"<?php }?> value="1" id="ENABLE_HOTEL_on" name="ENABLE_HOTEL">
<label for="ENABLE_HOTEL_on"><?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</label>
<input <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)&&$_smarty_tpl->tpl_vars['hotel_info']->value['active']==0) {?> checked="checked" <?php }?> type="radio" value="0" id="ENABLE_HOTEL_off" name="ENABLE_HOTEL">
<label for="ENABLE_HOTEL_off"><?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</label>
<a class="slide-button btn"></a>
</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label required" for="hotel_name" >
<?php echo smartyTranslate(array('s'=>'Hotel Name :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<input type="text" id="hotel_name" name="hotel_name" class="form-control" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?>value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['hotel_info']->value['hotel_name'], ENT_QUOTES, 'UTF-8', true);?>
"<?php }?>/>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo smartyTranslate(array('s'=>'Short Description :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<textarea name="short_description" class="short_description wk_tinymce" ><?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotel_info']->value['short_description'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
<?php }?></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo smartyTranslate(array('s'=>'Description :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<textarea name="description" class="description wk_tinymce" rows="4" cols="35" ><?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotel_info']->value['description'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
<?php }?></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label required"><?php echo smartyTranslate(array('s'=>'Phone :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<input type="text" name="phone" id="phone" maxlength="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['max_phone_digit']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotel_info']->value['phone'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>/>
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label required"><?php echo smartyTranslate(array('s'=>'Email :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<div class="input-group">
<span class="input-group-addon">
<i class="icon-envelope-o"></i>
</span>
<input class="reg_sel_input form-control-static" type="text" name="email" id="hotel_email" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?>value="<?php echo $_smarty_tpl->tpl_vars['hotel_info']->value['email'];?>
"<?php }?>/>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label required"><?php echo smartyTranslate(array('s'=>'Address :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<textarea name="address" rows="4" cols="35" ><?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotel_info']->value['address'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
<?php }?></textarea>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3 required" for="hotel_country"><?php echo smartyTranslate(array('s'=>'Rating :'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<div style="width: 195px;">
<select class="form-control" name="hotel_rating" id="hotel_rating" value="">
<option value="" selected="selected">No Star</option>
<option value="1" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?> <?php if ($_smarty_tpl->tpl_vars['hotel_info']->value['rating']==1) {?>selected<?php }?><?php }?>>*</option>
<option value="2" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?> <?php if ($_smarty_tpl->tpl_vars['hotel_info']->value['rating']==2) {?>selected<?php }?><?php }?>>**</option>
<option value="3" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?> <?php if ($_smarty_tpl->tpl_vars['hotel_info']->value['rating']==3) {?>selected<?php }?><?php }?>>***</option>
<option value="4" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?> <?php if ($_smarty_tpl->tpl_vars['hotel_info']->value['rating']==4) {?>selected<?php }?><?php }?>>****</option>
<option value="5" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?> <?php if ($_smarty_tpl->tpl_vars['hotel_info']->value['rating']==5) {?>selected<?php }?><?php }?>>*****</option>
</select>
</div>
</div>
</div>
<div class="form-group check_in_div" style="position:relative">
<label class="col-sm-3 control-label required" for="check_in_time">
<?php echo smartyTranslate(array('s'=>'Check In :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-2">
<input autocomplete="off" type="text" class="form-control" id="check_in_time" name="check_in" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotel_info']->value['check_in'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?> />
</div>
</div>
<div class="form-group check_out_div" style="position:relative">
<label class="col-sm-3 control-label required" for="check_out_time">
<?php echo smartyTranslate(array('s'=>'Check Out :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-2">
<input autocomplete="off" type="text" class="form-control" id="check_out_time" name="check_out" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotel_info']->value['check_out'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?> />
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3 required" for="hotel_country"><?php echo smartyTranslate(array('s'=>'Country :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<div style="width: 195px;">
<select class="form-control" name="hotel_country" id="hotel_country" value="">
<option value="0" selected="selected"><?php echo smartyTranslate(array('s'=>'Choose your Country','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</option>
<?php if ($_smarty_tpl->tpl_vars['country_var']->value) {?>
<?php $_smarty_tpl->tpl_vars['countr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['countr']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['country_var']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['countr']->key => $_smarty_tpl->tpl_vars['countr']->value) {
$_smarty_tpl->tpl_vars['countr']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['countr']->value['id_country'];?>
" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?> <?php if ($_smarty_tpl->tpl_vars['hotel_info']->value['country_id']==((string)$_smarty_tpl->tpl_vars['countr']->value['id_country'])) {?>selected<?php }?><?php }?>> <?php echo $_smarty_tpl->tpl_vars['countr']->value['name'];?>
</option>
<?php } ?>
<?php }?>
</select>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3 required hotel_state_lbl" for="hotel_state" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)&&!$_smarty_tpl->tpl_vars['state_var']->value) {?>style="display:none;"<?php }?>><?php echo smartyTranslate(array('s'=>'State :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6 hotel_state_dv" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)&&!$_smarty_tpl->tpl_vars['state_var']->value) {?>style="display:none;"<?php }?>>
<div style="width: 195px;">
<select class="form-control" name="hotel_state" id="hotel_state">
<?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?>
<?php if ($_smarty_tpl->tpl_vars['state_var']->value) {?>
<?php $_smarty_tpl->tpl_vars['state'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['state']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['state_var']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['state']->key => $_smarty_tpl->tpl_vars['state']->value) {
$_smarty_tpl->tpl_vars['state']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['state']->value['id'];?>
" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?> <?php if ($_smarty_tpl->tpl_vars['hotel_info']->value['state_id']==((string)$_smarty_tpl->tpl_vars['state']->value['id'])) {?>selected<?php }?><?php }?>> <?php echo $_smarty_tpl->tpl_vars['state']->value['name'];?>
</option>
<?php } ?>
<?php }?>
<?php } else { ?>
<option value="0" selected="selected"><?php echo smartyTranslate(array('s'=>'Choose Country First','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</option>
<?php }?>
</select>
</div>
</div>
<span class="country_import_note col-sm-10 text-right" style='font-style:italic;'><?php echo smartyTranslate(array('s'=>'* If selected country is not imported already, Please import selected country from localization in you prestashop To get its states.','js'=>1,'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</div>
<div class="form-group">
<label class="control-label col-sm-3 required" for="hotel_city"><?php echo smartyTranslate(array('s'=>'City :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<input class="form-control" type="" data-validate="" id="hotel_city" name="hotel_city" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotel_info']->value['city'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?> />
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3 required" for="hotel_postal_code"><?php echo smartyTranslate(array('s'=>'Zip Code :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<input class="form-control" type="" data-validate="" id="hotel_postal_code" name="hotel_postal_code" <?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotel_info']->value['zipcode'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?> />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label"><?php echo smartyTranslate(array('s'=>'Hotel Policies :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<textarea name="hotel_policies" class="hotel_policies wk_tinymce" rows="4" cols="35" ><?php if (isset($_smarty_tpl->tpl_vars['edit']->value)) {?><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotel_info']->value['policies'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
<?php }?></textarea>
</div>
</div>
<div class="form-group">
<div id="upload_hotel_images" class="sell_row">
<label class="col-sm-3 control-label"><?php echo smartyTranslate(array('s'=>'Hotel Image :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</label>
<div class="col-sm-6">
<input type="file" name="hotel_image"/>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" for="other_image">
</label>
<div class="col-sm-6">
<a class="btn btn-default hotel-other-img">
<i class="icon-image"></i>
<span><?php echo smartyTranslate(array('s'=>'Add More Images :','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</span>
</a>
<div id="htl_other_images"></div>
</div>
</div>
<div class="panel-footer">
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminAddHotel'), ENT_QUOTES, 'UTF-8', true);?>
" class="btn btn-default">
<i class="process-icon-cancel"></i><?php echo smartyTranslate(array('s'=>'Cancel','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</a>
<button type="submit" name="submitAddhotel_branch_info" class="btn btn-default pull-right">
<i class="process-icon-save"></i> <?php echo smartyTranslate(array('s'=>'Save','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</button>
<button type="submit" name="submitAdd<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['table']->value, ENT_QUOTES, 'UTF-8', true);?>
AndStay" class="btn btn-default pull-right">
<i class="process-icon-save"></i> <?php echo smartyTranslate(array('s'=>'Save and stay','mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
</button>
</div>
</form>
</div>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('statebycountryurl'=>$_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminAddHotel'),'mod'=>'hotelreservationsystem'),$_smarty_tpl);?>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name'=>'image_remove')); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name'=>'image_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'=>'image_remove'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<script type="text/javascript">
// for tiny mce setup
var iso = "<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['iso']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
";
var pathCSS = "<?php echo mb_convert_encoding(htmlspecialchars(@constant('_THEME_CSS_DIR_'), ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
";
var ad = "<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['ad']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
";
$(document).ready(function(){
tinySetup({
editor_selector :"wk_tinymce",
width : 700
});
});
</script>
<?php }} ?>

View File

@@ -0,0 +1,39 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:55
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/tree/tree.tpl" */ ?>
<?php /*%%SmartyHeaderCode:100216685756ab3b9f599643-33221718%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1984e24279470a0b891acc8f1cbd1a3d421e02da' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/tree/tree.tpl',
1 => 1454062117,
2 => 'file',
),
),
'nocache_hash' => '100216685756ab3b9f599643-33221718',
'function' =>
array (
),
'variables' =>
array (
'header' => 0,
'nodes' => 0,
'id' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3b9f5a6497_03272936',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3b9f5a6497_03272936')) {function content_56ab3b9f5a6497_03272936($_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="tree">
<?php echo $_smarty_tpl->tpl_vars['nodes']->value;?>
</ul>
<?php }?>
</div><?php }} ?>

View File

@@ -0,0 +1,124 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 21:38:03
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin066crc2rr/themes/default/template/search_form.tpl" */ ?>
<?php /*%%SmartyHeaderCode:202472209256ab794b31bc45-73513107%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'19972d5e0b7d19d4a95da4bfbf72d0aa54171880' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin066crc2rr/themes/default/template/search_form.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '202472209256ab794b31bc45-73513107',
'function' =>
array (
),
'variables' =>
array (
'id' => 0,
'show_clear_btn' => 0,
'bo_query' => 0,
'search_type' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab794b3ddc85_96439650',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab794b3ddc85_96439650')) {function content_56ab794b3ddc85_96439650($_smarty_tpl) {?>
<form id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="bo_search_form" method="post" action="index.php?controller=AdminSearch&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminSearch'),$_smarty_tpl);?>
" role="search">
<div class="form-group">
<input type="hidden" name="bo_search_type" id="bo_search_type" />
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i id="search_type_icon" class="icon-search"></i>
<i class="icon-caret-down"></i>
</button>
<ul id="header_search_options" class="dropdown-menu">
<li class="search-all search-option active">
<a href="#" data-value="0" data-placeholder="<?php echo smartyTranslate(array('s'=>'What are you looking for?'),$_smarty_tpl);?>
" data-icon="icon-search">
<i class="icon-search"></i> <?php echo smartyTranslate(array('s'=>'Everywhere'),$_smarty_tpl);?>
</a>
</li>
<li class="divider"></li>
<li class="search-book search-option">
<a href="#" data-value="1" data-placeholder="<?php echo smartyTranslate(array('s'=>'Product name, SKU, reference...'),$_smarty_tpl);?>
" data-icon="icon-book">
<i class="icon-book"></i> <?php echo smartyTranslate(array('s'=>'Catalog'),$_smarty_tpl);?>
</a>
</li>
<li class="search-customers-name search-option">
<a href="#" data-value="2" data-placeholder="<?php echo smartyTranslate(array('s'=>'Email, name...'),$_smarty_tpl);?>
" data-icon="icon-group">
<i class="icon-group"></i> <?php echo smartyTranslate(array('s'=>'Customers'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'by name'),$_smarty_tpl);?>
</a>
</li>
<li class="search-customers-addresses search-option">
<a href="#" data-value="6" data-placeholder="<?php echo smartyTranslate(array('s'=>'123.45.67.89'),$_smarty_tpl);?>
" data-icon="icon-desktop">
<i class="icon-desktop"></i> <?php echo smartyTranslate(array('s'=>'Customers'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'by ip address'),$_smarty_tpl);?>
</a>
</li>
<li class="search-orders search-option">
<a href="#" data-value="3" data-placeholder="<?php echo smartyTranslate(array('s'=>'Order ID'),$_smarty_tpl);?>
" data-icon="icon-credit-card">
<i class="icon-credit-card"></i> <?php echo smartyTranslate(array('s'=>'Orders'),$_smarty_tpl);?>
</a>
</li>
<li class="search-invoices search-option">
<a href="#" data-value="4" data-placeholder="<?php echo smartyTranslate(array('s'=>'Invoice Number'),$_smarty_tpl);?>
" data-icon="icon-book">
<i class="icon-book"></i> <?php echo smartyTranslate(array('s'=>'Invoices'),$_smarty_tpl);?>
</a>
</li>
<li class="search-carts search-option">
<a href="#" data-value="5" data-placeholder="<?php echo smartyTranslate(array('s'=>'Cart ID'),$_smarty_tpl);?>
" data-icon="icon-shopping-cart">
<i class="icon-shopping-cart"></i> <?php echo smartyTranslate(array('s'=>'Carts'),$_smarty_tpl);?>
</a>
</li>
<li class="search-modules search-option">
<a href="#" data-value="7" data-placeholder="<?php echo smartyTranslate(array('s'=>'Module name'),$_smarty_tpl);?>
" data-icon="icon-puzzle-piece">
<i class="icon-puzzle-piece"></i> <?php echo smartyTranslate(array('s'=>'Modules'),$_smarty_tpl);?>
</a>
</li>
</ul>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['show_clear_btn']->value)&&$_smarty_tpl->tpl_vars['show_clear_btn']->value) {?>
<a href="#" class="clear_search hide"><i class="icon-remove"></i></a>
<?php }?>
<input id="bo_query" name="bo_query" type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['bo_query']->value;?>
" placeholder="<?php echo smartyTranslate(array('s'=>'Search'),$_smarty_tpl);?>
" />
<!-- <span class="input-group-btn">
<button type="submit" id="bo_search_submit" class="btn btn-primary">
<i class="icon-search"></i>
</button>
</span> -->
</div>
</div>
<script>
<?php if (isset($_smarty_tpl->tpl_vars['search_type']->value)&&$_smarty_tpl->tpl_vars['search_type']->value) {?>
$(document).ready(function() {
$('.search-option a[data-value='+<?php echo intval($_smarty_tpl->tpl_vars['search_type']->value);?>
+']').click();
});
<?php }?>
</script>
</form><?php }} ?>

View File

@@ -0,0 +1,67 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:57
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/modal_not_trusted_country.tpl" */ ?>
<?php /*%%SmartyHeaderCode:198323950156ab3ba1ec6e46-21048686%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'19d5c7cfcd83f71ac7de5ac13e1078a814d66ee8' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/modal_not_trusted_country.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '198323950156ab3ba1ec6e46-21048686',
'function' =>
array (
),
'variables' =>
array (
'module_name' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba1ed8285_76054194',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba1ed8285_76054194')) {function content_56ab3ba1ed8285_76054194($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars['module_name'] = new Smarty_variable('<strong><span class="module-display-name-placeholder"></span></strong>', null, 0);?>
<div class="modal-body">
<div class="alert alert-warning">
<h4><?php echo smartyTranslate(array('s'=>'You are about to install "%s", a module which is not compatible with your country.','sprintf'=>$_smarty_tpl->tpl_vars['module_name']->value),$_smarty_tpl);?>
</h4>
<p>
<?php echo smartyTranslate(array('s'=>'This module was not verified by PrestaShop hence we cannot certify that it works well in your country and that it complies with our quality requirements.'),$_smarty_tpl);?>
<strong><?php echo smartyTranslate(array('s'=>'Use at your own risk.'),$_smarty_tpl);?>
</strong>
</p>
</div>
<h3><?php echo smartyTranslate(array('s'=>'What Should I Do?'),$_smarty_tpl);?>
</h3>
<p>
<?php echo smartyTranslate(array('s'=>'If you are unsure about this, you should contact the Customer Service of %s to ask them to make the module compatible with your country.','sprintf'=>$_smarty_tpl->tpl_vars['module_name']->value),$_smarty_tpl);?>
<br />
<?php echo smartyTranslate(array('s'=>'Moreover, we recommend that you use an equivalent module: compatible modules for your country are listed in the "Modules" tab of your back office.'),$_smarty_tpl);?>
</p>
<p>
<?php echo smartyTranslate(array('s'=>'If you are unsure about this module, you can look for similar modules on the official marketplace.'),$_smarty_tpl);?>
<a class="_blank" href="http://addons.prestashop.com/"><?php echo smartyTranslate(array('s'=>'Click here to browse PrestaShop Addons.'),$_smarty_tpl);?>
</a>
</p>
</div>
<div class="modal-footer">
<div class="row">
<div class="col-sm-12 text-center">
<a id="proceed-install-anyway" href="#" class="btn btn-warning"><?php echo smartyTranslate(array('s'=>'Proceed with the installation'),$_smarty_tpl);?>
</a>
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo smartyTranslate(array('s'=>'Back to modules list'),$_smarty_tpl);?>
</button>
</div>
</div>
</div>
<?php }} ?>

View File

@@ -0,0 +1,208 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 05:21:59
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin267x7js2k/themes/default/template/controllers/login/content.tpl" */ ?>
<?php /*%%SmartyHeaderCode:186269482856ab3d47dda7e3-35483931%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'19dfbd8eb3468bd5fe5749c3be364f6671193aac' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin267x7js2k/themes/default/template/controllers/login/content.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '186269482856ab3d47dda7e3-35483931',
'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_56ab3d47e3de37_74406543',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3d47e3de37_74406543')) {function content_56ab3d47e3de37_74406543($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/sumit/public_html/html/hotelcommerce-master/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 }} ?>

View File

@@ -0,0 +1,340 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:59
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/orders/_product_line.tpl" */ ?>
<?php /*%%SmartyHeaderCode:78239984556ab3ba3769403-96487746%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1a3986701bb62ac300694ce3675f856b06e8546c' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/orders/_product_line.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '78239984556ab3ba3769403-96487746',
'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_56ab3ba395c8d7_41226368',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba395c8d7_41226368')) {function content_56ab3ba395c8d7_41226368($_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,136 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 05:22:00
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin267x7js2k/themes/default/template/footer.tpl" */ ?>
<?php /*%%SmartyHeaderCode:124458505056ab3d480e5485-61248983%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1a7969bf7ab9c9901638d52791e949fcea498340' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin267x7js2k/themes/default/template/footer.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '124458505056ab3d480e5485-61248983',
'function' =>
array (
),
'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,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3d4812d3a9_56561567',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3d4812d3a9_56561567')) {function content_56ab3d4812d3a9_56561567($_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,87 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:55
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/required_fields.tpl" */ ?>
<?php /*%%SmartyHeaderCode:63563562156ab3b9f2de193-59269350%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1a8f8a6a10f4467c84a04979dc3818f6654525c4' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/required_fields.tpl',
1 => 1454061955,
2 => 'file',
),
),
'nocache_hash' => '63563562156ab3b9f2de193-59269350',
'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_56ab3b9f2faff0_30803214',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3b9f2faff0_30803214')) {function content_56ab3b9f2faff0_30803214($_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,122 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:00
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/customization.tpl" */ ?>
<?php /*%%SmartyHeaderCode:85799009156ab3ba45f7a75-48040173%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1d0a545429d0dd170fe7041813c7e51fed55af09' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/customization.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '85799009156ab3ba45f7a75-48040173',
'function' =>
array (
),
'variables' =>
array (
'obj' => 0,
'display_common_field' => 0,
'bullet_common_field' => 0,
'uploadable_files' => 0,
'text_fields' => 0,
'has_file_labels' => 0,
'display_file_labels' => 0,
'has_text_labels' => 0,
'display_text_labels' => 0,
'link' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba4642275_11200910',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba4642275_11200910')) {function content_56ab3ba4642275_11200910($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['obj']->value->id)) {?>
<div id="product-customization" class="panel product-tab">
<input type="hidden" name="submitted_tabs[]" value="Customization" />
<h3><?php echo smartyTranslate(array('s'=>'Add or modify customizable properties'),$_smarty_tpl);?>
</h3>
<?php if (isset($_smarty_tpl->tpl_vars['display_common_field']->value)&&$_smarty_tpl->tpl_vars['display_common_field']->value) {?>
<div class="alert alert-info"><?php echo smartyTranslate(array('s'=>'Warning, if you change the value of fields with an orange bullet %s, the value will be changed for all other shops for this product','sprintf'=>$_smarty_tpl->tpl_vars['bullet_common_field']->value),$_smarty_tpl);?>
</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'=>"uploadable_files",'type'=>"uploadable_files"), 0);?>
</span></div>
<label class="control-label col-lg-3" for="uploadable_files">
<?php echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;?>
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'Number of upload file fields to be displayed to the user.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'File fields'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-1">
<input type="text" name="uploadable_files" id="uploadable_files" value="<?php echo htmlentities($_smarty_tpl->tpl_vars['uploadable_files']->value);?>
" />
</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'=>"text_fields",'type'=>"text_fields"), 0);?>
</span></div>
<label class="control-label col-lg-3" for="text_fields">
<?php echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;?>
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'Number of text fields to be displayed to the user.'),$_smarty_tpl);?>
">
<?php echo smartyTranslate(array('s'=>'Text fields'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-1">
<input type="text" name="text_fields" id="text_fields" value="<?php echo htmlentities($_smarty_tpl->tpl_vars['text_fields']->value);?>
" />
</div>
</div>
<?php if ($_smarty_tpl->tpl_vars['has_file_labels']->value) {?>
<hr/>
<div class="form-group">
<label class="control-label col-lg-3">
<?php echo smartyTranslate(array('s'=>'Define the label of the file fields'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<?php echo $_smarty_tpl->tpl_vars['display_file_labels']->value;?>
</div>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['has_text_labels']->value) {?>
<hr/>
<div class="form-group">
<label class="control-label col-lg-3">
<?php echo smartyTranslate(array('s'=>'Define the label of the text fields'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<?php echo $_smarty_tpl->tpl_vars['display_text_labels']->value;?>
</div>
</div>
<?php }?>
<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>
</div>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,134 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:54
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/kpi/kpi.tpl" */ ?>
<?php /*%%SmartyHeaderCode:177549705956ab3b9ebdb772-64958012%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1d787b92dfd3a117f10794170718baebe4fa3fa1' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/kpi/kpi.tpl',
1 => 1454062117,
2 => 'file',
),
),
'nocache_hash' => '177549705956ab3b9ebdb772-64958012',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'id' => 0,
'color' => 0,
'tooltip' => 0,
'icon' => 0,
'chart' => 0,
'title' => 0,
'subtitle' => 0,
'value' => 0,
'source' => 0,
'refresh' => 0,
'data' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3b9ec2e119_32451607',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3b9ec2e119_32451607')) {function content_56ab3b9ec2e119_32451607($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_replace')) include '/home/sumit/public_html/html/hotelcommerce-master/tools/smarty/plugins/modifier.replace.php';
?>
<<?php if (isset($_smarty_tpl->tpl_vars['href']->value)&&$_smarty_tpl->tpl_vars['href']->value) {?>a style="display:block" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8', true);?>
"<?php } else { ?>div<?php }?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
" data-toggle="tooltip" class="box-stats label-tooltip <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['color']->value, ENT_QUOTES, 'UTF-8', true);?>
" data-original-title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tooltip']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<div class="kpi-content">
<?php if (isset($_smarty_tpl->tpl_vars['icon']->value)&&$_smarty_tpl->tpl_vars['icon']->value) {?>
<i class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['icon']->value, ENT_QUOTES, 'UTF-8', true);?>
"></i>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['chart']->value)&&$_smarty_tpl->tpl_vars['chart']->value) {?>
<div class="boxchart-overlay">
<div class="boxchart">
</div>
</div>
<?php }?>
<span class="title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8', true);?>
</span>
<span cLass="subtitle"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subtitle']->value, ENT_QUOTES, 'UTF-8', true);?>
</span>
<span class="value"><?php echo smarty_modifier_replace(htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8', true),'&amp;','&');?>
</span>
</div>
</<?php if (isset($_smarty_tpl->tpl_vars['href']->value)&&$_smarty_tpl->tpl_vars['href']->value) {?>a<?php } else { ?>div<?php }?>>
<?php if (isset($_smarty_tpl->tpl_vars['source']->value)&&$_smarty_tpl->tpl_vars['source']->value!=''&&isset($_smarty_tpl->tpl_vars['refresh']->value)&&$_smarty_tpl->tpl_vars['refresh']->value!='') {?>
<script>
function refresh_<?php echo addslashes(smarty_modifier_replace($_smarty_tpl->tpl_vars['id']->value,'-','_'));?>
()
{
$.ajax({
url: '<?php echo addslashes($_smarty_tpl->tpl_vars['source']->value);?>
' + '&rand=' + new Date().getTime(),
dataType: 'json',
type: 'GET',
cache: false,
headers: { 'cache-control': 'no-cache' },
success: function(jsonData){
if (!jsonData.has_errors)
{
if (jsonData.value != undefined)
$('#<?php echo addslashes($_smarty_tpl->tpl_vars['id']->value);?>
.value').html(jsonData.value);
if (jsonData.data != undefined)
{
$("#<?php echo addslashes($_smarty_tpl->tpl_vars['id']->value);?>
.boxchart svg").remove();
set_d3_<?php echo addslashes(smarty_modifier_replace($_smarty_tpl->tpl_vars['id']->value,'-','_'));?>
(jsonData.data);
}
}
}
});
}
</script>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['chart']->value) {?>
<script>
function set_d3_<?php echo addslashes(str_replace($_smarty_tpl->tpl_vars['id']->value,'-','_'));?>
(jsonObject)
{
var data = new Array;
$.each(jsonObject, function (index, value) {
data.push(value);
});
var data_max = d3.max(data);
var chart = d3.select("#<?php echo addslashes($_smarty_tpl->tpl_vars['id']->value);?>
.boxchart").append("svg")
.attr("class", "data_chart")
.attr("width", data.length * 6)
.attr("height", 45);
var y = d3.scale.linear()
.domain([0, data_max])
.range([0, data_max * 45]);
chart.selectAll("rect")
.data(data)
.enter().append("rect")
.attr("y", function(d) { return 45 - d * 45 / data_max; })
.attr("x", function(d, i) { return i * 6; })
.attr("width", 4)
.attr("height", y);
}
<?php if ($_smarty_tpl->tpl_vars['data']->value) {?>
set_d3_<?php echo addslashes(smarty_modifier_replace($_smarty_tpl->tpl_vars['id']->value,'-','_'));?>
($.parseJSON("<?php echo addslashes($_smarty_tpl->tpl_vars['data']->value);?>
"));
<?php }?>
</script>
<?php }?><?php }} ?>

View File

@@ -0,0 +1,124 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:56
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/search_form.tpl" */ ?>
<?php /*%%SmartyHeaderCode:34588014456ab3ba0acbaf6-14624629%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1e00ac37546a48d1f690d3d74fca70886d4a1251' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/search_form.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '34588014456ab3ba0acbaf6-14624629',
'function' =>
array (
),
'variables' =>
array (
'id' => 0,
'show_clear_btn' => 0,
'bo_query' => 0,
'search_type' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba0af7dd9_89368052',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba0af7dd9_89368052')) {function content_56ab3ba0af7dd9_89368052($_smarty_tpl) {?>
<form id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="bo_search_form" method="post" action="index.php?controller=AdminSearch&amp;token=<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminSearch'),$_smarty_tpl);?>
" role="search">
<div class="form-group">
<input type="hidden" name="bo_search_type" id="bo_search_type" />
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i id="search_type_icon" class="icon-search"></i>
<i class="icon-caret-down"></i>
</button>
<ul id="header_search_options" class="dropdown-menu">
<li class="search-all search-option active">
<a href="#" data-value="0" data-placeholder="<?php echo smartyTranslate(array('s'=>'What are you looking for?'),$_smarty_tpl);?>
" data-icon="icon-search">
<i class="icon-search"></i> <?php echo smartyTranslate(array('s'=>'Everywhere'),$_smarty_tpl);?>
</a>
</li>
<li class="divider"></li>
<li class="search-book search-option">
<a href="#" data-value="1" data-placeholder="<?php echo smartyTranslate(array('s'=>'Product name, SKU, reference...'),$_smarty_tpl);?>
" data-icon="icon-book">
<i class="icon-book"></i> <?php echo smartyTranslate(array('s'=>'Catalog'),$_smarty_tpl);?>
</a>
</li>
<li class="search-customers-name search-option">
<a href="#" data-value="2" data-placeholder="<?php echo smartyTranslate(array('s'=>'Email, name...'),$_smarty_tpl);?>
" data-icon="icon-group">
<i class="icon-group"></i> <?php echo smartyTranslate(array('s'=>'Customers'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'by name'),$_smarty_tpl);?>
</a>
</li>
<li class="search-customers-addresses search-option">
<a href="#" data-value="6" data-placeholder="<?php echo smartyTranslate(array('s'=>'123.45.67.89'),$_smarty_tpl);?>
" data-icon="icon-desktop">
<i class="icon-desktop"></i> <?php echo smartyTranslate(array('s'=>'Customers'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'by ip address'),$_smarty_tpl);?>
</a>
</li>
<li class="search-orders search-option">
<a href="#" data-value="3" data-placeholder="<?php echo smartyTranslate(array('s'=>'Order ID'),$_smarty_tpl);?>
" data-icon="icon-credit-card">
<i class="icon-credit-card"></i> <?php echo smartyTranslate(array('s'=>'Orders'),$_smarty_tpl);?>
</a>
</li>
<li class="search-invoices search-option">
<a href="#" data-value="4" data-placeholder="<?php echo smartyTranslate(array('s'=>'Invoice Number'),$_smarty_tpl);?>
" data-icon="icon-book">
<i class="icon-book"></i> <?php echo smartyTranslate(array('s'=>'Invoices'),$_smarty_tpl);?>
</a>
</li>
<li class="search-carts search-option">
<a href="#" data-value="5" data-placeholder="<?php echo smartyTranslate(array('s'=>'Cart ID'),$_smarty_tpl);?>
" data-icon="icon-shopping-cart">
<i class="icon-shopping-cart"></i> <?php echo smartyTranslate(array('s'=>'Carts'),$_smarty_tpl);?>
</a>
</li>
<li class="search-modules search-option">
<a href="#" data-value="7" data-placeholder="<?php echo smartyTranslate(array('s'=>'Module name'),$_smarty_tpl);?>
" data-icon="icon-puzzle-piece">
<i class="icon-puzzle-piece"></i> <?php echo smartyTranslate(array('s'=>'Modules'),$_smarty_tpl);?>
</a>
</li>
</ul>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['show_clear_btn']->value)&&$_smarty_tpl->tpl_vars['show_clear_btn']->value) {?>
<a href="#" class="clear_search hide"><i class="icon-remove"></i></a>
<?php }?>
<input id="bo_query" name="bo_query" type="text" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['bo_query']->value;?>
" placeholder="<?php echo smartyTranslate(array('s'=>'Search'),$_smarty_tpl);?>
" />
<!-- <span class="input-group-btn">
<button type="submit" id="bo_search_submit" class="btn btn-primary">
<i class="icon-search"></i>
</button>
</span> -->
</div>
</div>
<script>
<?php if (isset($_smarty_tpl->tpl_vars['search_type']->value)&&$_smarty_tpl->tpl_vars['search_type']->value) {?>
$(document).ready(function() {
$('.search-option a[data-value='+<?php echo intval($_smarty_tpl->tpl_vars['search_type']->value);?>
+']').click();
});
<?php }?>
</script>
</form><?php }} ?>

View File

@@ -0,0 +1,52 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:01
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/customer_threads/helpers/view/timeline_item.tpl" */ ?>
<?php /*%%SmartyHeaderCode:139781608656ab3ba586bc84-96013120%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1e76f15f02e69cc4f0564f6c8276aade25e1762b' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/customer_threads/helpers/view/timeline_item.tpl',
1 => 1454062129,
2 => 'file',
),
),
'nocache_hash' => '139781608656ab3ba586bc84-96013120',
'function' =>
array (
),
'variables' =>
array (
'timeline_item' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba589e4e4_69934131',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba589e4e4_69934131')) {function content_56ab3ba589e4e4_69934131($_smarty_tpl) {?>
<article class="timeline-item<?php if (isset($_smarty_tpl->tpl_vars['timeline_item']->value['alt'])) {?> alt<?php }?>">
<div class="timeline-caption">
<div class="timeline-panel arrow arrow-<?php echo $_smarty_tpl->tpl_vars['timeline_item']->value['arrow'];?>
">
<span class="timeline-icon" style="background-color:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['timeline_item']->value['background_color'], ENT_QUOTES, 'UTF-8', true);?>
;">
<i class="<?php echo $_smarty_tpl->tpl_vars['timeline_item']->value['icon'];?>
"></i>
</span>
<span class="timeline-date"><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['timeline_item']->value['date'],'full'=>0),$_smarty_tpl);?>
- <i class="icon-time"></i> <?php echo substr($_smarty_tpl->tpl_vars['timeline_item']->value['date'],11,5);?>
</span>
<?php if (isset($_smarty_tpl->tpl_vars['timeline_item']->value['id_order'])) {?><a class="badge" href="#"><?php echo smartyTranslate(array('s'=>"Order #"),$_smarty_tpl);?>
<?php echo intval($_smarty_tpl->tpl_vars['timeline_item']->value['id_order']);?>
</a><br/><?php }?>
<span><?php echo nl2br($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['timeline_item']->value['content'],220));?>
</span>
<?php if (isset($_smarty_tpl->tpl_vars['timeline_item']->value['see_more_link'])) {?>
<br/><br/><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['timeline_item']->value['see_more_link'], ENT_QUOTES, 'UTF-8', true);?>
" class="btn btn-default _blank"><?php echo smartyTranslate(array('s'=>"See more"),$_smarty_tpl);?>
</a>
<?php }?>
</div>
</div>
</article>
<?php }} ?>

View File

@@ -0,0 +1,514 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:00
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/combinations.tpl" */ ?>
<?php /*%%SmartyHeaderCode:140819843656ab3ba4c74631-70556876%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'1f80cf5696af0c109b79eb22af71ee79bba864f0' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/combinations.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '140819843656ab3ba4c74631-70556876',
'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_56ab3ba4dd75d6_17430088',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba4dd75d6_17430088')) {function content_56ab3ba4dd75d6_17430088($_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,97 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:59
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/orders/current_cart_details_data.tpl" */ ?>
<?php /*%%SmartyHeaderCode:92996897256ab3ba36c95d4-56134865%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'202bd09096c1a26b673be5fb2db7948747d309dd' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/orders/current_cart_details_data.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '92996897256ab3ba36c95d4-56134865',
'function' =>
array (
),
'variables' =>
array (
'cart' => 0,
'cart_detail_data' => 0,
'data' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba370a0e3_69855598',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba370a0e3_69855598')) {function content_56ab3ba370a0e3_69855598($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/sumit/public_html/html/hotelcommerce-master/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,34 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:56
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/list/list_action_preview.tpl" */ ?>
<?php /*%%SmartyHeaderCode:180517730056ab3ba03a9275-26209956%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'220216b5e55d102635dc9f7d0595132bcc77fa89' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/list/list_action_preview.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '180517730056ab3ba03a9275-26209956',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba03b0001_64162742',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba03b0001_64162742')) {function content_56ab3ba03b0001_64162742($_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 }} ?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,174 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 00:51:53
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/page_header_toolbar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:160094071156ab8a99f21b84-15665659%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'230f71d806f80220a0a1a8b0d0bac414c35f8a58' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin977xro9m8/themes/default/template/page_header_toolbar.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '160094071156ab8a99f21b84-15665659',
'function' =>
array (
),
'variables' =>
array (
'title' => 0,
'page_header_toolbar_title' => 0,
'page_header_toolbar_btn' => 0,
'breadcrumbs2' => 0,
'toolbar_btn' => 0,
'k' => 0,
'table' => 0,
'btn' => 0,
'help_link' => 0,
'tab_modules_open' => 0,
'tab_modules_list' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8a9a0fb657_33604929',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8a9a0fb657_33604929')) {function content_56ab8a9a0fb657_33604929($_smarty_tpl) {?>
<?php if (!isset($_smarty_tpl->tpl_vars['title']->value)&&isset($_smarty_tpl->tpl_vars['page_header_toolbar_title']->value)) {?>
<?php $_smarty_tpl->tpl_vars['title'] = new Smarty_variable($_smarty_tpl->tpl_vars['page_header_toolbar_title']->value, null, 0);?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['page_header_toolbar_btn']->value)) {?>
<?php $_smarty_tpl->tpl_vars['toolbar_btn'] = new Smarty_variable($_smarty_tpl->tpl_vars['page_header_toolbar_btn']->value, null, 0);?>
<?php }?>
<div class="bootstrap">
<div class="page-head">
<h2 class="page-title">
<?php if (is_array($_smarty_tpl->tpl_vars['title']->value)) {?><?php echo htmlspecialchars(end($_smarty_tpl->tpl_vars['title']->value), ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php }?>
</h2>
<ul class="breadcrumb page-breadcrumb">
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name']!='') {?>
<li class="breadcrumb-container">
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href']!='') {?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href'], ENT_QUOTES, 'UTF-8', true);?>
"><?php }?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name'], ENT_QUOTES, 'UTF-8', true);?>
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href']!='') {?></a><?php }?>
</li>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name']!=''&&$_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name']!=$_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name']) {?>
<li class="breadcrumb-current">
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href']!='') {?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href'], ENT_QUOTES, 'UTF-8', true);?>
"><?php }?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name'], ENT_QUOTES, 'UTF-8', true);?>
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href']!='') {?></a><?php }?>
</li>
<?php }?>
</ul>
<div class="page-bar toolbarBox">
<div class="btn-toolbar">
<a href="#" class="toolbar_btn dropdown-toolbar navbar-toggle" data-toggle="collapse" data-target="#toolbar-nav"><i class="process-icon-dropdown"></i><div><?php echo smartyTranslate(array('s'=>'Menu'),$_smarty_tpl);?>
</div></a>
<ul id="toolbar-nav" class="nav nav-pills pull-right collapse navbar-collapse">
<?php $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['btn']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['toolbar_btn']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
$_smarty_tpl->tpl_vars['btn']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['k']->value!='back'&&$_smarty_tpl->tpl_vars['k']->value!='modules-list') {?>
<li>
<a id="page-header-desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
-<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['imgclass'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
<?php }?>" class="toolbar_btn <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['target'])&&$_smarty_tpl->tpl_vars['btn']->value['target']) {?> _blank<?php }?> pointer"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['href'])) {?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
"<?php }?> title="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['help'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['help'];?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['desc'], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js'])&&$_smarty_tpl->tpl_vars['btn']->value['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js'];?>
"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['modal_target'])&&$_smarty_tpl->tpl_vars['btn']->value['modal_target']) {?> data-target="<?php echo $_smarty_tpl->tpl_vars['btn']->value['modal_target'];?>
" data-toggle="modal"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['help'])) {?> data-toggle="tooltip" data-placement="bottom"<?php }?>>
<i class="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['icon'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?>process-icon-<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['imgclass'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
<?php }?><?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['class'], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>"></i>
<div<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['force_desc'])&&$_smarty_tpl->tpl_vars['btn']->value['force_desc']==true) {?> class="locked"<?php }?>><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['desc'], ENT_QUOTES, 'UTF-8', true);?>
</div>
</a>
</li>
<?php }?>
<?php } ?>
<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list'])) {?>
<li>
<a id="page-header-desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
-<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'];?>
<?php } else { ?>modules-list<?php }?>" class="toolbar_btn<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['class'];?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['target'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['target']) {?> _blank<?php }?>" <?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['href'])) {?>href="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['href'];?>
"<?php }?> title="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['desc'];?>
"<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js'];?>
"<?php }?>>
<i class="<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['icon'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['icon'];?>
<?php } else { ?>process-icon-<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'];?>
<?php } else { ?>modules-list<?php }?><?php }?>"></i>
<div<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['force_desc'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['force_desc']==true) {?> class="locked"<?php }?>><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['desc'];?>
</div>
</a>
</li>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['help_link']->value)) {?>
<li>
<a class="toolbar_btn btn-help" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['help_link']->value, ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'Help'),$_smarty_tpl);?>
">
<i class="process-icon-help"></i>
<div><?php echo smartyTranslate(array('s'=>'Help'),$_smarty_tpl);?>
</div>
</a>
</li>
<?php }?>
</ul>
<?php if ((isset($_smarty_tpl->tpl_vars['tab_modules_open']->value)&&$_smarty_tpl->tpl_vars['tab_modules_open']->value)||isset($_smarty_tpl->tpl_vars['tab_modules_list']->value)) {?>
<script type="text/javascript">
//<![CDATA[
var modules_list_loaded = false;
<?php if (isset($_smarty_tpl->tpl_vars['tab_modules_open']->value)&&$_smarty_tpl->tpl_vars['tab_modules_open']->value) {?>
$(function() {
$('#modules_list_container').modal('show');
openModulesList();
});
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['tab_modules_list']->value)) {?>
$('.process-icon-modules-list').parent('a').unbind().bind('click', function (){
$('#modules_list_container').modal('show');
openModulesList();
});
<?php }?>
//]]>
</script>
<?php }?>
</div>
</div>
</div>
</div>
<?php }} ?>

View File

@@ -0,0 +1,39 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 21:39:33
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin066crc2rr/themes/default/template/controllers/localization/content.tpl" */ ?>
<?php /*%%SmartyHeaderCode:42859160856ab79a51066f5-74198629%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'235a4f9803d8a00d5b5a3ea92b72e1c7a952cebf' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin066crc2rr/themes/default/template/controllers/localization/content.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '42859160856ab79a51066f5-74198629',
'function' =>
array (
),
'variables' =>
array (
'localization_form' => 0,
'localization_options' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab79a51595e0_80215956',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab79a51595e0_80215956')) {function content_56ab79a51595e0_80215956($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['localization_form']->value)) {?><?php echo $_smarty_tpl->tpl_vars['localization_form']->value;?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['localization_options']->value)) {?><?php echo $_smarty_tpl->tpl_vars['localization_options']->value;?>
<?php }?>
<script type="text/javascript">
$(document).ready(function() {
$('#PS_CURRENCY_DEFAULT').change(function(e) {
alert('Before changing the default currency, we strongly recommend that you enable maintenance mode because any change on default currency requires manual adjustment of the price of each product');
});
});
</script><?php }} ?>

View File

@@ -0,0 +1,80 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:58
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/carrier_wizard/summary.tpl" */ ?>
<?php /*%%SmartyHeaderCode:27645133156ab3ba2ebd541-44986323%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'23e612e94ba8c4eb2530210d298122fd5e8a69ba' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/carrier_wizard/summary.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '27645133156ab3ba2ebd541-44986323',
'function' =>
array (
),
'variables' =>
array (
'is_multishop' => 0,
'active_form' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba2edd6f4_40319652',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba2edd6f4_40319652')) {function content_56ab3ba2edd6f4_40319652($_smarty_tpl) {?>
<script type="text/javascript">
var summary_translation_undefined = '<?php echo smartyTranslate(array('s'=>'[undefined]','js'=>1),$_smarty_tpl);?>
';
var summary_translation_meta_informations = '<?php echo smartyTranslate(array('s'=>'This carrier is @s1 and the delivery announced is: @s2.','js'=>1),$_smarty_tpl);?>
';
var summary_translation_free = '<strong><?php echo smartyTranslate(array('s'=>'free','js'=>1),$_smarty_tpl);?>
</strong>';
var summary_translation_paid = '<strong><?php echo smartyTranslate(array('s'=>'not free','js'=>1),$_smarty_tpl);?>
</strong>';
var summary_translation_range = '<span class="is_free"><?php echo smartyTranslate(array('s'=>'This carrier can deliver orders from @s1 to @s2.','js'=>1),$_smarty_tpl);?>
</span>';
var summary_translation_range_limit = '<?php echo smartyTranslate(array('s'=>'If the order is out of range, the behavior is to @s3.','js'=>1),$_smarty_tpl);?>
';
var summary_translation_shipping_cost = '<?php echo smartyTranslate(array('s'=>'The shipping cost is calculated @s1 and the tax rule @s2 will be applied.','js'=>1),$_smarty_tpl);?>
';
var summary_translation_price = '<strong><?php echo smartyTranslate(array('s'=>'according to the price','js'=>1),$_smarty_tpl);?>
</strong>';
var summary_translation_weight = '<strong><?php echo smartyTranslate(array('s'=>'according to the weight','js'=>1),$_smarty_tpl);?>
</strong>';
</script>
<div class="defaultForm">
<div class="panel">
<div class="panel-heading"><?php echo smartyTranslate(array('s'=>'Carrier name:'),$_smarty_tpl);?>
<strong id="summary_name"></strong></div>
<div class="panel-body">
<p id="summary_meta_informations"></p>
<p id="summary_shipping_cost"></p>
<p id="summary_range"></p>
<div>
<?php echo smartyTranslate(array('s'=>'This carrier will be proposed for those delivery zones:'),$_smarty_tpl);?>
<ul id="summary_zones"></ul>
</div>
<div>
<?php echo smartyTranslate(array('s'=>'And it will be proposed for those client groups:'),$_smarty_tpl);?>
<ul id="summary_groups"></ul>
</div>
<?php if ($_smarty_tpl->tpl_vars['is_multishop']->value) {?>
<div>
<?php echo smartyTranslate(array('s'=>'Finally, this carrier will be proposed in those shops:'),$_smarty_tpl);?>
<ul id="summary_shops"></ul>
</div>
<?php }?>
</div>
</div>
<?php echo $_smarty_tpl->tpl_vars['active_form']->value;?>
</div>
<?php }} ?>

View File

@@ -0,0 +1,852 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 01:03:51
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/controllers/themes/helpers/options/options.tpl" */ ?>
<?php /*%%SmartyHeaderCode:132718641356ab8d6767d3d8-61575042%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'24f677cebecda85700b35f47bc089266d0475475' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/controllers/themes/helpers/options/options.tpl',
1 => 1454062131,
2 => 'file',
),
'3ad15d71b443ce7df51b75e11c2e0142c75ed2d7' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/helpers/options/options.tpl',
1 => 1454062117,
2 => 'file',
),
),
'nocache_hash' => '132718641356ab8d6767d3d8-61575042',
'function' =>
array (
),
'variables' =>
array (
'current_id_lang' => 0,
'tabs' => 0,
'table' => 0,
'table_bk' => 0,
'current' => 0,
'token' => 0,
'option_list' => 0,
'categoryData' => 0,
'category' => 0,
'use_multishop' => 0,
'field' => 0,
'key' => 0,
'hint' => 0,
'option' => 0,
'input' => 0,
'k' => 0,
'v' => 0,
'currency_left_sign' => 0,
'currency_right_sign' => 0,
'id_lang' => 0,
'value' => 0,
'languages' => 0,
'language' => 0,
'p' => 0,
'btn' => 0,
'name_controller' => 0,
'hookName' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8d67bfd7b9_72716098',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8d67bfd7b9_72716098')) {function content_56ab8d67bfd7b9_72716098($_smarty_tpl) {?><?php if (!is_callable('smarty_function_counter')) include '/home/sumit/public_html/html/hotelcommerce-master/tools/smarty/plugins/function.counter.php';
if (!is_callable('smarty_modifier_escape')) include '/home/sumit/public_html/html/hotelcommerce-master/tools/smarty/plugins/modifier.escape.php';
if (!is_callable('smarty_modifier_replace')) include '/home/sumit/public_html/html/hotelcommerce-master/tools/smarty/plugins/modifier.replace.php';
?>
<div class="leadin"></div>
<script type="text/javascript">
id_language = Number(<?php echo $_smarty_tpl->tpl_vars['current_id_lang']->value;?>
);
<?php if (isset($_smarty_tpl->tpl_vars['tabs']->value)&&count($_smarty_tpl->tpl_vars['tabs']->value)) {?>
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 = '<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_';
<?php }?>
</script>
<?php if (isset($_smarty_tpl->tpl_vars['table_bk']->value)&&$_smarty_tpl->tpl_vars['table_bk']->value==$_smarty_tpl->tpl_vars['table']->value) {?><?php $_smarty_tpl->_capture_stack[0][] = array('table_count', null, null); ob_start(); ?><?php echo smarty_function_counter(array('name'=>'table_count'),$_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 }?>
<?php $_smarty_tpl->tpl_vars['table_bk'] = new Smarty_variable($_smarty_tpl->tpl_vars['table']->value, null, 1);
if ($_smarty_tpl->parent != null) $_smarty_tpl->parent->tpl_vars['table_bk'] = clone $_smarty_tpl->tpl_vars['table_bk'];?>
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" id="<?php if ($_smarty_tpl->tpl_vars['table']->value==null) {?>configuration_form<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_form<?php }?><?php if (isset(Smarty::$_smarty_vars['capture']['table_count'])&&Smarty::$_smarty_vars['capture']['table_count']) {?>_<?php echo intval(Smarty::$_smarty_vars['capture']['table_count']);?>
<?php }?>" method="post" enctype="multipart/form-data" class="form-horizontal">
<?php $_smarty_tpl->tpl_vars['categoryData'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['categoryData']->_loop = false;
$_smarty_tpl->tpl_vars['category'] = new Smarty_Variable;
$_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['categoryData']->key => $_smarty_tpl->tpl_vars['categoryData']->value) {
$_smarty_tpl->tpl_vars['categoryData']->_loop = true;
$_smarty_tpl->tpl_vars['category']->value = $_smarty_tpl->tpl_vars['categoryData']->key;
?>
<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['top'])) {?><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['top'];?>
<?php }?>
<div class="panel <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['class'])) {?><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['class'];?>
<?php }?>" id="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_fieldset_<?php echo $_smarty_tpl->tpl_vars['category']->value;?>
">
<div class="panel-heading">
<i class="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['icon'])) {?><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['icon'];?>
<?php } else { ?>icon-cogs<?php }?>"></i>
<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['title'])) {?><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['title'];?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Options'),$_smarty_tpl);?>
<?php }?>
</div>
<?php if ((isset($_smarty_tpl->tpl_vars['categoryData']->value['description'])&&$_smarty_tpl->tpl_vars['categoryData']->value['description'])) {?>
<div class="alert alert-info"><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['description'];?>
</div>
<?php }?>
<?php if ((isset($_smarty_tpl->tpl_vars['categoryData']->value['info'])&&$_smarty_tpl->tpl_vars['categoryData']->value['info'])) {?>
<div><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['info'];?>
</div>
<?php }?>
<?php if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox']&&$_smarty_tpl->tpl_vars['use_multishop']->value) {?>
<div class="well 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">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value;?>
_on" value="1" onclick="toggleAllMultishopDefaultValue($('#<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_fieldset_<?php echo $_smarty_tpl->tpl_vars['category']->value;?>
'), true)"/><label for="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value;?>
_on"><?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</label><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value;?>
_off" value="0" checked="checked" onclick="toggleAllMultishopDefaultValue($('#<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_fieldset_<?php echo $_smarty_tpl->tpl_vars['category']->value;?>
'), false)"/><label for="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_multishop_<?php echo $_smarty_tpl->tpl_vars['category']->value;?>
_off"><?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</label>
<a class="slide-button btn"></a>
</span>
<div class="row">
<div class="col-lg-12">
<p class="help-block">
<strong><?php echo smartyTranslate(array('s'=>'Check / Uncheck all'),$_smarty_tpl);?>
</strong><br />
<?php echo smartyTranslate(array('s'=>'You are editing this page for a specific shop or group. Click "Yes" to check all fields, "No" to uncheck all.'),$_smarty_tpl);?>
<br />
<?php echo smartyTranslate(array('s'=>'If you check a field, change its value, and save, the multistore behavior will not apply to this shop (or group), for this particular parameter.'),$_smarty_tpl);?>
</p>
</div>
</div>
</div>
</div>
<?php }?>
<div class="form-wrapper">
<?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['categoryData']->value['fields']; 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;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['field']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['field']->value['type']=='hidden') {?>
<input type="hidden" name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['field']->value['value'];?>
" />
<?php } else { ?>
<div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['field']->value['form_group_class'])) {?> <?php echo $_smarty_tpl->tpl_vars['field']->value['form_group_class'];?>
<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['tabs']->value)&&isset($_smarty_tpl->tpl_vars['field']->value['tab'])) {?> data-tab-id="<?php echo $_smarty_tpl->tpl_vars['field']->value['tab'];?>
"<?php }?>>
<div id="conf_id_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"<?php if ($_smarty_tpl->tpl_vars['field']->value['is_invisible']) {?> class="isInvisible"<?php }?>>
<?php if (isset($_smarty_tpl->tpl_vars['field']->value['title'])&&isset($_smarty_tpl->tpl_vars['field']->value['hint'])) {?>
<label class="control-label col-lg-3<?php if (isset($_smarty_tpl->tpl_vars['field']->value['required'])&&$_smarty_tpl->tpl_vars['field']->value['required']&&$_smarty_tpl->tpl_vars['field']->value['type']!='radio') {?> required<?php }?>">
<?php if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox']&&$_smarty_tpl->tpl_vars['field']->value['multishop_default']&&empty($_smarty_tpl->tpl_vars['field']->value['no_multishop_checkbox'])) {?>
<input type="checkbox" name="multishopOverrideOption[<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
]" value="1"<?php if (!$_smarty_tpl->tpl_vars['field']->value['is_disabled']) {?> checked="checked"<?php }?> onclick="toggleMultishopDefaultValue(this, '<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
')"/>
<?php }?>
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="
<?php if (is_array($_smarty_tpl->tpl_vars['field']->value['hint'])) {?>
<?php $_smarty_tpl->tpl_vars['hint'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['hint']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['field']->value['hint']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['hint']->key => $_smarty_tpl->tpl_vars['hint']->value) {
$_smarty_tpl->tpl_vars['hint']->_loop = true;
?>
<?php if (is_array($_smarty_tpl->tpl_vars['hint']->value)) {?>
<?php echo $_smarty_tpl->tpl_vars['hint']->value['text'];?>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['hint']->value;?>
<?php }?>
<?php } ?>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['field']->value['hint'];?>
<?php }?>
" data-html="true">
<?php echo $_smarty_tpl->tpl_vars['field']->value['title'];?>
</span>
</label>
<?php } elseif (isset($_smarty_tpl->tpl_vars['field']->value['title'])) {?>
<label class="control-label col-lg-3">
<?php if (!$_smarty_tpl->tpl_vars['categoryData']->value['hide_multishop_checkbox']&&$_smarty_tpl->tpl_vars['field']->value['multishop_default']&&empty($_smarty_tpl->tpl_vars['field']->value['no_multishop_checkbox'])) {?>
<input type="checkbox" name="multishopOverrideOption[<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
]" value="1"<?php if (!$_smarty_tpl->tpl_vars['field']->value['is_disabled']) {?> checked="checked"<?php }?> onclick="checkMultishopDefaultValue(this, '<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
')" />
<?php }?>
<?php echo $_smarty_tpl->tpl_vars['field']->value['title'];?>
</label>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['field']->value['type']=='theme') {?>
<?php if ($_smarty_tpl->tpl_vars['field']->value['can_display_themes']) {?>
<div class="col-lg-12">
<div class="row">
<?php $_smarty_tpl->tpl_vars['theme'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['theme']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['field']->value['themes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['theme']->key => $_smarty_tpl->tpl_vars['theme']->value) {
$_smarty_tpl->tpl_vars['theme']->_loop = true;
?>
<div class="col-sm-4 col-lg-3">
<div class="theme-container">
<h4 class="theme-title"><?php echo $_smarty_tpl->tpl_vars['theme']->value->name;?>
</h4>
<div class="thumbnail-wrapper">
<div class="action-wrapper">
<div class="action-overlay"></div>
<div class="action-buttons">
<div class="btn-group">
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminThemes'), ENT_QUOTES, 'UTF-8', true);?>
&amp;submitOptionstheme&amp;id_theme=<?php echo $_smarty_tpl->tpl_vars['theme']->value->id;?>
" class="btn btn-default">
<i class="icon-check"></i> <?php echo smartyTranslate(array('s'=>'Use this theme'),$_smarty_tpl);?>
</a>
<?php if ($_smarty_tpl->tpl_vars['theme']->value->name!='hotel-theme'||($_smarty_tpl->tpl_vars['theme']->value->name=='hotel-theme'&&$_smarty_tpl->tpl_vars['host_mode']->value==0)) {?>
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="icon-caret-down"></i>&nbsp;
</button>
<ul class="dropdown-menu">
<li>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminThemes'), ENT_QUOTES, 'UTF-8', true);?>
&amp;deletetheme&amp;id_theme=<?php echo $_smarty_tpl->tpl_vars['theme']->value->id;?>
" title="Delete this theme" class="delete">
<i class="icon-trash"></i> <?php echo smartyTranslate(array('s'=>'Delete this theme'),$_smarty_tpl);?>
</a>
</li>
</ul>
<?php }?>
</div>
</div>
</div>
<img class="center-block img-thumbnail" src="../themes/<?php echo $_smarty_tpl->tpl_vars['theme']->value->directory;?>
/preview.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['theme']->value->name;?>
" />
</div>
</div>
</div>
<?php } ?>
<?php $_smarty_tpl->tpl_vars['theme'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['theme']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['field']->value['not_installed']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['theme']->key => $_smarty_tpl->tpl_vars['theme']->value) {
$_smarty_tpl->tpl_vars['theme']->_loop = true;
?>
<div class="col-sm-4 col-lg-3">
<div class="theme-container">
<h4 class="theme-title"><?php echo $_smarty_tpl->tpl_vars['theme']->value['name'];?>
</h4>
<div class="thumbnail-wrapper">
<div class="action-wrapper">
<div class="action-overlay"></div>
<div class="action-buttons">
<div class="btn-group">
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminThemes'), ENT_QUOTES, 'UTF-8', true);?>
&amp;installThemeFromFolder&amp;theme_dir=<?php echo $_smarty_tpl->tpl_vars['theme']->value['directory'];?>
" class="btn btn-default">
<i class="icon-check"></i> <?php echo smartyTranslate(array('s'=>'Install this theme'),$_smarty_tpl);?>
</a>
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="icon-caret-down"></i>&nbsp;
</button>
<ul class="dropdown-menu">
<li>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminThemes'), ENT_QUOTES, 'UTF-8', true);?>
&amp;deletetheme&amp;theme_dir=<?php echo $_smarty_tpl->tpl_vars['theme']->value['directory'];?>
" title="Delete this theme" class="delete">
<i class="icon-trash"></i> <?php echo smartyTranslate(array('s'=>'Delete this theme'),$_smarty_tpl);?>
</a>
</li>
</ul>
</div>
</div>
</div>
<img class="center-block img-thumbnail" src="../themes/<?php echo $_smarty_tpl->tpl_vars['theme']->value['directory'];?>
/themes/<?php echo $_smarty_tpl->tpl_vars['theme']->value['directory'];?>
/preview.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['theme']->value['name'];?>
" />
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<?php }?>
<?php } else { ?>
<?php if ($_smarty_tpl->tpl_vars['field']->value['type']=='select') {?>
<div class="col-lg-9">
<?php if ($_smarty_tpl->tpl_vars['field']->value['list']) {?>
<select class="form-control fixed-width-xxl <?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) {?><?php echo $_smarty_tpl->tpl_vars['field']->value['class'];?>
<?php }?>" name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"<?php if (isset($_smarty_tpl->tpl_vars['field']->value['js'])) {?> onchange="<?php echo $_smarty_tpl->tpl_vars['field']->value['js'];?>
"<?php }?> id="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" <?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) {?> size="<?php echo $_smarty_tpl->tpl_vars['field']->value['size'];?>
"<?php }?>>
<?php $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['option']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['field']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value) {
$_smarty_tpl->tpl_vars['option']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['option']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']];?>
"<?php if ($_smarty_tpl->tpl_vars['field']->value['value']==$_smarty_tpl->tpl_vars['option']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]) {?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['option']->value['name'];?>
</option>
<?php } ?>
</select>
<?php } elseif (isset($_smarty_tpl->tpl_vars['input']->value['empty_message'])) {?>
<?php echo $_smarty_tpl->tpl_vars['input']->value['empty_message'];?>
<?php }?>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='bool') {?>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_on" value="1" <?php if ($_smarty_tpl->tpl_vars['field']->value['value']) {?> checked="checked"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['field']->value['js']['on'])) {?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js']['on'];?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['field']->value['disabled'])&&(bool)$_smarty_tpl->tpl_vars['field']->value['disabled']) {?> disabled="disabled"<?php }?>/><label for="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_on" class="radioCheck"><?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</label><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_off" value="0" <?php if (!$_smarty_tpl->tpl_vars['field']->value['value']) {?> checked="checked"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['field']->value['js']['off'])) {?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js']['off'];?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['field']->value['disabled'])&&(bool)$_smarty_tpl->tpl_vars['field']->value['disabled']) {?> disabled="disabled"<?php }?>/><label for="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_off" class="radioCheck"><?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</label>
<a class="slide-button btn"></a>
</span>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='radio') {?>
<div class="col-lg-9">
<?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['field']->value['choices']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
<p class="radio">
<label for="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
"><input type="radio" name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
"<?php if ($_smarty_tpl->tpl_vars['k']->value==$_smarty_tpl->tpl_vars['field']->value['value']) {?> checked="checked"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value])) {?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value];?>
<?php }?>/><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</label>
</p>
<?php } ?>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='checkbox') {?>
<div class="col-lg-9">
<?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['field']->value['choices']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
<p class="checkbox">
<label class="col-lg-3" for="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
_on"><input type="checkbox" name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
_on" value="<?php echo intval($_smarty_tpl->tpl_vars['k']->value);?>
"<?php if ($_smarty_tpl->tpl_vars['k']->value==$_smarty_tpl->tpl_vars['field']->value['value']) {?> checked="checked"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value])) {?> <?php echo $_smarty_tpl->tpl_vars['field']->value['js'][$_smarty_tpl->tpl_vars['k']->value];?>
<?php }?>/><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</label>
</p>
<?php } ?>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='text') {?>
<div class="col-lg-9"><?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {?><div class="input-group<?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['field']->value['class'];?>
<?php }?>"><?php }?>
<input class="form-control <?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) {?><?php echo $_smarty_tpl->tpl_vars['field']->value['class'];?>
<?php }?>" type="<?php echo $_smarty_tpl->tpl_vars['field']->value['type'];?>
"<?php if (isset($_smarty_tpl->tpl_vars['field']->value['id'])) {?> id="<?php echo $_smarty_tpl->tpl_vars['field']->value['id'];?>
"<?php }?> size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) {?><?php echo intval($_smarty_tpl->tpl_vars['field']->value['size']);?>
<?php } else { ?>5<?php }?>" name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" value="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['no_escape'])&&$_smarty_tpl->tpl_vars['field']->value['no_escape']) {?><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['field']->value['value'], 'UTF-8');?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>" <?php if (isset($_smarty_tpl->tpl_vars['field']->value['autocomplete'])&&!$_smarty_tpl->tpl_vars['field']->value['autocomplete']) {?>autocomplete="off"<?php }?>/>
<?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {?>
<span class="input-group-addon">
<?php echo strval($_smarty_tpl->tpl_vars['field']->value['suffix']);?>
</span>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {?></div><?php }?>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='password') {?>
<div class="col-lg-9"><?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {?><div class="input-group<?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['field']->value['class'];?>
<?php }?>"><?php }?>
<input type="<?php echo $_smarty_tpl->tpl_vars['field']->value['type'];?>
"<?php if (isset($_smarty_tpl->tpl_vars['field']->value['id'])) {?> id="<?php echo $_smarty_tpl->tpl_vars['field']->value['id'];?>
"<?php }?> size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) {?><?php echo intval($_smarty_tpl->tpl_vars['field']->value['size']);?>
<?php } else { ?>5<?php }?>" name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" value=""<?php if (isset($_smarty_tpl->tpl_vars['field']->value['autocomplete'])&&!$_smarty_tpl->tpl_vars['field']->value['autocomplete']) {?> autocomplete="off"<?php }?> />
<?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {?>
<span class="input-group-addon">
<?php echo strval($_smarty_tpl->tpl_vars['field']->value['suffix']);?>
</span>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['field']->value['suffix'])) {?></div><?php }?>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='textarea') {?>
<div class="col-lg-9">
<textarea class="textarea-autosize" name=<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
cols="<?php echo $_smarty_tpl->tpl_vars['field']->value['cols'];?>
" rows="<?php echo $_smarty_tpl->tpl_vars['field']->value['rows'];?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true);?>
</textarea>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='file') {?>
<div class="col-lg-9"><?php echo $_smarty_tpl->tpl_vars['field']->value['file'];?>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='color') {?>
<div class="col-lg-2">
<div class="input-group">
<input type="color" size="<?php echo $_smarty_tpl->tpl_vars['field']->value['size'];?>
" data-hex="true" <?php if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {?>class="<?php echo $_smarty_tpl->tpl_vars['field']->value['class'];?>
" <?php } else { ?>class="color mColorPickerInput"<?php }?> name="<?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
" class="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['class'])) {?><?php echo $_smarty_tpl->tpl_vars['field']->value['class'];?>
<?php }?>" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true);?>
" />
</div>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='price') {?>
<div class="col-lg-9">
<div class="input-group fixed-width-lg">
<span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency_left_sign']->value;?>
<?php echo $_smarty_tpl->tpl_vars['currency_right_sign']->value;?>
<?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>
</span>
<input type="text" size="<?php if (isset($_smarty_tpl->tpl_vars['field']->value['size'])) {?><?php echo intval($_smarty_tpl->tpl_vars['field']->value['size']);?>
<?php } else { ?>5<?php }?>" name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['field']->value['value'], ENT_QUOTES, 'UTF-8', true);?>
" />
</div>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='textLang'||$_smarty_tpl->tpl_vars['field']->value['type']=='textareaLang'||$_smarty_tpl->tpl_vars['field']->value['type']=='selectLang') {?>
<?php if ($_smarty_tpl->tpl_vars['field']->value['type']=='textLang') {?>
<div class="col-lg-9">
<div class="row">
<?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
$_smarty_tpl->tpl_vars['id_lang'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['field']->value['languages']; 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['id_lang']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
<?php if (count($_smarty_tpl->tpl_vars['field']->value['languages'])>1) {?>
<div class="translatable-field lang-<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['id_lang']->value!=$_smarty_tpl->tpl_vars['current_id_lang']->value) {?>style="display:none;"<?php }?>>
<div class="col-lg-9">
<?php } else { ?>
<div class="col-lg-12">
<?php }?>
<input type="text"
name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
"
value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['value']->value, ENT_QUOTES, 'UTF-8', true);?>
"
<?php if (isset($_smarty_tpl->tpl_vars['input']->value['class'])) {?>class="<?php echo $_smarty_tpl->tpl_vars['input']->value['class'];?>
"<?php }?>
/>
<?php if (count($_smarty_tpl->tpl_vars['field']->value['languages'])>1) {?>
</div>
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<?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 ($_smarty_tpl->tpl_vars['language']->value['id_lang']==$_smarty_tpl->tpl_vars['id_lang']->value) {?><?php echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];?>
<?php }?>
<?php } ?>
<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 } else { ?>
</div>
<?php }?>
<?php } ?>
</div>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='textareaLang') {?>
<div class="col-lg-9">
<?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
$_smarty_tpl->tpl_vars['id_lang'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['field']->value['languages']; 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['id_lang']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
<div class="row translatable-field lang-<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['id_lang']->value!=$_smarty_tpl->tpl_vars['current_id_lang']->value) {?>style="display:none;"<?php }?>>
<div id="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
" class="col-lg-9" >
<textarea class="textarea-autosize" name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['id_lang']->value;?>
"><?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['value']->value,'\r\n',"\n");?>
</textarea>
</div>
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<?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 ($_smarty_tpl->tpl_vars['language']->value['id_lang']==$_smarty_tpl->tpl_vars['id_lang']->value) {?><?php echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];?>
<?php }?>
<?php } ?>
<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 } ?>
<script type="text/javascript">
$(document).ready(function() {
$(".textarea-autosize").autosize();
});
</script>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field']->value['type']=='selectLang') {?>
<?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;
?>
<div id="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];?>
" style="display: <?php if ($_smarty_tpl->tpl_vars['language']->value['id_lang']==$_smarty_tpl->tpl_vars['current_id_lang']->value) {?>block<?php } else { ?>none<?php }?>;" class="col-lg-9">
<select name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_<?php echo mb_strtoupper($_smarty_tpl->tpl_vars['language']->value['iso_code'], 'UTF-8');?>
">
<?php $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['field']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
<option value="<?php if (isset($_smarty_tpl->tpl_vars['v']->value['cast'])) {?><?php echo $_smarty_tpl->tpl_vars['v']->value['cast'][$_smarty_tpl->tpl_vars['v']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']]];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['v']->value[$_smarty_tpl->tpl_vars['field']->value['identifier']];?>
<?php }?>"
<?php if ($_smarty_tpl->tpl_vars['field']->value['value'][$_smarty_tpl->tpl_vars['language']->value['id_lang']]==$_smarty_tpl->tpl_vars['v']->value['name']) {?> selected="selected"<?php }?>>
<?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</option>
<?php } ?>
</select>
</div>
<?php } ?>
<?php }?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['field']->value['desc'])&&!empty($_smarty_tpl->tpl_vars['field']->value['desc'])) {?>
<div class="col-lg-9 col-lg-offset-3">
<div class="help-block">
<?php if (is_array($_smarty_tpl->tpl_vars['field']->value['desc'])) {?>
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['p']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['field']->value['desc']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) {
$_smarty_tpl->tpl_vars['p']->_loop = true;
?>
<?php if (is_array($_smarty_tpl->tpl_vars['p']->value)) {?>
<span id="<?php echo $_smarty_tpl->tpl_vars['p']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['p']->value['text'];?>
</span><br />
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
<br />
<?php }?>
<?php } ?>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['field']->value['desc'];?>
<?php }?>
</div>
</div>
<?php }?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['field']->value['is_invisible']) {?>
<div class="col-lg-9 col-lg-offset-3">
<p class="alert alert-warning row-margin-top">
<?php echo smartyTranslate(array('s'=>'You can\'t change the value of this configuration field in the context of this shop.'),$_smarty_tpl);?>
</p>
</div>
<?php }?>
</div>
</div>
<?php }?>
<?php } ?>
</div><!-- /.form-wrapper -->
<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['bottom'])) {?><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['bottom'];?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['after_tabs'])) {?>
<?php $_smarty_tpl->tpl_vars['cur_theme'] = new Smarty_variable($_smarty_tpl->tpl_vars['categoryData']->value['after_tabs']['cur_theme'], null, 0);?>
<div class="row row-padding-top">
<div class="col-md-3">
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
" class="_blank">
<img class="center-block img-thumbnail" src="../themes/<?php echo $_smarty_tpl->tpl_vars['cur_theme']->value['theme_directory'];?>
/preview.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['cur_theme']->value['theme_name'];?>
" />
</a>
</div>
<div id="js_theme_form_container" class="col-md-9">
<h2><?php echo $_smarty_tpl->tpl_vars['cur_theme']->value['theme_name'];?>
<?php if (isset($_smarty_tpl->tpl_vars['cur_theme']->value['theme_version'])) {?><small>version <?php echo $_smarty_tpl->tpl_vars['cur_theme']->value['theme_version'];?>
</small><?php }?></h2>
<?php if (isset($_smarty_tpl->tpl_vars['cur_theme']->value['author_name'])) {?>
<p>
<?php echo smartyTranslate(array('s'=>'Designed by %s','sprintf'=>$_smarty_tpl->tpl_vars['cur_theme']->value['author_name']),$_smarty_tpl);?>
</p>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['cur_theme']->value['tc'])&&$_smarty_tpl->tpl_vars['cur_theme']->value['tc']) {?>
<hr />
<h4><?php echo smartyTranslate(array('s'=>'Customize your theme'),$_smarty_tpl);?>
</h4>
<div class="row">
<div class="col-sm-8">
<p><?php echo smartyTranslate(array('s'=>'Customize the main elements of your theme: sliders, banners, colors, etc.'),$_smarty_tpl);?>
</p>
</div>
<div class="col-sm-4">
<a class="btn btn-default pull-right" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminModules'), ENT_QUOTES, 'UTF-8', true);?>
&amp;configure=themeconfigurator">
<i class="icon icon-list-alt"></i>
<?php echo smartyTranslate(array('s'=>'Theme Configurator'),$_smarty_tpl);?>
</a>
</div>
</div>
<?php }?>
<hr />
<h4><?php echo smartyTranslate(array('s'=>'Configure your theme'),$_smarty_tpl);?>
</h4>
<div class="row">
<div class="col-sm-8">
<p><?php echo smartyTranslate(array('s'=>'Configure your theme\'s advanced settings, such as the number of columns you want for each page. This setting is mostly for advanced users.'),$_smarty_tpl);?>
</p>
</div>
<div class="col-sm-4">
<a class="btn btn-default pull-right" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminThemes'), ENT_QUOTES, 'UTF-8', true);?>
&amp;updatetheme&amp;id_theme=<?php echo $_smarty_tpl->tpl_vars['cur_theme']->value['theme_id'];?>
">
<i class="icon icon-cog"></i>
<?php echo smartyTranslate(array('s'=>'Advanced settings'),$_smarty_tpl);?>
</a>
</div>
</div>
</div>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit'])||isset($_smarty_tpl->tpl_vars['categoryData']->value['buttons'])) {?>
<div class="panel-footer">
<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit'])&&!empty($_smarty_tpl->tpl_vars['categoryData']->value['submit'])) {?>
<button type="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['type'])) {?><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['type'];?>
<?php } else { ?>submit<?php }?>" <?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['id'])) {?>id="<?php echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['id'];?>
"<?php }?> class="btn btn-default pull-right" name="<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['name'])) {?><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['name'];?>
<?php } else { ?>submitOptions<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
<?php }?>"><i class="process-icon-<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['submit']['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['imgclass'];?>
<?php } else { ?>save<?php }?>"></i> <?php echo $_smarty_tpl->tpl_vars['categoryData']->value['submit']['title'];?>
</button>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['categoryData']->value['buttons'])) {?>
<?php $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['btn']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['categoryData']->value['buttons']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
$_smarty_tpl->tpl_vars['btn']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
?>
<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['href'])&&trim($_smarty_tpl->tpl_vars['btn']->value['href'])!='') {?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
" <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) {?>id="<?php echo $_smarty_tpl->tpl_vars['btn']->value['id'];?>
"<?php }?> class="btn btn-default<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['btn']->value['class'];?>
<?php }?>" <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js'])&&$_smarty_tpl->tpl_vars['btn']->value['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js'];?>
"<?php }?>><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {?><i class="<?php echo $_smarty_tpl->tpl_vars['btn']->value['icon'];?>
" ></i> <?php }?><?php echo $_smarty_tpl->tpl_vars['btn']->value['title'];?>
</a>
<?php } else { ?>
<button type="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['type'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['type'];?>
<?php } else { ?>button<?php }?>" <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['id'])) {?>id="<?php echo $_smarty_tpl->tpl_vars['btn']->value['id'];?>
"<?php }?> class="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['class'];?>
<?php } else { ?>btn btn-default<?php }?>" name="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['name'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['name'];?>
<?php } else { ?>submitOptions<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js'])&&$_smarty_tpl->tpl_vars['btn']->value['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js'];?>
"<?php }?>><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {?><i class="<?php echo $_smarty_tpl->tpl_vars['btn']->value['icon'];?>
" ></i> <?php }?><?php echo $_smarty_tpl->tpl_vars['btn']->value['title'];?>
</button>
<?php }?>
<?php } ?>
<?php }?>
</div>
<?php }?>
</div>
<?php } ?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayAdminOptions'),$_smarty_tpl);?>
<?php if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) {?>
<?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?>display<?php echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value);?>
Options<?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]['hook'][0][0]->smartyHook(array('h'=>$_smarty_tpl->tpl_vars['hookName']->value),$_smarty_tpl);?>
<?php } elseif (isset($_GET['controller'])) {?>
<?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?>display<?php echo htmlentities(ucfirst($_GET['controller']));?>
Options<?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]['hook'][0][0]->smartyHook(array('h'=>$_smarty_tpl->tpl_vars['hookName']->value),$_smarty_tpl);?>
<?php }?>
</form>
<div class="panel clearfix" id="prestastore-content"></div>
<script type="text/javascript">
$.ajax({
type: 'POST',
headers: { "cache-control": "no-cache" },
url: 'ajax-tab.php?rand=' + new Date().getTime(),
async: true,
cache: false,
dataType : "html",
data: {
tab: 'AdminThemes',
token: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
',
ajax: '1',
action:'getAddonsThemes',
page:'themes'
},
success: function(htmlData) {
$("#prestastore-content").html("<h3><i class='icon-picture-o'></i> <?php echo smartyTranslate(array('s'=>'Live from PrestaShop Addons!'),$_smarty_tpl);?>
</h3>"+htmlData);
}
});
// These variable will move the form to another location
var formToMove = "appearance";
var formDestination = "js_theme_form_container";
</script>
<?php }} ?>

View File

@@ -0,0 +1,252 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:58
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/countries/helpers/list/list_footer.tpl" */ ?>
<?php /*%%SmartyHeaderCode:123619953156ab3ba25e53c6-17978959%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'25d0fa3cc8e021055f5d8ca6a3c09265628aa40f' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/countries/helpers/list/list_footer.tpl',
1 => 1454062128,
2 => 'file',
),
),
'nocache_hash' => '123619953156ab3ba25e53c6-17978959',
'function' =>
array (
),
'variables' =>
array (
'bulk_actions' => 0,
'params' => 0,
'key' => 0,
'zones' => 0,
'z' => 0,
'table' => 0,
'simple_header' => 0,
'list_total' => 0,
'selected_pagination' => 0,
'pagination' => 0,
'value' => 0,
'page' => 0,
'p' => 0,
'total_pages' => 0,
'token' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba26800d4_82767352',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba26800d4_82767352')) {function content_56ab3ba26800d4_82767352($_smarty_tpl) {?>
</table>
<div class="row">
<div class="col-lg-8">
<?php if ($_smarty_tpl->tpl_vars['bulk_actions']->value) {?>
<?php if (count($_smarty_tpl->tpl_vars['bulk_actions']->value)>1) {?>
<div class="form-group bulk-actions">
<div class="col-lg-6">
<select id="select_submitBulk" name="select_submitBulk">
<?php $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['params']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['bulk_actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['params']->value['text']=='divider') {?>
<option value="" disabled="disabled" class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['params']->value['text'], ENT_QUOTES, 'UTF-8', true);?>
">--</option>
<?php } else { ?>
<option value="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"<?php if (isset($_smarty_tpl->tpl_vars['params']->value['confirm'])) {?> data-confirm="<?php echo $_smarty_tpl->tpl_vars['params']->value['confirm'];?>
"<?php }?>><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['params']->value['text'], ENT_QUOTES, 'UTF-8', true);?>
</option>
<?php }?>
<?php } ?>
</select>
</div>
<div class="col-lg-6">
<input type="submit" class="btn btn-default" name="submitBulk" id="submitBulk" value="<?php echo smartyTranslate(array('s'=>'Apply'),$_smarty_tpl);?>
" />
</div>
</div>
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['params']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['bulk_actions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
?>
<div class="form-group bulk-actions">
<div class="col-lg-6">
<?php if ($_smarty_tpl->tpl_vars['key']->value=='affectzone') {?>
<select id="zone_to_affect" name="zone_to_affect">
<?php $_smarty_tpl->tpl_vars['z'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['z']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['zones']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['z']->key => $_smarty_tpl->tpl_vars['z']->value) {
$_smarty_tpl->tpl_vars['z']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['z']->value['id_zone'];?>
"><?php echo $_smarty_tpl->tpl_vars['z']->value['name'];?>
</option>
<?php } ?>
</select>
<?php }?>
</div>
<div class="col-lg-6">
<input type="submit" class="btn btn-default" name="submitBulk<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['params']->value['text'];?>
" <?php if (isset($_smarty_tpl->tpl_vars['params']->value['confirm'])) {?>onclick="return confirm('<?php echo $_smarty_tpl->tpl_vars['params']->value['confirm'];?>
');"<?php }?> />
</div>
</div>
<?php } ?>
<?php }?>
<?php }?>
</div>
<?php if (!$_smarty_tpl->tpl_vars['simple_header']->value&&$_smarty_tpl->tpl_vars['list_total']->value>20) {?>
<div class="col-lg-4">
<div class="pagination">
<?php echo smartyTranslate(array('s'=>'Display'),$_smarty_tpl);?>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<?php echo $_smarty_tpl->tpl_vars['selected_pagination']->value;?>
<i class="icon-caret-down"></i>
</button>
<ul class="dropdown-menu">
<?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['pagination']->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;
?>
<li>
<a href="javascript:void(0);" class="pagination-items-page" data-items="<?php echo intval($_smarty_tpl->tpl_vars['value']->value);?>
"><?php echo $_smarty_tpl->tpl_vars['value']->value;?>
</a>
</li>
<?php } ?>
</ul>
/ <?php echo $_smarty_tpl->tpl_vars['list_total']->value;?>
<?php echo smartyTranslate(array('s'=>'result(s)'),$_smarty_tpl);?>
<input type="hidden" id="pagination-items-page" name="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_pagination" value="<?php echo intval($_smarty_tpl->tpl_vars['selected_pagination']->value);?>
" />
</div>
<script type="text/javascript">
$('.pagination-items-page').on('click',function(e){
e.preventDefault();
$('#pagination-items-page').val($(this).data("items")).closest("form").submit();
});
</script>
<ul class="pagination pull-right">
<li <?php if ($_smarty_tpl->tpl_vars['page']->value<=1) {?>class="disabled"<?php }?>>
<a href="javascript:void(0);" class="pagination-link" data-page="1">
<i class="icon-double-angle-left"></i>
</a>
</li>
<li <?php if ($_smarty_tpl->tpl_vars['page']->value<=1) {?>class="disabled"<?php }?>>
<a href="javascript:void(0);" class="pagination-link" data-page="<?php echo $_smarty_tpl->tpl_vars['page']->value-1;?>
">
<i class="icon-angle-left"></i>
</a>
</li>
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_variable(0, null, 0);?>
<?php while ($_smarty_tpl->tpl_vars['p']->value++<$_smarty_tpl->tpl_vars['total_pages']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['p']->value<$_smarty_tpl->tpl_vars['page']->value-2) {?>
<li class="disabled">
<a href="javascript:void(0);">&hellip;</a>
</li>
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_variable($_smarty_tpl->tpl_vars['page']->value-3, null, 0);?>
<?php } elseif ($_smarty_tpl->tpl_vars['p']->value>$_smarty_tpl->tpl_vars['page']->value+2) {?>
<li class="disabled">
<a href="javascript:void(0);">&hellip;</a>
</li>
<?php $_smarty_tpl->tpl_vars['p'] = new Smarty_variable($_smarty_tpl->tpl_vars['total_pages']->value, null, 0);?>
<?php } else { ?>
<li <?php if ($_smarty_tpl->tpl_vars['p']->value==$_smarty_tpl->tpl_vars['page']->value) {?>class="active"<?php }?>>
<a href="javascript:void(0);" class="pagination-link" data-page="<?php echo $_smarty_tpl->tpl_vars['p']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['p']->value;?>
</a>
</li>
<?php }?>
<?php }?>
<li <?php if ($_smarty_tpl->tpl_vars['page']->value>$_smarty_tpl->tpl_vars['total_pages']->value) {?>class="disabled"<?php }?>>
<a href="javascript:void(0);" class="pagination-link" data-page="<?php echo $_smarty_tpl->tpl_vars['page']->value+1;?>
">
<i class="icon-angle-right"></i>
</a>
</li>
<li <?php if ($_smarty_tpl->tpl_vars['page']->value>$_smarty_tpl->tpl_vars['total_pages']->value) {?>class="disabled"<?php }?>>
<a href="javascript:void(0);" class="pagination-link" data-page="<?php echo $_smarty_tpl->tpl_vars['total_pages']->value;?>
">
<i class="icon-double-angle-right"></i>
</a>
</li>
</ul>
<script type="text/javascript">
$('.pagination-link').on('click',function(e){
e.preventDefault();
$('#submitFilter'+'<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
').val($(this).data("page")).closest("form").submit();
});
</script>
</div>
<?php }?>
</div>
<input type="hidden" name="token" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" />
</div>
</div>
</form>
<script type="text/javascript">
$(document).ready(function(){
<?php if (count($_smarty_tpl->tpl_vars['bulk_actions']->value)>1) {?>
$('#submitBulk').click(function(){
if ($('#select_submitBulk option:selected').data('confirm') !== undefined)
return confirm($('#select_submitBulk option:selected').data('confirm'));
else
return true;
});
$('#select_submitBulk').change(function() {
if ($(this).val() == 'affectzone')
loadZones();
else if (loaded)
$('#zone_to_affect').fadeOut('slow');
});
<?php }?>
});
var loaded = false;
function loadZones()
{
if (!loaded)
{
$.ajax({
type: 'POST',
headers: { "cache-control": "no-cache" },
url: 'ajax.php?rand=' + new Date().getTime(),
data: 'getZones=true&token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
',
async : true,
cache: false,
dataType: 'json',
success: function(data) {
var html = $(data.data);
html.hide();
$('#select_submitBulk').after(html);
html.fadeIn('slow');
}
});
loaded = true;
}
else
{
$('#zone_to_affect').fadeIn('slow');
}
}
</script>
<?php }} ?>

View File

@@ -0,0 +1,114 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 13:12:47
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/controllers/modules/login_addons.tpl" */ ?>
<?php /*%%SmartyHeaderCode:61320936956ab8f7fe9fe37-30175025%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'265af8ec70ea4f98e0551dc471c247e378de101a' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/controllers/modules/login_addons.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '61320936956ab8f7fe9fe37-30175025',
'function' =>
array (
),
'variables' =>
array (
'add_permission' => 0,
'logged_on_addons' => 0,
'check_url_fopen' => 0,
'check_openssl' => 0,
'addons_register_link' => 0,
'addons_forgot_password_link' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8f7fec96b5_61572687',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8f7fec96b5_61572687')) {function content_56ab8f7fec96b5_61572687($_smarty_tpl) {?>
<div class="modal-body">
<?php if ($_smarty_tpl->tpl_vars['add_permission']->value=='1') {?>
<?php if (!isset($_smarty_tpl->tpl_vars['logged_on_addons']->value)||!$_smarty_tpl->tpl_vars['logged_on_addons']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['check_url_fopen']->value=='ko'||$_smarty_tpl->tpl_vars['check_openssl']->value=='ko') {?>
<div class="alert alert-warning">
<?php echo smartyTranslate(array('s'=>'If you want to be able to fully use the AdminModules panel and have free modules available, you should enable the following configuration on your server:'),$_smarty_tpl);?>
<br />
<?php if ($_smarty_tpl->tpl_vars['check_url_fopen']->value=='ko') {?>- <?php echo smartyTranslate(array('s'=>'Enable PHP\'s allow_url_fopen setting'),$_smarty_tpl);?>
<br /><?php }?>
<?php if ($_smarty_tpl->tpl_vars['check_openssl']->value=='ko') {?>- <?php echo smartyTranslate(array('s'=>'Enable PHP\'s OpenSSL extension'),$_smarty_tpl);?>
<br /><?php }?>
</div>
<?php } else { ?>
<!--start addons login-->
<form id="addons_login_form" method="post" >
<div>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addons_register_link']->value, ENT_QUOTES, 'UTF-8', true);?>
"><img class="img-responsive center-block" src="themes/default/img/prestashop-addons-logo.png" alt="Logo PrestaShop Addons"/></a>
<h3 class="text-center"><?php echo smartyTranslate(array('s'=>"Connect your shop with PrestaShop's marketplace in order to automatically import all your Addons purchases."),$_smarty_tpl);?>
</h3>
<hr />
</div>
<div class="row">
<div class="col-md-6">
<h4><?php echo smartyTranslate(array('s'=>"Don't have an account?"),$_smarty_tpl);?>
</h4>
<p class='text-justify'><?php echo smartyTranslate(array('s'=>"Discover the Power of PrestaShop Addons! Explore the PrestaShop Official Marketplace and find over 3 500 innovative modules and themes that optimize conversion rates, increase traffic, build customer loyalty and maximize your productivity"),$_smarty_tpl);?>
</p>
</div>
<div class="col-md-6">
<h4><?php echo smartyTranslate(array('s'=>'Connect to PrestaShop Addons'),$_smarty_tpl);?>
</h4>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="icon-user"></i></span>
<input id="username_addons" name="username_addons" type="text" value="" autocomplete="off" class="form-control ac_input">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="icon-key"></i></span>
<input id="password_addons" name="password_addons" type="password" value="" autocomplete="off" class="form-control ac_input">
</div>
<a class="btn btn-link pull-right _blank" href="<?php echo $_smarty_tpl->tpl_vars['addons_forgot_password_link']->value;?>
"><?php echo smartyTranslate(array('s'=>'I forgot my password'),$_smarty_tpl);?>
</a>
<br>
</div>
</div>
</div>
<div class="row row-padding-top">
<div class="col-md-6">
<div class="form-group">
<a class="btn btn-default btn-block btn-lg _blank" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['addons_register_link']->value, ENT_QUOTES, 'UTF-8', true);?>
">
<?php echo smartyTranslate(array('s'=>"Create an Account"),$_smarty_tpl);?>
<i class="icon-external-link"></i>
</a>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<button id="addons_login_button" class="btn btn-primary btn-block btn-lg" type="submit">
<i class="icon-unlock"></i> <?php echo smartyTranslate(array('s'=>'Sign in'),$_smarty_tpl);?>
</button>
</div>
</div>
</div>
<div id="addons_loading" class="help-block"></div>
</form>
<!--end addons login-->
<?php }?>
<?php }?>
<?php }?>
</div>
<?php }} ?>

View File

@@ -0,0 +1,174 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 01:02:45
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/page_header_toolbar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:202332850256ab8d25670c65-32486860%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'275ebf3627a9072959f8042e7eecfddfaf7f0739' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/page_header_toolbar.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '202332850256ab8d25670c65-32486860',
'function' =>
array (
),
'variables' =>
array (
'title' => 0,
'page_header_toolbar_title' => 0,
'page_header_toolbar_btn' => 0,
'breadcrumbs2' => 0,
'toolbar_btn' => 0,
'k' => 0,
'table' => 0,
'btn' => 0,
'help_link' => 0,
'tab_modules_open' => 0,
'tab_modules_list' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8d2578cbb0_17043008',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8d2578cbb0_17043008')) {function content_56ab8d2578cbb0_17043008($_smarty_tpl) {?>
<?php if (!isset($_smarty_tpl->tpl_vars['title']->value)&&isset($_smarty_tpl->tpl_vars['page_header_toolbar_title']->value)) {?>
<?php $_smarty_tpl->tpl_vars['title'] = new Smarty_variable($_smarty_tpl->tpl_vars['page_header_toolbar_title']->value, null, 0);?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['page_header_toolbar_btn']->value)) {?>
<?php $_smarty_tpl->tpl_vars['toolbar_btn'] = new Smarty_variable($_smarty_tpl->tpl_vars['page_header_toolbar_btn']->value, null, 0);?>
<?php }?>
<div class="bootstrap">
<div class="page-head">
<h2 class="page-title">
<?php if (is_array($_smarty_tpl->tpl_vars['title']->value)) {?><?php echo htmlspecialchars(end($_smarty_tpl->tpl_vars['title']->value), ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php }?>
</h2>
<ul class="breadcrumb page-breadcrumb">
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name']!='') {?>
<li class="breadcrumb-container">
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href']!='') {?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href'], ENT_QUOTES, 'UTF-8', true);?>
"><?php }?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name'], ENT_QUOTES, 'UTF-8', true);?>
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['href']!='') {?></a><?php }?>
</li>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name']!=''&&$_smarty_tpl->tpl_vars['breadcrumbs2']->value['container']['name']!=$_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name']) {?>
<li class="breadcrumb-current">
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href']!='') {?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href'], ENT_QUOTES, 'UTF-8', true);?>
"><?php }?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['name'], ENT_QUOTES, 'UTF-8', true);?>
<?php if ($_smarty_tpl->tpl_vars['breadcrumbs2']->value['tab']['href']!='') {?></a><?php }?>
</li>
<?php }?>
</ul>
<div class="page-bar toolbarBox">
<div class="btn-toolbar">
<a href="#" class="toolbar_btn dropdown-toolbar navbar-toggle" data-toggle="collapse" data-target="#toolbar-nav"><i class="process-icon-dropdown"></i><div><?php echo smartyTranslate(array('s'=>'Menu'),$_smarty_tpl);?>
</div></a>
<ul id="toolbar-nav" class="nav nav-pills pull-right collapse navbar-collapse">
<?php $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['btn']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['toolbar_btn']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
$_smarty_tpl->tpl_vars['btn']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['k']->value!='back'&&$_smarty_tpl->tpl_vars['k']->value!='modules-list') {?>
<li>
<a id="page-header-desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
-<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['imgclass'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
<?php }?>" class="toolbar_btn <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['target'])&&$_smarty_tpl->tpl_vars['btn']->value['target']) {?> _blank<?php }?> pointer"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['href'])) {?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
"<?php }?> title="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['help'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['help'];?>
<?php } else { ?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['desc'], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js'])&&$_smarty_tpl->tpl_vars['btn']->value['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js'];?>
"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['modal_target'])&&$_smarty_tpl->tpl_vars['btn']->value['modal_target']) {?> data-target="<?php echo $_smarty_tpl->tpl_vars['btn']->value['modal_target'];?>
" data-toggle="modal"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['help'])) {?> data-toggle="tooltip" data-placement="bottom"<?php }?>>
<i class="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['icon'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['icon'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?>process-icon-<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['imgclass'], ENT_QUOTES, 'UTF-8', true);?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
<?php }?><?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['class'], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>"></i>
<div<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['force_desc'])&&$_smarty_tpl->tpl_vars['btn']->value['force_desc']==true) {?> class="locked"<?php }?>><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['desc'], ENT_QUOTES, 'UTF-8', true);?>
</div>
</a>
</li>
<?php }?>
<?php } ?>
<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list'])) {?>
<li>
<a id="page-header-desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
-<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'];?>
<?php } else { ?>modules-list<?php }?>" class="toolbar_btn<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['class'];?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['target'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['target']) {?> _blank<?php }?>" <?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['href'])) {?>href="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['href'];?>
"<?php }?> title="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['desc'];?>
"<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['js'];?>
"<?php }?>>
<i class="<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['icon'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['icon'];?>
<?php } else { ?>process-icon-<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'];?>
<?php } else { ?>modules-list<?php }?><?php }?>"></i>
<div<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['force_desc'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['force_desc']==true) {?> class="locked"<?php }?>><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['desc'];?>
</div>
</a>
</li>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['help_link']->value)) {?>
<li>
<a class="toolbar_btn btn-help" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['help_link']->value, ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'Help'),$_smarty_tpl);?>
">
<i class="process-icon-help"></i>
<div><?php echo smartyTranslate(array('s'=>'Help'),$_smarty_tpl);?>
</div>
</a>
</li>
<?php }?>
</ul>
<?php if ((isset($_smarty_tpl->tpl_vars['tab_modules_open']->value)&&$_smarty_tpl->tpl_vars['tab_modules_open']->value)||isset($_smarty_tpl->tpl_vars['tab_modules_list']->value)) {?>
<script type="text/javascript">
//<![CDATA[
var modules_list_loaded = false;
<?php if (isset($_smarty_tpl->tpl_vars['tab_modules_open']->value)&&$_smarty_tpl->tpl_vars['tab_modules_open']->value) {?>
$(function() {
$('#modules_list_container').modal('show');
openModulesList();
});
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['tab_modules_list']->value)) {?>
$('.process-icon-modules-list').parent('a').unbind().bind('click', function (){
$('#modules_list_container').modal('show');
openModulesList();
});
<?php }?>
//]]>
</script>
<?php }?>
</div>
</div>
</div>
</div>
<?php }} ?>

View File

@@ -0,0 +1,54 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:01
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/stats/menu.tpl" */ ?>
<?php /*%%SmartyHeaderCode:79813036356ab3ba56fae50-96098489%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'28c9da56f824a2979035a52666ef5d604c5650e7' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/stats/menu.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '79813036356ab3ba56fae50-96098489',
'function' =>
array (
),
'variables' =>
array (
'modules' => 0,
'module' => 0,
'module_instance' => 0,
'current_module_name' => 0,
'current' => 0,
'token' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba5721505_02618463',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba5721505_02618463')) {function content_56ab3ba5721505_02618463($_smarty_tpl) {?>
<div id="container" class="row">
<div class="sidebar navigation col-md-3">
<nav class="list-group categorieList">
<?php if (count($_smarty_tpl->tpl_vars['modules']->value)) {?>
<?php $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module']->_loop = false;
$_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;
?>
<?php if ($_smarty_tpl->tpl_vars['module_instance']->value[$_smarty_tpl->tpl_vars['module']->value['name']]) {?>
<a class="list-group-item<?php if (($_smarty_tpl->tpl_vars['current_module_name']->value&&$_smarty_tpl->tpl_vars['current_module_name']->value==$_smarty_tpl->tpl_vars['module']->value['name'])) {?> active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;module=<?php echo $_smarty_tpl->tpl_vars['module']->value['name'];?>
"><?php echo $_smarty_tpl->tpl_vars['module_instance']->value[$_smarty_tpl->tpl_vars['module']->value['name']]->displayName;?>
</a>
<?php }?>
<?php } ?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'No module has been installed.'),$_smarty_tpl);?>
<?php }?>
</nav>
</div><?php }} ?>

View File

@@ -0,0 +1,124 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:55
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/tree/tree_shops.tpl" */ ?>
<?php /*%%SmartyHeaderCode:169469138056ab3b9f451358-40047446%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'29906b30050f7e186877db29700a705b0c7b0457' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/tree/tree_shops.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '169469138056ab3b9f451358-40047446',
'function' =>
array (
),
'variables' =>
array (
'header' => 0,
'nodes' => 0,
'id' => 0,
'selected_shops' => 0,
'imploded_selected_shops' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3b9f475a46_77546097',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3b9f475a46_77546097')) {function content_56ab3b9f475a46_77546097($_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="tree">
<?php echo $_smarty_tpl->tpl_vars['nodes']->value;?>
</ul>
<?php }?>
</div>
<script type="text/javascript">
function checkAllAssociatedShops($tree)
{
$tree.find(":input[type=checkbox]").each(
function()
{
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
}
);
}
function uncheckAllAssociatedShops($tree)
{
$tree.find(":input[type=checkbox]").each(
function()
{
$(this).prop("checked", false);
$(this).parent().removeClass("tree-selected");
}
);
}
$(document).ready(function () {
$("#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
").tree("expandAll");
$("#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
").find(":input[type=checkbox]").click(
function()
{
if($(this).is(':checked'))
{
$(this).parent().addClass("tree-selected");
$(this).parent().parent().find("ul").find(":input[type=checkbox]").each(
function()
{
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
}
);
}
else
{
$(this).parent().removeClass("tree-selected");
$(this).parent().parent().find("ul").find(":input[type=checkbox]").each(
function()
{
$(this).prop("checked", false);
$(this).parent().removeClass("tree-selected");
}
);
}
}
);
<?php if (isset($_smarty_tpl->tpl_vars['selected_shops']->value)) {?>
<?php $_smarty_tpl->tpl_vars['imploded_selected_shops'] = new Smarty_variable(implode('","',$_smarty_tpl->tpl_vars['selected_shops']->value), null, 0);?>
var selected_shops = new Array("<?php echo $_smarty_tpl->tpl_vars['imploded_selected_shops']->value;?>
");
$("#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
").find(".tree-item :input").each(
function()
{
if ($.inArray($(this).val(), selected_shops) != -1)
{
$(this).prop("checked", true);
$(this).parent().addClass("tree-selected");
$(this).parents("ul.tree").each(
function()
{
$(this).children().children().children(".icon-folder-close")
.removeClass("icon-folder-close")
.addClass("icon-folder-open");
$(this).show();
}
);
}
}
);
<?php }?>
});
</script><?php }} ?>

View File

@@ -0,0 +1,33 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:56
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/list/list_action_addstock.tpl" */ ?>
<?php /*%%SmartyHeaderCode:91320703456ab3ba00133b1-61284270%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2a56ea05a8523547dc08eb77d631460a0780974e' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/list/list_action_addstock.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '91320703456ab3ba00133b1-61284270',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba001a3a3_98869143',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba001a3a3_98869143')) {function content_56ab3ba001a3a3_98869143($_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 $_smarty_tpl->tpl_vars['action']->value;?>
">
<i class="icon-circle-arrow-up"></i> <?php echo $_smarty_tpl->tpl_vars['action']->value;?>
</a><?php }} ?>

View File

@@ -0,0 +1,403 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:00
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/quantities.tpl" */ ?>
<?php /*%%SmartyHeaderCode:141650396456ab3ba4444a09-89158087%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2a87b02d0c51c642a24cef0a631047e3f56eea8a' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/products/quantities.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '141650396456ab3ba4444a09-89158087',
'function' =>
array (
),
'variables' =>
array (
'product' => 0,
'ps_stock_management' => 0,
'show_quantities' => 0,
'stock_management_active' => 0,
'pack_stock_type' => 0,
'token_preferences' => 0,
'pack_quantity' => 0,
'attributes' => 0,
'attribute' => 0,
'available_quantity' => 0,
'product_designation' => 0,
'order_out_of_stock' => 0,
'link' => 0,
'has_attribute' => 0,
'default_language' => 0,
'languages' => 0,
'countAttributes' => 0,
'default_form_language' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba45a9750_05565832',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba45a9750_05565832')) {function content_56ab3ba45a9750_05565832($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['product']->value->id)) {?>
<div id="product-quantities" class="panel product-tab">
<input type="hidden" name="submitted_tabs[]" value="Quantities" />
<h3><?php echo smartyTranslate(array('s'=>'Available quantities for sale'),$_smarty_tpl);?>
</h3>
<?php if (!$_smarty_tpl->tpl_vars['ps_stock_management']->value) {?>
<div class="alert alert-info"><?php echo smartyTranslate(array('s'=>'The stock management is disabled'),$_smarty_tpl);?>
</div>
<?php } else { ?>
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/multishop/check_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_tab'=>"Quantities"), 0);?>
<div class="alert alert-info">
<?php echo smartyTranslate(array('s'=>'This interface allows you to manage available quantities for sale for products. It also allows you to manage product combinations in the current shop.'),$_smarty_tpl);?>
<br/>
<?php echo smartyTranslate(array('s'=>'You can choose whether or not to use the advanced stock management system for this product.'),$_smarty_tpl);?>
<br/>
<?php echo smartyTranslate(array('s'=>'You can manually specify the quantities for the product/each product combination, or you can choose to automatically determine these quantities based on your stock (if advanced stock management is activated).'),$_smarty_tpl);?>
<br/>
<?php echo smartyTranslate(array('s'=>'In this case, quantities correspond to the real-stock quantities in the warehouses connected with the current shop, or current group of shops.'),$_smarty_tpl);?>
<br/>
<?php echo smartyTranslate(array('s'=>'For packs: If it has products that use advanced stock management, you have to specify a common warehouse for these products in the pack.'),$_smarty_tpl);?>
<br/>
<?php echo smartyTranslate(array('s'=>'Also, please note that when a product has combinations, its default combination will be used in stock movements.'),$_smarty_tpl);?>
</div>
<?php if ($_smarty_tpl->tpl_vars['show_quantities']->value==true) {?>
<div class="form-group" <?php if ($_smarty_tpl->tpl_vars['product']->value->is_virtual) {?>style="display:none;"<?php }?> class="row stockForVirtualProduct">
<div class="col-lg-9 col-lg-offset-3">
<p class="checkbox">
<label for="advanced_stock_management">
<input type="checkbox" id="advanced_stock_management" name="advanced_stock_management" class="advanced_stock_management"
<?php if ($_smarty_tpl->tpl_vars['product']->value->advanced_stock_management==1&&$_smarty_tpl->tpl_vars['stock_management_active']->value==1) {?>
value="1" checked="checked"
<?php } else { ?>
value="0"
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['stock_management_active']->value==0) {?>
disabled="disabled"
<?php }?>
/>
<?php echo smartyTranslate(array('s'=>'I want to use the advanced stock management system for this product.'),$_smarty_tpl);?>
</label>
</p>
<?php if ($_smarty_tpl->tpl_vars['stock_management_active']->value==0&&!$_smarty_tpl->tpl_vars['product']->value->cache_is_pack) {?>
<p class="help-block"><i class="icon-warning-sign"></i>&nbsp;<?php echo smartyTranslate(array('s'=>'This requires you to enable advanced stock management.'),$_smarty_tpl);?>
</p>
<?php } elseif ($_smarty_tpl->tpl_vars['product']->value->cache_is_pack) {?>
<p class="help-block"><?php echo smartyTranslate(array('s'=>'When enabling advanced stock management for a pack, please make sure it is also enabled for its product(s) – if you choose to decrement product quantities.'),$_smarty_tpl);?>
</p>
<?php }?>
</div>
</div>
<div <?php if ($_smarty_tpl->tpl_vars['product']->value->is_virtual) {?>style="display:none;"<?php }?> class="form-group stockForVirtualProduct">
<label class="control-label col-lg-3" for="depends_on_stock_1"><?php echo smartyTranslate(array('s'=>'Available quantities'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<p class="radio">
<label for="depends_on_stock_1">
<input type="radio" id="depends_on_stock_1" name="depends_on_stock" class="depends_on_stock" value="1"
<?php if ($_smarty_tpl->tpl_vars['product']->value->depends_on_stock==1&&$_smarty_tpl->tpl_vars['stock_management_active']->value==1) {?>
checked="checked"
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['stock_management_active']->value==0||$_smarty_tpl->tpl_vars['product']->value->advanced_stock_management==0) {?>
disabled="disabled"
<?php }?>
/>
<?php echo smartyTranslate(array('s'=>'The available quantities for the current product and its combinations are based on the stock in your warehouse (using the advanced stock management system). '),$_smarty_tpl);?>
<?php if (($_smarty_tpl->tpl_vars['stock_management_active']->value==0||$_smarty_tpl->tpl_vars['product']->value->advanced_stock_management==0)&&!$_smarty_tpl->tpl_vars['product']->value->cache_is_pack) {?> &nbsp;-&nbsp;<?php echo smartyTranslate(array('s'=>'This requires you to enable advanced stock management globally or for this product.'),$_smarty_tpl);?>
<?php }?>
</label>
</p>
<?php if ($_smarty_tpl->tpl_vars['product']->value->cache_is_pack) {?>
<p class="help-block">
<?php echo smartyTranslate(array('s'=>'You cannot use advanced stock management for this pack if'),$_smarty_tpl);?>
<br />
<?php echo smartyTranslate(array('s'=>'- advanced stock management is not enabled for these products'),$_smarty_tpl);?>
<br />
<?php echo smartyTranslate(array('s'=>'- you have chosen to decrement products quantities.'),$_smarty_tpl);?>
</p>
<?php }?>
<p class="radio">
<label for="depends_on_stock_0" for="depends_on_stock_0">
<input type="radio" id="depends_on_stock_0" name="depends_on_stock" class="depends_on_stock" value="0"
<?php if ($_smarty_tpl->tpl_vars['product']->value->depends_on_stock==0||$_smarty_tpl->tpl_vars['stock_management_active']->value==0) {?>
checked="checked"
<?php }?>
/>
<?php echo smartyTranslate(array('s'=>'I want to specify available quantities manually.'),$_smarty_tpl);?>
</label>
</p>
</div>
</div>
<div class="form-group" <?php if (!$_smarty_tpl->tpl_vars['product']->value->cache_is_pack) {?>style="display:none"<?php }?>>
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Pack quantities'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<p class="radio">
<label id="label_pack_stock_1" for="pack_stock_type_1">
<input type="radio" class="pack_stock_type" value="0" name="pack_stock_type" id="pack_stock_type_1" <?php if (isset($_smarty_tpl->tpl_vars['product']->value->pack_stock_type)&&$_smarty_tpl->tpl_vars['product']->value->pack_stock_type==0) {?> checked="checked" <?php }?>/>
<?php echo smartyTranslate(array('s'=>'Decrement pack only.'),$_smarty_tpl);?>
</label>
</p>
<p class="radio">
<label id="label_pack_stock_2" for="pack_stock_type_2">
<input type="radio" class="pack_stock_type" value="1" name="pack_stock_type" id="pack_stock_type_2" <?php if (isset($_smarty_tpl->tpl_vars['product']->value->pack_stock_type)&&$_smarty_tpl->tpl_vars['product']->value->pack_stock_type==1) {?> checked="checked" <?php }?>/>
<?php echo smartyTranslate(array('s'=>'Decrement products in pack only.'),$_smarty_tpl);?>
</label>
</p>
<p class="radio">
<label id="label_pack_stock_3" for="pack_stock_type_3">
<input type="radio" class="pack_stock_type" value="2" name="pack_stock_type" id="pack_stock_type_3" <?php if (isset($_smarty_tpl->tpl_vars['product']->value->pack_stock_type)&&$_smarty_tpl->tpl_vars['product']->value->pack_stock_type==2) {?> checked="checked" <?php }?>/>
<?php echo smartyTranslate(array('s'=>'Decrement both.'),$_smarty_tpl);?>
</label>
</p>
<p class="radio">
<label id="label_pack_stock_4" for="pack_stock_type_4">
<input type="radio" class="pack_stock_type" value="3" name="pack_stock_type" id="pack_stock_type_4" <?php if (!isset($_smarty_tpl->tpl_vars['product']->value->pack_stock_type)||$_smarty_tpl->tpl_vars['product']->value->pack_stock_type==3) {?> checked="checked" <?php }?>/>
<?php echo smartyTranslate(array('s'=>'Default'),$_smarty_tpl);?>
:
<?php if ($_smarty_tpl->tpl_vars['pack_stock_type']->value==0) {?>
<?php echo smartyTranslate(array('s'=>'Decrement pack only.'),$_smarty_tpl);?>
<?php } elseif ($_smarty_tpl->tpl_vars['pack_stock_type']->value==1) {?>
<?php echo smartyTranslate(array('s'=>'Decrement products in pack only.'),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'Decrement both.'),$_smarty_tpl);?>
<?php }?>
<a class="confirm_leave" href="index.php?tab=AdminPPreferences&amp;token=<?php echo $_smarty_tpl->tpl_vars['token_preferences']->value;?>
">
<?php echo smartyTranslate(array('s'=>'as set in the Products Preferences page'),$_smarty_tpl);?>
</a>
</label>
</p>
</div>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['pack_quantity']->value)) {?>
<div class="alert alert-info">
<p><?php echo smartyTranslate(array('s'=>'When a product has combinations, quantities will be based on the default combination.'),$_smarty_tpl);?>
</p>
<p><?php echo smartyTranslate(array('s'=>'Given the quantities of the products in this pack, the maximum quantity should be:'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['pack_quantity']->value;?>
</p>
</div>
<?php }?>
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<table class="table">
<thead>
<tr>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Quantity'),$_smarty_tpl);?>
</span></th>
<th><span class="title_box"><?php echo smartyTranslate(array('s'=>'Designation'),$_smarty_tpl);?>
</span></th>
</tr>
</thead>
<?php $_smarty_tpl->tpl_vars['attribute'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['attribute']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['attributes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['attribute']->key => $_smarty_tpl->tpl_vars['attribute']->value) {
$_smarty_tpl->tpl_vars['attribute']->_loop = true;
?>
<tr<?php if ($_smarty_tpl->tpl_vars['attribute']->value['default_on']) {?> class="highlighted"<?php }?>>
<td class="available_quantity" id="qty_<?php echo $_smarty_tpl->tpl_vars['attribute']->value['id_product_attribute'];?>
">
<span><?php echo $_smarty_tpl->tpl_vars['available_quantity']->value[$_smarty_tpl->tpl_vars['attribute']->value['id_product_attribute']];?>
</span>
<input type="text" name="qty_<?php echo $_smarty_tpl->tpl_vars['attribute']->value['id_product_attribute'];?>
" class="fixed-width-sm" value="<?php echo htmlentities($_smarty_tpl->tpl_vars['available_quantity']->value[$_smarty_tpl->tpl_vars['attribute']->value['id_product_attribute']]);?>
"/>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['product_designation']->value[$_smarty_tpl->tpl_vars['attribute']->value['id_product_attribute']];?>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>
<div id="when_out_of_stock" class="form-group">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'When out of stock'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<p class="radio">
<label id="label_out_of_stock_1" for="out_of_stock_1">
<input type="radio" id="out_of_stock_1" name="out_of_stock" checked="checked" value="0" class="out_of_stock" <?php if ($_smarty_tpl->tpl_vars['product']->value->out_of_stock==0) {?> checked="checked" <?php }?>>
<?php echo smartyTranslate(array('s'=>'Deny orders'),$_smarty_tpl);?>
</label>
</p>
<p class="radio">
<label id="label_out_of_stock_2" for="out_of_stock_2">
<input type="radio" id="out_of_stock_2" name="out_of_stock" value="1" class="out_of_stock" <?php if ($_smarty_tpl->tpl_vars['product']->value->out_of_stock==1) {?> checked="checked" <?php }?>>
<?php echo smartyTranslate(array('s'=>'Allow orders'),$_smarty_tpl);?>
</label>
</p>
<p class="radio">
<label id="label_out_of_stock_3" for="out_of_stock_3">
<input type="radio" id="out_of_stock_3" name="out_of_stock" value="2" class="out_of_stock" <?php if ($_smarty_tpl->tpl_vars['product']->value->out_of_stock==2) {?> checked="checked" <?php }?>>
<?php echo smartyTranslate(array('s'=>'Default'),$_smarty_tpl);?>
:
<?php if ($_smarty_tpl->tpl_vars['order_out_of_stock']->value==1) {?>
<?php echo smartyTranslate(array('s'=>'Allow orders'),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'Deny orders'),$_smarty_tpl);?>
<?php }?>
<a class="confirm_leave" href="index.php?tab=AdminPPreferences&amp;token=<?php echo $_smarty_tpl->tpl_vars['token_preferences']->value;?>
">
<?php echo smartyTranslate(array('s'=>'as set in the Products Preferences page'),$_smarty_tpl);?>
</a>
</label>
</p>
</div>
</div>
<?php } else { ?>
<div class="alert alert-warning">
<p><?php echo smartyTranslate(array('s'=>'It is not possible to manage quantities when:'),$_smarty_tpl);?>
</p>
<ul>
<li><?php echo smartyTranslate(array('s'=>'You are currently managing all of your shops.'),$_smarty_tpl);?>
</li>
<li><?php echo smartyTranslate(array('s'=>'You are currently managing a group of shops where quantities are not shared between every shop in this group.'),$_smarty_tpl);?>
</li>
<li><?php echo smartyTranslate(array('s'=>'You are currently managing a shop that is in a group where quantities are shared between every shop in this group.'),$_smarty_tpl);?>
</li>
</ul>
</div>
<?php }?>
<?php }?>
<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></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>
</div>
<div class="panel">
<h3><?php echo smartyTranslate(array('s'=>'Availability settings'),$_smarty_tpl);?>
</h3>
<?php if (!$_smarty_tpl->tpl_vars['has_attribute']->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'=>"minimal_quantity",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="minimal_quantity">
<?php echo smartyTranslate(array('s'=>'Minimum quantity'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<input type="text" id="minimal_quantity" name="minimal_quantity" class="form-control fixed-width-sm" maxlength="6" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['product']->value->minimal_quantity)===null||$tmp==='' ? 1 : $tmp);?>
" />
<p class="help-block"><?php echo smartyTranslate(array('s'=>'The minimum quantity to buy this product (set to 1 to disable this feature)'),$_smarty_tpl);?>
</p>
</div>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['ps_stock_management']->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'=>"available_now",'type'=>"default",'multilang'=>"true"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="available_now_<?php echo $_smarty_tpl->tpl_vars['default_language']->value;?>
">
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo smartyTranslate(array('s'=>'Forbidden characters:'),$_smarty_tpl);?>
&#60;&#62;;&#61;#&#123;&#125;">
<?php echo smartyTranslate(array('s'=>'Displayed text when in-stock'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-9">
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages'=>$_smarty_tpl->tpl_vars['languages']->value,'input_value'=>$_smarty_tpl->tpl_vars['product']->value->available_now,'input_name'=>'available_now'), 0);?>
</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_later",'type'=>"default",'multilang'=>"true"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="available_later_<?php echo $_smarty_tpl->tpl_vars['default_language']->value;?>
">
<span class="label-tooltip" data-toggle="tooltip"
title="<?php echo smartyTranslate(array('s'=>'If empty, the message "in stock" will be displayed.'),$_smarty_tpl);?>
<?php echo smartyTranslate(array('s'=>'Forbidden characters:'),$_smarty_tpl);?>
&#60;&#62;;&#61;#&#123;&#125;">
<?php echo smartyTranslate(array('s'=>'Displayed text when backordering is allowed'),$_smarty_tpl);?>
</span>
</label>
<div class="col-lg-9">
<?php echo $_smarty_tpl->getSubTemplate ("controllers/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages'=>$_smarty_tpl->tpl_vars['languages']->value,'input_value'=>$_smarty_tpl->tpl_vars['product']->value->available_later,'input_name'=>'available_later'), 0);?>
</div>
</div>
<?php if (!$_smarty_tpl->tpl_vars['countAttributes']->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'=>"available_date",'type'=>"default"), 0);?>
</span></div>
<label class="control-label col-lg-2" for="available_date">
<?php echo smartyTranslate(array('s'=>'Availability date:'),$_smarty_tpl);?>
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-md">
<input id="available_date" name="available_date" value="<?php echo $_smarty_tpl->tpl_vars['product']->value->available_date;?>
" class="datepicker" type="text" />
<div class="input-group-addon">
<i class="icon-calendar-empty"></i>
</div>
</div>
<p class="help-block"><?php echo smartyTranslate(array('s'=>'The next date of availability for this product when it is out of stock.'),$_smarty_tpl);?>
</p>
</div>
</div>
<?php }?>
<?php }?>
<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 quantities_ajax_success = '<?php echo smartyTranslate(array('s'=>'Data saved','js'=>1),$_smarty_tpl);?>
';
var quantities_ajax_waiting = '<?php echo smartyTranslate(array('s'=>'Saving data...','js'=>1),$_smarty_tpl);?>
';
</script>
</div>
<script type="text/javascript">
if (tabs_manager.allow_hide_other_languages)
hideOtherLanguage(<?php echo $_smarty_tpl->tpl_vars['default_form_language']->value;?>
);
</script>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,324 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 13:14:55
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/helpers/list/list_content.tpl" */ ?>
<?php /*%%SmartyHeaderCode:75754759556ab8fff1d2c04-81001901%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2b3360a28944b9abd8edfc11543126612fe37926' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin_htl/themes/default/template/helpers/list/list_content.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '75754759556ab8fff1d2c04-81001901',
'function' =>
array (
),
'variables' =>
array (
'list' => 0,
'position_identifier' => 0,
'position_group_identifier' => 0,
'identifier' => 0,
'tr' => 0,
'color_on_bg' => 0,
'bulk_actions' => 0,
'has_bulk_actions' => 0,
'list_skip_actions' => 0,
'list_id' => 0,
'checked_boxes' => 0,
'fields_display' => 0,
'params' => 0,
'no_link' => 0,
'order_by' => 0,
'order_way' => 0,
'current_index' => 0,
'view' => 0,
'table' => 0,
'page' => 0,
'token' => 0,
'key' => 0,
'filters_has_value' => 0,
'shop_link_type' => 0,
'has_actions' => 0,
'actions' => 0,
'action' => 0,
'compiled_actions' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8fff45d043_97524289',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8fff45d043_97524289')) {function content_56ab8fff45d043_97524289($_smarty_tpl) {?><?php if (!is_callable('smarty_function_counter')) include '/home/sumit/public_html/html/hotelcommerce-master/tools/smarty/plugins/function.counter.php';
?>
<?php $_smarty_tpl->_capture_stack[0][] = array('tr_count', null, null); ob_start(); ?><?php echo smarty_function_counter(array('name'=>'tr_count'),$_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();?>
<tbody>
<?php if (count($_smarty_tpl->tpl_vars['list']->value)) {?>
<?php $_smarty_tpl->tpl_vars['tr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tr']->_loop = false;
$_smarty_tpl->tpl_vars['index'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_smarty_tpl->tpl_vars['tr']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['tr']->key => $_smarty_tpl->tpl_vars['tr']->value) {
$_smarty_tpl->tpl_vars['tr']->_loop = true;
$_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['tr']->key;
$_smarty_tpl->tpl_vars['tr']->iteration++;
?>
<tr<?php if ($_smarty_tpl->tpl_vars['position_identifier']->value) {?> id="tr_<?php echo $_smarty_tpl->tpl_vars['position_group_identifier']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];?>
_<?php if (isset($_smarty_tpl->tpl_vars['tr']->value['position']['position'])) {?><?php echo $_smarty_tpl->tpl_vars['tr']->value['position']['position'];?>
<?php } else { ?>0<?php }?>"<?php }?> class="<?php if (isset($_smarty_tpl->tpl_vars['tr']->value['class'])) {?><?php echo $_smarty_tpl->tpl_vars['tr']->value['class'];?>
<?php }?> <?php if ((1 & $_smarty_tpl->tpl_vars['tr']->iteration / 1)) {?>odd<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['tr']->value['color'])&&$_smarty_tpl->tpl_vars['color_on_bg']->value) {?> style="background-color: <?php echo $_smarty_tpl->tpl_vars['tr']->value['color'];?>
"<?php }?> >
<?php if ($_smarty_tpl->tpl_vars['bulk_actions']->value&&$_smarty_tpl->tpl_vars['has_bulk_actions']->value) {?>
<td class="row-selector text-center">
<?php if (isset($_smarty_tpl->tpl_vars['list_skip_actions']->value['delete'])) {?>
<?php if (!in_array($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value],$_smarty_tpl->tpl_vars['list_skip_actions']->value['delete'])) {?>
<input type="checkbox" name="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Box[]" value="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];?>
"<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];?>
<?php $_tmp1=ob_get_clean();?><?php if (isset($_smarty_tpl->tpl_vars['checked_boxes']->value)&&is_array($_smarty_tpl->tpl_vars['checked_boxes']->value)&&in_array($_tmp1,$_smarty_tpl->tpl_vars['checked_boxes']->value)) {?> checked="checked"<?php }?> class="noborder" />
<?php }?>
<?php } else { ?>
<input type="checkbox" name="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Box[]" value="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];?>
"<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];?>
<?php $_tmp2=ob_get_clean();?><?php if (isset($_smarty_tpl->tpl_vars['checked_boxes']->value)&&is_array($_smarty_tpl->tpl_vars['checked_boxes']->value)&&in_array($_tmp2,$_smarty_tpl->tpl_vars['checked_boxes']->value)) {?> checked="checked"<?php }?> class="noborder" />
<?php }?>
</td>
<?php }?>
<?php $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['params']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['fields_display']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
?>
<td
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['position'])) {?>
id="td_<?php if (!empty($_smarty_tpl->tpl_vars['position_group_identifier']->value)) {?><?php echo $_smarty_tpl->tpl_vars['position_group_identifier']->value;?>
<?php } else { ?>0<?php }?>_<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value];?>
<?php if (Smarty::$_smarty_vars['capture']['tr_count']>1) {?>_<?php echo intval((Smarty::$_smarty_vars['capture']['tr_count']-1));?>
<?php }?>"
<?php }?>
class="<?php if (!$_smarty_tpl->tpl_vars['no_link']->value) {?>pointer<?php }?><?php if (isset($_smarty_tpl->tpl_vars['params']->value['position'])&&$_smarty_tpl->tpl_vars['order_by']->value=='position'&&$_smarty_tpl->tpl_vars['order_way']->value!='DESC') {?> dragHandle<?php }?><?php if (isset($_smarty_tpl->tpl_vars['params']->value['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['params']->value['class'];?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) {?> <?php echo $_smarty_tpl->tpl_vars['params']->value['align'];?>
<?php }?>"
<?php if ((!isset($_smarty_tpl->tpl_vars['params']->value['position'])&&!$_smarty_tpl->tpl_vars['no_link']->value&&!isset($_smarty_tpl->tpl_vars['params']->value['remove_onclick']))) {?>
onclick="document.location = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current_index']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['identifier']->value, ENT_QUOTES, 'UTF-8', true);?>
=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['identifier']->value], ENT_QUOTES, 'UTF-8', true);?>
<?php if ($_smarty_tpl->tpl_vars['view']->value) {?>&amp;view<?php } else { ?>&amp;update<?php }?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['table']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php if ($_smarty_tpl->tpl_vars['page']->value>1) {?>&amp;page=<?php echo intval($_smarty_tpl->tpl_vars['page']->value);?>
<?php }?>&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
'">
<?php } else { ?>
>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['prefix'])) {?><?php echo $_smarty_tpl->tpl_vars['params']->value['prefix'];?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['badge_success'])&&$_smarty_tpl->tpl_vars['params']->value['badge_success']&&isset($_smarty_tpl->tpl_vars['tr']->value['badge_success'])&&$_smarty_tpl->tpl_vars['tr']->value['badge_success']==$_smarty_tpl->tpl_vars['params']->value['badge_success']) {?><span class="badge badge-success"><?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['badge_warning'])&&$_smarty_tpl->tpl_vars['params']->value['badge_warning']&&isset($_smarty_tpl->tpl_vars['tr']->value['badge_warning'])&&$_smarty_tpl->tpl_vars['tr']->value['badge_warning']==$_smarty_tpl->tpl_vars['params']->value['badge_warning']) {?><span class="badge badge-warning"><?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['badge_danger'])&&$_smarty_tpl->tpl_vars['params']->value['badge_danger']&&isset($_smarty_tpl->tpl_vars['tr']->value['badge_danger'])&&$_smarty_tpl->tpl_vars['tr']->value['badge_danger']==$_smarty_tpl->tpl_vars['params']->value['badge_danger']) {?><span class="badge badge-danger"><?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['color'])&&isset($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['params']->value['color']])) {?>
<span class="label color_field" style="background-color:<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['params']->value['color']];?>
;color:<?php if (Tools::getBrightness($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['params']->value['color']])<128) {?>white<?php } else { ?>#383838<?php }?>">
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value])) {?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['active'])) {?>
<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['activeVisu'])) {?>
<?php if ($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]) {?>
<i class="icon-check-ok"></i> <?php echo smartyTranslate(array('s'=>'Enabled'),$_smarty_tpl);?>
<?php } else { ?>
<i class="icon-remove"></i> <?php echo smartyTranslate(array('s'=>'Disabled'),$_smarty_tpl);?>
<?php }?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['position'])) {?>
<?php if (!$_smarty_tpl->tpl_vars['filters_has_value']->value&&$_smarty_tpl->tpl_vars['order_by']->value=='position'&&$_smarty_tpl->tpl_vars['order_way']->value!='DESC') {?>
<div class="dragGroup">
<div class="positions">
<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['position']+1;?>
</div>
</div>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['position']+1;?>
<?php }?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['image'])) {?>
<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['icon'])) {?>
<?php if (is_array($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value])) {?>
<?php if (isset($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['class'])) {?>
<i class="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['class'];?>
"></i>
<?php } else { ?>
<img src="../img/admin/<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['src'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['alt'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['alt'];?>
" />
<?php }?>
<?php }?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type'])&&$_smarty_tpl->tpl_vars['params']->value['type']=='price') {?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]),$_smarty_tpl);?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['float'])) {?>
<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type'])&&$_smarty_tpl->tpl_vars['params']->value['type']=='date') {?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value],'full'=>0),$_smarty_tpl);?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type'])&&$_smarty_tpl->tpl_vars['params']->value['type']=='datetime') {?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value],'full'=>1),$_smarty_tpl);?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type'])&&$_smarty_tpl->tpl_vars['params']->value['type']=='decimal') {?>
<?php echo sprintf("%.2f",$_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]);?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type'])&&$_smarty_tpl->tpl_vars['params']->value['type']=='percent') {?>
<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];?>
<?php echo smartyTranslate(array('s'=>'%'),$_smarty_tpl);?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['type'])&&$_smarty_tpl->tpl_vars['params']->value['type']=='editable'&&isset($_smarty_tpl->tpl_vars['tr']->value['id'])) {?>
<input type="text" name="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['tr']->value['id'];?>
" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], ENT_QUOTES, 'UTF-8', true);?>
" class="<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" />
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['callback'])) {?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['maxlength'])&&Tools::strlen($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value])>$_smarty_tpl->tpl_vars['params']->value['maxlength']) {?>
<span title="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];?>
"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value],$_smarty_tpl->tpl_vars['params']->value['maxlength'],'...');?>
</span>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];?>
<?php }?>
<?php } elseif ($_smarty_tpl->tpl_vars['key']->value=='color') {?>
<?php if (!is_array($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value])) {?>
<div style="background-color: <?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value];?>
;" class="attributes-color-container"></div>
<?php } else { ?>
<img src="<?php echo $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value]['texture'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['tr']->value['name'];?>
" class="attributes-color-container" />
<?php }?>
<?php } elseif (isset($_smarty_tpl->tpl_vars['params']->value['maxlength'])&&Tools::strlen($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value])>$_smarty_tpl->tpl_vars['params']->value['maxlength']) {?>
<span title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], ENT_QUOTES, 'UTF-8', true);?>
"><?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value],$_smarty_tpl->tpl_vars['params']->value['maxlength'],'...'), ENT_QUOTES, 'UTF-8', true);?>
</span>
<?php } else { ?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['key']->value], ENT_QUOTES, 'UTF-8', true);?>
<?php }?>
<?php } else { ?>
--
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['suffix'])) {?><?php echo $_smarty_tpl->tpl_vars['params']->value['suffix'];?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['color'])&&isset($_smarty_tpl->tpl_vars['tr']->value['color'])) {?>
</span>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['badge_danger'])&&$_smarty_tpl->tpl_vars['params']->value['badge_danger']&&isset($_smarty_tpl->tpl_vars['tr']->value['badge_danger'])&&$_smarty_tpl->tpl_vars['tr']->value['badge_danger']==$_smarty_tpl->tpl_vars['params']->value['badge_danger']) {?></span><?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['badge_warning'])&&$_smarty_tpl->tpl_vars['params']->value['badge_warning']&&isset($_smarty_tpl->tpl_vars['tr']->value['badge_warning'])&&$_smarty_tpl->tpl_vars['tr']->value['badge_warning']==$_smarty_tpl->tpl_vars['params']->value['badge_warning']) {?></span><?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['badge_success'])&&$_smarty_tpl->tpl_vars['params']->value['badge_success']&&isset($_smarty_tpl->tpl_vars['tr']->value['badge_success'])&&$_smarty_tpl->tpl_vars['tr']->value['badge_success']==$_smarty_tpl->tpl_vars['params']->value['badge_success']) {?></span><?php }?>
</td>
<?php } ?>
<?php if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {?>
<td title="<?php echo $_smarty_tpl->tpl_vars['tr']->value['shop_name'];?>
">
<?php if (isset($_smarty_tpl->tpl_vars['tr']->value['shop_short_name'])) {?>
<?php echo $_smarty_tpl->tpl_vars['tr']->value['shop_short_name'];?>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['tr']->value['shop_name'];?>
<?php }?>
</td>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['has_actions']->value) {?>
<td class="text-right">
<?php $_smarty_tpl->tpl_vars['compiled_actions'] = new Smarty_variable(array(), null, 0);?>
<?php $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['action']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_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;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['action']->key;
?>
<?php if (isset($_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['action']->value])) {?>
<?php if ($_smarty_tpl->tpl_vars['key']->value==0) {?>
<?php $_smarty_tpl->tpl_vars['action'] = new Smarty_variable($_smarty_tpl->tpl_vars['action']->value, null, 0);?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['action']->value=='delete'&&count($_smarty_tpl->tpl_vars['actions']->value)>2) {?>
<?php $_smarty_tpl->createLocalArrayVariable('compiled_actions', null, 0);
$_smarty_tpl->tpl_vars['compiled_actions']->value[] = 'divider';?>
<?php }?>
<?php $_smarty_tpl->createLocalArrayVariable('compiled_actions', null, 0);
$_smarty_tpl->tpl_vars['compiled_actions']->value[] = $_smarty_tpl->tpl_vars['tr']->value[$_smarty_tpl->tpl_vars['action']->value];?>
<?php }?>
<?php } ?>
<?php if (count($_smarty_tpl->tpl_vars['compiled_actions']->value)>0) {?>
<?php if (count($_smarty_tpl->tpl_vars['compiled_actions']->value)>1) {?><div class="btn-group-action"><?php }?>
<div class="btn-group pull-right">
<?php echo $_smarty_tpl->tpl_vars['compiled_actions']->value[0];?>
<?php if (count($_smarty_tpl->tpl_vars['compiled_actions']->value)>1) {?>
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="icon-caret-down"></i>&nbsp;
</button>
<ul class="dropdown-menu">
<?php $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['action']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['compiled_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;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['action']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['key']->value!=0) {?>
<li <?php if ($_smarty_tpl->tpl_vars['action']->value=='divider') {?>class="divider"<?php }?>>
<?php if ($_smarty_tpl->tpl_vars['action']->value!='divider') {?><?php echo $_smarty_tpl->tpl_vars['action']->value;?>
<?php }?>
</li>
<?php }?>
<?php } ?>
</ul>
<?php }?>
</div>
<?php if (count($_smarty_tpl->tpl_vars['compiled_actions']->value)>1) {?></div><?php }?>
<?php }?>
</td>
<?php }?>
</tr>
<?php } ?>
<?php } else { ?>
<tr>
<td class="list-empty" colspan="<?php echo count($_smarty_tpl->tpl_vars['fields_display']->value)+1;?>
">
<div class="list-empty-msg">
<i class="icon-warning-sign list-empty-icon"></i>
<?php echo smartyTranslate(array('s'=>'No records found'),$_smarty_tpl);?>
</div>
</td>
</tr>
<?php }?>
</tbody>
<?php }} ?>

View File

@@ -0,0 +1,56 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:54
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/view/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:63286593856ab3b9eb36a91-40144601%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2d1c3e694fea1839c5cf03debd2f4b5f6fa708a0' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/view/view.tpl',
1 => 1454062117,
2 => 'file',
),
),
'nocache_hash' => '63286593856ab3b9eb36a91-40144601',
'function' =>
array (
),
'variables' =>
array (
'name_controller' => 0,
'hookName' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3b9eb7b7a0_05806183',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3b9eb7b7a0_05806183')) {function content_56ab3b9eb7b7a0_05806183($_smarty_tpl) {?>
<div class="leadin"></div>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayAdminView'),$_smarty_tpl);?>
<?php if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) {?>
<?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?>display<?php echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value);?>
View<?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]['hook'][0][0]->smartyHook(array('h'=>$_smarty_tpl->tpl_vars['hookName']->value),$_smarty_tpl);?>
<?php } elseif (isset($_GET['controller'])) {?>
<?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?>display<?php echo htmlentities(ucfirst($_GET['controller']));?>
View<?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]['hook'][0][0]->smartyHook(array('h'=>$_smarty_tpl->tpl_vars['hookName']->value),$_smarty_tpl);?>
<?php }?>
<?php }} ?>

View File

@@ -0,0 +1,192 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 01:03:39
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/controllers/dashboard/helpers/view/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:178026937756ab8d5b20e8b7-59201091%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2db24fa546d530b73c372136a078aeeee057fb8d' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/controllers/dashboard/helpers/view/view.tpl',
1 => 1454062131,
2 => 'file',
),
),
'nocache_hash' => '178026937756ab8d5b20e8b7-59201091',
'function' =>
array (
),
'variables' =>
array (
'link' => 0,
'dashboard_use_push' => 0,
'warning' => 0,
'action' => 0,
'preselect_date_range' => 0,
'date_from' => 0,
'date_to' => 0,
'calendar' => 0,
'hookDashboardZoneOne' => 0,
'hookDashboardZoneTwo' => 0,
'lang_iso' => 0,
'host_mode' => 0,
'new_version_url' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8d5b297696_86437951',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8d5b297696_86437951')) {function content_56ab8d5b297696_86437951($_smarty_tpl) {?>
<script>
var dashboard_ajax_url = '<?php echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminDashboard');?>
';
var adminstats_ajax_url = '<?php echo $_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminStats');?>
';
var no_results_translation = '<?php echo smartyTranslate(array('s'=>'No result','js'=>1),$_smarty_tpl);?>
';
var dashboard_use_push = '<?php echo intval($_smarty_tpl->tpl_vars['dashboard_use_push']->value);?>
';
var read_more = '<?php echo smartyTranslate(array('s'=>'Read more','js'=>1),$_smarty_tpl);?>
';
</script>
<div id="dashboard">
<div class="row">
<div class="col-lg-12">
<?php if ($_smarty_tpl->tpl_vars['warning']->value) {?>
<div class="alert alert-warning"><?php echo $_smarty_tpl->tpl_vars['warning']->value;?>
</div>
<?php }?>
<div id="calendar" class="panel">
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post" id="calendar_form" name="calendar_form" class="form-inline">
<div class="btn-group">
<button type="button" name="submitDateDay" class="btn btn-default submitDateDay<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='day') {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Day'),$_smarty_tpl);?>
</button>
<button type="button" name="submitDateMonth" class="btn btn-default submitDateMonth<?php if ((!isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)||!$_smarty_tpl->tpl_vars['preselect_date_range']->value)||(isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='month')) {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Month'),$_smarty_tpl);?>
</button>
<button type="button" name="submitDateYear" class="btn btn-default submitDateYear<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='year') {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Year'),$_smarty_tpl);?>
</button>
<button type="button" name="submitDateDayPrev" class="btn btn-default submitDateDayPrev<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='prev-day') {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Day'),$_smarty_tpl);?>
-1
</button>
<button type="button" name="submitDateMonthPrev" class="btn btn-default submitDateMonthPrev<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='prev-month') {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Month'),$_smarty_tpl);?>
-1
</button>
<button type="button" name="submitDateYearPrev" class="btn btn-default submitDateYearPrev<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)&&$_smarty_tpl->tpl_vars['preselect_date_range']->value=='prev-year') {?> active<?php }?>">
<?php echo smartyTranslate(array('s'=>'Year'),$_smarty_tpl);?>
-1
</button>
<!--
<button type="submit" name="submitDateRealTime" class="hide btn btn-default submitDateRealTime <?php if ($_smarty_tpl->tpl_vars['dashboard_use_push']->value) {?>active<?php }?>" value="<?php echo !intval($_smarty_tpl->tpl_vars['dashboard_use_push']->value);?>
">
<?php echo smartyTranslate(array('s'=>'Real Time'),$_smarty_tpl);?>
</button> -->
</div>
<input type="hidden" name="datepickerFrom" id="datepickerFrom" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_from']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="form-control">
<input type="hidden" name="datepickerTo" id="datepickerTo" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_to']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="form-control">
<input type="hidden" name="preselectDateRange" id="preselectDateRange" value="<?php if (isset($_smarty_tpl->tpl_vars['preselect_date_range']->value)) {?><?php echo $_smarty_tpl->tpl_vars['preselect_date_range']->value;?>
<?php }?>" class="form-control">
<div class="form-group pull-right">
<button id="datepickerExpand" class="btn btn-default" type="button">
<i class="icon-calendar-empty"></i>
<span class="hidden-xs">
<?php echo smartyTranslate(array('s'=>'From'),$_smarty_tpl);?>
<strong class="text-info" id="datepicker-from-info"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_from']->value, ENT_QUOTES, 'UTF-8', true);?>
</strong>
<?php echo smartyTranslate(array('s'=>'To'),$_smarty_tpl);?>
<strong class="text-info" id="datepicker-to-info"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['date_to']->value, ENT_QUOTES, 'UTF-8', true);?>
</strong>
<strong class="text-info" id="datepicker-diff-info"></strong>
</span>
<i class="icon-caret-down"></i>
</button>
</div>
<?php echo $_smarty_tpl->tpl_vars['calendar']->value;?>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 col-lg-3" id="hookDashboardZoneOne">
<?php echo $_smarty_tpl->tpl_vars['hookDashboardZoneOne']->value;?>
</div>
<div class="col-md-8 col-lg-7" id="hookDashboardZoneTwo">
<?php echo $_smarty_tpl->tpl_vars['hookDashboardZoneTwo']->value;?>
<div id="dashaddons" class="row-margin-bottom">
<a href="http://addons.prestashop.com/en/209-dashboards?utm_source=back-office&amp;utm_medium=dashboard&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">
<i class="icon-plus"></i> <?php echo smartyTranslate(array('s'=>'Add more dashboard modules'),$_smarty_tpl);?>
</a>
</div>
</div>
<div class="col-md-12 col-lg-2">
<section class="dash_news panel">
<h3><i class="icon-rss"></i> <?php echo smartyTranslate(array('s'=>'PrestaShop News'),$_smarty_tpl);?>
</h3>
<div class="dash_news_content"></div>
<div class="text-center"><h4><a href="http://www.prestashop.com/blog/" onclick="return !window.open(this.href);"><?php echo smartyTranslate(array('s'=>'Find more news'),$_smarty_tpl);?>
</a></h4></div>
</section>
<section id="dash_version" class="visible-lg">
<iframe style="overflow:hidden;border:none" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['new_version_url']->value, ENT_QUOTES, 'UTF-8', true);?>
" ></iframe>
</section>
<section class="dash_links panel">
<h3><i class="icon-link"></i> <?php echo smartyTranslate(array('s'=>"Useful links"),$_smarty_tpl);?>
</h3>
<dl>
<dt><a href="http://doc.prestashop.com/display/PS16?utm_source=back-office&amp;utm_medium=dashboard&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 echo smartyTranslate(array('s'=>"Official Documentation"),$_smarty_tpl);?>
</a></dt>
<dd><?php echo smartyTranslate(array('s'=>"User, Developer and Designer Guides"),$_smarty_tpl);?>
</dd>
</dl>
<dl>
<dt><a href="http://www.prestashop.com/forums?utm_source=back-office&amp;utm_medium=dashboard&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 echo smartyTranslate(array('s'=>"PrestaShop Forum"),$_smarty_tpl);?>
</a></dt>
<dd><?php echo smartyTranslate(array('s'=>"Connect with the PrestaShop community"),$_smarty_tpl);?>
</dd>
</dl>
<dl>
<dt><a href="http://addons.prestashop.com?utm_source=back-office&amp;utm_medium=dashboard&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 echo smartyTranslate(array('s'=>"PrestaShop Addons"),$_smarty_tpl);?>
</a></dt>
<dd><?php echo smartyTranslate(array('s'=>"Enhance your store with templates & modules"),$_smarty_tpl);?>
</dd>
</dl>
<dl>
<dt><a href="http://forge.prestashop.com?utm_source=back-office&amp;utm_medium=dashboard&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 echo smartyTranslate(array('s'=>"The Forge"),$_smarty_tpl);?>
</a></dt>
<dd><?php echo smartyTranslate(array('s'=>"Report issues in the Bug Tracker"),$_smarty_tpl);?>
</dd>
</dl>
<dl>
<dt><a href="http://www.prestashop.com/en/contact-us?utm_source=back-office&amp;utm_medium=dashboard&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 echo smartyTranslate(array('s'=>"Contact Us!"),$_smarty_tpl);?>
</a></dt>
<dd></dd>
</dl>
</section>
</div>
</div>
</div>
<?php }} ?>

View File

@@ -0,0 +1,53 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:58
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/configuration_bar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:109013307056ab3ba21d5752-55308112%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2ed67f7878c9d8cde60105d537c86d2a9d536182' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/modules/configuration_bar.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '109013307056ab3ba21d5752-55308112',
'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_56ab3ba21f2068_46932566',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba21f2068_46932566')) {function content_56ab3ba21f2068_46932566($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_regex_replace')) include '/home/sumit/public_html/html/hotelcommerce-master/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,606 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:56
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/list/list_header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:128418072756ab3ba03bd1a0-03829959%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'30aa8bb015cd7ad3cba490136d171dc055eec341' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/list/list_header.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '128418072756ab3ba03bd1a0-03829959',
'function' =>
array (
),
'variables' =>
array (
'ajax' => 0,
'is_order_position' => 0,
'list_id' => 0,
'order_way' => 0,
'simple_header' => 0,
'name_controller' => 0,
'hookName' => 0,
'sql' => 0,
'link' => 0,
'action' => 0,
'page' => 0,
'selected_pagination' => 0,
'icon' => 0,
'title' => 0,
'toolbar_btn' => 0,
'list_total' => 0,
'k' => 0,
'table' => 0,
'btn' => 0,
'sql_manager' => 0,
'show_toolbar' => 0,
'bulk_actions' => 0,
'has_bulk_actions' => 0,
'fields_display' => 0,
'y' => 0,
'param' => 0,
'use_overflow' => 0,
'table_id' => 0,
'table_dnd' => 0,
'params' => 0,
'order_by' => 0,
'key' => 0,
'hint' => 0,
'show_filters' => 0,
'currentIndex' => 0,
'token' => 0,
'identifier' => 0,
'shop_link_type' => 0,
'has_actions' => 0,
'row_hover' => 0,
'option_value' => 0,
'option_display' => 0,
'filters_has_value' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba05fc437_04112463',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba05fc437_04112463')) {function content_56ab3ba05fc437_04112463($_smarty_tpl) {?><?php if (!is_callable('smarty_function_math')) include '/home/sumit/public_html/html/hotelcommerce-master/tools/smarty/plugins/function.math.php';
?>
<?php if ($_smarty_tpl->tpl_vars['ajax']->value) {?>
<script type="text/javascript">
$(function () {
$(".ajax_table_link").click(function () {
var link = $(this);
$.post($(this).attr('href'), function (data) {
if (data.success == 1) {
showSuccessMessage(data.text);
if (link.hasClass('action-disabled')){
link.removeClass('action-disabled').addClass('action-enabled');
} else {
link.removeClass('action-enabled').addClass('action-disabled');
}
link.children().each(function () {
if ($(this).hasClass('hidden')) {
$(this).removeClass('hidden');
} else {
$(this).addClass('hidden');
}
});
} else {
showErrorMessage(data.text);
}
}, 'json');
return false;
});
});
</script>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['is_order_position']->value) {?>
<script type="text/javascript" src="../js/jquery/plugins/jquery.tablednd.js"></script>
<script type="text/javascript">
var come_from = '<?php echo addslashes($_smarty_tpl->tpl_vars['list_id']->value);?>
';
var alternate = <?php if ($_smarty_tpl->tpl_vars['order_way']->value=='DESC') {?>'1'<?php } else { ?>'0'<?php }?>;
</script>
<script type="text/javascript" src="../js/admin/dnd.js"></script>
<?php }?>
<?php if (!$_smarty_tpl->tpl_vars['simple_header']->value) {?>
<script type="text/javascript">
$(function() {
$('table.<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
.filter').keypress(function(e){
var key = (e.keyCode ? e.keyCode : e.which);
if (key == 13)
{
e.preventDefault();
formSubmit(e, 'submitFilterButton<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
');
}
})
$('#submitFilterButton<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
').click(function() {
$('#submitFilter<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
').val(1);
});
if ($("table .datepicker").length > 0) {
$("table .datepicker").datepicker({
prevText: '',
nextText: '',
altFormat: 'yy-mm-dd'
});
}
});
</script>
<?php }?>
<?php if (!$_smarty_tpl->tpl_vars['simple_header']->value) {?>
<div class="leadin">
</div>
<?php }?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayAdminListBefore'),$_smarty_tpl);?>
<?php if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) {?>
<?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?>display<?php echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value);?>
ListBefore<?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]['hook'][0][0]->smartyHook(array('h'=>$_smarty_tpl->tpl_vars['hookName']->value),$_smarty_tpl);?>
<?php } elseif (isset($_GET['controller'])) {?>
<?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?>display<?php echo htmlentities(ucfirst($_GET['controller']));?>
ListBefore<?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]['hook'][0][0]->smartyHook(array('h'=>$_smarty_tpl->tpl_vars['hookName']->value),$_smarty_tpl);?>
<?php }?>
<div class="alert alert-warning" id="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
-empty-filters-alert" style="display:none;"><?php echo smartyTranslate(array('s'=>'Please fill at least one field to perform a search in this list.'),$_smarty_tpl);?>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['sql']->value)&&$_smarty_tpl->tpl_vars['sql']->value) {?>
<form id="sql_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminRequestSql'), ENT_QUOTES, 'UTF-8', true);?>
&amp;addrequest_sql" method="post" class="hide">
<input type="hidden" id="sql_query_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
" name="sql" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sql']->value, ENT_QUOTES, 'UTF-8', true);?>
"/>
<input type="hidden" id="sql_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
" name="name" value=""/>
</form>
<?php }?>
<form method="post" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="form-horizontal clearfix" id="form-<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
">
<?php if (!$_smarty_tpl->tpl_vars['simple_header']->value) {?>
<input type="hidden" id="submitFilter<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
" name="submitFilter<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
" value="0"/>
<input type="hidden" name="page" value="<?php echo intval($_smarty_tpl->tpl_vars['page']->value);?>
"/>
<input type="hidden" name="selected_pagination" value="<?php echo intval($_smarty_tpl->tpl_vars['selected_pagination']->value);?>
"/>
<div class="panel col-lg-12">
<div class="panel-heading">
<?php if (isset($_smarty_tpl->tpl_vars['icon']->value)) {?><i class="<?php echo $_smarty_tpl->tpl_vars['icon']->value;?>
"></i> <?php }?><?php if (is_array($_smarty_tpl->tpl_vars['title']->value)) {?><?php echo end($_smarty_tpl->tpl_vars['title']->value);?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value)&&count($_smarty_tpl->tpl_vars['toolbar_btn']->value)>0) {?>
<span class="badge"><?php echo $_smarty_tpl->tpl_vars['list_total']->value;?>
</span>
<span class="panel-heading-action">
<?php $_smarty_tpl->tpl_vars['btn'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['btn']->_loop = false;
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['toolbar_btn']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['btn']->key => $_smarty_tpl->tpl_vars['btn']->value) {
$_smarty_tpl->tpl_vars['btn']->_loop = true;
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['btn']->key;
?>
<?php if ($_smarty_tpl->tpl_vars['k']->value!='modules-list'&&$_smarty_tpl->tpl_vars['k']->value!='back') {?>
<a id="desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
-<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['imgclass'];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
<?php }?>" class="list-toolbar-btn<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['target'])&&$_smarty_tpl->tpl_vars['btn']->value['target']) {?> _blank<?php }?>"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['href'])) {?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true);?>
"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['js'])&&$_smarty_tpl->tpl_vars['btn']->value['js']) {?> onclick="<?php echo $_smarty_tpl->tpl_vars['btn']->value['js'];?>
"<?php }?>>
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="<?php echo smartyTranslate(array('s'=>$_smarty_tpl->tpl_vars['btn']->value['desc']),$_smarty_tpl);?>
" data-html="true" data-placement="top">
<i class="process-icon-<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['imgclass'];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['btn']->value['class'];?>
<?php }?>"></i>
</span>
</a>
<?php }?>
<?php } ?>
<a class="list-toolbar-btn" href="javascript:location.reload();">
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="<?php echo smartyTranslate(array('s'=>'Refresh list'),$_smarty_tpl);?>
" data-html="true" data-placement="top">
<i class="process-icon-refresh"></i>
</span>
</a>
<?php if (isset($_smarty_tpl->tpl_vars['sql']->value)&&$_smarty_tpl->tpl_vars['sql']->value) {?>
<?php $_smarty_tpl->tpl_vars['sql_manager'] = new Smarty_variable(Profile::getProfileAccess(Context::getContext()->employee->id_profile,Tab::getIdFromClassName('AdminRequestSql')), null, 0);?>
<?php if ($_smarty_tpl->tpl_vars['sql_manager']->value['view']==1) {?>
<a class="list-toolbar-btn" href="javascript:void(0);" onclick="$('.leadin').first().append('<div class=\'alert alert-info\'>' + $('#sql_query_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
').val() + '</div>'); $(this).attr('onclick', '');">
<span class="label-tooltip" data-toggle="tooltip" data-original-title="<?php echo smartyTranslate(array('s'=>'Show SQL query'),$_smarty_tpl);?>
" data-html="true" data-placement="top" >
<i class="process-icon-terminal"></i>
</span>
</a>
<a class="list-toolbar-btn" href="javascript:void(0);" onclick="$('#sql_name_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
').val(createSqlQueryName()); $('#sql_query_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
').val($('#sql_query_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
').val().replace(/\s+limit\s+[0-9,\s]+$/ig, '').trim()); $('#sql_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['list_id']->value, ENT_QUOTES, 'UTF-8', true);?>
').submit();">
<span class="label-tooltip" data-toggle="tooltip" data-original-title="<?php echo smartyTranslate(array('s'=>'Export to SQL Manager'),$_smarty_tpl);?>
" data-html="true" data-placement="top" >
<i class="process-icon-database"></i>
</span>
</a>
<?php }?>
<?php }?>
</span>
<?php }?>
</div>
<?php if ($_smarty_tpl->tpl_vars['show_toolbar']->value) {?>
<script type="text/javascript">
//<![CDATA[
var submited = false;
$(function() {
//get reference on save link
btn_save = $('i[class~="process-icon-save"]').parent();
//get reference on form submit button
btn_submit = $('#<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_form_submit_btn');
if (btn_save.length > 0 && btn_submit.length > 0) {
//get reference on save and stay link
btn_save_and_stay = $('i[class~="process-icon-save-and-stay"]').parent();
//get reference on current save link label
lbl_save = $('#desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
-save div');
//override save link label with submit button value
if (btn_submit.val().length > 0) {
lbl_save.html(btn_submit.attr("value"));
}
if (btn_save_and_stay.length > 0) {
//get reference on current save link label
lbl_save_and_stay = $('#desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
-save-and-stay div');
//override save and stay link label with submit button value
if (btn_submit.val().length > 0 && lbl_save_and_stay && !lbl_save_and_stay.hasClass('locked')) {
lbl_save_and_stay.html(btn_submit.val() + " <?php echo smartyTranslate(array('s'=>'and stay'),$_smarty_tpl);?>
");
}
}
//hide standard submit button
btn_submit.hide();
//bind enter key press to validate form
$('#<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_form').keypress(function (e) {
if (e.which == 13 && e.target.localName != 'textarea') {
$('#desc-<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
-save').click();
}
});
//submit the form
btn_save.click(function() {
// Avoid double click
if (submited) {
return false;
}
submited = true;
//add hidden input to emulate submit button click when posting the form -> field name posted
btn_submit.before('<input type="hidden" name="'+btn_submit.attr("name")+'" value="1" />');
$('#<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_form').submit();
return false;
});
if (btn_save_and_stay) {
btn_save_and_stay.click(function() {
//add hidden input to emulate submit button click when posting the form -> field name posted
btn_submit.before('<input type="hidden" name="'+btn_submit.attr("name")+'AndStay" value="1" />');
$('#<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_form').submit();
return false;
});
}
}
});
//]]>
</script>
<?php }?>
<?php } elseif ($_smarty_tpl->tpl_vars['simple_header']->value) {?>
<div class="panel col-lg-12">
<?php if (isset($_smarty_tpl->tpl_vars['title']->value)) {?><h3><?php if (isset($_smarty_tpl->tpl_vars['icon']->value)) {?><i class="<?php echo $_smarty_tpl->tpl_vars['icon']->value;?>
"></i> <?php }?><?php if (is_array($_smarty_tpl->tpl_vars['title']->value)) {?><?php echo end($_smarty_tpl->tpl_vars['title']->value);?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
<?php }?></h3><?php }?>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['bulk_actions']->value&&$_smarty_tpl->tpl_vars['has_bulk_actions']->value) {?>
<?php $_smarty_tpl->tpl_vars['y'] = new Smarty_variable(2, null, 0);?>
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars['y'] = new Smarty_variable(1, null, 0);?>
<?php }?>
<style>
@media (max-width: 992px) {
<?php $_smarty_tpl->tpl_vars['param'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['param']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['fields_display']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['params']['index']=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['param']->key => $_smarty_tpl->tpl_vars['param']->value) {
$_smarty_tpl->tpl_vars['param']->_loop = true;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['params']['index']++;
?>
.table-responsive-row td:nth-of-type(<?php echo smarty_function_math(array('equation'=>"x+y",'x'=>$_smarty_tpl->getVariable('smarty')->value['foreach']['params']['index'],'y'=>$_smarty_tpl->tpl_vars['y']->value),$_smarty_tpl);?>
):before {
content: "<?php echo $_smarty_tpl->tpl_vars['param']->value['title'];?>
";
}
<?php } ?>
}
</style>
<div class="table-responsive-row clearfix<?php if (isset($_smarty_tpl->tpl_vars['use_overflow']->value)&&$_smarty_tpl->tpl_vars['use_overflow']->value) {?> overflow-y<?php }?>">
<table<?php if ($_smarty_tpl->tpl_vars['table_id']->value) {?> id="table-<?php echo $_smarty_tpl->tpl_vars['table_id']->value;?>
"<?php }?> class="table<?php if ($_smarty_tpl->tpl_vars['table_dnd']->value) {?> tableDnD<?php }?> <?php echo $_smarty_tpl->tpl_vars['table']->value;?>
" >
<thead>
<tr class="nodrag nodrop">
<?php if ($_smarty_tpl->tpl_vars['bulk_actions']->value&&$_smarty_tpl->tpl_vars['has_bulk_actions']->value) {?>
<th class="center fixed-width-xs"></th>
<?php }?>
<?php $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['params']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['fields_display']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
?>
<th class="<?php if (isset($_smarty_tpl->tpl_vars['params']->value['class'])) {?><?php echo $_smarty_tpl->tpl_vars['params']->value['class'];?>
<?php }?><?php if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) {?> <?php echo $_smarty_tpl->tpl_vars['params']->value['align'];?>
<?php }?>">
<span class="title_box<?php if (isset($_smarty_tpl->tpl_vars['order_by']->value)&&($_smarty_tpl->tpl_vars['key']->value==$_smarty_tpl->tpl_vars['order_by']->value)) {?> active<?php }?>">
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['hint'])) {?>
<span class="label-tooltip" data-toggle="tooltip"
title="
<?php if (is_array($_smarty_tpl->tpl_vars['params']->value['hint'])) {?>
<?php $_smarty_tpl->tpl_vars['hint'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['hint']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['params']->value['hint']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['hint']->key => $_smarty_tpl->tpl_vars['hint']->value) {
$_smarty_tpl->tpl_vars['hint']->_loop = true;
?>
<?php if (is_array($_smarty_tpl->tpl_vars['hint']->value)) {?>
<?php echo $_smarty_tpl->tpl_vars['hint']->value['text'];?>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['hint']->value;?>
<?php }?>
<?php } ?>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['params']->value['hint'];?>
<?php }?>
">
<?php echo $_smarty_tpl->tpl_vars['params']->value['title'];?>
</span>
<?php } else { ?>
<?php echo $_smarty_tpl->tpl_vars['params']->value['title'];?>
<?php }?>
<?php if ((!isset($_smarty_tpl->tpl_vars['params']->value['orderby'])||$_smarty_tpl->tpl_vars['params']->value['orderby'])&&!$_smarty_tpl->tpl_vars['simple_header']->value&&$_smarty_tpl->tpl_vars['show_filters']->value) {?>
<a <?php if (isset($_smarty_tpl->tpl_vars['order_by']->value)&&($_smarty_tpl->tpl_vars['key']->value==$_smarty_tpl->tpl_vars['order_by']->value)&&($_smarty_tpl->tpl_vars['order_way']->value=='DESC')) {?>class="active"<?php }?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Orderby=<?php echo urlencode($_smarty_tpl->tpl_vars['key']->value);?>
&amp;<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Orderway=desc&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php if (isset($_GET[$_smarty_tpl->tpl_vars['identifier']->value])) {?>&amp;<?php echo $_smarty_tpl->tpl_vars['identifier']->value;?>
=<?php echo intval($_GET[$_smarty_tpl->tpl_vars['identifier']->value]);?>
<?php }?>">
<i class="icon-caret-down"></i>
</a>
<a <?php if (isset($_smarty_tpl->tpl_vars['order_by']->value)&&($_smarty_tpl->tpl_vars['key']->value==$_smarty_tpl->tpl_vars['order_by']->value)&&($_smarty_tpl->tpl_vars['order_way']->value=='ASC')) {?>class="active"<?php }?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Orderby=<?php echo urlencode($_smarty_tpl->tpl_vars['key']->value);?>
&amp;<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Orderway=asc&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
<?php if (isset($_GET[$_smarty_tpl->tpl_vars['identifier']->value])) {?>&amp;<?php echo $_smarty_tpl->tpl_vars['identifier']->value;?>
=<?php echo intval($_GET[$_smarty_tpl->tpl_vars['identifier']->value]);?>
<?php }?>">
<i class="icon-caret-up"></i>
</a>
<?php }?>
</span>
</th>
<?php } ?>
<?php if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {?>
<th>
<span class="title_box">
<?php if ($_smarty_tpl->tpl_vars['shop_link_type']->value=='shop') {?>
<?php echo smartyTranslate(array('s'=>'Shop'),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'Shop group'),$_smarty_tpl);?>
<?php }?>
</span>
</th>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['has_actions']->value||$_smarty_tpl->tpl_vars['show_filters']->value) {?>
<th><?php if (!$_smarty_tpl->tpl_vars['simple_header']->value) {?><?php }?></th>
<?php }?>
</tr>
<?php if (!$_smarty_tpl->tpl_vars['simple_header']->value&&$_smarty_tpl->tpl_vars['show_filters']->value) {?>
<tr class="nodrag nodrop filter <?php if ($_smarty_tpl->tpl_vars['row_hover']->value) {?>row_hover<?php }?>">
<?php if ($_smarty_tpl->tpl_vars['has_bulk_actions']->value) {?>
<th class="text-center">
--
</th>
<?php }?>
<?php $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['params']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['fields_display']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
?>
<th <?php if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) {?> class="<?php echo $_smarty_tpl->tpl_vars['params']->value['align'];?>
" <?php }?>>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['search'])&&!$_smarty_tpl->tpl_vars['params']->value['search']) {?>
--
<?php } else { ?>
<?php if ($_smarty_tpl->tpl_vars['params']->value['type']=='bool') {?>
<select class="filter fixed-width-sm center" name="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Filter_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
">
<option value="">-</option>
<option value="1" <?php if ($_smarty_tpl->tpl_vars['params']->value['value']==1) {?> selected="selected" <?php }?>><?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
</option>
<option value="0" <?php if ($_smarty_tpl->tpl_vars['params']->value['value']==0&&$_smarty_tpl->tpl_vars['params']->value['value']!='') {?> selected="selected" <?php }?>><?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
</option>
</select>
<?php } elseif ($_smarty_tpl->tpl_vars['params']->value['type']=='date'||$_smarty_tpl->tpl_vars['params']->value['type']=='datetime') {?>
<div class="date_range row">
<div class="input-group fixed-width-md center">
<input type="text" class="filter datepicker date-input form-control" id="local_<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_0" name="local_<?php echo $_smarty_tpl->tpl_vars['params']->value['name_date'];?>
[0]" placeholder="<?php echo smartyTranslate(array('s'=>'From'),$_smarty_tpl);?>
" />
<input type="hidden" id="<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_0" name="<?php echo $_smarty_tpl->tpl_vars['params']->value['name_date'];?>
[0]" value="<?php if (isset($_smarty_tpl->tpl_vars['params']->value['value'][0])) {?><?php echo $_smarty_tpl->tpl_vars['params']->value['value'][0];?>
<?php }?>">
<span class="input-group-addon">
<i class="icon-calendar"></i>
</span>
</div>
<div class="input-group fixed-width-md center">
<input type="text" class="filter datepicker date-input form-control" id="local_<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_1" name="local_<?php echo $_smarty_tpl->tpl_vars['params']->value['name_date'];?>
[1]" placeholder="<?php echo smartyTranslate(array('s'=>'To'),$_smarty_tpl);?>
" />
<input type="hidden" id="<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_1" name="<?php echo $_smarty_tpl->tpl_vars['params']->value['name_date'];?>
[1]" value="<?php if (isset($_smarty_tpl->tpl_vars['params']->value['value'][1])) {?><?php echo $_smarty_tpl->tpl_vars['params']->value['value'][1];?>
<?php }?>">
<span class="input-group-addon">
<i class="icon-calendar"></i>
</span>
</div>
<script>
$(function() {
var dateStart = parseDate($("#<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_0").val());
var dateEnd = parseDate($("#<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_1").val());
$("#local_<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_0").datepicker("option", "altField", "#<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_0");
$("#local_<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_1").datepicker("option", "altField", "#<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_1");
if (dateStart !== null){
$("#local_<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_0").datepicker("setDate", dateStart);
}
if (dateEnd !== null){
$("#local_<?php echo $_smarty_tpl->tpl_vars['params']->value['id_date'];?>
_1").datepicker("setDate", dateEnd);
}
});
</script>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['params']->value['type']=='select') {?>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['filter_key'])) {?>
<select class="filter center" onchange="$('#submitFilterButton<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
').focus();$('#submitFilterButton<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
').click();" name="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Filter_<?php echo $_smarty_tpl->tpl_vars['params']->value['filter_key'];?>
" <?php if (isset($_smarty_tpl->tpl_vars['params']->value['width'])) {?> style="width:<?php echo $_smarty_tpl->tpl_vars['params']->value['width'];?>
px"<?php }?>>
<option value="" <?php if ($_smarty_tpl->tpl_vars['params']->value['value']=='') {?> selected="selected" <?php }?>>-</option>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['list'])&&is_array($_smarty_tpl->tpl_vars['params']->value['list'])) {?>
<?php $_smarty_tpl->tpl_vars['option_display'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['option_display']->_loop = false;
$_smarty_tpl->tpl_vars['option_value'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['params']->value['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['option_display']->key => $_smarty_tpl->tpl_vars['option_display']->value) {
$_smarty_tpl->tpl_vars['option_display']->_loop = true;
$_smarty_tpl->tpl_vars['option_value']->value = $_smarty_tpl->tpl_vars['option_display']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['option_value']->value;?>
" <?php if ((string)$_smarty_tpl->tpl_vars['option_display']->value===(string)$_smarty_tpl->tpl_vars['params']->value['value']||(string)$_smarty_tpl->tpl_vars['option_value']->value===(string)$_smarty_tpl->tpl_vars['params']->value['value']) {?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['option_display']->value;?>
</option>
<?php } ?>
<?php }?>
</select>
<?php }?>
<?php } else { ?>
<input type="text" class="filter" name="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
Filter_<?php if (isset($_smarty_tpl->tpl_vars['params']->value['filter_key'])) {?><?php echo $_smarty_tpl->tpl_vars['params']->value['filter_key'];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['key']->value;?>
<?php }?>" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['params']->value['value'], ENT_QUOTES, 'UTF-8', true);?>
" <?php if (isset($_smarty_tpl->tpl_vars['params']->value['width'])&&$_smarty_tpl->tpl_vars['params']->value['width']!='auto') {?> style="width:<?php echo $_smarty_tpl->tpl_vars['params']->value['width'];?>
px"<?php }?> />
<?php }?>
<?php }?>
</th>
<?php } ?>
<?php if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {?>
<th>--</th>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['has_actions']->value||$_smarty_tpl->tpl_vars['show_filters']->value) {?>
<th class="actions">
<?php if ($_smarty_tpl->tpl_vars['show_filters']->value) {?>
<span class="pull-right">
<button type="submit" id="submitFilterButton<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
" name="submitFilter" class="btn btn-default" data-list-id="<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
">
<i class="icon-search"></i> <?php echo smartyTranslate(array('s'=>'Search'),$_smarty_tpl);?>
</button>
<?php if ($_smarty_tpl->tpl_vars['filters_has_value']->value) {?>
<button type="submit" name="submitReset<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
" class="btn btn-warning">
<i class="icon-eraser"></i> <?php echo smartyTranslate(array('s'=>'Reset'),$_smarty_tpl);?>
</button>
<?php }?>
</span>
<?php }?>
</th>
<?php }?>
</tr>
<?php }?>
</thead>
<?php }} ?>

View File

@@ -0,0 +1,75 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 21:37:40
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin066crc2rr/themes/default/template/modal.tpl" */ ?>
<?php /*%%SmartyHeaderCode:31235011056ab7934641f31-36327219%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'30ab841218740c78b15f13acf71535d30704d435' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin066crc2rr/themes/default/template/modal.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '31235011056ab7934641f31-36327219',
'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_56ab79346d52b1_32389779',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab79346d52b1_32389779')) {function content_56ab79346d52b1_32389779($_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,146 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:01
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/tax_rules/helpers/list/list_header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:95565779856ab3ba5402482-33984985%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'30f1ada07e791e2e380ab8826829dce046382007' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/tax_rules/helpers/list/list_header.tpl',
1 => 1454062128,
2 => 'file',
),
),
'nocache_hash' => '95565779856ab3ba5402482-33984985',
'function' =>
array (
),
'variables' =>
array (
'name_controller' => 0,
'hookName' => 0,
'currentIndex' => 0,
'identifier' => 0,
'token' => 0,
'id_tax_rules_group' => 0,
'table' => 0,
'list_id' => 0,
'table_id' => 0,
'table_dnd' => 0,
'bulk_actions' => 0,
'has_bulk_actions' => 0,
'fields_display' => 0,
'params' => 0,
'shop_link_type' => 0,
'has_actions' => 0,
'filters_has_value' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba548b280_43911045',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba548b280_43911045')) {function content_56ab3ba548b280_43911045($_smarty_tpl) {?>
<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h'=>'displayAdminListBefore'),$_smarty_tpl);?>
<?php if (isset($_smarty_tpl->tpl_vars['name_controller']->value)) {?>
<?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?>display<?php echo ucfirst($_smarty_tpl->tpl_vars['name_controller']->value);?>
ListBefore<?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]['hook'][0][0]->smartyHook(array('h'=>$_smarty_tpl->tpl_vars['hookName']->value),$_smarty_tpl);?>
<?php } elseif (isset($_GET['controller'])) {?>
<?php $_smarty_tpl->_capture_stack[0][] = array('hookName', 'hookName', null); ob_start(); ?>display<?php echo htmlentities(ucfirst($_GET['controller']));?>
ListBefore<?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]['hook'][0][0]->smartyHook(array('h'=>$_smarty_tpl->tpl_vars['hookName']->value),$_smarty_tpl);?>
<?php }?>
<form method="post" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;<?php echo $_smarty_tpl->tpl_vars['identifier']->value;?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;id_tax_rules_group=<?php echo $_smarty_tpl->tpl_vars['id_tax_rules_group']->value;?>
&amp;updatetax_rules_group#<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
" class="form">
<div class="panel">
<input type="hidden" id="submitFilter<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
" name="submitFilter<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
" value="0"/>
<div class="table-responsive clearfix">
<table<?php if ($_smarty_tpl->tpl_vars['table_id']->value) {?> id="table-<?php echo $_smarty_tpl->tpl_vars['table_id']->value;?>
"<?php }?> class="table<?php if ($_smarty_tpl->tpl_vars['table_dnd']->value) {?> tableDnD<?php }?> <?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
">
<?php if ($_smarty_tpl->tpl_vars['bulk_actions']->value&&$_smarty_tpl->tpl_vars['has_bulk_actions']->value) {?>
<col style="width: 10px;" />
<?php }?>
<?php $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['params']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['fields_display']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
?>
<col<?php if (isset($_smarty_tpl->tpl_vars['params']->value['width'])&&$_smarty_tpl->tpl_vars['params']->value['width']!='auto') {?> width="<?php echo $_smarty_tpl->tpl_vars['params']->value['width'];?>
px"<?php }?>/>
<?php } ?>
<?php if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {?>
<col style="width: 80px;"/>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['has_actions']->value) {?>
<col style="width: 52px;" />
<?php }?>
<thead>
<tr class="nodrag nodrop">
<?php if ($_smarty_tpl->tpl_vars['bulk_actions']->value&&$_smarty_tpl->tpl_vars['has_bulk_actions']->value) {?>
<th class="center"></th>
<?php }?>
<?php $_smarty_tpl->tpl_vars['params'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['params']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['fields_display']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['params']->key => $_smarty_tpl->tpl_vars['params']->value) {
$_smarty_tpl->tpl_vars['params']->_loop = true;
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['params']->key;
?>
<th<?php if (isset($_smarty_tpl->tpl_vars['params']->value['align'])) {?> align="<?php echo $_smarty_tpl->tpl_vars['params']->value['align'];?>
"<?php }?><?php if (isset($_smarty_tpl->tpl_vars['params']->value['class'])) {?> class="<?php echo $_smarty_tpl->tpl_vars['params']->value['class'];?>
"<?php }?>>
<?php if (isset($_smarty_tpl->tpl_vars['params']->value['hint'])) {?><span class="hint" name="help_box"><?php echo $_smarty_tpl->tpl_vars['params']->value['hint'];?>
<span class="hint-pointer">&nbsp;</span></span><?php }?>
<span class="title_box">
<?php echo $_smarty_tpl->tpl_vars['params']->value['title'];?>
</span>
</th>
<?php } ?>
<?php if ($_smarty_tpl->tpl_vars['shop_link_type']->value) {?>
<th>
<?php if ($_smarty_tpl->tpl_vars['shop_link_type']->value=='shop') {?>
<?php echo smartyTranslate(array('s'=>'Shop'),$_smarty_tpl);?>
<?php } else { ?>
<?php echo smartyTranslate(array('s'=>'Shop group'),$_smarty_tpl);?>
<?php }?>
</th>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['has_actions']->value&&$_smarty_tpl->tpl_vars['filters_has_value']->value) {?>
<th class="actions text-right"><button type="submit" name="submitReset<?php echo $_smarty_tpl->tpl_vars['list_id']->value;?>
" class="btn btn-warning">
<i class="icon-eraser"></i> <?php echo smartyTranslate(array('s'=>'Reset'),$_smarty_tpl);?>
</button>
</th>
<?php } else { ?>
<th class="actions text-right"></th>
<?php }?>
</tr>
</thead><?php }} ?>

View File

@@ -0,0 +1,39 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:55
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/tree/tree_toolbar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:205467150056ab3b9f5a7d53-56961436%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'322b9d64c82508a23cc59df339ec34739e89b7d3' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/tree/tree_toolbar.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '205467150056ab3b9f5a7d53-56961436',
'function' =>
array (
),
'variables' =>
array (
'actions' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3b9f5b1757_91487726',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3b9f5b1757_91487726')) {function content_56ab3b9f5b1757_91487726($_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-29 15:44:55
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/uploader/simple.tpl" */ ?>
<?php /*%%SmartyHeaderCode:172310818656ab3b9f22dc43-24792002%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'32dbd3e34955eb43976e940790245114a0b6e0b0' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/uploader/simple.tpl',
1 => 1454062117,
2 => 'file',
),
),
'nocache_hash' => '172310818656ab3b9f22dc43-24792002',
'function' =>
array (
),
'variables' =>
array (
'files' => 0,
'file' => 0,
'show_thumbnail' => 0,
'id' => 0,
'max_files' => 0,
'name' => 0,
'multiple' => 0,
'size' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3b9f2dc727_18979809',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3b9f2dc727_18979809')) {function content_56ab3b9f2dc727_18979809($_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,104 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:54
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/modules_list/list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:203474360156ab3b9ecbaeb1-51219364%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'33d40de42724e5f0403b98fbb1756fbe1221c67d' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/modules_list/list.tpl',
1 => 1454062117,
2 => 'file',
),
),
'nocache_hash' => '203474360156ab3b9ecbaeb1-51219364',
'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_56ab3b9ece6f84_69341782',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3b9ece6f84_69341782')) {function content_56ab3b9ece6f84_69341782($_smarty_tpl) {?><?php if (!is_callable('smarty_function_counter')) include '/home/sumit/public_html/html/hotelcommerce-master/tools/smarty/plugins/function.counter.php';
if (!is_callable('smarty_function_cycle')) include '/home/sumit/public_html/html/hotelcommerce-master/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,220 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-30 01:03:39
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/helpers/calendar/calendar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:162789938056ab8d5b141195-25722595%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'33e69fc67fa7b10aced1d6bc0cba4266de03e705' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin652sof9ht/themes/default/template/helpers/calendar/calendar.tpl',
1 => 1454062117,
2 => 'file',
),
),
'nocache_hash' => '162789938056ab8d5b141195-25722595',
'function' =>
array (
),
'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,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab8d5b2085f9_42378895',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab8d5b2085f9_42378895')) {function content_56ab8d5b2085f9_42378895($_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 }} ?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,57 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:56
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/layout-export.tpl" */ ?>
<?php /*%%SmartyHeaderCode:143864284656ab3ba0ca5aa8-79717862%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'3482ace2dabc2f6f0c508221d8586db491bfd7ad' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/layout-export.tpl',
1 => 1454061940,
2 => 'file',
),
),
'nocache_hash' => '143864284656ab3ba0ca5aa8-79717862',
'function' =>
array (
),
'variables' =>
array (
'export_precontent' => 0,
'export_headers' => 0,
'text_delimiter' => 0,
'header' => 0,
'export_content' => 0,
'line' => 0,
'content' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba0cb85d9_46383326',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba0cb85d9_46383326')) {function content_56ab3ba0cb85d9_46383326($_smarty_tpl) {?>
<?php echo $_smarty_tpl->tpl_vars['export_precontent']->value;?>
<?php $_smarty_tpl->tpl_vars['header'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['header']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['export_headers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['header']->key => $_smarty_tpl->tpl_vars['header']->value) {
$_smarty_tpl->tpl_vars['header']->_loop = true;
?><?php echo $_smarty_tpl->tpl_vars['text_delimiter']->value;?>
<?php echo $_smarty_tpl->tpl_vars['header']->value;?>
<?php echo $_smarty_tpl->tpl_vars['text_delimiter']->value;?>
;<?php } ?>
<?php $_smarty_tpl->tpl_vars['line'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['line']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['export_content']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['line']->key => $_smarty_tpl->tpl_vars['line']->value) {
$_smarty_tpl->tpl_vars['line']->_loop = true;
?>
<?php $_smarty_tpl->tpl_vars['content'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['content']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['line']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['content']->key => $_smarty_tpl->tpl_vars['content']->value) {
$_smarty_tpl->tpl_vars['content']->_loop = true;
?><?php echo $_smarty_tpl->tpl_vars['text_delimiter']->value;?>
<?php echo $_smarty_tpl->tpl_vars['content']->value;?>
<?php echo $_smarty_tpl->tpl_vars['text_delimiter']->value;?>
;<?php } ?>
<?php } ?><?php }} ?>

View File

@@ -0,0 +1,78 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:56
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/carriers/helpers/view/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:110959998656ab3ba0d5f928-12008310%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'3589fa8d2147c7cbec7b689d52d2039a1d65f220' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/carriers/helpers/view/view.tpl',
1 => 1454062129,
2 => 'file',
),
),
'nocache_hash' => '110959998656ab3ba0d5f928-12008310',
'function' =>
array (
),
'variables' =>
array (
'link' => 0,
'modules_list' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba0d7afc1_51045882',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba0d7afc1_51045882')) {function content_56ab3ba0d7afc1_51045882($_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,24 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:01
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/stats/engines.tpl" */ ?>
<?php /*%%SmartyHeaderCode:41456536356ab3ba56f8117-32335351%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'37d88155cd0fbc64a0e66949a1f4dc0d198dcfaf' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/stats/engines.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '41456536356ab3ba56f8117-32335351',
'function' =>
array (
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba56f9587_20030749',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba56f9587_20030749')) {function content_56ab3ba56f9587_20030749($_smarty_tpl) {?>
<?php }} ?>

View File

@@ -0,0 +1,99 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:01
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/customer_threads/helpers/view/modal.tpl" */ ?>
<?php /*%%SmartyHeaderCode:66004992756ab3ba57e8910-53872665%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'38564e261bb6fa9c8edca00a21d4be8e1d00e73e' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/customer_threads/helpers/view/modal.tpl',
1 => 1454062129,
2 => 'file',
),
),
'nocache_hash' => '66004992756ab3ba57e8910-53872665',
'function' =>
array (
),
'variables' =>
array (
'link' => 0,
'id_customer_thread' => 0,
'employees' => 0,
'employee' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba580fa61_79066855',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba580fa61_79066855')) {function content_56ab3ba580fa61_79066855($_smarty_tpl) {?>
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCustomerThreads'), ENT_QUOTES, 'UTF-8', true);?>
&amp;viewcustomer_thread&amp;id_customer_thread=<?php echo intval($_smarty_tpl->tpl_vars['id_customer_thread']->value);?>
" method="post" enctype="multipart/form-data" class="form-horizontal">
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
<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>
<h4 class="modal-title"><?php echo smartyTranslate(array('s'=>"Forward this discussion"),$_smarty_tpl);?>
</h4>
</div>
<div class="modal-body">
<div class="row row-margin-bottom">
<label class="control-label col-lg-6"><?php echo smartyTranslate(array('s'=>'Forward this discussion to an employee:'),$_smarty_tpl);?>
</label>
<div class="col-lg-3">
<select name="id_employee_forward">
<option value="-1"><?php echo smartyTranslate(array('s'=>'-- Choose --'),$_smarty_tpl);?>
</option>
<?php $_smarty_tpl->tpl_vars['employee'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['employee']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['employees']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['employee']->key => $_smarty_tpl->tpl_vars['employee']->value) {
$_smarty_tpl->tpl_vars['employee']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['employee']->value['id_employee'];?>
"> <?php echo Tools::substr($_smarty_tpl->tpl_vars['employee']->value['firstname'],0,1);?>
. <?php echo $_smarty_tpl->tpl_vars['employee']->value['lastname'];?>
</option>
<?php } ?>
<option value="0"><?php echo smartyTranslate(array('s'=>'Someone else'),$_smarty_tpl);?>
</option>
</select>
</div>
</div>
<div id="message_forward_email" class="row row-margin-bottom" style="display:none">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Email'),$_smarty_tpl);?>
</label>
<div class="col-lg-3">
<input type="email" name="email" />
</div>
</div>
<div id="message_forward" style="display:none;">
<div class="row row-margin-bottom">
<label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Comment:'),$_smarty_tpl);?>
</label>
<div class="col-lg-7">
<textarea name="message_forward" rows="6"><?php echo smartyTranslate(array('s'=>'You can add a comment here.'),$_smarty_tpl);?>
</textarea>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo smartyTranslate(array('s'=>"Close"),$_smarty_tpl);?>
</button>
<button type="submit" class="btn btn-primary" name="submitForward" disabled="disabled"><i class="icon-mail-forward"></i> <?php echo smartyTranslate(array('s'=>"Forward"),$_smarty_tpl);?>
</button>
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">
$("select[name='id_employee_forward']").on('change', function() {
if ($(this).val() != '-1')
$("button[name='submitForward']").prop('disabled', false);
else
$("button[name='submitForward']").prop('disabled', 'disabled');
});
</script><?php }} ?>

View File

@@ -0,0 +1,35 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:58
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/groups/helpers/tree/tree_node_item_radio.tpl" */ ?>
<?php /*%%SmartyHeaderCode:171533915256ab3ba22a5501-89420180%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'392682124cdb90a0f7dbcec3296fa1d846e6ebed' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/groups/helpers/tree/tree_node_item_radio.tpl',
1 => 1454062128,
2 => 'file',
),
),
'nocache_hash' => '171533915256ab3ba22a5501-89420180',
'function' =>
array (
),
'variables' =>
array (
'node' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba22b78a1_35271080',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba22b78a1_35271080')) {function content_56ab3ba22b78a1_35271080($_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,525 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:45:01
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/access/helpers/form/form.tpl" */ ?>
<?php /*%%SmartyHeaderCode:198268233556ab3ba54df7f5-20466917%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'39573b3f763b0995340adbf24a50a8799fe85a7c' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/access/helpers/form/form.tpl',
1 => 1454062128,
2 => 'file',
),
),
'nocache_hash' => '198268233556ab3ba54df7f5-20466917',
'function' =>
array (
),
'variables' =>
array (
'id_tab_parentmodule' => 0,
'id_tab_module' => 0,
'link' => 0,
'show_toolbar' => 0,
'toolbar_btn' => 0,
'toolbar_scroll' => 0,
'title' => 0,
'profiles' => 0,
'profile' => 0,
'current_profile' => 0,
'current' => 0,
'token' => 0,
'table' => 0,
'submit_action' => 0,
'form_id' => 0,
'identifier' => 0,
'tabs' => 0,
'tab' => 0,
'tabsize' => 0,
'admin_profile' => 0,
'access_edit' => 0,
'accesses' => 0,
'is_child' => 0,
'perms' => 0,
'access' => 0,
'perm' => 0,
'result_accesses' => 0,
'child' => 0,
'modules' => 0,
'module' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba56dc934_43909408',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba56dc934_43909408')) {function content_56ab3ba56dc934_43909408($_smarty_tpl) {?>
<script type="text/javascript">
$(document).ready(function() {
var id_tab_parentmodule = <?php echo intval($_smarty_tpl->tpl_vars['id_tab_parentmodule']->value);?>
;
var id_tab_module = <?php echo intval($_smarty_tpl->tpl_vars['id_tab_module']->value);?>
;
$('tr.child-'+id_tab_parentmodule+' > td > input.view.'+id_tab_module).change( function () {
if (!$(this).prop('checked'))
{
$('#table_module_2 thead th:eq(1) input').trigger('click');
if ($('#table_module_2 thead th:eq(1) input').prop('checked'))
$('#table_module_2 thead th:eq(1) input').trigger('click');
}
});
$('tr.child-'+id_tab_parentmodule+' > td > input.edit.'+id_tab_module).change( function () {
if (!$(this).prop('checked'))
{
$('#table_module_2 thead th:eq(2) input').trigger('click');
if ($('#table_module_2 thead th:eq(2) input').prop('checked'))
$('#table_module_2 thead th:eq(2) input').trigger('click');
}
});
$('div.productTabs').find('a').each(function() {
$(this).attr('href', '#');
});
$('div.productTabs a').click(function() {
var id = $(this).attr('id');
$('.nav-profile').removeClass('selected');
$(this).addClass('selected active');
$(this).siblings().removeClass('active');
$('.tab-profile').hide()
$('.'+id).show();
});
$('.ajaxPower').change(function(){
var tout = $(this).data('rel').split('||');
var id_tab = tout[0];
var id_profile = tout[1];
var perm = tout[2];
var enabled = $(this).is(':checked')? 1 : 0;
var tabsize = tout[3];
var tabnumber = tout[4];
var table = 'table#table_'+id_profile;
if (perm == 'all' && $(this).parent().parent().hasClass('parent'))
{
if (enabled)
$(this).parent().parent().parent().find('.child-'+id_tab+' input[type=checkbox]').attr('checked', 'checked');
else
$(this).parent().parent().parent().find('.child-'+id_tab+' input[type=checkbox]').removeAttr('checked');
$.ajax({
url: "<?php echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminAccess'));?>
",
cache: false,
data : {
ajaxMode : '1',
id_tab: id_tab,
id_profile: id_profile,
perm: perm,
enabled: enabled,
submitAddAccess: '1',
addFromParent: '1',
action: 'updateAccess',
ajax: '1',
token: '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminAccess'),$_smarty_tpl);?>
'
},
success : function(res,textStatus,jqXHR)
{
try {
if (res == 'ok')
showSuccessMessage("<?php echo smartyTranslate(array('s'=>'Update successful'),$_smarty_tpl);?>
");
else
showErrorMessage("<?php echo smartyTranslate(array('s'=>'Update error'),$_smarty_tpl);?>
");
} catch(e) {
jAlert('Technical error');
}
}
});
}
perfect_access_js_gestion(this, perm, id_tab, tabsize, tabnumber, table);
$.ajax({
url: "<?php echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminAccess'));?>
",
cache: false,
data : {
ajaxMode : '1',
id_tab: id_tab,
id_profile: id_profile,
perm: perm,
enabled: enabled,
submitAddAccess: '1',
action: 'updateAccess',
ajax: '1',
token: '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminAccess'),$_smarty_tpl);?>
'
},
success : function(res,textStatus,jqXHR)
{
try
{
if (res == 'ok')
showSuccessMessage("<?php echo smartyTranslate(array('s'=>'Update successful'),$_smarty_tpl);?>
");
else
showErrorMessage("<?php echo smartyTranslate(array('s'=>'Update error'),$_smarty_tpl);?>
");
}
catch(e)
{
jAlert('Technical error');
}
}
});
});
$(".changeModuleAccess").change(function(){
var tout = $(this).data('rel').split('||');
var id_module = tout[0];
var perm = tout[1];
var id_profile = tout[2];
var enabled = $(this).is(':checked') ? 1 : 0;
var enabled_attr = $(this).is(':checked') ? true : false;
var table = 'table#table_module_'+id_profile;
if (id_module == -1)
$(table+' .ajax-ma-'+perm).each(function(key, value) {
$(this).attr("checked", enabled_attr);
});
else if (!enabled)
$(table+' #ajax-ma-'+perm+'-master').each(function(key, value) {
$(this).attr("checked", enabled_attr);
});
$.ajax({
url: "<?php echo addslashes($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminAccess'));?>
",
cache: false,
data : {
ajaxMode: '1',
id_module: id_module,
perm: perm,
enabled: enabled,
id_profile: id_profile,
changeModuleAccess: '1',
action: 'updateModuleAccess',
ajax: '1',
token: '<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab'=>'AdminAccess'),$_smarty_tpl);?>
'
},
success : function(res,textStatus,jqXHR)
{
try
{
if (res == 'ok')
showSuccessMessage("<?php echo smartyTranslate(array('s'=>'Update successful'),$_smarty_tpl);?>
");
else
showErrorMessage("<?php echo smartyTranslate(array('s'=>'Update error'),$_smarty_tpl);?>
");
}
catch(e)
{
jAlert('Technical error');
}
}
});
});
});
</script>
<?php if ($_smarty_tpl->tpl_vars['show_toolbar']->value) {?>
<?php echo $_smarty_tpl->getSubTemplate ("toolbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('toolbar_btn'=>$_smarty_tpl->tpl_vars['toolbar_btn']->value,'toolbar_scroll'=>$_smarty_tpl->tpl_vars['toolbar_scroll']->value,'title'=>$_smarty_tpl->tpl_vars['title']->value), 0);?>
<div class="leadin"></div>
<?php }?>
<div class="row">
<div class="productTabs col-lg-2">
<div class="tab list-group">
<?php $_smarty_tpl->tpl_vars['profile'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['profile']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['profiles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['profile']->key => $_smarty_tpl->tpl_vars['profile']->value) {
$_smarty_tpl->tpl_vars['profile']->_loop = true;
?>
<a class="list-group-item nav-profile <?php if ($_smarty_tpl->tpl_vars['profile']->value['id_profile']==$_smarty_tpl->tpl_vars['current_profile']->value) {?>active<?php }?>" id="profile-<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;id_profile=<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
"><?php echo $_smarty_tpl->tpl_vars['profile']->value['name'];?>
</a>
<?php } ?>
</div>
</div>
<form id="<?php echo $_smarty_tpl->tpl_vars['table']->value;?>
_form" class="defaultForm form-horizontal col-lg-10" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['current']->value, ENT_QUOTES, 'UTF-8', true);?>
&amp;<?php echo $_smarty_tpl->tpl_vars['submit_action']->value;?>
=1&amp;token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post" enctype="multipart/form-data">
<?php if ($_smarty_tpl->tpl_vars['form_id']->value) {?>
<input type="hidden" name="<?php echo $_smarty_tpl->tpl_vars['identifier']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['identifier']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['form_id']->value;?>
" />
<?php }?>
<?php $_smarty_tpl->tpl_vars['tabsize'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['tabs']->value), null, 0);?>
<?php $_smarty_tpl->tpl_vars['tab'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tab']->_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['tab']->key => $_smarty_tpl->tpl_vars['tab']->value) {
$_smarty_tpl->tpl_vars['tab']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['tab']->value['id_tab']>$_smarty_tpl->tpl_vars['tabsize']->value) {?>
<?php $_smarty_tpl->tpl_vars['tabsize'] = new Smarty_variable($_smarty_tpl->tpl_vars['tab']->value['id_tab'], null, 0);?>
<?php }?>
<?php } ?>
<?php $_smarty_tpl->tpl_vars['profile'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['profile']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['profiles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['profile']->key => $_smarty_tpl->tpl_vars['profile']->value) {
$_smarty_tpl->tpl_vars['profile']->_loop = true;
?>
<div class="profile-<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
tab-profile" style="display:<?php if ($_smarty_tpl->tpl_vars['profile']->value['id_profile']!=$_smarty_tpl->tpl_vars['current_profile']->value) {?>none<?php }?>">
<div class="row">
<?php if ($_smarty_tpl->tpl_vars['profile']->value['id_profile']!=$_smarty_tpl->tpl_vars['admin_profile']->value) {?>
<div class="col-lg-6">
<div class="panel">
<h3><?php echo smartyTranslate(array('s'=>'Menu'),$_smarty_tpl);?>
</h3>
<table class="table" id="table_<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
">
<thead>
<tr>
<th></th>
<th>
<input type="checkbox" name="1" class="viewall ajaxPower"<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> data-rel="-1||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
||view||<?php echo $_smarty_tpl->tpl_vars['tabsize']->value;?>
||<?php echo count($_smarty_tpl->tpl_vars['tabs']->value);?>
"<?php } else { ?> disabled="disabled"<?php }?>/>
<?php echo smartyTranslate(array('s'=>'View'),$_smarty_tpl);?>
</th>
<th>
<input type="checkbox" name="1" class="addall ajaxPower"<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> data-rel="-1||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
||add||<?php echo $_smarty_tpl->tpl_vars['tabsize']->value;?>
||<?php echo count($_smarty_tpl->tpl_vars['tabs']->value);?>
"<?php } else { ?> disabled="disabled"<?php }?>/>
<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
</th>
<th>
<input type="checkbox" name="1" class="editall ajaxPower"<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> data-rel="-1||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
||edit||<?php echo $_smarty_tpl->tpl_vars['tabsize']->value;?>
||<?php echo count($_smarty_tpl->tpl_vars['tabs']->value);?>
"<?php } else { ?> disabled="disabled"<?php }?>/>
<?php echo smartyTranslate(array('s'=>'Edit'),$_smarty_tpl);?>
</th>
<th>
<input type="checkbox" name="1" class="deleteall ajaxPower"<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> data-rel="-1||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
||delete||<?php echo $_smarty_tpl->tpl_vars['tabsize']->value;?>
||<?php echo count($_smarty_tpl->tpl_vars['tabs']->value);?>
"<?php } else { ?> disabled="disabled"<?php }?>/>
<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
</th>
<th>
<input type="checkbox" name="1" class="allall ajaxPower"<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> data-rel="-1||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
||all||<?php echo $_smarty_tpl->tpl_vars['tabsize']->value;?>
||<?php echo count($_smarty_tpl->tpl_vars['tabs']->value);?>
"<?php } else { ?> disabled="disabled"<?php }?>/>
<?php echo smartyTranslate(array('s'=>'All'),$_smarty_tpl);?>
</th>
</tr>
</thead>
<tbody>
<?php if (!count($_smarty_tpl->tpl_vars['tabs']->value)) {?>
<tr>
<td colspan="6"><?php echo smartyTranslate(array('s'=>'No menu'),$_smarty_tpl);?>
</td>
</tr>
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars['tab'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tab']->_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['tab']->key => $_smarty_tpl->tpl_vars['tab']->value) {
$_smarty_tpl->tpl_vars['tab']->_loop = true;
?>
<?php $_smarty_tpl->tpl_vars['access'] = new Smarty_variable($_smarty_tpl->tpl_vars['accesses']->value[$_smarty_tpl->tpl_vars['profile']->value['id_profile']], null, 0);?>
<?php if (!$_smarty_tpl->tpl_vars['tab']->value['id_parent']||$_smarty_tpl->tpl_vars['tab']->value['id_parent']==-1) {?>
<?php $_smarty_tpl->tpl_vars['is_child'] = new Smarty_variable(false, null, 0);?>
<?php $_smarty_tpl->tpl_vars['result_accesses'] = new Smarty_variable(0, null, 0);?>
<tr<?php if (!$_smarty_tpl->tpl_vars['is_child']->value) {?> class="parent"<?php }?>>
<td<?php if (!$_smarty_tpl->tpl_vars['is_child']->value) {?> class="bold"<?php }?>><?php if ($_smarty_tpl->tpl_vars['is_child']->value) {?> &raquo; <?php }?><strong><?php echo $_smarty_tpl->tpl_vars['tab']->value['name'];?>
</strong></td>
<?php $_smarty_tpl->tpl_vars['perm'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['perm']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['perms']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['perm']->key => $_smarty_tpl->tpl_vars['perm']->value) {
$_smarty_tpl->tpl_vars['perm']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?>
<td>
<input type="checkbox" data-rel="<?php echo $_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['tab']->value['id_tab']]['id_tab'];?>
||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
||<?php echo $_smarty_tpl->tpl_vars['perm']->value;?>
||<?php echo $_smarty_tpl->tpl_vars['tabsize']->value;?>
||<?php echo count($_smarty_tpl->tpl_vars['tabs']->value);?>
" class="ajaxPower <?php echo $_smarty_tpl->tpl_vars['perm']->value;?>
<?php echo $_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['tab']->value['id_tab']]['id_tab'];?>
"<?php if ($_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['tab']->value['id_tab']][$_smarty_tpl->tpl_vars['perm']->value]==1) {?> checked="checked"<?php }?>/>
</td>
<?php } else { ?>
<td>
<input type="checkbox" disabled="disabled"<?php if ($_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['tab']->value['id_tab']][$_smarty_tpl->tpl_vars['perm']->value]==1) {?> checked="checked"<?php }?>/>
</td>
<?php }?>
<?php $_smarty_tpl->tpl_vars['result_accesses'] = new Smarty_variable($_smarty_tpl->tpl_vars['result_accesses']->value+$_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['tab']->value['id_tab']][$_smarty_tpl->tpl_vars['perm']->value], null, 0);?>
<?php } ?>
<td>
<input type="checkbox"<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> data-rel="<?php echo $_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['tab']->value['id_tab']]['id_tab'];?>
||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
||all||<?php echo $_smarty_tpl->tpl_vars['tabsize']->value;?>
||<?php echo count($_smarty_tpl->tpl_vars['tabs']->value);?>
" class="ajaxPower all <?php echo $_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['tab']->value['id_tab']]['id_tab'];?>
"<?php } else { ?> class="all <?php echo $_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['tab']->value['id_tab']]['id_tab'];?>
" disabled="disabled"<?php }?><?php if ($_smarty_tpl->tpl_vars['result_accesses']->value==4) {?> checked="checked"<?php }?>/>
</td>
</tr>
<?php $_smarty_tpl->tpl_vars['child'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['child']->_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['child']->key => $_smarty_tpl->tpl_vars['child']->value) {
$_smarty_tpl->tpl_vars['child']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['child']->value['id_parent']===$_smarty_tpl->tpl_vars['tab']->value['id_tab']) {?>
<?php if (isset($_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['child']->value['id_tab']])) {?>
<?php $_smarty_tpl->tpl_vars['is_child'] = new Smarty_variable(true, null, 0);?>
<?php $_smarty_tpl->tpl_vars['result_accesses'] = new Smarty_variable(0, null, 0);?>
<tr class="child-<?php echo $_smarty_tpl->tpl_vars['child']->value['id_parent'];?>
">
<td<?php if (!$_smarty_tpl->tpl_vars['is_child']->value) {?> class="bold"<?php }?>><?php if ($_smarty_tpl->tpl_vars['is_child']->value) {?> &raquo; <?php }?><?php echo $_smarty_tpl->tpl_vars['child']->value['name'];?>
</td>
<?php $_smarty_tpl->tpl_vars['perm'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['perm']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['perms']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['perm']->key => $_smarty_tpl->tpl_vars['perm']->value) {
$_smarty_tpl->tpl_vars['perm']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?>
<td>
<input type="checkbox" data-rel="<?php echo $_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['child']->value['id_tab']]['id_tab'];?>
||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
||<?php echo $_smarty_tpl->tpl_vars['perm']->value;?>
||<?php echo $_smarty_tpl->tpl_vars['tabsize']->value;?>
||<?php echo count($_smarty_tpl->tpl_vars['tabs']->value);?>
" class="ajaxPower <?php echo $_smarty_tpl->tpl_vars['perm']->value;?>
<?php echo $_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['child']->value['id_tab']]['id_tab'];?>
"<?php if ($_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['child']->value['id_tab']][$_smarty_tpl->tpl_vars['perm']->value]==1) {?> checked="checked"<?php }?>/>
</td>
<?php } else { ?>
<td>
<input type="checkbox" disabled="disabled"<?php if ($_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['child']->value['id_tab']][$_smarty_tpl->tpl_vars['perm']->value]==1) {?> checked="checked"<?php }?>/>
</td>
<?php }?>
<?php $_smarty_tpl->tpl_vars['result_accesses'] = new Smarty_variable($_smarty_tpl->tpl_vars['result_accesses']->value+$_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['child']->value['id_tab']][$_smarty_tpl->tpl_vars['perm']->value], null, 0);?>
<?php } ?>
<td>
<input type="checkbox"<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> data-rel="<?php echo $_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['child']->value['id_tab']]['id_tab'];?>
||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
||all||<?php echo $_smarty_tpl->tpl_vars['tabsize']->value;?>
||<?php echo count($_smarty_tpl->tpl_vars['tabs']->value);?>
" class="ajaxPower all <?php echo $_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['child']->value['id_tab']]['id_tab'];?>
"<?php } else { ?> class="all <?php echo $_smarty_tpl->tpl_vars['access']->value[$_smarty_tpl->tpl_vars['child']->value['id_tab']]['id_tab'];?>
" disabled="disabled"<?php }?><?php if ($_smarty_tpl->tpl_vars['result_accesses']->value==4) {?> checked="checked"<?php }?>/>
</td>
</tr>
<?php }?>
<?php }?>
<?php } ?>
<?php }?>
<?php } ?>
<?php }?>
</tbody>
</table>
</div>
</div>
<div class="col-lg-6">
<div class="panel">
<h3><?php echo smartyTranslate(array('s'=>'Modules'),$_smarty_tpl);?>
</h3>
<table class="table" id="table_module_<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
">
<thead>
<tr>
<th></th>
<th>
<input type="checkbox"<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> class="changeModuleAccess" data-rel="-1||view||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
"<?php } else { ?> disabled="disabled"<?php }?>/> <?php echo smartyTranslate(array('s'=>'View'),$_smarty_tpl);?>
</th>
<th>
<input type="checkbox"<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> class="changeModuleAccess" data-rel="-1||configure||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
"<?php } else { ?> disabled="disabled"<?php }?>/> <?php echo smartyTranslate(array('s'=>'Configure'),$_smarty_tpl);?>
</th>
<th>
<input type="checkbox"<?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> class="changeModuleAccess" data-rel="-1||uninstall||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
"<?php } else { ?> disabled="disabled"<?php }?>/> <?php echo smartyTranslate(array('s'=>'Uninstall'),$_smarty_tpl);?>
</th>
</tr>
</thead>
<tbody>
<?php if (!count($_smarty_tpl->tpl_vars['modules']->value)) {?>
<tr>
<td colspan="3"><?php echo smartyTranslate(array('s'=>'No modules are installed'),$_smarty_tpl);?>
</td>
</tr>
<?php } else { ?>
<?php $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['modules']->value[$_smarty_tpl->tpl_vars['profile']->value['id_profile']]; 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;
?>
<tr>
<td>&raquo; <?php echo $_smarty_tpl->tpl_vars['module']->value['name'];?>
</td>
<td>
<input type="checkbox" value="1"<?php if ($_smarty_tpl->tpl_vars['module']->value['view']==true) {?> checked="checked"<?php }?><?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> class="ajax-ma-view changeModuleAccess" data-rel="<?php echo $_smarty_tpl->tpl_vars['module']->value['id_module'];?>
||view||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
"<?php } else { ?> class="ajax-ma-view" disabled="disabled"<?php }?>/>
</td>
<td>
<input type="checkbox" value="1"<?php if ($_smarty_tpl->tpl_vars['module']->value['configure']==true) {?> checked="checked"<?php }?><?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> class="ajax-ma-configure changeModuleAccess" data-rel="<?php echo $_smarty_tpl->tpl_vars['module']->value['id_module'];?>
||configure||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
"<?php } else { ?> class="ajax-ma-configure" disabled="disabled"<?php }?>/>
</td>
<td>
<input type="checkbox" value="1"<?php if ($_smarty_tpl->tpl_vars['module']->value['uninstall']==true) {?> checked="checked"<?php }?><?php if ($_smarty_tpl->tpl_vars['access_edit']->value==1) {?> class="ajax-ma-uninstall changeModuleAccess" data-rel="<?php echo $_smarty_tpl->tpl_vars['module']->value['id_module'];?>
||uninstall||<?php echo $_smarty_tpl->tpl_vars['profile']->value['id_profile'];?>
"<?php } else { ?> class="ajax-ma-uninstall" disabled="disabled"<?php }?>/>
</td>
</tr>
<?php } ?>
<?php }?>
</tbody>
</table>
</div>
</div>
<?php } else { ?>
<div class="col-lg-12">
<div class="panel">
<?php echo smartyTranslate(array('s'=>'Administrator permissions cannot be modified.'),$_smarty_tpl);?>
</div>
</div>
<?php }?>
</div>
</div>
<?php } ?>
</form>
</div><?php }} ?>

View File

@@ -0,0 +1,157 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 05:22:26
compiled from "/home/sumit/public_html/html/hotelcommerce-master/modules/dashproducts/views/templates/hook/dashboard_zone_two.tpl" */ ?>
<?php /*%%SmartyHeaderCode:58294380156ab3d62749fd4-76746091%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'39b2365d3cb756952aecc70677581015cfe794a7' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/modules/dashproducts/views/templates/hook/dashboard_zone_two.tpl',
1 => 1454061952,
2 => 'file',
),
),
'nocache_hash' => '58294380156ab3d62749fd4-76746091',
'function' =>
array (
),
'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,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3d6278b083_99248314',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3d6278b083_99248314')) {function content_56ab3d6278b083_99248314($_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 }} ?>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,46 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:59
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/orders/_select_payment.tpl" */ ?>
<?php /*%%SmartyHeaderCode:136506704356ab3ba310e4f0-16649955%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'3a92571e6cfab6fb6e405610c09bb00b00f9d299' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/orders/_select_payment.tpl',
1 => 1454062119,
2 => 'file',
),
),
'nocache_hash' => '136506704356ab3ba310e4f0-16649955',
'function' =>
array (
),
'variables' =>
array (
'PS_CATALOG_MODE' => 0,
'payment_modules' => 0,
'module' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba312ab35_61952806',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba312ab35_61952806')) {function content_56ab3ba312ab35_61952806($_smarty_tpl) {?>
<select name="payment_module_name" id="payment_module_name">
<?php if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) {?>
<?php $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['payment_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;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['module']->value->name;?>
" <?php if (isset($_POST['payment_module_name'])&&$_smarty_tpl->tpl_vars['module']->value->name==$_POST['payment_module_name']) {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['module']->value->displayName;?>
</option>
<?php } ?>
<?php } else { ?>
<option value="<?php echo smartyTranslate(array('s'=>'Back office order'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Back office order'),$_smarty_tpl);?>
</option>
<?php }?>
</select>
<?php }} ?>

View File

@@ -0,0 +1,304 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:56
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/search/helpers/view/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:185861184256ab3ba0d9a739-47134090%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'3b5ebceb2c403d0dc59d835dabc3838637866f06' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/controllers/search/helpers/view/view.tpl',
1 => 1454062130,
2 => 'file',
),
),
'nocache_hash' => '185861184256ab3ba0d9a739-47134090',
'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_56ab3ba0e83a92_67870045',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba0e83a92_67870045')) {function content_56ab3ba0e83a92_67870045($_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,35 @@
<?php /* Smarty version Smarty-3.1.19, created on 2016-01-29 15:44:56
compiled from "/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/list/list_action_delete.tpl" */ ?>
<?php /*%%SmartyHeaderCode:205885960756ab3ba03948c2-58014248%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'3cdd510f024946bda3e0635f6af42c1884f979e0' =>
array (
0 => '/home/sumit/public_html/html/hotelcommerce-master/admin/themes/default/template/helpers/list/list_action_delete.tpl',
1 => 1454062118,
2 => 'file',
),
),
'nocache_hash' => '205885960756ab3ba03948c2-58014248',
'function' =>
array (
),
'variables' =>
array (
'href' => 0,
'confirm' => 0,
'action' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.19',
'unifunc' => 'content_56ab3ba03a7924_96186974',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56ab3ba03a7924_96186974')) {function content_56ab3ba03a7924_96186974($_smarty_tpl) {?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8', true);?>
"<?php if (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 }?> title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="delete">
<i class="icon-trash"></i> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
</a><?php }} ?>

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