function content_55ccf2ea62cd14_13039228($_smarty_tpl) { if (!is_callable('smarty_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('advanced_filter', 'advanced', 'reset', 'reset', 'advanced_filter', 'advanced', 'reset', 'reset')); if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); ?> <div id="product_filters_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> "> <div class="ty-product-filters__wrapper testoriginal"> <?php if ($_smarty_tpl->tpl_vars['items']->value && !$_REQUEST['advanced_filter']) { ?> <?php if (strpos($_SERVER['QUERY_STRING'], "dispatch=") !== false) { ?> <?php $_smarty_tpl->tpl_vars["curl"] = new Smarty_variable($_smarty_tpl->tpl_vars['config']->value['current_url'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['curl']->value, "result_ids", "full_render", "filter_id", "view_all", "req_range_id", "advanced_filter", "features_hash", "subcats", "page"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable("products.search", null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["reset_qstring"] = new Smarty_variable("products.search", null, 0); ?> <?php if ($_REQUEST['category_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['show_products_from_subcategories'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "subcats=Y"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["reset_qstring"] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['reset_qstring']->value, "subcats=Y"), null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["allow_ajax"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["ajax_div_ids"] = new Smarty_variable("product_filters_*,products_search_*,category_products_*,product_features_*,breadcrumbs_*,currencies_*,languages_*", null, 0); ?> <?php $_smarty_tpl->tpl_vars["has_selected"] = new Smarty_variable(false, null, 0); ?> <ul class="cm-responsive-menu"> <li class="ty-menu__item ty-menu__menu-btn visible-phone"> <a class="ty-menu__item-link"> <i class="ty-icon-short-list"></i> <span>Filters</span> </a> </li> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['items']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["filter"]->key => $_smarty_tpl->tpl_vars["filter"]->value) { $_smarty_tpl->tpl_vars["filter"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['slider'] || $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'] || $_smarty_tpl->tpl_vars['filter']->value['ranges']) { ?> <?php $_smarty_tpl->tpl_vars["filter_uid"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "_" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["cookie_name_show_filter"] = new Smarty_variable("content_" . (string) $_smarty_tpl->tpl_vars['filter_uid']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['display'] == "N") { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(true, null, 0); ?> <?php if ($_COOKIE[$_smarty_tpl->tpl_vars['cookie_name_show_filter']->value]) { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(false, null, 0); ?> <?php } ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(false, null, 0); ?> <?php if ($_COOKIE[$_smarty_tpl->tpl_vars['cookie_name_show_filter']->value]) { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <li class="ty-menu__item cm-menu-item-responsive "> <div id="sw_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-product-filters__switch cm-combination-filter_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8'); ?> "> <span class="ty-product-filters__title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['filter'], ENT_QUOTES, 'UTF-8'); ?> </span> <i class="ty-product-filters__switch-down ty-icon-down-open"></i> <i class="ty-product-filters__switch-right ty-icon-up-open"></i> </div> <?php if ($_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/product_filter_slider.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('filter_uid' => $_smarty_tpl->tpl_vars['filter_uid']->value, 'id' => "slider_" . (string) $_smarty_tpl->tpl_vars['filter_uid']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'dynamic' => true, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/product_filter_variants.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('filter_uid' => $_smarty_tpl->tpl_vars['filter_uid']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'collapse' => $_smarty_tpl->tpl_vars['collapse']->value, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0); ?> <?php } ?> </li> <?php } ?> <?php } ?> <li class="ty-menu__item cm-menu-item-responsive "> <div class="ty-product-filters__tools clearfix"> <a <?php if (defined("FILTER_CUSTOM_ADVANCED")) { ?> href="<?php echo htmlspecialchars(fn_url("products.search?advanced_filter=Y"), ENT_QUOTES, 'UTF-8'); ?> "<?php } else { ?> href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "advanced_filter=Y")), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> rel="nofollow" class="ty-product-filters__advanced-button" title="<?php echo $_smarty_tpl->__("advanced_filter"); ?> "><?php echo $_smarty_tpl->__("advanced"); ?> </a> <?php if (Smarty::$_smarty_vars['capture']['has_selected']) { ?> <a href="<?php if ($_REQUEST['category_id']) { $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(true, null, 0); echo htmlspecialchars(fn_url("categories.view?category_id=" . (string) $_REQUEST['category_id']), ENT_QUOTES, 'UTF-8'); } else { $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(false, null, 0); echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); } ?> " rel="nofollow" class="ty-product-filters__reset-button<?php if ($_smarty_tpl->tpl_vars['allow_ajax']->value && $_smarty_tpl->tpl_vars['use_ajax']->value) { ?> " data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8'); } ?> " title="<?php echo $_smarty_tpl->__("reset"); ?> "><i class="ty-product-filters__reset-icon ty-icon-cw"></i> <span><?php echo $_smarty_tpl->__("reset"); ?> </span></a> <?php } ?> </div> </li> </ul> <?php } ?> </div> <!--product_filters_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> --></div><?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(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="blocks/product_filters/orizontal.tpl" id="<?php echo smarty_function_set_id(array('name' => "blocks/product_filters/orizontal.tpl"), $_smarty_tpl); ?> "><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php echo Smarty::$_smarty_vars['capture']['template_content']; ?> <!--[/tpl_id]--></span><?php } else { echo Smarty::$_smarty_vars['capture']['template_content']; } } } else { ?> <div id="product_filters_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> "> <div class="ty-product-filters__wrapper testoriginal"> <?php if ($_smarty_tpl->tpl_vars['items']->value && !$_REQUEST['advanced_filter']) { ?> <?php if (strpos($_SERVER['QUERY_STRING'], "dispatch=") !== false) { ?> <?php $_smarty_tpl->tpl_vars["curl"] = new Smarty_variable($_smarty_tpl->tpl_vars['config']->value['current_url'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['curl']->value, "result_ids", "full_render", "filter_id", "view_all", "req_range_id", "advanced_filter", "features_hash", "subcats", "page"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable("products.search", null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["reset_qstring"] = new Smarty_variable("products.search", null, 0); ?> <?php if ($_REQUEST['category_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['show_products_from_subcategories'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "subcats=Y"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["reset_qstring"] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['reset_qstring']->value, "subcats=Y"), null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["allow_ajax"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["ajax_div_ids"] = new Smarty_variable("product_filters_*,products_search_*,category_products_*,product_features_*,breadcrumbs_*,currencies_*,languages_*", null, 0); ?> <?php $_smarty_tpl->tpl_vars["has_selected"] = new Smarty_variable(false, null, 0); ?> <ul class="cm-responsive-menu"> <li class="ty-menu__item ty-menu__menu-btn visible-phone"> <a class="ty-menu__item-link"> <i class="ty-icon-short-list"></i> <span>Filters</span> </a> </li> <?php $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["filter"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['items']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["filter"]->key => $_smarty_tpl->tpl_vars["filter"]->value) { $_smarty_tpl->tpl_vars["filter"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['slider'] || $_smarty_tpl->tpl_vars['filter']->value['selected_ranges'] || $_smarty_tpl->tpl_vars['filter']->value['ranges']) { ?> <?php $_smarty_tpl->tpl_vars["filter_uid"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['block']->value['block_id'] . "_" . (string) $_smarty_tpl->tpl_vars['filter']->value['filter_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["cookie_name_show_filter"] = new Smarty_variable("content_" . (string) $_smarty_tpl->tpl_vars['filter_uid']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['filter']->value['display'] == "N") { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(true, null, 0); ?> <?php if ($_COOKIE[$_smarty_tpl->tpl_vars['cookie_name_show_filter']->value]) { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(false, null, 0); ?> <?php } ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(false, null, 0); ?> <?php if ($_COOKIE[$_smarty_tpl->tpl_vars['cookie_name_show_filter']->value]) { ?> <?php $_smarty_tpl->tpl_vars["collapse"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <li class="ty-menu__item cm-menu-item-responsive "> <div id="sw_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8'); ?> " class="ty-product-filters__switch cm-combination-filter_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter_uid']->value, ENT_QUOTES, 'UTF-8'); ?> "> <span class="ty-product-filters__title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['filter']->value['filter'], ENT_QUOTES, 'UTF-8'); ?> </span> <i class="ty-product-filters__switch-down ty-icon-down-open"></i> <i class="ty-product-filters__switch-right ty-icon-up-open"></i> </div> <?php if ($_smarty_tpl->tpl_vars['filter']->value['slider']) { ?> <?php echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/product_filter_slider.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('filter_uid' => $_smarty_tpl->tpl_vars['filter_uid']->value, 'id' => "slider_" . (string) $_smarty_tpl->tpl_vars['filter_uid']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'dynamic' => true, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("blocks/product_filters/components/product_filter_variants.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('filter_uid' => $_smarty_tpl->tpl_vars['filter_uid']->value, 'filter' => $_smarty_tpl->tpl_vars['filter']->value, 'ajax_div_ids' => $_smarty_tpl->tpl_vars['ajax_div_ids']->value, 'collapse' => $_smarty_tpl->tpl_vars['collapse']->value, 'filter_qstring' => $_smarty_tpl->tpl_vars['filter_qstring']->value, 'reset_qstring' => $_smarty_tpl->tpl_vars['reset_qstring']->value, 'allow_ajax' => $_smarty_tpl->tpl_vars['allow_ajax']->value), 0); ?> <?php } ?> </li> <?php } ?> <?php } ?> <li class="ty-menu__item cm-menu-item-responsive "> <div class="ty-product-filters__tools clearfix"> <a <?php if (defined("FILTER_CUSTOM_ADVANCED")) { ?> href="<?php echo htmlspecialchars(fn_url("products.search?advanced_filter=Y"), ENT_QUOTES, 'UTF-8'); ?> "<?php } else { ?> href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "advanced_filter=Y")), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> rel="nofollow" class="ty-product-filters__advanced-button" title="<?php echo $_smarty_tpl->__("advanced_filter"); ?> "><?php echo $_smarty_tpl->__("advanced"); ?> </a> <?php if (Smarty::$_smarty_vars['capture']['has_selected']) { ?> <a href="<?php if ($_REQUEST['category_id']) { $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(true, null, 0); echo htmlspecialchars(fn_url("categories.view?category_id=" . (string) $_REQUEST['category_id']), ENT_QUOTES, 'UTF-8'); } else { $_smarty_tpl->tpl_vars["use_ajax"] = new Smarty_variable(false, null, 0); echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); } ?> " rel="nofollow" class="ty-product-filters__reset-button<?php if ($_smarty_tpl->tpl_vars['allow_ajax']->value && $_smarty_tpl->tpl_vars['use_ajax']->value) { ?> " data-ca-scroll=".cm-pagination-container" data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_div_ids']->value, ENT_QUOTES, 'UTF-8'); } ?> " title="<?php echo $_smarty_tpl->__("reset"); ?> "><i class="ty-product-filters__reset-icon ty-icon-cw"></i> <span><?php echo $_smarty_tpl->__("reset"); ?> </span></a> <?php } ?> </div> </li> </ul> <?php } ?> </div> <!--product_filters_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8'); ?> --></div><?php } }
function content_55d5c52c0f4b99_17469338($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.date_format.php'; } fn_preload_lang_vars(array('text_admin_new_orders', 'incompleted_orders', 'orders', 'id', 'status', 'date', 'customer', 'phone', 'total', 'order', 'invoice', 'credit_memo', 'view', 'edit', 'delete', 'no_data', 'for_this_page_orders', 'gross_total', 'totally_paid', 'for_all_found_orders', 'gross_total', 'totally_paid', 'add_order', 'bulk_print_invoice', 'bulk_print_pdf', 'bulk_print_packing_slip', 'view_purchased_products', 'export_selected', 'view_all_orders', 'incompleted_orders')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "new") { ?> <p><?php echo $_smarty_tpl->__("text_admin_new_orders"); ?> </p> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "orders.manage", 'view_type' => "orders"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/orders/components/orders_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "orders.manage"), 0); ?> <?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(); } ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" target="_self" name="orders_list_form"> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'save_current_url' => true, 'div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order"), null, 0); $_smarty_tpl->tpl_vars["c_icon"] = new Smarty_variable("<i class=\"exicon-" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev'] . "\"></i>", null, 0); $_smarty_tpl->tpl_vars["c_dummy"] = new Smarty_variable("<i class=\"exicon-dummy\"></i>", null, 0); ?> <?php $_smarty_tpl->tpl_vars["rev"] = new Smarty_variable(($tmp = @$_REQUEST['content_id']) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['incompleted_view']->value) { ?> <?php $_smarty_tpl->tpl_vars["page_title"] = new Smarty_variable($_smarty_tpl->__("incompleted_orders"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["get_additional_statuses"] = new Smarty_variable(true, null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["page_title"] = new Smarty_variable($_smarty_tpl->__("orders"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["get_additional_statuses"] = new Smarty_variable(false, null, 0); } $_smarty_tpl->tpl_vars["order_status_descr"] = new Smarty_variable(fn_get_simple_statuses(@constant('STATUSES_ORDER'), $_smarty_tpl->tpl_vars['get_additional_statuses']->value, true), null, 0); $_smarty_tpl->tpl_vars["extra_status"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); $_smarty_tpl->tpl_vars['statuses'] = new Smarty_variable(array(), null, 0); $_smarty_tpl->tpl_vars["order_statuses"] = new Smarty_variable(fn_get_statuses(@constant('STATUSES_ORDER'), $_smarty_tpl->tpl_vars['statuses']->value, $_smarty_tpl->tpl_vars['get_additional_statuses']->value, true), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['orders']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th class="left"> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('check_statuses' => $_smarty_tpl->tpl_vars['order_status_descr']->value), 0); ?> </th> <th width="17%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=order_id&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("id"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "order_id") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="17%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=status&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("status"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "status") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="15%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=date&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("date"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "date") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="20%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=customer&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("customer"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "customer") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } ?> </a></th> <th width="15%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=phone&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("phone"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "phone") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } ?> </a></th> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:manage_header")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:manage_header"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:manage_header"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <th> </th> <th width="14%" class="right"><a class="cm-ajax<?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "total") { ?> sort-link-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['sort_order_rev'], ENT_QUOTES, 'UTF-8'); } ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=total&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("total"); ?> </a></th> </tr> </thead> <?php $_smarty_tpl->tpl_vars["o"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["o"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['orders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["o"]->key => $_smarty_tpl->tpl_vars["o"]->value) { $_smarty_tpl->tpl_vars["o"]->_loop = true; $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:order_row")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:order_row"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <tr> <td class="left"> <input type="checkbox" name="order_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['order_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item cm-item-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['o']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> " /></td> <td> <a href="<?php echo htmlspecialchars(fn_url("orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['o']->value['order_id']), ENT_QUOTES, 'UTF-8'); ?> " class="underlined"><?php echo $_smarty_tpl->__("order"); ?> #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['order_id'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['order_statuses_data']->value[$_smarty_tpl->tpl_vars['o']->value['status']]['params']['appearance_type'] == "I" && $_smarty_tpl->tpl_vars['o']->value['invoice_id']) { ?> <p class="small-note"><?php echo $_smarty_tpl->__("invoice"); ?> #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['invoice_id'], ENT_QUOTES, 'UTF-8'); ?> </p> <?php } elseif ($_smarty_tpl->tpl_vars['order_statuses_data']->value[$_smarty_tpl->tpl_vars['o']->value['status']]['params']['appearance_type'] == "C" && $_smarty_tpl->tpl_vars['o']->value['credit_memo_id']) { ?> <p class="small-note"><?php echo $_smarty_tpl->__("credit_memo"); ?> #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['credit_memo_id'], ENT_QUOTES, 'UTF-8'); ?> </p> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['o']->value), 0); ?> </td> <td> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["notify_vendor"] = new Smarty_variable(true, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["notify_vendor"] = new Smarty_variable(false, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('suffix' => "o", 'order_info' => $_smarty_tpl->tpl_vars['o']->value, 'id' => $_smarty_tpl->tpl_vars['o']->value['order_id'], 'status' => $_smarty_tpl->tpl_vars['o']->value['status'], 'items_status' => $_smarty_tpl->tpl_vars['order_status_descr']->value, 'update_controller' => "orders", 'notify' => true, 'notify_department' => true, 'notify_vendor' => $_smarty_tpl->tpl_vars['notify_vendor']->value, 'status_target_id' => "orders_total," . (string) $_smarty_tpl->tpl_vars['rev']->value, 'extra' => "&return_url=" . (string) $_smarty_tpl->tpl_vars['extra_status']->value, 'statuses' => $_smarty_tpl->tpl_vars['order_statuses']->value, 'btn_meta' => mb_strtolower("btn btn-info o-status-" . (string) $_smarty_tpl->tpl_vars['o']->value['status'] . " btn-small", 'UTF-8')), 0); ?> </td> <td><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['o']->value['timestamp'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format'] . ", " . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['time_format']), ENT_QUOTES, 'UTF-8'); ?> </td> <td> <?php if ($_smarty_tpl->tpl_vars['o']->value['email']) { ?> <a href="mailto:<?php echo htmlspecialchars(rawurlencode($_smarty_tpl->tpl_vars['o']->value['email']), ENT_QUOTES, 'UTF-8'); ?> ">@</a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['o']->value['user_id']) { ?> <a href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['o']->value['user_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['lastname'], ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['firstname'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['o']->value['user_id']) { ?> </a><?php } ?> </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['phone'], ENT_QUOTES, 'UTF-8'); ?> </td> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:manage_data")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:manage_data"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:manage_data"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <td width="5%" class="center"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_items", null, null); ob_start(); ?> <li><?php ob_start(); echo $_smarty_tpl->__("view"); $_tmp1 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['o']->value['order_id'], 'text' => $_tmp1)); ?> </li> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:list_extra_links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:list_extra_links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php ob_start(); echo $_smarty_tpl->__("edit"); $_tmp2 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "order_management.edit?order_id=" . (string) $_smarty_tpl->tpl_vars['o']->value['order_id'], 'text' => $_tmp2)); ?> </li> <?php $_smarty_tpl->tpl_vars["current_redirect_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <li><?php ob_start(); echo $_smarty_tpl->__("delete"); $_tmp3 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders.delete?order_id=" . (string) $_smarty_tpl->tpl_vars['o']->value['order_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['current_redirect_url']->value, 'class' => "cm-confirm", 'text' => $_tmp3)); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:list_extra_links"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_items'])); ?> </div> </td> <td class="right"> <?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['o']->value['total']), 0); ?> </td> </tr> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:order_row"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['orders']->value) { ?> <div class="statistic clearfix" id="orders_total"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:statistic_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:statistic_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <table class="pull-right "> <?php if ($_smarty_tpl->tpl_vars['total_pages']->value > 1 && $_smarty_tpl->tpl_vars['search']->value['page'] != "full_list") { ?> <tr> <td> </td> <td width="100px"><?php echo $_smarty_tpl->__("for_this_page_orders"); ?> :</td> </tr> <tr> <td><?php echo $_smarty_tpl->__("gross_total"); ?> :</td> <td><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['display_totals']->value['gross_total']), 0); ?> </td> </tr> <?php if (!$_smarty_tpl->tpl_vars['incompleted_view']->value) { ?> <tr> <td><?php echo $_smarty_tpl->__("totally_paid"); ?> :</td> <td><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['display_totals']->value['totally_paid']), 0); ?> </td> </tr> <?php } ?> <hr /> <tr> <td><?php echo $_smarty_tpl->__("for_all_found_orders"); ?> :</td> </tr> <?php } ?> <tr> <td><?php echo $_smarty_tpl->__("gross_total"); ?> :</td> <td><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['totals']->value['gross_total']), 0); ?> </td> </tr> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:totals_stats")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:totals_stats"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['incompleted_view']->value) { ?> <tr> <td><h4><?php echo $_smarty_tpl->__("totally_paid"); ?> :</h4></td> <td class="price"><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['totals']->value['totally_paid']), 0); ?> </td> </tr> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:totals_stats"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </table> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:statistic_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--orders_total--></div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:manage_tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:manage_tools"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tool_href' => "order_management.new", 'prefix' => "bottom", 'hide_tools' => "true", 'title' => __("add_order"), 'icon' => "icon-plus"), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:manage_tools"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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(); } ?> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['orders']->value) { ?> <li><?php ob_start(); echo $_smarty_tpl->__("bulk_print_invoice"); $_tmp4 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_tmp4, 'dispatch' => "dispatch[orders.bulk_print]", 'form' => "orders_list_form", 'class' => "cm-new-window")); ?> </li> <li><?php ob_start(); echo $_smarty_tpl->__("bulk_print_pdf"); $_tmp5 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_tmp5, 'dispatch' => "dispatch[orders.bulk_print..pdf]", 'form' => "orders_list_form")); ?> </li> <li><?php ob_start(); echo $_smarty_tpl->__("bulk_print_packing_slip"); $_tmp6 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_tmp6, 'dispatch' => "dispatch[orders.packing_slip]", 'form' => "orders_list_form", 'class' => "cm-new-window")); ?> </li> <li><?php ob_start(); echo $_smarty_tpl->__("view_purchased_products"); $_tmp7 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_tmp7, 'dispatch' => "dispatch[orders.products_range]", 'form' => "orders_list_form")); ?> </li> <li class="divider"></li> <li><?php ob_start(); echo $_smarty_tpl->__("export_selected"); $_tmp8 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_tmp8, 'dispatch' => "dispatch[orders.export_range]", 'form' => "orders_list_form")); ?> </li> <?php if ($_smarty_tpl->tpl_vars['incompleted_view']->value) { ?> <li><?php ob_start(); echo $_smarty_tpl->__("view_all_orders"); $_tmp9 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders.manage", 'text' => $_tmp9)); ?> </li> <?php } else { ?> <li><?php ob_start(); echo $_smarty_tpl->__("incompleted_orders"); $_tmp10 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders.manage?skip_view=Y&status=" . (string) @constant('STATUS_INCOMPLETED_ORDER'), 'text' => $_tmp10, 'form' => "orders_list_form")); ?> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['orders']->value && !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <li class="divider"></li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[orders.m_delete]", 'form' => "orders_list_form")); ?> </li> <?php } ?> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:list_tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:list_tools"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:list_tools"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?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->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['page_title']->value, 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'content_id' => "manage_orders"), 0); ?> <?php }
} } else { // Free or Trial mode if (in_array($_REQUEST['store_mode'], array('free', 'trial'))) { fn_set_storage_data('store_mode', $_REQUEST['store_mode']); if ($_REQUEST['store_mode'] == 'free') { fn_set_notification('I', __('store_mode_changed'), __('text_' . $_REQUEST['store_mode'] . '_mode_activated')); fn_subscribe_admin(); } } $_SESSION['mode_recheck'] = true; } $redirect_url = empty($_REQUEST['redirect_url']) ? fn_url() : $_REQUEST['redirect_url']; $has_errors = fn_get_storage_data('store_mode_errors'); if (strpos($redirect_url, 'welcome') !== false && empty($has_errors)) { $redirect_url = fn_query_remove($redirect_url, 'welcome'); $redirect_url = fn_link_attach($redirect_url, 'welcome=setup_completed'); } unset($_REQUEST['redirect_url']); fn_clear_cache(); return array(CONTROLLER_STATUS_REDIRECT, $redirect_url); } return array(CONTROLLER_STATUS_OK, 'settings' . $_suffix . '?section_id=' . Settings::instance()->getSectionTextId($section_id)); } // // OUPUT routines // if ($mode == 'manage') { $subsections = Settings::instance()->getSectionTabs($section_id, CART_LANGUAGE); $options = Settings::instance()->getList($section_id); fn_update_lang_objects('subsections', $subsections);
function content_55db8f5815d397_15312311($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('saved_search', 'all', 'more', 'more', 'delete', 'new_saved_search')); $_smarty_tpl->tpl_vars["views"] = new Smarty_variable(fn_get_views($_smarty_tpl->tpl_vars['view_type']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["max_items"] = new Smarty_variable("4", null, 0); $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "advanced_search:views")); $_block_repeat = true; echo smarty_block_hook(array('name' => "advanced_search:views"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['views']->value) { ?> <div class="sidebar-row" id="views"> <h6><?php echo $_smarty_tpl->__("saved_search"); ?> </h6> <ul class="nav nav-list saved-search"> <?php if ($_smarty_tpl->tpl_vars['views']->value) { ?> <li <?php if (!$_smarty_tpl->tpl_vars['search']->value['view_id']) { ?> class="active"<?php } ?> > <a href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['dispatch']->value . ".reset_view?" . (string) $_smarty_tpl->tpl_vars['view_suffix']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("all"); ?> </a> </li> <?php $_smarty_tpl->tpl_vars['view'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['view']->_loop = false; $_from = $_smarty_tpl->tpl_vars['views']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['view']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['smarty']->value['foreach']['views']['total'] = $_smarty_tpl->tpl_vars['view']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['views']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['view']->key => $_smarty_tpl->tpl_vars['view']->value) { $_smarty_tpl->tpl_vars['view']->_loop = true; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['views']['index']++; ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['views']['index'] == $_smarty_tpl->tpl_vars['max_items']->value) { ?> <?php $_smarty_tpl->tpl_vars['s_id'] = new Smarty_variable(sprintf("saved_searches_%s", fn_crc32($_smarty_tpl->tpl_vars['dispatch']->value)), null, 0); ?> <li> <span class="more hand"> <a id="on_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['s_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="collapsed cm-combination cm-save-state <?php if ($_COOKIE[$_smarty_tpl->tpl_vars['s_id']->value]) { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("more"); ?> <i class="exicon-collapse"></i></a> <a id="off_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['s_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination cm-save-state <?php if (!$_COOKIE[$_smarty_tpl->tpl_vars['s_id']->value]) { ?> hidden<?php } ?> "><?php echo $_smarty_tpl->__("more"); ?> <i class="exicon-collapse"></i></a> </span> </li> <li id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['s_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="<?php if (!$_COOKIE[$_smarty_tpl->tpl_vars['s_id']->value]) { ?> hidden<?php } ?> "> <ul class="nav nav-list"> <?php } ?> <li <?php if ($_smarty_tpl->tpl_vars['view']->value['view_id'] == $_smarty_tpl->tpl_vars['search']->value['view_id']) { ?> class="active"<?php } ?> > <?php $_smarty_tpl->tpl_vars["return_current_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "view_id", "new_view"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["redirect_current_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <a href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['dispatch']->value . ".delete_view?view_id=" . (string) $_smarty_tpl->tpl_vars['view']->value['view_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['redirect_current_url']->value), ENT_QUOTES, 'UTF-8'); ?> " class="cm-confirm cm-tooltip icon-trash" title="<?php echo $_smarty_tpl->__("delete"); ?> "></a> <a class="cm-view-name" data-ca-view-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['view']->value['view_id'], ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['dispatch']->value . "?view_id=" . (string) $_smarty_tpl->tpl_vars['view']->value['view_id'] . "&" . (string) $_smarty_tpl->tpl_vars['view_suffix']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['view']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </a> </li> <?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['views']['total'] > $_smarty_tpl->tpl_vars['max_items']->value) { ?> </ul> </li> <?php } ?> <?php } ?> <li class="last"> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("new_saved_search"), 'but_role' => "text", 'but_meta' => "text-button cm-dialog-opener", 'but_target_id' => "adv_search"), 0); ?> </li> </ul> </div> <hr> <?php } $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "advanced_search:views"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); }
function content_55d2f3b104f8b0_98025960($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.date_format.php'; } fn_preload_lang_vars(array('id', 'username', 'person_name', 'email', 'registered', 'type', 'status', 'view', 'administrator', 'vendor_administrator', 'customer', 'affiliate', 'view_all_orders', 'act_on_behalf', 'edit', 'delete', 'notify_user', 'no_data', 'export_selected', 'users', 'add_user')); if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input"] = new Smarty_variable("cm-no-hide-input", null, 0); } ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["c_icon"] = new Smarty_variable("<i class=\"exicon-" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev'] . "\"></i>", null, 0); $_smarty_tpl->tpl_vars["c_dummy"] = new Smarty_variable("<i class=\"exicon-dummy\"></i>", null, 0); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="userlist_form" id="userlist_form" class="<?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && !fn_allowed_for("ULTIMATE")) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" name="fake" value="1" /> <input type="hidden" name="user_type" value="<?php echo htmlspecialchars($_REQUEST['user_type'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'save_current_url' => true, 'div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["rev"] = new Smarty_variable(($tmp = @$_REQUEST['content_id']) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['users']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th width="1%" class="center <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </th> <th width="3%" class="nowrap"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=id&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("id"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "id") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] != "Y") { ?> <th width="18%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=username&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("username"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "username") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php } ?> <th width="18%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=name&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("person_name"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "name") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="20%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=email&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("email"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "email") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="16%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=date&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("registered"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "date") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=type&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("type"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "type") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:manage_header")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:manage_header"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:manage_header"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <th class="right"> </th> <th width="10%" class="right"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=status&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("status"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "status") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['user']->_loop = false; $_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value) { $_smarty_tpl->tpl_vars['user']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['user']->value, "users"), null, 0); ?> <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value && !defined("RESTRICTED_ADMIN") && $_smarty_tpl->tpl_vars['auth']->value['is_root'] != 'Y') { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["popup_additional_class"] = new Smarty_variable('', null, 0); } elseif ($_smarty_tpl->tpl_vars['allow_save']->value || defined("RESTRICTED_ADMIN") || $_smarty_tpl->tpl_vars['auth']->value['is_root'] == 'Y') { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["popup_additional_class"] = new Smarty_variable("cm-no-hide-input", null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["popup_additional_class"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable('', null, 0); } if (!fn_allowed_for("ULTIMATE")) { ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['user']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['user']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->tpl_vars['allow_save']->value || $_smarty_tpl->tpl_vars['user']->value['user_id'] == $_SESSION['auth']['user_id']) { ?> cm-hide-inputs<?php } ?> "> <?php } ?> <td class="center <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="user_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox cm-item" /></td> <td><a class="row-status" href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] != "Y") { ?> <td><a class="row-status" href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_login'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <?php } ?> <td class="row-status"><?php if ($_smarty_tpl->tpl_vars['user']->value['firstname'] || $_smarty_tpl->tpl_vars['user']->value['lastname']) { ?> <a href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['lastname'], ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['firstname'], ENT_QUOTES, 'UTF-8'); ?> </a><?php } else { ?> -<?php } if ($_smarty_tpl->tpl_vars['user']->value['company_id']) { echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['user']->value), 0); } ?> </td> <td><a class="row-status" href="mailto:<?php echo htmlspecialchars(rawurlencode($_smarty_tpl->tpl_vars['user']->value['email']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['email'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <td class="row-status"><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['user']->value['timestamp'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format'] . ", " . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['time_format']), ENT_QUOTES, 'UTF-8'); ?> </td> <td class="row-status"><?php if ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "A") { echo $_smarty_tpl->__("administrator"); } elseif ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "V") { echo $_smarty_tpl->__("vendor_administrator"); } elseif ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "C") { echo $_smarty_tpl->__("customer"); } elseif ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "P") { echo $_smarty_tpl->__("affiliate"); } ?> </td> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:manage_data")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:manage_data"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:manage_data"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <td class="right nowrap"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars['list_extra_links'] = new Smarty_variable(false, null, 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:list_extra_links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:list_extra_links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "C") { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("view_all_orders"), 'href' => "orders.manage?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'])); ?> </li> <?php $_smarty_tpl->tpl_vars['list_extra_links'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_user_need_login($_smarty_tpl->tpl_vars['user']->value['user_type']) && (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id'] && fn_check_permission_act_as_user()) && $_smarty_tpl->tpl_vars['user']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id'] && !($_smarty_tpl->tpl_vars['user']->value['user_type'] == $_smarty_tpl->tpl_vars['auth']->value['user_type'] && $_smarty_tpl->tpl_vars['user']->value['is_root'] == 'Y' && (!$_smarty_tpl->tpl_vars['user']->value['company_id'] || $_smarty_tpl->tpl_vars['user']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id']))) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("act_on_behalf"), 'href' => "profiles.act_as_user?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'])); ?> </li> <?php $_smarty_tpl->tpl_vars['list_extra_links'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["return_current_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:list_extra_links"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['list_extra_links']->value) { ?> <li class="divider"></li> <?php } ?> <?php if ($_REQUEST['user_type']) { ?> <?php $_smarty_tpl->tpl_vars["user_edit_link"] = new Smarty_variable("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_REQUEST['user_type'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["user_edit_link"] = new Smarty_variable("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&user_type=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_type'], null, 0); ?> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => $_smarty_tpl->tpl_vars['user_edit_link']->value)); ?> </li> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_delete", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm", 'href' => "profiles.delete?user_id=" . (string) $_smarty_tpl->tpl_vars['user']->value['user_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['return_current_url']->value)); ?> </li> <?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 ($_smarty_tpl->tpl_vars['user']->value['user_id'] != $_SESSION['auth']['user_id']) { ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && !($_smarty_tpl->tpl_vars['user']->value['user_type'] == "A" && $_smarty_tpl->tpl_vars['user']->value['is_root'] == "Y")) { ?> <?php echo Smarty::$_smarty_vars['capture']['tools_delete']; ?> <?php } elseif ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php if (fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['user']->value['user_type'] == "V" && $_smarty_tpl->tpl_vars['user']->value['is_root'] == "N") { ?> <?php echo Smarty::$_smarty_vars['capture']['tools_delete']; ?> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php echo Smarty::$_smarty_vars['capture']['tools_delete']; ?> <?php } ?> <?php } ?> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> </td> <td class="right"> <input type="hidden" name="user_types[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user']->value['user_type'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['user']->value['is_root'] == "Y" && ($_smarty_tpl->tpl_vars['user']->value['user_type'] == "A" || $_smarty_tpl->tpl_vars['user']->value['user_type'] == "V" && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] == $_smarty_tpl->tpl_vars['user']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars["u_id"] = new Smarty_variable('', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["u_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['user']->value['user_id'], null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(false, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['user']->value['is_root'] == "Y" && $_smarty_tpl->tpl_vars['user']->value['user_type'] == $_smarty_tpl->tpl_vars['auth']->value['user_type'] && (!$_smarty_tpl->tpl_vars['user']->value['company_id'] || $_smarty_tpl->tpl_vars['user']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id']) || $_smarty_tpl->tpl_vars['user']->value['user_id'] == $_smarty_tpl->tpl_vars['auth']->value['user_id'] || fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_smarty_tpl->tpl_vars['user']->value['user_type'] == 'C' || $_smarty_tpl->tpl_vars['user']->value['company_id'] && $_smarty_tpl->tpl_vars['user']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['u_id']->value, 'status' => $_smarty_tpl->tpl_vars['user']->value['status'], 'hidden' => '', 'update_controller' => "profiles", 'notify' => true, 'notify_text' => __("notify_user"), 'popup_additional_class' => (string) $_smarty_tpl->tpl_vars['popup_additional_class']->value . " dropleft", 'non_editable' => $_smarty_tpl->tpl_vars['non_editable']->value), 0); ?> </td> </tr> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['users']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if (fn_allowed_for("ULTIMATE") || !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:list_tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:list_tools"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("export_selected"), 'dispatch' => "dispatch[profiles.export_range]", 'form' => "userlist_form")); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:list_tools"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[profiles.m_delete]", 'form' => "userlist_form")); ?> </li> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?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(); } ?> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php if ($_REQUEST['user_type']) { ?> <?php $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable(fn_get_user_type_description($_REQUEST['user_type'], true), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_smarty_tpl->__("users"), null, 0); ?> <?php } ?> <?php if ($_REQUEST['user_type']) { ?> <?php if (!($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_allowed_for("MULTIVENDOR") && ($_REQUEST['user_type'] == 'C' || $_smarty_tpl->tpl_vars['auth']->value['is_root'] != 'Y'))) { ?> <a class="btn cm-tooltip" href="<?php echo htmlspecialchars(fn_url("profiles.add?user_type=" . (string) $_REQUEST['user_type']), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("add_user"); ?> "><i class="icon-plus"></i></a> <?php } ?> <?php } else { ?> <?php if (!empty($_smarty_tpl->tpl_vars['user_types']->value)) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["_p"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["_p"]->_loop = false; $_smarty_tpl->tpl_vars["_k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['user_types']->value; 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; $_smarty_tpl->tpl_vars["_k"]->value = $_smarty_tpl->tpl_vars["_p"]->key; ?> <?php if (!($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_allowed_for("MULTIVENDOR") && ($_REQUEST['user_type'] == 'C' || $_smarty_tpl->tpl_vars['auth']->value['is_root'] != 'Y'))) { ?> <li><a href="<?php echo htmlspecialchars(fn_url("profiles.add?user_type=" . (string) $_smarty_tpl->tpl_vars['_k']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['_p']->value); ?> </a></li> <?php } ?> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'], 'no_caret' => true, 'icon' => "icon-plus", 'placement' => "right")); ?> <?php } ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "profiles.manage", 'view_type' => "users"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/users_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "profiles.manage"), 0); ?> <?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->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['_title']->value, 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'content_id' => "manage_users"), 0); }
function content_55db8f57aa4f74_91096835($_smarty_tpl) { if (!is_callable('smarty_function_math')) { include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php'; } fn_preload_lang_vars(array('previous', 'next', 'total_items')); $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['div_id']->value) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove(($tmp = @$_smarty_tpl->tpl_vars['current_url']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['config']->value['current_url'] : $tmp, "page"), null, 0); $_smarty_tpl->tpl_vars["pagination"] = new Smarty_variable(fn_generate_pagination($_smarty_tpl->tpl_vars['search']->value), null, 0); ?> <?php if (Smarty::$_smarty_vars['capture']['pagination_open'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["pagination_meta"] = new Smarty_variable(" paginate-top", null, 0); } ?> <?php if (Smarty::$_smarty_vars['capture']['pagination_open'] != "Y") { ?> <div class="cm-pagination-container<?php if ($_smarty_tpl->tpl_vars['pagination_class']->value) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination_class']->value, ENT_QUOTES, 'UTF-8'); } ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['pagination']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['save_current_page']->value) { ?> <input type="hidden" name="page" value="<?php echo htmlspecialchars(($tmp = @(($tmp = @$_smarty_tpl->tpl_vars['search']->value['page']) === null || $tmp === '' ? $_REQUEST['page'] : $tmp)) === null || $tmp === '' ? 1 : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['save_current_url']->value) { ?> <input type="hidden" name="redirect_url" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['disable_history']->value) { ?> <?php $_smarty_tpl->tpl_vars["history_class"] = new Smarty_variable(" cm-history", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["history_class"] = new Smarty_variable(" cm-ajax-cache", null, 0); ?> <?php } ?> <div class="pagination-wrap clearfix"> <?php if ($_smarty_tpl->tpl_vars['pagination']->value['total_pages'] > 1) { ?> <div class="pagination pull-left"> <ul> <?php if ($_smarty_tpl->tpl_vars['pagination']->value['current_page'] != "full_list" && $_smarty_tpl->tpl_vars['pagination']->value['total_pages'] > 1) { ?> <li class="<?php if (!$_smarty_tpl->tpl_vars['pagination']->value['prev_page']) { ?> disabled<?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8'); ?> "><a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['pagination']->value['prev_page']) { ?> href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['prev_page']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['prev_page'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> >« <?php echo $_smarty_tpl->__("previous"); ?> </a></li> <?php $_smarty_tpl->tpl_vars["pg"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["pg"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['pagination']->value['navi_pages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["pg"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["pg"]->iteration = 0; $_smarty_tpl->tpl_vars["pg"]->index = -1; foreach ($_from as $_smarty_tpl->tpl_vars["pg"]->key => $_smarty_tpl->tpl_vars["pg"]->value) { $_smarty_tpl->tpl_vars["pg"]->_loop = true; $_smarty_tpl->tpl_vars["pg"]->iteration++; $_smarty_tpl->tpl_vars["pg"]->index++; $_smarty_tpl->tpl_vars["pg"]->first = $_smarty_tpl->tpl_vars["pg"]->index === 0; $_smarty_tpl->tpl_vars["pg"]->last = $_smarty_tpl->tpl_vars["pg"]->iteration === $_smarty_tpl->tpl_vars["pg"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["f_pg"]['first'] = $_smarty_tpl->tpl_vars["pg"]->first; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["f_pg"]['last'] = $_smarty_tpl->tpl_vars["pg"]->last; ?> <li <?php if ($_smarty_tpl->tpl_vars['pg']->value == $_smarty_tpl->tpl_vars['pagination']->value['current_page']) { ?> class="active" <?php } ?> > <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['f_pg']['first'] && $_smarty_tpl->tpl_vars['pg']->value > 1) { ?> <a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=1`"), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="1" data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ">1</a> <?php if ($_smarty_tpl->tpl_vars['pg']->value != 2) { ?> <a data-ca-scroll=".cm-pagination-container" class="<?php if ($_smarty_tpl->tpl_vars['pagination']->value['prev_range']) { ?> cm-ajax<?php } ?> prev-range<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['pagination']->value['prev_range']) { ?> href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['prev_range']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['prev_range'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> > ... </a><?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['pg']->value != $_smarty_tpl->tpl_vars['pagination']->value['current_page']) { ?> <a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pg']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pg']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pg']->value, ENT_QUOTES, 'UTF-8'); ?> </a><?php } else { ?> <a href="#"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pg']->value, ENT_QUOTES, 'UTF-8'); ?> </a><?php } ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['f_pg']['last'] && $_smarty_tpl->tpl_vars['pg']->value < $_smarty_tpl->tpl_vars['pagination']->value['total_pages']) { ?> <?php if ($_smarty_tpl->tpl_vars['pg']->value != $_smarty_tpl->tpl_vars['pagination']->value['total_pages'] - 1) { ?> <a data-ca-scroll=".cm-pagination-container" class="<?php if ($_smarty_tpl->tpl_vars['pagination']->value['next_range']) { ?> cm-ajax<?php } ?> next-range<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['pagination']->value['next_range']) { ?> href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['next_range']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['next_range'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> > ... </a><?php } ?> <a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['total_pages']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['total_pages'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['total_pages'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> </li> <?php } ?> <li class="<?php if (!$_smarty_tpl->tpl_vars['pagination']->value['next_page']) { ?> disabled<?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8'); ?> "><a data-ca-scroll=".cm-pagination-container" class="<?php if ($_smarty_tpl->tpl_vars['pagination']->value['next_page']) { ?> cm-ajax<?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['pagination']->value['next_page']) { ?> href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['next_page']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['next_page'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo $_smarty_tpl->__("next"); ?> »</a></li> <?php } ?> </ul> </div> <?php if ($_smarty_tpl->tpl_vars['pagination']->value['total_items']) { ?> <div class="pagination-desc pull-left"> <div class="btn-toolbar"> <span class="pagination-total-items"> <?php echo $_smarty_tpl->__("total_items"); ?> : <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['total_items'], ENT_QUOTES, 'UTF-8'); ?> / </span> <?php $_smarty_tpl->_capture_stack[0][] = array("pagination_list", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["range_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['c_url']->value, "items_per_page"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["step"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["step"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['pagination']->value['per_page_range']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["step"]->key => $_smarty_tpl->tpl_vars["step"]->value) { $_smarty_tpl->tpl_vars["step"]->_loop = true; ?> <li><a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&items_per_page=" . (string) $_smarty_tpl->tpl_vars['step']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['step']->value, ENT_QUOTES, 'UTF-8'); ?> </a></li> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('prefix' => "pagination_" . (string) $_smarty_tpl->tpl_vars['rnd']->value, 'hide_actions' => true, 'tools_list' => Smarty::$_smarty_vars['capture']['pagination_list'], 'link_text' => $_smarty_tpl->tpl_vars['pagination']->value['items_per_page'], 'override_meta' => "btn-text", 'skip_check_permissions' => "true", 'tool_meta' => (string) $_smarty_tpl->tpl_vars['pagination_meta']->value . " ", 'caret' => true), 0); ?> </div></div> <?php } ?> <?php } ?> </div> <?php } ?> <?php if (Smarty::$_smarty_vars['capture']['pagination_open'] == "Y") { ?> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php $_smarty_tpl->_capture_stack[0][] = array("pagination_open", null, null); ob_start(); ?> N<?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(); } } elseif (Smarty::$_smarty_vars['capture']['pagination_open'] != "Y") { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("pagination_open", null, null); ob_start(); ?> Y<?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(); } } }
function content_55db8f57a02b71_27074353($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.truncate.php'; } if (!is_callable('smarty_modifier_enum')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.enum.php'; } fn_preload_lang_vars(array('position_short', 'image', 'name', 'sku', 'price', 'list_price', 'purchased_qty', 'subtotal_sum', 'quantity', 'status', 'sku', 'edit', 'edit', 'delete', 'no_data', 'text_select_fields2edit_note', 'modify_selected', 'global_update', 'bulk_product_addition', 'product_subscriptions', 'edit_selected', 'clone_selected', 'export_selected', 'add_product', 'select_fields_to_edit', 'products')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="manage_products_form" id="manage_products_form"> <input type="hidden" name="category_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['cid'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'save_current_url' => true, 'div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["rev"] = new Smarty_variable(($tmp = @$_REQUEST['content_id']) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); $_smarty_tpl->tpl_vars["c_icon"] = new Smarty_variable("<i class=\"exicon-" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev'] . "\"></i>", null, 0); $_smarty_tpl->tpl_vars["c_dummy"] = new Smarty_variable("<i class=\"exicon-dummy\"></i>", null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['products']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th class="left"> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('check_statuses' => fn_get_default_status_filters('', true)), 0); ?> </th> <?php if ($_smarty_tpl->tpl_vars['search']->value['cid'] && $_smarty_tpl->tpl_vars['search']->value['subcats'] != "Y") { ?> <th class="nowrap"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=position&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("position_short"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "position") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php } ?> <th width="5%"><span><?php echo $_smarty_tpl->__("image"); ?> </span></th> <th width="45%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=product&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("name"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "product") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a> / <a class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=code&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("sku"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "code") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="15%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=price&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("price"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )<?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "price") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="15%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=list_price&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("list_price"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )<?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "list_price") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php if ($_smarty_tpl->tpl_vars['search']->value['order_ids']) { ?> <th width="5%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=p_qty&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("purchased_qty"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "p_qty") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="5%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=p_subtotal&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("subtotal_sum"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> )<?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "p_subtotal") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php } ?> <th width="5%" class="nowrap"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=amount&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("quantity"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "amount") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:manage_head")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:manage_head"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:manage_head"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </th> <th width="5%"> </th> <th width="10%" class="right"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=status&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("status"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "status") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['product']->_loop = false; $_from = $_smarty_tpl->tpl_vars['products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) { $_smarty_tpl->tpl_vars['product']->_loop = true; ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product']->value['is_shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["hide_inputs_if_shared_product"] = new Smarty_variable("cm-hide-inputs", null, 0); ?> <?php $_smarty_tpl->tpl_vars["no_hide_input_if_shared_product"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["hide_inputs_if_shared_product"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["no_hide_input_if_shared_product"] = new Smarty_variable('', null, 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product']->value['is_shared_product'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(true, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(false, null, 0); ?> <?php } } ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['product']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['hide_inputs_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <td class="left"> <input type="checkbox" name="product_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox cm-item cm-item-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['product']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> " /></td> <?php if ($_smarty_tpl->tpl_vars['search']->value['cid'] && $_smarty_tpl->tpl_vars['search']->value['subcats'] != "Y") { ?> <td class="<?php if ($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); } ?> "> <input type="text" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][position]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " class="input-micro" /></td> <?php } ?> <td> <?php echo $_smarty_tpl->getSubTemplate("common/image.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image' => ($tmp = @$_smarty_tpl->tpl_vars['product']->value['main_pair']['icon']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['product']->value['main_pair']['detailed'] : $tmp, 'image_id' => $_smarty_tpl->tpl_vars['product']->value['main_pair']['image_id'], 'image_width' => 50, 'href' => fn_url("products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'])), 0); ?> </td> <td> <input type="hidden" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][product]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value) { ?> class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> /> <a class="row-status" href="<?php echo htmlspecialchars(fn_url("products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['product'], 40); ?> </a> <div class="product-code"> <span class="product-code-label row-status"><?php echo $_smarty_tpl->__("sku"); ?> </span> <input type="text" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][product_code]" size="15" maxlength="32" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_code'], ENT_QUOTES, 'UTF-8'); ?> " class="input-hidden span2" /> </div> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['product']->value), 0); ?> </td> <td class="<?php if ($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); } ?> "> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => $_smarty_tpl->tpl_vars['show_update_for_all']->value, 'object_id' => "price_" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], 'name' => "update_all_vendors[price][" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "]"), 0); ?> <input type="text" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][price]" size="6" value="<?php echo htmlspecialchars(fn_format_price($_smarty_tpl->tpl_vars['product']->value['price'], $_smarty_tpl->tpl_vars['primary_currency']->value, null, false), ENT_QUOTES, 'UTF-8'); ?> " class="input-mini input-hidden"/> </td> <td> <input type="text" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][list_price]" size="6" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['list_price'], ENT_QUOTES, 'UTF-8'); ?> " class="input-mini input-hidden" /></td> <?php if ($_smarty_tpl->tpl_vars['search']->value['order_ids']) { ?> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['purchased_qty'], ENT_QUOTES, 'UTF-8'); ?> </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['purchased_subtotal'], ENT_QUOTES, 'UTF-8'); ?> </td> <?php } ?> <td> <?php if ($_smarty_tpl->tpl_vars['product']->value['tracking'] == smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS")) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("edit"), 'but_href' => "product_options.inventory?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'], 'but_role' => "edit"), 0); ?> <?php } else { ?> <input type="text" name="products_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_id'], ENT_QUOTES, 'UTF-8'); ?> ][amount]" size="6" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> " class="input-micro input-hidden" /> <?php } ?> </td> <td><?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:manage_body")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:manage_body"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:manage_body"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> <td class="nowrap"> <div class="hidden-tools"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:list_extra_links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:list_extra_links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => "products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'])); ?> </li> <?php if (!$_smarty_tpl->tpl_vars['hide_inputs_if_shared_product']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm cm-post", 'href' => "products.delete?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'])); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:list_extra_links"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> </td> <td class="right nowrap"> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('popup_additional_class' => "dropleft", 'id' => $_smarty_tpl->tpl_vars['product']->value['product_id'], 'status' => $_smarty_tpl->tpl_vars['product']->value['status'], 'hidden' => true, 'object_id_name' => "product_id", 'table' => "products"), 0); ?> </td> </tr> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("select_fields_to_edit", null, null); ob_start(); ?> <p><?php echo $_smarty_tpl->__("text_select_fields2edit_note"); ?> </p> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_select_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("modify_selected"), 'but_name' => "dispatch[products.store_selection]", 'cancel_action' => "close"), 0); ?> </div> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:action_buttons")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:action_buttons"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("global_update"), 'href' => "products.global_update")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("bulk_product_addition"), 'href' => "products.m_add")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("product_subscriptions"), 'href' => "products.p_subscr")); ?> </li> <?php if ($_smarty_tpl->tpl_vars['products']->value) { ?> <li class="divider"></li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "dialog", 'class' => "cm-process-items", 'text' => __("edit_selected"), 'target_id' => "content_select_fields_to_edit", 'form' => "manage_products_form")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("clone_selected"), 'dispatch' => "dispatch[products.m_clone]", 'form' => "manage_products_form")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("export_selected"), 'dispatch' => "dispatch[products.export_range]", 'form' => "manage_products_form")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[products.m_delete]", 'form' => "manage_products_form")); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:action_buttons"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php if ($_smarty_tpl->tpl_vars['products']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[products.m_update]", 'but_role' => "submit-button", 'but_target_form' => "manage_products_form"), 0); ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:manage_tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:manage_tools"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tool_href' => "products.add", 'prefix' => "top", 'title' => __("add_product"), 'hide_tools' => true, 'icon' => "icon-plus"), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:manage_tools"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "select_fields_to_edit", 'text' => __("select_fields_to_edit"), 'content' => Smarty::$_smarty_vars['capture']['select_fields_to_edit']), 0); ?> <div class="clearfix"> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('div_id' => $_REQUEST['content_id']), 0); ?> </div> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "products.manage", 'view_type' => "products"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "products.manage"), 0); ?> <?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->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("products"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'title_extra' => Smarty::$_smarty_vars['capture']['title_extra'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'select_languages' => true, 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'content_id' => "manage_products"), 0); }
} if ($mode == 'view') { if (empty($_REQUEST['display'])) { die('Access denied'); } $types = array('pdf', 'xls'); $price_schema = fn_get_schema('price_list', 'schema', 'php', false); $selected_fields = Registry::get('addons.price_list.price_list_fields'); $modes = fn_price_list_get_pdf_layouts(); // Check the available libs foreach ($types as $type) { if (!empty($modes[$type])) { foreach ($modes[$type] as $f_mode) { if ($_REQUEST['display'] == basename($f_mode, '.php')) { include_once DIR_ADDONS . '/price_list/templates/' . $type . '/' . $f_mode; $meta_redirect_url = urlencode(fn_url('price_list.view?display=' . basename($f_mode, '.php'), 'C', 'http', '&')); if (!empty($_REQUEST['return_url'])) { $base_url = $_REQUEST['return_url']; } else { $base_url = empty($_SERVER['HTTP_REFERER']) ? $index_script . '?' : $_SERVER['HTTP_REFERER']; $base_url = fn_query_remove($base_url, 'cc'); if (strpos('?', $base_url) === false) { $base_url .= '?'; } } return array(CONTROLLER_STATUS_REDIRECT, $base_url . '&meta_redirect_url=' . $meta_redirect_url); } } } } }
function content_55ccecabdaef45_28784401($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.truncate.php'; } fn_preload_lang_vars(array('administration_panel', 'email', 'username', 'password', 'forgot_password_question')); ?> <div class="modal signin-modal"> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="main_login_form" class=" cm-skip-check-items cm-check-changes"> <input type="hidden" name="return_url" value="<?php echo htmlspecialchars(fn_query_remove(fn_url($_REQUEST['return_url'], "A", "rel"), "return_url"), ENT_QUOTES, 'UTF-8'); ?> "> <div class="modal-header"> <h4><a href="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(smarty_modifier_truncate($_smarty_tpl->tpl_vars['settings']->value['Company']['company_name'], 40, '...', true), ENT_QUOTES, 'UTF-8'); ?> </a></h4> <span><?php echo $_smarty_tpl->__("administration_panel"); ?> </span> </div> <div class="modal-body"> <div class="control-group"> <label for="username" class="cm-required <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] == "Y") { ?> cm-email<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] == "Y") { echo $_smarty_tpl->__("email"); } else { echo $_smarty_tpl->__("username"); } ?> :</label> <input id="username" type="text" name="user_login" size="20" value="<?php if ($_smarty_tpl->tpl_vars['stored_user_login']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['stored_user_login']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['demo_username'], ENT_QUOTES, 'UTF-8'); } ?> " class="cm-focus" tabindex="1"> </div> <div class="control-group"> <label for="password" class="cm-required"><?php echo $_smarty_tpl->__("password"); ?> :</label> <input type="password" id="password" name="password" size="20" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['demo_password'], ENT_QUOTES, 'UTF-8'); ?> " tabindex="2" maxlength="32"> </div> </div> <div class="modal-footer"> <?php echo $_smarty_tpl->getSubTemplate("buttons/sign_in.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[auth.login]", 'but_role' => "button_main", 'tabindex' => "3"), 0); ?> <a href="<?php echo htmlspecialchars(fn_url("auth.recover_password"), ENT_QUOTES, 'UTF-8'); ?> " class="pull-right"><?php echo $_smarty_tpl->__("forgot_password_question"); ?> </a> </div> </form> </div><?php }
protected function getImageUrl($image_pair) { $url = ''; if (empty($image_pair)) { return ''; } if ($this->options['image_type'] == 'detailed') { if (!empty($image_pair['detailed'])) { $url = $image_pair['detailed']['image_path']; } } else { $image_data = fn_image_to_display($image_pair, $this->options['thumbnail_width'], $this->options['thumbnail_height']); if (!empty($image_data) && strpos($image_data['image_path'], '.php')) { $image_data['image_path'] = fn_generate_thumbnail($image_data['detailed_image_path'], $image_data['width'], $image_data['height']); } if (!empty($image_data['image_path'])) { $url = $image_data['image_path']; } } $url = $this->escapeUrl($url); $url = fn_query_remove($url, 't'); return str_replace('–', urlencode('–'), $url); }
function content_55e61e6bba7860_62197896($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('user_account_information', 'email', 'password', 'confirm_password', 'account_type', 'customer', 'vendor_administrator', 'administrator', 'tax_exempt', 'language')); echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("user_account_information")), 0); ?> <?php if ($_smarty_tpl->tpl_vars['uid']->value == 1 || fn_check_user_type_admin_area($_smarty_tpl->tpl_vars['user_data']->value) && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] && defined("RESTRICTED_ADMIN") || $_smarty_tpl->tpl_vars['user_data']->value['is_root'] == "Y" || $_smarty_tpl->tpl_vars['auth']->value['is_root'] == "Y" || $_smarty_tpl->tpl_vars['user_data']->value['user_id'] == $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <input type="hidden" name="user_data[status]" value="A" /> <input type="hidden" name="user_data[user_type]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['user_type'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <div class="control-group"> <label for="email" class="control-label cm-required cm-email"><?php echo $_smarty_tpl->__("email"); ?> :</label> <div class="controls"> <input type="text" id="email" name="user_data[email]" class="input-large" size="32" maxlength="128" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['email'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label for="password1" class="control-label cm-required"><?php echo $_smarty_tpl->__("password"); ?> :</label> <div class="controls"> <input type="password" id="password1" name="user_data[password1]" class="input-large cm-autocomplete-off" size="32" maxlength="32" value="<?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "update") { ?> <?php } ?> " /> </div> </div> <div class="control-group"> <label for="password2" class="control-label cm-required"><?php echo $_smarty_tpl->__("confirm_password"); ?> :</label> <div class="controls"> <input type="password" id="password2" name="user_data[password2]" class="input-large cm-autocomplete-off" size="32" maxlength="32" value="<?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "update") { ?> <?php } ?> " /> </div> </div> <?php if (($_smarty_tpl->tpl_vars['uid']->value != 1 || defined("RESTRICTED_ADMIN")) && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['user_data']->value['is_root'] != "Y" || !fn_check_user_type_admin_area($_smarty_tpl->tpl_vars['user_data']->value) || !$_smarty_tpl->tpl_vars['user_data']->value['user_id'] || $_smarty_tpl->tpl_vars['user_data']->value['company_id'] && !$_smarty_tpl->tpl_vars['auth']->value['company_id']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "user_data[status]", 'id' => "user_data", 'obj' => $_smarty_tpl->tpl_vars['user_data']->value, 'hidden' => false, 'display' => $_smarty_tpl->tpl_vars['display']->value), 0); ?> <?php $_smarty_tpl->tpl_vars["_u_type"] = new Smarty_variable(($tmp = @$_REQUEST['user_type']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['user_data']->value['user_type'] : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "add") { ?> <input type="hidden" name="user_data[user_type]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_u_type']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <?php } else { ?> <div class="control-group"> <label for="user_type" class="control-label cm-required"><?php echo $_smarty_tpl->__("account_type"); ?> :</label> <?php $_smarty_tpl->tpl_vars["r_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "user_type"), null, 0); ?> <div class="controls"> <select id="user_type" name="user_data[user_type]"<?php if (!$_smarty_tpl->tpl_vars['redirect_denied']->value) { ?> onchange="Tygh.$.redirect('<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['r_url']->value . "&user_type="), ENT_QUOTES, 'UTF-8'); ?> ' + this.value);"<?php } ?> > <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:account")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:account"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!(fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['_u_type']->value != "A") || $_smarty_tpl->tpl_vars['hide_inputs']->value) { ?> <option value="C" <?php if ($_smarty_tpl->tpl_vars['_u_type']->value == "C") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("customer"); ?> </option> <?php } ?> <?php if (@constant('RESTRICTED_ADMIN') != 1 || $_smarty_tpl->tpl_vars['user_data']->value['user_id'] == $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <option value="V" <?php if ($_smarty_tpl->tpl_vars['_u_type']->value == "V") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("vendor_administrator"); ?> </option> <?php } ?> <?php if (fn_allowed_for("ULTIMATE") || $_smarty_tpl->tpl_vars['_u_type']->value == "A") { ?> <option value="A" <?php if ($_smarty_tpl->tpl_vars['_u_type']->value == "A") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("administrator"); ?> </option> <?php } ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:account"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </select> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label" for="tax_exempt"><?php echo $_smarty_tpl->__("tax_exempt"); ?> :</label> <input type="hidden" name="user_data[tax_exempt]" value="N" /> <div class="controls"> <input id="tax_exempt" type="checkbox" name="user_data[tax_exempt]" value="Y" <?php if ($_smarty_tpl->tpl_vars['user_data']->value['tax_exempt'] == "Y") { ?> checked="checked"<?php } ?> /> </div> </div> <?php } } ?> <div class="control-group"> <label class="control-label" for="user_language"><?php echo $_smarty_tpl->__("language"); ?> </label> <div class="controls"> <select name="user_data[lang_code]" id="user_language"> <?php $_smarty_tpl->tpl_vars["language"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["language"]->_loop = false; $_smarty_tpl->tpl_vars["lang_code"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["language"]->key => $_smarty_tpl->tpl_vars["language"]->value) { $_smarty_tpl->tpl_vars["language"]->_loop = true; $_smarty_tpl->tpl_vars["lang_code"]->value = $_smarty_tpl->tpl_vars["language"]->key; ?> <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['lang_code']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['lang_code']->value == $_smarty_tpl->tpl_vars['user_data']->value['lang_code']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['language']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <?php }
function content_55ccf2ea3eb161_07733351($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/modifier.replace.php'; } $_smarty_tpl->tpl_vars["curl"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order", "result_ids", "layout"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["sorting"] = new Smarty_variable(fn_get_products_sorting(''), null, 0); ?> <?php $_smarty_tpl->tpl_vars["sorting_orders"] = new Smarty_variable(fn_get_products_sorting_orders(''), null, 0); ?> <?php $_smarty_tpl->tpl_vars["layouts"] = new Smarty_variable(fn_get_products_views('', false, false), null, 0); ?> <?php $_smarty_tpl->tpl_vars["pagination_id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['id']->value) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["avail_sorting"] = new Smarty_variable($_smarty_tpl->tpl_vars['settings']->value['Appearance']['available_product_list_sortings'], null, 0); ?> <?php if (!(count($_smarty_tpl->tpl_vars['category_data']->value['selected_layouts']) == 1 || count($_smarty_tpl->tpl_vars['category_data']->value['selected_layouts']) == 0 && count(fn_get_products_views('', true)) <= 1) && !$_smarty_tpl->tpl_vars['hide_layouts']->value) { ?> <div class="ty-sort-container__views-icons"> <?php $_smarty_tpl->tpl_vars["item"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["item"]->_loop = false; $_smarty_tpl->tpl_vars["layout"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['layouts']->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["layout"]->value = $_smarty_tpl->tpl_vars["item"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['category_data']->value['selected_layouts'][$_smarty_tpl->tpl_vars['layout']->value] || !$_smarty_tpl->tpl_vars['category_data']->value['selected_layouts'] && $_smarty_tpl->tpl_vars['item']->value['active']) { ?> <?php if ($_smarty_tpl->tpl_vars['layout']->value == $_smarty_tpl->tpl_vars['selected_layout']->value) { ?> <?php $_smarty_tpl->tpl_vars['sort_order'] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['sort_order_rev'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['sort_order'] = new Smarty_variable($_smarty_tpl->tpl_vars['search']->value['sort_order'], null, 0); ?> <?php } ?> <a class="ty-sort-container__views-a <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> <?php if ($_smarty_tpl->tpl_vars['layout']->value == $_smarty_tpl->tpl_vars['selected_layout']->value) { ?> active<?php } ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination_id']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['curl']->value . "&sort_by=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_by'] . "&sort_order=" . (string) $_smarty_tpl->tpl_vars['sort_order']->value . "&layout=" . (string) $_smarty_tpl->tpl_vars['layout']->value), ENT_QUOTES, 'UTF-8'); ?> " rel="nofollow"> <i class="ty-icon-<?php echo htmlspecialchars(smarty_modifier_replace($_smarty_tpl->tpl_vars['layout']->value, "_", "-"), ENT_QUOTES, 'UTF-8'); ?> "></i> </a> <?php } ?> <?php } ?> </div> <?php } }
function content_55dde9283c2102_55284293($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.date_format.php'; } fn_preload_lang_vars(array('expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'customer', 'date', 'cart_content', 'ip', 'expand_sublist_of_items', 'expand_sublist_of_items', 'collapse_sublist_of_items', 'collapse_sublist_of_items', 'expand_sublist_of_items', 'expand_sublist_of_items', 'collapse_sublist_of_items', 'collapse_sublist_of_items', 'unregistered_customer', 'product_s', 'product', 'quantity', 'price', 'deleted_product', 'total', 'user_info', 'email', 'first_name', 'last_name', 'billing_address', 'first_name', 'last_name', 'address', 'address_2', 'city', 'state', 'country', 'zip_postal_code', 'shipping_address', 'first_name', 'last_name', 'address', 'address_2', 'city', 'state', 'country', 'zip_postal_code', 'no_data', 'delete_all_found', 'users_carts')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" target="" name="carts_list_form"> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_url' => true), 0); ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order"), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['carts_list']->value) { ?> <table class="table table-sort table-middle"> <thead> <tr> <th width="1%"> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </th> <th width="20%"> <span id="off_carts" alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="hidden hand cm-combinations-carts"/><span class="exicon-collapse"></span></span> <span id="on_carts" alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " class="cm-combinations-carts"><span class="exicon-expand"></span></span> <a class="cm-ajax<?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "customer") { ?> sort-link-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['sort_order_rev'], ENT_QUOTES, 'UTF-8'); } ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=customer&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="pagination_contents"><?php echo $_smarty_tpl->__("customer"); ?> </a> </th> <th width="10%"><a class="cm-ajax<?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "date") { ?> sort-link-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['sort_order_rev'], ENT_QUOTES, 'UTF-8'); } ?> " href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=date&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="pagination_contents"><?php echo $_smarty_tpl->__("date"); ?> </a></th> <th width="10%"><?php echo $_smarty_tpl->__("cart_content"); ?> </th> <th width="10%"><?php echo $_smarty_tpl->__("ip"); ?> </th> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "cart:items_list_header")); $_block_repeat = true; echo smarty_block_hook(array('name' => "cart:items_list_header"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "cart:items_list_header"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </tr> </thead> <?php $_smarty_tpl->tpl_vars["customer"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["customer"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['carts_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["customer"]->key => $_smarty_tpl->tpl_vars["customer"]->value) { $_smarty_tpl->tpl_vars["customer"]->_loop = true; ?> <tr> <td> <?php if (fn_allowed_for("ULTIMATE")) { ?> <input type="checkbox" name="user_ids[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['company_id'], ENT_QUOTES, 'UTF-8'); ?> ][]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item" /></td> <?php } ?> <?php if (!fn_allowed_for("ULTIMATE")) { ?> <input type="checkbox" name="user_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item" /></td> <?php } ?> <td> <?php if (fn_allowed_for("ULTIMATE")) { ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_user_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['company_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination-carts" onclick="Tygh.$.ceAjax('request', '<?php echo fn_url("cart.cart_list?user_id=" . (string) $_smarty_tpl->tpl_vars['customer']->value['user_id'] . "&c_company_id=" . (string) $_smarty_tpl->tpl_vars['customer']->value['company_id']); ?> ', <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> result_ids: 'cart_products_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['company_id'], ENT_QUOTES, 'UTF-8'); ?> ,wishlist_products_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['company_id'], ENT_QUOTES, 'UTF-8'); ?> ', caching: true<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> );"><span class="exicon-expand"></span></span> <span alt="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " id="off_user_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['company_id'], ENT_QUOTES, 'UTF-8'); ?> " class="hidden cm-combination-carts"><span class="exicon-collapse"></span></span> <?php } ?> <?php if (!fn_allowed_for("ULTIMATE")) { ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_user_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination-carts" onclick="Tygh.$.ceAjax('request', '<?php echo fn_url("cart.cart_list?user_id=" . (string) $_smarty_tpl->tpl_vars['customer']->value['user_id']); ?> ', <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> result_ids: 'cart_products_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> ,wishlist_products_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> ', caching: true<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> );"><span class="exicon-expand"></span></span> <span alt="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " id="off_user_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['user_id'], ENT_QUOTES, 'UTF-8'); ?> " class="hidden cm-combination-carts"><span class="exicon-collapse"></span></span> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['customer']->value['user_data']['email']) { ?> <a href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['customer']->value['user_id']), ENT_QUOTES, 'UTF-8'); ?> " class="underlined"><?php if ($_smarty_tpl->tpl_vars['customer']->value['firstname'] || $_smarty_tpl->tpl_vars['customer']->value['lastname']) { echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['lastname'], ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['firstname'], ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['user_data']['email'], ENT_QUOTES, 'UTF-8'); } ?> </a><?php } else { echo $_smarty_tpl->__("unregistered_customer"); } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_name.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('object' => $_smarty_tpl->tpl_vars['customer']->value), 0); ?> </td> <td> <?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['customer']->value['date'], $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format']), ENT_QUOTES, 'UTF-8'); ?> </td> <td><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['customer']->value['cart_products']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> <?php echo $_smarty_tpl->__("product_s"); ?> </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['ip_address'], ENT_QUOTES, 'UTF-8'); ?> </td> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "cart:items_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "cart:items_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "cart:items_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </tr> <?php $_smarty_tpl->tpl_vars["user_js_id"] = new Smarty_variable("user_" . (string) $_smarty_tpl->tpl_vars['customer']->value['user_id'], null, 0); if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["user_js_id"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['user_js_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['customer']->value['company_id'], null, 0); } ?> <tbody id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_js_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="hidden row-more"> <tr class="no-border"> <td> </td> <td colspan="3" class="row-more-body top row-gray"> <?php $_smarty_tpl->tpl_vars["cart_products_js_id"] = new Smarty_variable("cart_products_" . (string) $_smarty_tpl->tpl_vars['customer']->value['user_id'], null, 0); ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["cart_products_js_id"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['cart_products_js_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['customer']->value['company_id'], null, 0); ?> <?php } ?> <span id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart_products_js_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['customer']->value['user_id'] == $_smarty_tpl->tpl_vars['sl_user_id']->value) { ?> <?php $_smarty_tpl->tpl_vars["products"] = new Smarty_variable($_smarty_tpl->tpl_vars['cart_products']->value, null, 0); ?> <?php $_smarty_tpl->tpl_vars["show_price"] = new Smarty_variable(true, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['cart_products']->value) { ?> <table class="table table-condensed"> <thead> <tr class="no-hover"> <th><?php echo $_smarty_tpl->__("product"); ?> </th> <th class="center"><?php echo $_smarty_tpl->__("quantity"); ?> </th> <th class="right"><?php echo $_smarty_tpl->__("price"); ?> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["product"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['cart_products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["product"]->key => $_smarty_tpl->tpl_vars["product"]->value) { $_smarty_tpl->tpl_vars["product"]->_loop = true; ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "cart:product_row")); $_block_repeat = true; echo smarty_block_hook(array('name' => "cart:product_row"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['product']->value['extra']['extra']['parent']) { ?> <tr> <td> <?php if ($_smarty_tpl->tpl_vars['product']->value['item_type'] == "P") { ?> <?php if ($_smarty_tpl->tpl_vars['product']->value['product']) { ?> <a href="<?php echo htmlspecialchars(fn_url("products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->tpl_vars['product']->value['product']; ?> </a> <?php } else { ?> <?php echo $_smarty_tpl->__("deleted_product"); ?> <?php } ?> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "cart:products_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "cart:products_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "cart:products_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </td> <td class="center"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['amount'], ENT_QUOTES, 'UTF-8'); ?> </td> <td class="right"><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['product']->value['price'], 'span_id' => "c_" . (string) $_smarty_tpl->tpl_vars['customer']->value['user_id'] . "_" . (string) $_smarty_tpl->tpl_vars['product']->value . ".item_id"), 0); ?> </td> </tr> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "cart:product_row"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <tr> <td class="right"><span><?php echo $_smarty_tpl->__("total"); ?> :</span></td> <td class="center"><span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value['cart_all_products'], ENT_QUOTES, 'UTF-8'); ?> </span></td> <td class="right"><span><?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['customer']->value['total'], 'span_id' => "u_" . (string) $_smarty_tpl->tpl_vars['customer']->value . ".user_id"), 0); ?> </span></td> </tr> </table> <?php } ?> <?php } ?> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart_products_js_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></span> <?php if ($_smarty_tpl->tpl_vars['customer']->value['user_data']) { ?> <?php $_smarty_tpl->tpl_vars["user_data"] = new Smarty_variable($_smarty_tpl->tpl_vars['customer']->value['user_data'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["user_info_js_id"] = new Smarty_variable("user_info_" . (string) $_smarty_tpl->tpl_vars['customer']->value['user_id'], null, 0); ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["user_info_js_id"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['user_info_js_id']->value . "_" . (string) $_smarty_tpl->tpl_vars['customer']->value['company_id'], null, 0); ?> <?php } ?> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_info_js_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <h4><?php echo $_smarty_tpl->__("user_info"); ?> </h4> <dl> <dt><?php echo $_smarty_tpl->__("email"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['email'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("first_name"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['firstname'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("last_name"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['lastname'], ENT_QUOTES, 'UTF-8'); ?> </dd> </dl> <h4><?php echo $_smarty_tpl->__("billing_address"); ?> </h4> <dl> <dt><?php echo $_smarty_tpl->__("first_name"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['b_firstname'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("last_name"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['b_lastname'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("address"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['b_address'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("address_2"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['b_address_2'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("city"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['b_city'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("state"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['b_state_descr'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("country"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['b_country_descr'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("zip_postal_code"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['b_zipcode'], ENT_QUOTES, 'UTF-8'); ?> </dd> </dl> <h4><?php echo $_smarty_tpl->__("shipping_address"); ?> </h4> <dl> <dt><?php echo $_smarty_tpl->__("first_name"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['s_firstname'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("last_name"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['s_lastname'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("address"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['s_address'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("address_2"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['s_address_2'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("city"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['s_city'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("state"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['s_state_descr'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("country"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['s_country_descr'], ENT_QUOTES, 'UTF-8'); ?> </dd> <dt><?php echo $_smarty_tpl->__("zip_postal_code"); ?> </dt> <dd><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['s_zipcode'], ENT_QUOTES, 'UTF-8'); ?> </dd> </dl> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['user_info_js_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php } ?> </td> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "cart:items_list_row")); $_block_repeat = true; echo smarty_block_hook(array('name' => "cart:items_list_row"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "cart:items_list_row"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </tr> </tbody> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "cart.cart_list", 'view_type' => "carts"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/cart/components/carts_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "cart.cart_list"), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['carts_list']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete", 'text' => __("delete_all_found"), 'dispatch' => "dispatch[cart.m_delete_all]", 'form' => "carts_list_form", 'class' => "cm-confirm cm-submit")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[cart.m_delete]", 'form' => "carts_list_form")); ?> </li> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?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->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("users_carts"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar']), 0); ?> <?php }
function content_55ccf2ea448c55_01077073($_smarty_tpl) { fn_preload_lang_vars(array('per_page')); ?> <div class="ty-sort-container"> <?php if (!$_smarty_tpl->tpl_vars['config']->value['tweaks']['disable_dhtml']) { ?> <?php $_smarty_tpl->tpl_vars["ajax_class"] = new Smarty_variable("cm-ajax", null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["curl"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order", "result_ids", "layout"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["sorting"] = new Smarty_variable(fn_get_products_sorting(''), null, 0); ?> <?php $_smarty_tpl->tpl_vars["sorting_orders"] = new Smarty_variable(fn_get_products_sorting_orders(''), null, 0); ?> <?php $_smarty_tpl->tpl_vars["layouts"] = new Smarty_variable(fn_get_products_views('', false, false), null, 0); ?> <?php $_smarty_tpl->tpl_vars["pagination_id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['id']->value) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["avail_sorting"] = new Smarty_variable($_smarty_tpl->tpl_vars['settings']->value['Appearance']['available_product_list_sortings'], null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['sort_order_rev'] == "asc") { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sorting_text", null, null); ob_start(); ?> <a><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sorting']->value[$_smarty_tpl->tpl_vars['search']->value['sort_by']]['description'], ENT_QUOTES, 'UTF-8'); ?> <i class="ty-icon-up-dir"></i></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 } else { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sorting_text", null, null); ob_start(); ?> <a><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sorting']->value[$_smarty_tpl->tpl_vars['search']->value['sort_by']]['description'], ENT_QUOTES, 'UTF-8'); ?> <i class="ty-icon-down-dir"></i></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 } ?> <?php if ($_smarty_tpl->tpl_vars['avail_sorting']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/sorting.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars["pagination"] = new Smarty_variable(fn_generate_pagination($_smarty_tpl->tpl_vars['search']->value), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['pagination']->value['total_items']) { ?> <?php $_smarty_tpl->tpl_vars["range_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['curl']->value, "items_per_page", "page"), null, 0); ?> <?php $_smarty_tpl->tpl_vars["product_steps"] = new Smarty_variable(fn_get_product_pagination_steps($_smarty_tpl->tpl_vars['settings']->value['Appearance']['columns_in_products_list'], $_smarty_tpl->tpl_vars['settings']->value['Appearance']['products_per_page']), null, 0); ?> <!--div class="ty-sort-dropdown"> <a id="sw_elm_pagination_steps" class="ty-sort-dropdown__wrapper cm-combination"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['items_per_page'], ENT_QUOTES, 'UTF-8'); ?> <?php echo $_smarty_tpl->__("per_page"); ?> <i class="ty-sort-dropdown__icon ty-icon-down-micro"></i></a> <ul id="elm_pagination_steps" class="ty-sort-dropdown__content cm-popup-box hidden"> </ul> </div--> <?php } ?> </div><?php }
Registry::get('view')->assign('data', $data['logging']); Registry::get('view')->assign('debugger_hash', $_REQUEST['debugger_hash']); Registry::get('view')->display('views/debugger/components/logging_tab.tpl'); } exit; } elseif ($mode == 'templates') { if (!empty($data['templates'])) { $data['templates']['tpls'] = Debugger::parseTplsList($data['templates']['tpls'], 0); Registry::get('view')->assign('data', $data['templates']); Registry::get('view')->assign('debugger_hash', $_REQUEST['debugger_hash']); Registry::get('view')->display('views/debugger/components/templates_tab.tpl'); } exit; } elseif ($mode == 'blocks') { if (!empty($data['blocks'])) { $blocks_rendered = array_filter($data['blocks'], function ($block) { return !$block['render_performance']['found_at_cache']; }); $blocks_from_cache = array_filter($data['blocks'], function ($block) { return $block['render_performance']['found_at_cache']; }); Registry::get('view')->assign('blocks_rendered', $blocks_rendered); Registry::get('view')->assign('blocks_from_cache', $blocks_from_cache); Registry::get('view')->assign('debugger_hash', $_REQUEST['debugger_hash']); Registry::get('view')->display('views/debugger/components/blocks_tab.tpl'); } exit; } elseif ($mode == 'quit') { Debugger::quit(); return array(CONTROLLER_STATUS_REDIRECT, fn_query_remove($_REQUEST['redirect_url'], Registry::get('config.debugger_token'))); }
function content_55dc759d52a450_29070267($_smarty_tpl) { if (!is_callable('smarty_function_set_id')) { include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php'; } if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); $_smarty_tpl->tpl_vars["state"] = new Smarty_variable($_SESSION['twg_state'], null, 0); $_smarty_tpl->tpl_vars['addon_images_path'] = new Smarty_variable(fn_twg_get_images_path(), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['state']->value['twg_can_be_used'] && !$_smarty_tpl->tpl_vars['state']->value['mobile_link_closed']) { ?> <div class="mobile-avail-notice"> <div class="buttons-container"> <a href="<?php echo htmlspecialchars(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "mobile", "auto", "desktop"), "mobile"), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->__('twg_visit_our_mobile_store'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['state']->value['device'] == "android" && $_smarty_tpl->tpl_vars['state']->value['url_on_googleplay']) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_googleplay'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__('twg_app_for_android'); ?> </a> <?php } elseif (($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone" || $_smarty_tpl->tpl_vars['state']->value['device'] == "ipad") && $_smarty_tpl->tpl_vars['state']->value['url_on_appstore']) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_appstore'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone") { ?> <?php echo $_smarty_tpl->__('twg_app_for_iphone'); ?> <?php } else { ?> <?php echo $_smarty_tpl->__('twg_app_for_ipad'); ?> <?php } ?> </a> <?php } ?> <span id="close_notification_mobile_avail_notice" class="cm-notification-close hand close" title="Close" />×</span> </div> </div> <?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(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="addons/twigmo/hooks/index/content.pre.tpl" id="<?php echo smarty_function_set_id(array('name' => "addons/twigmo/hooks/index/content.pre.tpl"), $_smarty_tpl); ?> "><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php echo Smarty::$_smarty_vars['capture']['template_content']; ?> <!--[/tpl_id]--></span><?php } else { echo Smarty::$_smarty_vars['capture']['template_content']; } } } else { $_smarty_tpl->tpl_vars["state"] = new Smarty_variable($_SESSION['twg_state'], null, 0); $_smarty_tpl->tpl_vars['addon_images_path'] = new Smarty_variable(fn_twg_get_images_path(), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['state']->value['twg_can_be_used'] && !$_smarty_tpl->tpl_vars['state']->value['mobile_link_closed']) { ?> <div class="mobile-avail-notice"> <div class="buttons-container"> <a href="<?php echo htmlspecialchars(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "mobile", "auto", "desktop"), "mobile"), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo $_smarty_tpl->__('twg_visit_our_mobile_store'); ?> </a> <?php if ($_smarty_tpl->tpl_vars['state']->value['device'] == "android" && $_smarty_tpl->tpl_vars['state']->value['url_on_googleplay']) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_googleplay'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__('twg_app_for_android'); ?> </a> <?php } elseif (($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone" || $_smarty_tpl->tpl_vars['state']->value['device'] == "ipad") && $_smarty_tpl->tpl_vars['state']->value['url_on_appstore']) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state']->value['url_on_appstore'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['state']->value['device'] == "iphone") { ?> <?php echo $_smarty_tpl->__('twg_app_for_iphone'); ?> <?php } else { ?> <?php echo $_smarty_tpl->__('twg_app_for_ipad'); ?> <?php } ?> </a> <?php } ?> <span id="close_notification_mobile_avail_notice" class="cm-notification-close hand close" title="Close" />×</span> </div> </div> <?php } } }
function content_55d5c4e6cd53a0_66941118($_smarty_tpl) { if (!is_callable('smarty_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('select_profile', 'select_profile', 'or', 'create_profile', 'create_profile', 'profile_name', 'new', 'main', 'main', 'select_profile', 'select_profile', 'or', 'create_profile', 'create_profile', 'profile_name', 'new', 'main', 'main')); if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['settings']->value['General']['user_multiple_profiles'] == "Y" && $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php if ($_smarty_tpl->tpl_vars['show_title']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("select_profile")), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_profile_select']->value) { ?> <div class="ty-control-group select-profile"> <!--label><?php echo $_smarty_tpl->__("select_profile"); ?> :</label--> <?php $_smarty_tpl->tpl_vars["up"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["up"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['user_profiles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["up"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["up"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["up"]->key => $_smarty_tpl->tpl_vars["up"]->value) { $_smarty_tpl->tpl_vars["up"]->_loop = true; $_smarty_tpl->tpl_vars["up"]->iteration++; $_smarty_tpl->tpl_vars["up"]->last = $_smarty_tpl->tpl_vars["up"]->iteration === $_smarty_tpl->tpl_vars["up"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["pfe"]['last'] = $_smarty_tpl->tpl_vars["up"]->last; ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_id'] == $_smarty_tpl->tpl_vars['profile_id']->value) { ?> <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </strong> <?php } else { ?> <a <?php if ($_smarty_tpl->tpl_vars['use_ajax']->value) { ?> class="cm-ajax"<?php } ?> href="<?php echo htmlspecialchars(fn_url(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile", "selected_section"), "profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id'])), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="checkout_steps,cart_items,checkout_totals"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_type'] != "P" && !$_smarty_tpl->tpl_vars['hide_profile_delete']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "cm-confirm", 'but_target_id' => "checkout_steps,cart_items,checkout_totals", 'but_role' => "delete", 'but_text' => " ", 'but_href' => "profiles.delete_profile?profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id']), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['pfe']['last']) { ?> <span> | </span><?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_create']->value) { ?> <span> <?php echo $_smarty_tpl->__("or"); ?> </span><?php if ($_REQUEST['profile'] == "new") { ?> <strong><?php echo $_smarty_tpl->__("create_profile"); ?> </strong><?php } else { ?> <a class="<?php if ($_smarty_tpl->tpl_vars['use_ajax']->value) { ?> cm-ajax<?php } ?> ls_create_new_profle" href="<?php if ($_smarty_tpl->tpl_vars['create_href']->value) { echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['create_href']->value), ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars(fn_url(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile_id", "selected_section"), "profile=new")), ENT_QUOTES, 'UTF-8'); } ?> " data-ca-target-id="checkout_steps,cart_items,checkout_totals"><?php echo $_smarty_tpl->__("create_profile"); ?> </a><?php } ?> <?php } ?> </div> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_profile_name']->value) { ?> <div class="ty-control-group"> <label for="elm_profile_id" class="cm-required"><?php echo $_smarty_tpl->__("profile_name"); ?> :</label> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['action'] == "add_profile" || $_smarty_tpl->tpl_vars['no_edit']->value != "Y") { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("new"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("main"), null, 0); ?> <?php } ?> <input type="hidden" name="user_data[profile_id]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['profile_id']->value) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="text" class="ty-input-text" id="elm_profile_id" name="user_data[profile_name]" size="32" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['profile_name']->value : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> </div> <?php } ?> <?php } else { ?> <input type="hidden" id="profile_name" name="user_data[profile_name]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->__("main") : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?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(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="views/profiles/components/multiple_profiles.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/profiles/components/multiple_profiles.tpl"), $_smarty_tpl); ?> "><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php echo Smarty::$_smarty_vars['capture']['template_content']; ?> <!--[/tpl_id]--></span><?php } else { echo Smarty::$_smarty_vars['capture']['template_content']; } } } else { if ($_smarty_tpl->tpl_vars['settings']->value['General']['user_multiple_profiles'] == "Y" && $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php if ($_smarty_tpl->tpl_vars['show_title']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("select_profile")), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_profile_select']->value) { ?> <div class="ty-control-group select-profile"> <!--label><?php echo $_smarty_tpl->__("select_profile"); ?> :</label--> <?php $_smarty_tpl->tpl_vars["up"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["up"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['user_profiles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["up"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["up"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["up"]->key => $_smarty_tpl->tpl_vars["up"]->value) { $_smarty_tpl->tpl_vars["up"]->_loop = true; $_smarty_tpl->tpl_vars["up"]->iteration++; $_smarty_tpl->tpl_vars["up"]->last = $_smarty_tpl->tpl_vars["up"]->iteration === $_smarty_tpl->tpl_vars["up"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["pfe"]['last'] = $_smarty_tpl->tpl_vars["up"]->last; ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_id'] == $_smarty_tpl->tpl_vars['profile_id']->value) { ?> <strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </strong> <?php } else { ?> <a <?php if ($_smarty_tpl->tpl_vars['use_ajax']->value) { ?> class="cm-ajax"<?php } ?> href="<?php echo htmlspecialchars(fn_url(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile", "selected_section"), "profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id'])), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="checkout_steps,cart_items,checkout_totals"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_type'] != "P" && !$_smarty_tpl->tpl_vars['hide_profile_delete']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "cm-confirm", 'but_target_id' => "checkout_steps,cart_items,checkout_totals", 'but_role' => "delete", 'but_text' => " ", 'but_href' => "profiles.delete_profile?profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id']), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['pfe']['last']) { ?> <span> | </span><?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_create']->value) { ?> <span> <?php echo $_smarty_tpl->__("or"); ?> </span><?php if ($_REQUEST['profile'] == "new") { ?> <strong><?php echo $_smarty_tpl->__("create_profile"); ?> </strong><?php } else { ?> <a class="<?php if ($_smarty_tpl->tpl_vars['use_ajax']->value) { ?> cm-ajax<?php } ?> ls_create_new_profle" href="<?php if ($_smarty_tpl->tpl_vars['create_href']->value) { echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['create_href']->value), ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars(fn_url(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile_id", "selected_section"), "profile=new")), ENT_QUOTES, 'UTF-8'); } ?> " data-ca-target-id="checkout_steps,cart_items,checkout_totals"><?php echo $_smarty_tpl->__("create_profile"); ?> </a><?php } ?> <?php } ?> </div> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_profile_name']->value) { ?> <div class="ty-control-group"> <label for="elm_profile_id" class="cm-required"><?php echo $_smarty_tpl->__("profile_name"); ?> :</label> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['action'] == "add_profile" || $_smarty_tpl->tpl_vars['no_edit']->value != "Y") { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("new"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("main"), null, 0); ?> <?php } ?> <input type="hidden" name="user_data[profile_id]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['profile_id']->value) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="text" class="ty-input-text" id="elm_profile_id" name="user_data[profile_name]" size="32" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['profile_name']->value : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> </div> <?php } ?> <?php } else { ?> <input type="hidden" id="profile_name" name="user_data[profile_name]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->__("main") : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?php } } }
function content_55d2f3b5c6e1e5_67613974($_smarty_tpl) { fn_preload_lang_vars(array('select_profile', 'or', 'create_profile', 'profile_name', 'new', 'main', 'main')); if ($_smarty_tpl->tpl_vars['settings']->value['General']['user_multiple_profiles'] == "Y") { ?> <div class="control-group" id="profiles_list"> <label class="control-label"><?php echo $_smarty_tpl->__("select_profile"); ?> </label> <div class="controls"> <?php $_smarty_tpl->tpl_vars["up"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["up"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['user_profiles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars["up"]->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars["up"]->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars["up"]->key => $_smarty_tpl->tpl_vars["up"]->value) { $_smarty_tpl->tpl_vars["up"]->_loop = true; $_smarty_tpl->tpl_vars["up"]->iteration++; $_smarty_tpl->tpl_vars["up"]->last = $_smarty_tpl->tpl_vars["up"]->iteration === $_smarty_tpl->tpl_vars["up"]->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']["pfe"]['last'] = $_smarty_tpl->tpl_vars["up"]->last; ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_id'] == $_smarty_tpl->tpl_vars['user_data']->value['profile_id']) { ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </span> <?php } else { ?> <a href="<?php echo htmlspecialchars(fn_url(fn_link_attach($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id'])), ENT_QUOTES, 'UTF-8'); ?> #profiles_list"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['up']->value['profile_name'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['up']->value['profile_type'] != "P") { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "cm-confirm", 'but_text' => " ", 'but_href' => "profiles.delete_profile?user_id=" . (string) $_smarty_tpl->tpl_vars['user_data']->value['user_id'] . "&profile_id=" . (string) $_smarty_tpl->tpl_vars['up']->value['profile_id'], 'but_role' => "delete_item"), 0); ?> <?php } ?> <?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['pfe']['last']) { ?> | <?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['skip_create']->value) { ?> <?php echo $_smarty_tpl->__("or"); ?> <a class="lowercase" href="<?php echo htmlspecialchars(fn_url(fn_link_attach(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "profile_id"), "profile=new")), ENT_QUOTES, 'UTF-8'); ?> #profiles_list"><?php echo $_smarty_tpl->__("create_profile"); ?> </a> <?php } ?> </div> </div> <div class="control-group"> <label for="profile_name" class="control-label cm-required"><?php echo $_smarty_tpl->__("profile_name"); ?> </label> <div class="controls"> <?php if ($_REQUEST['profile'] == "new") { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("new"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["profile_name"] = new Smarty_variable($_smarty_tpl->__("main"), null, 0); ?> <?php } ?> <input type="hidden" id="profile_id" name="user_data[profile_id]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_id']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="text" id="profile_name" name="user_data[profile_name]" size="32" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['profile_name']->value : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-text" /> </div> </div> <?php } else { ?> <div> <input type="hidden" id="profile_name" name="user_data[profile_name]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['profile_name']) === null || $tmp === '' ? $_smarty_tpl->__("main") : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> </div> <?php } }
die('Access denied'); } if ($mode == 'export_datafeed') { if (!empty($_REQUEST['datafeed_ids'])) { if (is_array($_REQUEST['datafeed_ids'])) { foreach ($_REQUEST['datafeed_ids'] as $datafeed_id) { $params = array(); if (!empty($_REQUEST['location'])) { $params['location'] = $_REQUEST['location']; } if (fn_data_feeds_export($datafeed_id, $params)) { $location = empty($_REQUEST['location']) ? db_get_field("SELECT export_location FROM ?:data_feeds WHERE datafeed_id = ?i", $datafeed_id) : $_REQUEST['location']; if ($location == 'L') { $meta_url = urlencode(fn_url('data_feeds.download?datafeed_id=' . $datafeed_id, 'A', 'rel')); $_suffix = '&meta_redirect_url=' . $meta_url; $url = (empty($_SERVER['HTTP_REFERER']) ? fn_url("data_feeds.manage") : fn_query_remove($_SERVER['HTTP_REFERER'], 'meta_redirect_url')) . $_suffix; Tygh::$app['ajax']->assign('force_redirection', $url); } } } } } exit; } elseif ($mode == 'cron_export') { $cron_password = Registry::get('addons.data_feeds.cron_password'); if ((!isset($_REQUEST['cron_password']) || $cron_password != $_REQUEST['cron_password']) && !empty($cron_password)) { die(__('access_denied')); } $params = array('status' => 'A', 'cron' => 'Y'); $datafeeds = fn_data_feeds_get_data($params); if (!empty($datafeeds)) {
function content_55ccf2eb006f03_28916276($_smarty_tpl) { if (!is_callable('smarty_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('page', 'ls_next_page', 'page', 'ls_next_page')); if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); $_smarty_tpl->tpl_vars["id1"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['id1']->value) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["pagination4"] = new Smarty_variable(fn_generate_pagination($_smarty_tpl->tpl_vars['search']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["pagination3"] = new Smarty_variable(fn_generate_pagination($_smarty_tpl->tpl_vars['search2']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "page"), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['pagination4']->value['current_page']) { ?> <div class="ls_next_page_container"> <span><?php echo $_smarty_tpl->__("page"); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination4']->value['current_page'], ENT_QUOTES, 'UTF-8'); ?> </span> <?php if ($_smarty_tpl->tpl_vars['pagination4']->value['next_page']) { ?> <a data-ca-scroll=".cm-pagination-container" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination4']->value['next_page'] . (string) $_smarty_tpl->tpl_vars['extra_url']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination4']->value['next_range'], ENT_QUOTES, 'UTF-8'); ?> " class="ls_next_page_container_link cm-history ty-pagination__item hidden-phone ty-pagination__range <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id1']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class='ls_next_page_icon'></span><?php echo $_smarty_tpl->__("ls_next_page"); ?> </a> <?php } ?> </div> <?php } ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="common/ls_next_page.tpl" id="<?php echo smarty_function_set_id(array('name' => "common/ls_next_page.tpl"), $_smarty_tpl); ?> "><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php echo Smarty::$_smarty_vars['capture']['template_content']; ?> <!--[/tpl_id]--></span><?php } else { echo Smarty::$_smarty_vars['capture']['template_content']; } } } else { $_smarty_tpl->tpl_vars["id1"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['id1']->value) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["pagination4"] = new Smarty_variable(fn_generate_pagination($_smarty_tpl->tpl_vars['search']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["pagination3"] = new Smarty_variable(fn_generate_pagination($_smarty_tpl->tpl_vars['search2']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "page"), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['pagination4']->value['current_page']) { ?> <div class="ls_next_page_container"> <span><?php echo $_smarty_tpl->__("page"); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination4']->value['current_page'], ENT_QUOTES, 'UTF-8'); ?> </span> <?php if ($_smarty_tpl->tpl_vars['pagination4']->value['next_page']) { ?> <a data-ca-scroll=".cm-pagination-container" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination4']->value['next_page'] . (string) $_smarty_tpl->tpl_vars['extra_url']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination4']->value['next_range'], ENT_QUOTES, 'UTF-8'); ?> " class="ls_next_page_container_link cm-history ty-pagination__item hidden-phone ty-pagination__range <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id1']->value, ENT_QUOTES, 'UTF-8'); ?> "><span class='ls_next_page_icon'></span><?php echo $_smarty_tpl->__("ls_next_page"); ?> </a> <?php } ?> </div> <?php } ?> <?php } }
protected function getImageUrl($image_pair) { $url = ''; if ($this->options['image_type'] == 'detailed') { $url = $image_pair['detailed']['image_path']; } else { $image_data = fn_image_to_display($image_pair, $this->options['thumbnail_width'], $this->options['thumbnail_height']); if (!empty($image_data) && strpos($image_data['image_path'], '.php')) { $image_data['image_path'] = fn_generate_thumbnail($image_data['detailed_image_path'], $image_data['width'], $image_data['height']); } if (!empty($image_data['image_path'])) { $url = $image_data['image_path']; } } $url = htmlspecialchars($url, ENT_QUOTES, 'UTF-8'); $url = fn_yandex_market_c_encode($url); $url = fn_query_remove($url, 't'); return str_replace('–', urlencode('–'), $url); }
function content_55ccec9fe8e759_21977465($_smarty_tpl) { fn_preload_lang_vars(array('prev_page', 'next')); $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['id']->value) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); $_smarty_tpl->tpl_vars["pagination"] = new Smarty_variable(fn_generate_pagination($_smarty_tpl->tpl_vars['search']->value), null, 0); ?> <?php if (Smarty::$_smarty_vars['capture']['pagination_open'] != "Y") { ?> <div class="ty-pagination-container cm-pagination-container" id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['save_current_page']->value) { ?> <input type="hidden" name="page" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['search']->value['page']) === null || $tmp === '' ? $_REQUEST['page'] : $tmp, ENT_QUOTES, 'UTF-8'); ?> " /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['save_current_url']->value) { ?> <input type="hidden" name="redirect_url" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php } } ?> <?php if ($_smarty_tpl->tpl_vars['pagination']->value['total_pages'] > 1) { ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['Appearance']['top_pagination'] == "Y" && Smarty::$_smarty_vars['capture']['pagination_open'] != "Y" || Smarty::$_smarty_vars['capture']['pagination_open'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "page"), null, 0); ?> <?php if (!$_smarty_tpl->tpl_vars['config']->value['tweaks']['disable_dhtml'] || $_smarty_tpl->tpl_vars['force_ajax']->value) { ?> <?php $_smarty_tpl->tpl_vars["ajax_class"] = new Smarty_variable("cm-ajax", null, 0); ?> <?php } ?> <?php if (Smarty::$_smarty_vars['capture']['pagination_open'] == "Y") { ?> <div class="ty-pagination__bottom"> <?php } ?> <div class="ty-pagination"> <?php if ($_smarty_tpl->tpl_vars['pagination']->value['prev_range']) { ?> <a data-ca-scroll=".cm-pagination-container" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['prev_range'] . (string) $_smarty_tpl->tpl_vars['extra_url']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['prev_range'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-history hidden-phone ty-pagination__item ty-pagination__range <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['prev_range_from'], ENT_QUOTES, 'UTF-8'); ?> - <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['prev_range_to'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <a data-ca-scroll=".cm-pagination-container" class="ty-pagination__item ty-pagination__btn <?php if ($_smarty_tpl->tpl_vars['pagination']->value['prev_page']) { ?> ty-pagination__prev cm-history <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); } ?> " <?php if ($_smarty_tpl->tpl_vars['pagination']->value['prev_page']) { ?> href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['prev_page']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['prev_page'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><i class="ty-pagination__text-arrow">←</i> <span class="ty-pagination__text"><?php echo $_smarty_tpl->__("prev_page"); ?> </span></a> <div class="ty-pagination__items"> <?php $_smarty_tpl->tpl_vars["pg"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["pg"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['pagination']->value['navi_pages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["pg"]->key => $_smarty_tpl->tpl_vars["pg"]->value) { $_smarty_tpl->tpl_vars["pg"]->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['pg']->value != $_smarty_tpl->tpl_vars['pagination']->value['current_page']) { ?> <a data-ca-scroll=".cm-pagination-container" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pg']->value . (string) $_smarty_tpl->tpl_vars['extra_url']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pg']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-history ty-pagination__item <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pg']->value, ENT_QUOTES, 'UTF-8'); ?> </a> <?php } else { ?> <span class="ty-pagination__selected"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pg']->value, ENT_QUOTES, 'UTF-8'); ?> </span> <?php } ?> <?php } ?> </div> <a data-ca-scroll=".cm-pagination-container" class="ty-pagination__item ty-pagination__btn <?php if ($_smarty_tpl->tpl_vars['pagination']->value['next_page']) { ?> ty-pagination__next cm-history <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); } ?> " <?php if ($_smarty_tpl->tpl_vars['pagination']->value['next_page']) { ?> href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['next_page'] . (string) $_smarty_tpl->tpl_vars['extra_url']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['next_page'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><span class="ty-pagination__text"><?php echo $_smarty_tpl->__("next"); ?> </span> <i class="ty-pagination__text-arrow">→</i></a> <?php if ($_smarty_tpl->tpl_vars['pagination']->value['next_range']) { ?> <a data-ca-scroll=".cm-pagination-container" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&page=" . (string) $_smarty_tpl->tpl_vars['pagination']->value['next_range'] . (string) $_smarty_tpl->tpl_vars['extra_url']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['next_range'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-history ty-pagination__item hidden-phone ty-pagination__range <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ajax_class']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['next_range_from'], ENT_QUOTES, 'UTF-8'); ?> - <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination']->value['next_range_to'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> </div> <?php if (Smarty::$_smarty_vars['capture']['pagination_open'] == "Y") { ?> </div> <?php } ?> <?php } else { ?> <div><a data-ca-scroll=".cm-pagination-container" href="" data-ca-page="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pg']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="hidden"></a></div> <?php } } ?> <?php if (Smarty::$_smarty_vars['capture']['pagination_open'] == "Y") { ?> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php $_smarty_tpl->_capture_stack[0][] = array("pagination_open", null, null); ob_start(); ?> N<?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(); } } elseif (Smarty::$_smarty_vars['capture']['pagination_open'] != "Y") { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("pagination_open", null, null); ob_start(); ?> Y<?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(); } } }
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. * ****************************************************************************/ use Tygh\Registry; use Tygh\Mailer; if (!defined('BOOTSTRAP')) { die('Access denied'); } if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($mode == 'send') { if (fn_image_verification('use_for_email_share', $_REQUEST) == false) { fn_save_post_data('send_data'); return array(CONTROLLER_STATUS_REDIRECT); } if (!empty($_REQUEST['send_data']['to_email'])) { $lnk = fn_url(Registry::get('config.current_url')); $redirect_url = fn_query_remove($_REQUEST['redirect_url'], 'selected_section'); $index_script = Registry::get('config.customer_index'); if (strpos($lnk, $index_script) !== false) { $redirect_url = str_replace($index_script, '', $redirect_url); } $lnk .= $redirect_url; $from = array('email' => !empty($_REQUEST['send_data']['from_email']) ? $_REQUEST['send_data']['from_email'] : Registry::get('settings.Company.company_users_department'), 'name' => !empty($_REQUEST['send_data']['from_name']) ? $_REQUEST['send_data']['from_name'] : Registry::get('settings.Company.company_name')); $mail_sent = Mailer::sendMail(array('to' => $_REQUEST['send_data']['to_email'], 'from' => $from, 'data' => array('link' => $lnk, 'send_data' => $_REQUEST['send_data']), 'tpl' => 'addons/social_buttons/mail.tpl'), 'C'); if ($mail_sent == true) { fn_set_notification('N', __('notice'), __('text_email_sent')); } } else { fn_set_notification('E', __('error'), __('error_no_recipient_address')); } return array(CONTROLLER_STATUS_REDIRECT); }
$dispatch = $_REQUEST['dispatch']; $dynamic_object = array(); if (!empty($_REQUEST['dynamic_object'])) { $dynamic_object = $_REQUEST['dynamic_object']; } $dynamic_object_scheme = SchemesManager::getDynamicObject($dispatch, AREA, $_REQUEST); if (!empty($dynamic_object_scheme)) { $dispatch = $dynamic_object_scheme['customer_dispatch']; } Tygh::$app['view']->assign('location_data', Location::instance()->get($dispatch, $dynamic_object, CART_LANGUAGE)); Tygh::$app['view']->assign('layout_data', Registry::get('runtime.layout')); Tygh::$app['view']->assign('current_mode', fn_get_current_mode($_REQUEST)); // Init cart if not set if (empty(Tygh::$app['session']['cart'])) { fn_clear_cart(Tygh::$app['session']['cart']); } if (!empty(Tygh::$app['session']['continue_url'])) { Tygh::$app['session']['continue_url'] = fn_url_remove_service_params(Tygh::$app['session']['continue_url']); } if (Registry::get('config.demo_mode') && (!empty($_REQUEST['demo_customize_theme']) && $_REQUEST['demo_customize_theme'] == 'Y' || !empty(Tygh::$app['session']['demo_customize_theme']))) { Tygh::$app['session']['demo_customize_theme'] = true; Registry::set('runtime.customization_mode.theme_editor', true); if (!empty($_REQUEST['demo_customize_theme'])) { $current_url = Registry::get('config.current_url'); $current_url = fn_query_remove($current_url, 'demo_customize_theme'); return array(CONTROLLER_STATUS_REDIRECT, $current_url); } } if (Registry::get('runtime.customization_mode.live_editor')) { Tygh::$app['view']->assign('live_editor_objects', fn_get_schema('customization', 'live_editor_objects')); }
// Check if user has an access for this thread if (fn_is_accessible_discussion($data, $auth) == false) { return array(CONTROLLER_STATUS_DENIED); } if ($data['object_type'] == 'E' && !empty($_REQUEST['post_id'])) { $post_pos = db_get_field("SELECT COUNT(*) FROM ?:discussion_posts WHERE thread_id = ?i AND post_id >= ?i AND status = 'A' ORDER BY timestamp DESC", $_REQUEST['thread_id'], $_REQUEST['post_id']); if (!empty($post_pos)) { $sets = Registry::get('addons.discussion'); $discussion_object_types = fn_get_discussion_objects(); $items_per_page = $sets[$discussion_object_types[$data['object_type']] . '_posts_per_page']; $page = ceil($post_pos / $items_per_page); if (empty($_REQUEST['page']) && $page != 1 || !empty($_REQUEST['page']) && $page != $_REQUEST['page']) { $_REQUEST['page'] = $page; } $_SESSION['discussion_post_id'] = $_REQUEST['post_id']; return array(CONTROLLER_STATUS_REDIRECT, fn_query_remove(Registry::get('config.current_url'), 'page', 'post_id')); } } } $show_discussion_crumb = true; if ($data['object_type'] == 'E') { // testimonials $show_discussion_crumb = false; } $discussion_object_data = fn_get_discussion_object_data($data['object_id'], $data['object_type']); fn_add_breadcrumb($discussion_object_data['description'], $discussion_object_data['url']); if ($show_discussion_crumb && AREA != 'A') { fn_add_breadcrumb(fn_get_lang_var('discussion')); } if (!empty($_SESSION['discussion_post_id'])) { $view->assign('current_post_id', $_SESSION['discussion_post_id']);
function content_55e05a843b15a9_95071248($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('feedback_id', 'subject', 'orders_feedback_statuses', 'remind_in', 'days', 'status', 'feedback', 'edit', 'delete', 'no_data', 'add_feedback', 'orders_feedback')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="manage_order_feedback_form"> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'save_current_url' => true, 'div_id' => $_REQUEST['content_id']), 0); ?> <?php $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order"), null, 0); $_smarty_tpl->tpl_vars["c_icon"] = new Smarty_variable("<i class=\"exicon-" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev'] . "\"></i>", null, 0); $_smarty_tpl->tpl_vars["c_dummy"] = new Smarty_variable("<i class=\"exicon-dummy\"></i>", null, 0); ?> <?php $_smarty_tpl->tpl_vars["rev"] = new Smarty_variable(($tmp = @$_REQUEST['content_id']) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0); if ($_smarty_tpl->tpl_vars['feedbacks']->value) { ?> <div id="content_feedbacks"> <table width="100%" class="table table-middle"> <thead> <tr> <th class="left" width="5%"> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('check_statuses' => fn_get_default_status_filters('', true)), 0); ?> </th> <th width="20%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=feedback_id&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("feedback_id"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "feedback_id") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="20%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=subject&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("subject"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "subject") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="15%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=statuses&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("orders_feedback_statuses"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "statuses") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th> </th> <th width="20%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=remind_in&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rev']->value, ENT_QUOTES, 'UTF-8'); ?> ><?php echo $_smarty_tpl->__("remind_in"); ?>  (<?php echo $_smarty_tpl->__("days"); ?> )<?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "remind_in") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th><?php echo $_smarty_tpl->__("status"); ?> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars["feedback"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["feedback"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['feedbacks']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["feedback"]->key => $_smarty_tpl->tpl_vars["feedback"]->value) { $_smarty_tpl->tpl_vars["feedback"]->_loop = true; ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['feedback']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "> <td class="row-status left"> <input type="checkbox" name="feedback_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feedback']->value['feedback_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item cm-item-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['feedback']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> " /> </td> <td class="row-status"> <a href="<?php echo htmlspecialchars(fn_url("orders_feedback.update?feedback_id=" . (string) $_smarty_tpl->tpl_vars['feedback']->value['feedback_id']), ENT_QUOTES, 'UTF-8'); ?> " class="underlined"><?php echo $_smarty_tpl->__("feedback"); ?> #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feedback']->value['feedback_id'], ENT_QUOTES, 'UTF-8'); ?> </a> </td> <td class="row-status"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feedback']->value['subject'], ENT_QUOTES, 'UTF-8'); ?> </td> <td class="row-status"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feedback']->value['statuses'], ENT_QUOTES, 'UTF-8'); ?> </td> <td width="5%" class="row-status center"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_items", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:list_extra_links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:list_extra_links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php ob_start(); echo $_smarty_tpl->__("edit"); $_tmp1 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders_feedback.update?feedback_id=" . (string) $_smarty_tpl->tpl_vars['feedback']->value['feedback_id'], 'text' => $_tmp1)); ?> </li> <?php $_smarty_tpl->tpl_vars["current_redirect_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <li><?php ob_start(); echo $_smarty_tpl->__("delete"); $_tmp2 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders_feedback.delete?feedback_id=" . (string) $_smarty_tpl->tpl_vars['feedback']->value['feedback_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['current_redirect_url']->value, 'class' => "cm-confirm", 'text' => $_tmp2)); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:list_extra_links"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_items'])); ?> </div> </td> <td class="row-status"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feedback']->value['remind_in'], ENT_QUOTES, 'UTF-8'); ?> </td> <td> <div class="nowrap"> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('popup_additional_class' => "dropleft", 'id' => $_smarty_tpl->tpl_vars['feedback']->value['feedback_id'], 'status' => $_smarty_tpl->tpl_vars['feedback']->value['status'], 'hidden' => false, 'object_id_name' => "feedback_id", 'table' => "orders_feedback"), 0); ?> </div> </td> </tr> <?php } ?> </table> <!--content_feedbacks--></div> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <div class="clearfix"> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('div_id' => $_REQUEST['content_id']), 0); ?> </div> </form> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:manage_tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:manage_tools"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tool_href' => "orders_feedback.add", 'prefix' => "bottom", 'hide_tools' => "true", 'title' => __("add_feedback"), 'icon' => "icon-plus"), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:manage_tools"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['feedbacks']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[orders_feedback.m_delete]", 'form' => "manage_order_feedback_form")); ?> </li> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "orders:list_tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "orders:list_tools"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "orders:list_tools"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?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->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("orders_feedback"), 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'content_id' => "manage_order_feedback_form", 'select_languages' => true), 0); }
/** * Dispathes the execution control to correct controller * * @return nothing */ function fn_dispatch($controller = '', $mode = '', $action = '', $dispatch_extra = '', $area = AREA) { Debugger::checkpoint('After init'); $auth = $_SESSION['auth']; $controller = empty($controller) ? Registry::get('runtime.controller') : $controller; $mode = empty($mode) ? Registry::get('runtime.mode') : $mode; $action = empty($action) ? Registry::get('runtime.action') : $action; $dispatch_extra = empty($dispatch_extra) ? Registry::get('runtime.dispatch_extra') : $dispatch_extra; fn_set_hook('before_dispatch', $controller, $mode, $action, $dispatch_extra, $area); $view = Registry::get('view'); $run_controllers = true; $external = false; $status = CONTROLLER_STATUS_NO_PAGE; // CSRF protection if (fn_is_csrf_protection_enabled($auth) && !fn_csrf_validate_request(array('server' => $_SERVER, 'request' => $_REQUEST, 'session' => $_SESSION, 'controller' => $controller, 'mode' => $mode, 'action' => $action, 'dispatch_extra' => $dispatch_extra, 'area' => $area, 'auth' => $auth))) { fn_set_notification('E', __('error'), __('text_csrf_attack')); fn_redirect(fn_url()); } // If $config['http_host'] was different from the domain name, there was redirection to $config['http_host'] value. if (strtolower(Registry::get('config.current_host')) != strtolower(REAL_HOST) && $_SERVER['REQUEST_METHOD'] == 'GET' && !defined('CONSOLE')) { if (!empty($_SERVER['REDIRECT_URL'])) { $qstring = $_SERVER['REDIRECT_URL']; } else { if (!empty($_SERVER['REQUEST_URI'])) { $qstring = $_SERVER['REQUEST_URI']; } else { $qstring = Registry::get('config.current_url'); } } $curent_path = Registry::get('config.current_path'); if (!empty($curent_path) && strpos($qstring, $curent_path) === 0) { $qstring = substr_replace($qstring, '', 0, fn_strlen($curent_path)); } fn_redirect(Registry::get('config.current_location') . $qstring, false, true); } $upload_max_filesize = Bootstrap::getIniParam('upload_max_filesize'); $post_max_size = Bootstrap::getIniParam('post_max_size'); if (!defined('AJAX_REQUEST') && isset($_SERVER['CONTENT_LENGTH']) && ($_SERVER['CONTENT_LENGTH'] > fn_return_bytes($upload_max_filesize) || $_SERVER['CONTENT_LENGTH'] > fn_return_bytes($post_max_size))) { $max_size = fn_return_bytes($upload_max_filesize) < fn_return_bytes($post_max_size) ? $upload_max_filesize : $post_max_size; fn_set_notification('E', __('error'), __('text_forbidden_uploaded_file_size', array('[size]' => $max_size))); fn_redirect($_SERVER['HTTP_REFERER']); } // If URL contains session ID, remove it if (!defined('AJAX_REQUEST') && !empty($_REQUEST[Session::getName()]) && $_SERVER['REQUEST_METHOD'] == 'GET') { fn_redirect(fn_query_remove(Registry::get('config.current_url'), Session::getName())); } // If demo mode is enabled, check permissions FIX ME - why did we need one more user login check? if ($area == 'A') { if (Registry::get('config.demo_mode') == true) { $run_controllers = fn_check_permissions($controller, $mode, 'demo'); if ($run_controllers == false) { fn_set_notification('W', __('demo_mode'), __('demo_mode_content_text'), 'K', 'demo_mode'); if (defined('AJAX_REQUEST')) { exit; } fn_delete_notification('changes_saved'); $status = CONTROLLER_STATUS_REDIRECT; $_REQUEST['redirect_url'] = !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : fn_url(''); } } else { $run_controllers = fn_check_permissions($controller, $mode, 'admin', '', $_REQUEST); if ($run_controllers == false) { if (defined('AJAX_REQUEST')) { $_info = Debugger::isActive() || fn_is_development() ? ' ' . $controller . '.' . $mode : ''; fn_set_notification('W', __('warning'), __('access_denied') . $_info); exit; } $status = CONTROLLER_STATUS_DENIED; } } } if ($_SERVER['REQUEST_METHOD'] != 'POST' && !defined('AJAX_REQUEST')) { if ($area == 'A' && empty($_REQUEST['keep_location']) && !defined('CONSOLE')) { if (!defined('HTTPS') && Registry::get('settings.Security.secure_admin') == 'Y') { fn_redirect(Registry::get('config.https_location') . '/' . Registry::get('config.current_url')); } elseif (defined('HTTPS') && Registry::get('settings.Security.secure_admin') != 'Y') { fn_redirect(Registry::get('config.http_location') . '/' . Registry::get('config.current_url')); } } elseif ($area == 'C') { $secure_controllers = fn_get_secure_controllers(); // if we are not on https but controller is secure, redirect to https if (!defined('HTTPS') && (Registry::get('settings.Security.secure_storefront') == 'full' || isset($secure_controllers[$controller]) && $secure_controllers[$controller] == 'active')) { fn_redirect(Registry::get('config.https_location') . '/' . Registry::get('config.current_url'), false, true); } // if we are on https and the controller is insecure, redirect to http if (defined('HTTPS') && Registry::get('settings.Security.secure_storefront') != 'full' && !isset($secure_controllers[$controller]) && Registry::get('settings.Security.keep_https') != 'Y') { fn_redirect(Registry::get('config.http_location') . '/' . Registry::get('config.current_url'), false, true); } } } LastView::instance()->prepare($_REQUEST); $controllers_cascade = array(); $controllers_list = array('init'); if ($run_controllers == true) { $controllers_list[] = $controller; $controllers_list = array_unique($controllers_list); } foreach ($controllers_list as $ctrl) { $core_controllers = fn_init_core_controllers($ctrl); list($addon_controllers) = fn_init_addon_controllers($ctrl); if (empty($core_controllers) && empty($addon_controllers)) { //$controllers_cascade = array(); // FIXME: controllers_cascade contains INIT. We should not clear initiation code. $status = CONTROLLER_STATUS_NO_PAGE; $run_controllers = false; break; } if (count($core_controllers) + count($addon_controllers) > 1) { throw new DeveloperException('Duplicate controller ' . $controller . var_export(array_merge($core_controllers, $addon_controllers), true)); } $core_pre_controllers = fn_init_core_controllers($ctrl, GET_PRE_CONTROLLERS); $core_post_controllers = fn_init_core_controllers($ctrl, GET_POST_CONTROLLERS); list($addon_pre_controllers) = fn_init_addon_controllers($ctrl, GET_PRE_CONTROLLERS); list($addon_post_controllers, $addons) = fn_init_addon_controllers($ctrl, GET_POST_CONTROLLERS); // we put addon post-controller to the top of post-controller cascade if current addon serves this request if (count($addon_controllers)) { $addon_post_controllers = fn_reorder_post_controllers($addon_post_controllers, $addon_controllers[0]); } $controllers_cascade = array_merge($controllers_cascade, $addon_pre_controllers, $core_pre_controllers, $core_controllers, $addon_controllers, $core_post_controllers, $addon_post_controllers); if (empty($controllers_cascade)) { throw new DeveloperException("No controllers for: {$ctrl}"); } } if ($mode == 'add') { $tpl = 'update.tpl'; } elseif (strpos($mode, 'add_') === 0) { $tpl = str_replace('add_', 'update_', $mode) . '.tpl'; } else { $tpl = $mode . '.tpl'; } $view = Registry::get('view'); if ($view->templateExists('views/' . $controller . '/' . $tpl)) { // try to find template in base views $view->assign('content_tpl', 'views/' . $controller . '/' . $tpl); } elseif (defined('LOADED_ADDON_PATH') && $view->templateExists('addons/' . LOADED_ADDON_PATH . '/views/' . $controller . '/' . $tpl)) { // try to find template in addon views $view->assign('content_tpl', 'addons/' . LOADED_ADDON_PATH . '/views/' . $controller . '/' . $tpl); } elseif (!empty($addons)) { // try to find template in addon views that extend base views foreach ($addons as $addon => $_v) { if ($view->templateExists('addons/' . $addon . '/views/' . $controller . '/' . $tpl)) { $view->assign('content_tpl', 'addons/' . $addon . '/views/' . $controller . '/' . $tpl); break; } } } /** * Performs actions after template assignment and before controller run * * @param string $controller controller name * @param string $mode controller mode name * @param string $area current working area * @param array $controllers_cascade list of controllers to run */ fn_set_hook('dispatch_assign_template', $controller, $mode, $area, $controllers_cascade); foreach ($controllers_cascade as $item) { $_res = fn_run_controller($item, $controller, $mode, $action, $dispatch_extra); // 0 - status, 1 - url $url = !empty($_res[1]) ? $_res[1] : ''; $external = !empty($_res[2]) ? $_res[2] : false; $permanent = !empty($_res[3]) ? $_res[3] : false; // Status could be changed only if we allow to run controllers despite of init controller if ($run_controllers == true) { $status = !empty($_res[0]) ? $_res[0] : CONTROLLER_STATUS_OK; } if ($status == CONTROLLER_STATUS_OK && !empty($url)) { $redirect_url = $url; } elseif ($status == CONTROLLER_STATUS_REDIRECT && !empty($url)) { $redirect_url = $url; break; } elseif ($status == CONTROLLER_STATUS_DENIED || $status == CONTROLLER_STATUS_NO_PAGE) { break; } } LastView::instance()->init($_REQUEST); // In console mode, just stop here if (defined('CONSOLE')) { $notifications = fn_get_notifications(); $exit_code = 0; foreach ($notifications as $n) { fn_echo('[' . $n['title'] . '] ' . $n['message'] . "\n"); if ($n['type'] == 'E') { $exit_code = 1; } } exit($exit_code); } if (!empty($auth['this_login']) && Registry::ifGet($auth['this_login'], 'N') === 'Y') { fn_set_notification('E', __('error'), __(ACCOUNT_TYPE . LOGIN_STATUS_USER_DISABLED)); $status = CONTROLLER_STATUS_DENIED; } // [Block manager] // block manager is disabled for vendors. if (!(fn_allowed_for('MULTIVENDOR') && Registry::get('runtime.company_id') || fn_allowed_for('ULTIMATE') && !Registry::get('runtime.company_id'))) { if (fn_check_permissions('block_manager', 'manage', 'admin')) { $dynamic_object = SchemesManager::getDynamicObject($_REQUEST['dispatch'], $area, $_REQUEST); if (!empty($dynamic_object)) { if ($area == 'A' && Registry::get('runtime.mode') != 'add' && !empty($_REQUEST[$dynamic_object['key']])) { $object_id = $_REQUEST[$dynamic_object['key']]; $location = Location::instance()->get($dynamic_object['customer_dispatch'], $dynamic_object, CART_LANGUAGE); if (!empty($location) && $location['is_default'] != 1) { $params = array('dynamic_object' => array('object_type' => $dynamic_object['object_type'], 'object_id' => $object_id), $dynamic_object['key'] => $object_id, 'manage_url' => Registry::get('config.current_url')); Registry::set('navigation.tabs.blocks', array('title' => __('layouts'), 'href' => 'block_manager.manage_in_tab?' . http_build_query($params), 'ajax' => true)); } } } } } // [/Block manager] // Redirect if controller returned successful/redirect status only if (in_array($status, array(CONTROLLER_STATUS_OK, CONTROLLER_STATUS_REDIRECT)) && !empty($_REQUEST['redirect_url']) && !$external) { $redirect_url = $_REQUEST['redirect_url']; } // If controller returns "Redirect" status, check if redirect url exists if ($status == CONTROLLER_STATUS_REDIRECT && empty($redirect_url)) { $status = CONTROLLER_STATUS_NO_PAGE; } // In backend show "changes saved" notification if ($area == 'A' && $_SERVER['REQUEST_METHOD'] == 'POST' && in_array($status, array(CONTROLLER_STATUS_OK, CONTROLLER_STATUS_REDIRECT))) { if (strpos($mode, 'update') !== false && $mode != 'update_status' && $mode != 'update_mode' && !fn_notification_exists('extra', 'demo_mode') && !fn_notification_exists('type', 'E')) { fn_set_notification('N', __('notice'), __('text_changes_saved'), 'I', 'changes_saved'); } } // Attach params and redirect if needed if (in_array($status, array(CONTROLLER_STATUS_OK, CONTROLLER_STATUS_REDIRECT)) && !empty($redirect_url)) { if (!isset($_REQUEST['return_to_list'])) { $params = array('page', 'selected_section', 'active_tab'); $url_params = array(); foreach ($params as $param) { if (!empty($_REQUEST[$param])) { $url_params[$param] = $_REQUEST[$param]; } } if (!empty($url_params)) { $redirect_url = fn_link_attach($redirect_url, http_build_query($url_params)); } } if (!isset($external)) { $external = false; } if (!isset($permanent)) { $permanent = false; } fn_redirect($redirect_url, $external, $permanent); } if (!$view->getTemplateVars('content_tpl') && $status == CONTROLLER_STATUS_OK) { // FIXME $status = CONTROLLER_STATUS_NO_PAGE; } if ($status != CONTROLLER_STATUS_OK) { if ($status == CONTROLLER_STATUS_NO_PAGE) { if ($area == 'A' && empty($auth['user_id'])) { // If admin is not logged in redirect to login page from not found page fn_set_notification('W', __('page_not_found'), __('page_not_found_text')); fn_redirect("auth.login_form"); } header(' ', true, 404); } $view->assign('exception_status', $status); if ($area == 'A') { $view->assign('content_tpl', 'exception.tpl'); // for backend only } if ($status == CONTROLLER_STATUS_DENIED) { $view->assign('page_title', __('access_denied')); } elseif ($status == CONTROLLER_STATUS_NO_PAGE) { $view->assign('page_title', __('page_not_found')); } } fn_set_hook('dispatch_before_display'); Debugger::checkpoint('Before TPL'); // Pass current URL to ajax response only if we render whole page if (defined('AJAX_REQUEST') && Registry::get('runtime.root_template') == 'index.tpl') { Registry::get('ajax')->assign('current_url', fn_url(Registry::get('config.current_url'), $area, 'current')); } Registry::get('view')->display(Registry::get('runtime.root_template')); Debugger::checkpoint('After TPL'); Debugger::display(); fn_set_hook('complete'); if (defined('AJAX_REQUEST')) { // HHVM workaround. Destroy Ajax object manually if it has been created. $ajax = Registry::get('ajax'); $ajax = null; } exit; // stop execution }
} if (!isset($sql_data['count'][md5($sql_query['query'])]['min_time']) || $sql_data['count'][md5($sql_query['query'])]['min_time'] > $sql_query['time']) { $sql_data['count'][md5($sql_query['query'])]['min_time'] = $sql_query['time']; } } Registry::get('view')->assign('medium_query_time', Debugger::MEDIUM_QUERY_TIME); Registry::get('view')->assign('long_query_time', Debugger::LONG_QUERY_TIME); Registry::get('view')->assign('data', $sql_data); Registry::get('view')->assign('debugger_hash', $_REQUEST['debugger_hash']); Registry::get('view')->display('views/debugger/components/sql_tab.tpl'); } exit; } elseif ($mode == 'logging') { if (!empty($data['logging'])) { Registry::get('view')->assign('data', $data['logging']); Registry::get('view')->assign('debugger_hash', $_REQUEST['debugger_hash']); Registry::get('view')->display('views/debugger/components/logging_tab.tpl'); } exit; } elseif ($mode == 'templates') { if (!empty($data['templates'])) { $data['templates']['tpls'] = Debugger::parseTplsList($data['templates']['tpls'], 0); Registry::get('view')->assign('data', $data['templates']); Registry::get('view')->assign('debugger_hash', $_REQUEST['debugger_hash']); Registry::get('view')->display('views/debugger/components/templates_tab.tpl'); } exit; } elseif ($mode == 'quit') { Debugger::quit(); return array(CONTROLLER_STATUS_REDIRECT, fn_query_remove($_REQUEST['redirect_url'], 'debug')); }
* PLEASE READ THE FULL TEXT OF THE SOFTWARE LICENSE AGREEMENT IN THE * * "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE. * ****************************************************************************/ use Tygh\Registry; use Tygh\Navigation\LastView; if (!defined('BOOTSTRAP')) { die('Access denied'); } if ($mode == 'manage') { $discussion_object_types = fn_get_discussion_objects(); if (empty($_REQUEST['object_type'])) { reset($discussion_object_types); $_REQUEST['object_type'] = key($discussion_object_types); // FIXME: bad style } $_url = fn_query_remove(Registry::get('config.current_url'), 'object_type', 'page'); foreach ($discussion_object_types as $obj_type => $obj) { if ($obj_type == 'E' && Registry::ifGet('addons.discussion.home_page_testimonials', 'D') == 'D') { continue; } $_name = $obj_type != 'E' ? __($obj) . ' ' . __('discussion_title_' . $obj) : __('discussion_title_' . $obj); // FIXME!!! Bad style Registry::set('navigation.tabs.' . $obj, array('title' => $_name, 'href' => $_url . '&object_type=' . $obj_type)); } list($posts, $search) = fn_get_discussions($_REQUEST, Registry::get('settings.Appearance.admin_elements_per_page')); if (!empty($posts)) { foreach ($posts as $k => $v) { $posts[$k]['object_data'] = fn_get_discussion_object_data($v['object_id'], $v['object_type'], DESCR_SL); } } Tygh::$app['view']->assign('posts', $posts);
function content_55d4e48ea38fd8_14328752($_smarty_tpl) { if (!is_callable('smarty_modifier_unpuny')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.unpuny.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.date_format.php'; } if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('id', 'name', 'email', 'storefront', 'registered', 'status', 'view_vendor_products', 'view_vendor_users', 'view_vendor_orders', 'merge', 'edit', 'delete', 'notify_vendor', 'no_data', 'proceed', 'activate_selected', 'activate_selected', 'proceed', 'disable_selected', 'disable_selected', 'activate_selected', 'disable_selected', 'add_vendor', 'vendors')); echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="companies_form" id="companies_form"> <input type="hidden" name="fake" value="1" /> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'save_current_url' => true), 0); ?> <?php $_smarty_tpl->tpl_vars["return_current_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order"), null, 0); $_smarty_tpl->tpl_vars["c_icon"] = new Smarty_variable("<i class=\"exicon-" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev'] . "\"></i>", null, 0); $_smarty_tpl->tpl_vars["c_dummy"] = new Smarty_variable("<i class=\"exicon-dummy\"></i>", null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['companies']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th width="1%" class="left"> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </th> <th width="6%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=id&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="pagination_contents"><?php echo $_smarty_tpl->__("id"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "id") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="25%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=company&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="pagination_contents"><?php echo $_smarty_tpl->__("name"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "company") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php if (!fn_allowed_for("ULTIMATE")) { ?> <th width="25%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=email&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="pagination_contents"><?php echo $_smarty_tpl->__("email"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "email") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <th width="25%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=storefront&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="pagination_contents"><?php echo $_smarty_tpl->__("storefront"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "storefront") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <?php } ?> <th width="20%"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=date&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="pagination_contents"><?php echo $_smarty_tpl->__("registered"); if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "date") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } ?> </a></th> <th width="10%" class="nowrap"> </th> <?php if (!fn_allowed_for("ULTIMATE")) { ?> <th width="10%" class="right"><a class="cm-ajax" href="<?php echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['c_url']->value . "&sort_by=status&sort_order=" . (string) $_smarty_tpl->tpl_vars['search']->value['sort_order_rev']), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="pagination_contents"><?php if ($_smarty_tpl->tpl_vars['search']->value['sort_by'] == "status") { echo $_smarty_tpl->tpl_vars['c_icon']->value; } else { echo $_smarty_tpl->tpl_vars['c_dummy']->value; } echo $_smarty_tpl->__("status"); ?> </a></th> <?php } ?> </tr> </thead> <?php $_smarty_tpl->tpl_vars['company'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['company']->_loop = false; $_from = $_smarty_tpl->tpl_vars['companies']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['company']->key => $_smarty_tpl->tpl_vars['company']->value) { $_smarty_tpl->tpl_vars['company']->_loop = true; ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['company']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> " data-ct-company-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company']->value['company_id'], ENT_QUOTES, 'UTF-8'); ?> "> <td class="left"> <input type="checkbox" name="company_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company']->value['company_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item" /></td> <td class="row-status"><a href="<?php echo htmlspecialchars(fn_url("companies.update?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id']), ENT_QUOTES, 'UTF-8'); ?> "> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company']->value['company_id'], ENT_QUOTES, 'UTF-8'); ?> </span> </a></td> <td class="row-status"><a href="<?php echo htmlspecialchars(fn_url("companies.update?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company']->value['company'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <?php if (!fn_allowed_for("ULTIMATE")) { ?> <td class="row-status"><a href="mailto:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company']->value['email'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company']->value['email'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <td><a href="http://<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company']->value['storefront'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(smarty_modifier_unpuny($_smarty_tpl->tpl_vars['company']->value['storefront']), ENT_QUOTES, 'UTF-8'); ?> </a></td> <?php } ?> <td class="row-status"><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['company']->value['timestamp'], (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format'] . ", " . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['time_format']), ENT_QUOTES, 'UTF-8'); ?> </td> <td class="nowrap"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_items", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "companies:list_extra_links")); $_block_repeat = true; echo smarty_block_hook(array('name' => "companies:list_extra_links"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "products.manage?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'], 'text' => __("view_vendor_products"))); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "profiles.manage?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'], 'text' => __("view_vendor_users"))); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders.manage?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'], 'text' => __("view_vendor_orders"))); ?> </li> <?php if (!fn_allowed_for("ULTIMATE") && !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "companies.merge?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'], 'text' => __("merge"))); ?> </li> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_check_view_permissions("companies.update", "POST")) { ?> <li class="divider"></li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "companies.update?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'], 'text' => __("edit"))); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'class' => "cm-confirm", 'href' => "companies.delete?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['return_current_url']->value, 'text' => __("delete"))); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "companies:list_extra_links"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?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 class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_items'])); ?> </div> </td> <?php if (!fn_allowed_for("ULTIMATE")) { ?> <td class="right nowrap"> <?php $_smarty_tpl->tpl_vars["notify"] = new Smarty_variable(true, null, 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_popup.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['company']->value['company_id'], 'status' => $_smarty_tpl->tpl_vars['company']->value['status'], 'object_id_name' => "company_id", 'hide_for_vendor' => $_smarty_tpl->tpl_vars['runtime']->value['company_id'], 'update_controller' => "companies", 'notify' => $_smarty_tpl->tpl_vars['notify']->value, 'notify_text' => __("notify_vendor")), 0); ?> </td> <?php } ?> </tr> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['companies']->value) { ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("activate_selected", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/reason_container.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('type' => "activate"), 0); ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("proceed"), 'but_name' => "dispatch[companies.m_activate]", 'cancel_action' => "close", 'but_meta' => "cm-process-items"), 0); ?> </div> <?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->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "activate_selected", 'text' => __("activate_selected"), 'content' => Smarty::$_smarty_vars['capture']['activate_selected'], 'link_text' => __("activate_selected")), 0); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("disable_selected", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/reason_container.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('type' => "disable"), 0); ?> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("proceed"), 'but_name' => "dispatch[companies.m_disable]", 'cancel_action' => "close", 'but_meta' => "cm-process-items"), 0); ?> </div> <?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->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "disable_selected", 'text' => __("disable_selected"), 'content' => Smarty::$_smarty_vars['capture']['disable_selected'], 'link_text' => __("disable_selected")), 0); ?> <?php } } ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </form> <?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(); } $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_items", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "companies:manage_tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "companies:manage_tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_check_view_permissions("companies.update", "POST")) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[companies.m_delete]", 'form' => "companies_form")); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "companies:manage_tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_items'])); ?> <?php if ($_smarty_tpl->tpl_vars['companies']->value && !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php if (!fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["but_class"] = new Smarty_variable("cm-process-items cm-dialog-opener btn-primary", null, 0); ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_target_id' => "content_activate_selected", 'but_target_form' => "companies_form", 'but_text' => __("activate_selected"), 'but_meta' => $_smarty_tpl->tpl_vars['but_class']->value, 'but_role' => "button_main", 'but_name' => $_smarty_tpl->tpl_vars['but_name']->value), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_target_id' => "content_disable_selected", 'but_target_form' => "companies_form", 'but_text' => __("disable_selected"), 'but_meta' => $_smarty_tpl->tpl_vars['but_class']->value, 'but_role' => "button_main", 'but_name' => $_smarty_tpl->tpl_vars['but_name']->value), 0); ?> <?php } ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tool_href' => "companies.add", 'prefix' => "top", 'hide_tools' => true, 'title' => __("add_vendor"), 'icon' => "icon-plus"), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/saved_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "companies.manage", 'view_type' => "companies"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/companies_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "companies.manage"), 0); ?> <?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->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("vendors"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar']), 0); ?> <?php }