function content_55ddef880a9bc1_22239504($_smarty_tpl) { fn_preload_lang_vars(array('1_reminder', '2_reminder')); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete", 'text' => __("1_reminder"), 'dispatch' => "dispatch[abandoned_cart_reminder.send_1]", 'form' => "carts_list_form", 'class' => "cm-confirm cm-submit")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete", 'text' => __("2_reminder"), 'dispatch' => "dispatch[abandoned_cart_reminder.send_2]", 'form' => "carts_list_form", 'class' => "cm-confirm cm-submit")); ?> </li> <?php }
function content_55cdec34aa3fd8_65143827($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.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('text_enabled_testimonials_notice', 'no_data', 'add_post', 'discussion')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <div id="content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['discussion_object_types']->value[$_smarty_tpl->tpl_vars['discussion_object_type']->value], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['discussion_object_type']->value == 'E' && $_smarty_tpl->tpl_vars['addons']->value['discussion']['home_page_testimonials'] == 'D') { ?> <?php echo $_smarty_tpl->__("text_enabled_testimonials_notice"); ?> <?php } ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="POST" name="update_posts_form_<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['discussion_object_type']->value, 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="redirect_url" value="<?php echo htmlspecialchars(fn_url("discussion_manager.manage?selected_section=" . (string) $_smarty_tpl->tpl_vars['discussion_object_types']->value[$_smarty_tpl->tpl_vars['discussion_object_type']->value]), 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' => "pagination_contents_" . (string) $_smarty_tpl->tpl_vars['discussion_object_type']->value), 0); ?> <?php if ($_smarty_tpl->tpl_vars['posts']->value) { ?> <?php echo smarty_function_script(array('src' => "js/addons/discussion/discussion.js"), $_smarty_tpl); ?> <div class="posts-container"> <?php $_smarty_tpl->tpl_vars['post'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['post']->_loop = false; $_from = $_smarty_tpl->tpl_vars['posts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['post']->key => $_smarty_tpl->tpl_vars['post']->value) { $_smarty_tpl->tpl_vars['post']->_loop = true; ?> <div class="post-item"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "discussion_manager:items_list_row")); $_block_repeat = true; echo smarty_block_hook(array('name' => "discussion_manager:items_list_row"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("addons/discussion/views/discussion_manager/components/post.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('post' => $_smarty_tpl->tpl_vars['post']->value, 'type' => $_smarty_tpl->tpl_vars['post']->value['type'], 'show_object_link' => true, 'allow_save' => true), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "discussion_manager:items_list_row"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> </div> <?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' => "pagination_contents_" . (string) $_smarty_tpl->tpl_vars['discussion_object_type']->value), 0); ?> <?php if ($_smarty_tpl->tpl_vars['posts']->value) { $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['discussion_object_type']->value == 'E') { ?> <?php if ($_smarty_tpl->tpl_vars['addons']->value['discussion']['home_page_testimonials'] != 'D') { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("add_post"), 'but_icon' => "icon-plus", 'but_role' => "action", 'but_href' => "discussion.update?discussion_type=E#add_new_post"), 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("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['posts']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php ob_start(); echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['discussion_object_type']->value, 'UTF-8'), ENT_QUOTES, 'UTF-8'); $_tmp1 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[discussion.m_delete]", 'form' => "update_posts_form_" . $_tmp1)); ?> </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 echo $_smarty_tpl->getSubTemplate("buttons/save.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[discussion.update]", 'but_role' => "submit-link", 'but_target_form' => "update_posts_form_" . (string) mb_strtolower($_smarty_tpl->tpl_vars['discussion_object_type']->value, 'UTF-8')), 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' => "discussion_manager.manage", 'view_type' => "discussion"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("addons/discussion/views/discussion_manager/components/discussion_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 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> <!--content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['discussion_object_types']->value[$_smarty_tpl->tpl_vars['discussion_object_type']->value], 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(); } echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'active_tab' => $_smarty_tpl->tpl_vars['discussion_object_types']->value[$_smarty_tpl->tpl_vars['discussion_object_type']->value], 'track' => true), 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(); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("discussion"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'title_extra' => Smarty::$_smarty_vars['capture']['title_extra'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons']), 0); ?> <?php }
function content_55e61f9bd91919_70061537($_smarty_tpl) { fn_preload_lang_vars(array('email', 'new_subscribers', 'add_subscriber', 'add_subscribers_from_users', 'email', 'no_data')); ?> <div class="btn-toolbar clearfix"> <?php if ($_smarty_tpl->tpl_vars['product_subscribers']->value) { ?> <div class="pull-left"> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] == $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'icon' => "icon-trash", 'dispatch' => "dispatch[products.update]", 'form' => "subscribers_form")); ?> <?php } ?> </div> <?php } ?> <div class="pull-left"> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/search_product_subscribers.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "products.update", 'search' => $_smarty_tpl->tpl_vars['product_subscribers_search']->value), 0); ?> </div> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] == $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <div class="pull-right"> <?php $_smarty_tpl->_capture_stack[0][] = array("new_email_picker", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url("products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value . "&selected_section=subscribers"), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="subscribers_form_0" class=" "> <div class="form-horizontal form-edit cm-tabs-content" id="content_tab_user_details"> <div class="control-group"> <label for="users_email" class="control-label cm-required cm-email"><?php echo $_smarty_tpl->__("email"); ?> </label> <div class="controls"> <input type="text" name="add_users_email" id="users_email" value="" class="span8" /> <input type="hidden" name="add_users[0]" id="users_id" value="0"/> </div> </div> </div> <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_name' => "dispatch[products.update]", 'cancel_action' => "close"), 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(); } ?> <span class="shift-right"> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_subscribers", 'text' => __("new_subscribers"), 'content' => Smarty::$_smarty_vars['capture']['new_email_picker'], 'link_text' => __("add_subscriber"), 'act' => "general", 'icon' => "icon-plus"), 0); ?> </span> <?php echo $_smarty_tpl->getSubTemplate("pickers/users/picker.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('no_container' => true, 'data_id' => "subscr_user", 'picker_for' => "subscribers", 'extra_var' => "products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value . "&selected_section=subscribers", 'but_text' => __("add_subscribers_from_users"), 'view_mode' => "button", 'but_meta' => "btn"), 0); ?> </div> <?php } ?> </div> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="subscribers_form" class="<?php if (fn_check_form_permissions('') || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> cm-hide-inputs<?php } ?> "> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'div_id' => "product_subscribers", 'search' => $_smarty_tpl->tpl_vars['product_subscribers_search']->value), 0); ?> <?php if ($_smarty_tpl->tpl_vars['product_subscribers']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th class="center" 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="50%"><?php echo $_smarty_tpl->__("email"); ?> </th> <th> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars["s"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["s"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['product_subscribers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["s"]->key => $_smarty_tpl->tpl_vars["s"]->value) { $_smarty_tpl->tpl_vars["s"]->_loop = true; ?> <tr> <td class="center"> <input type="checkbox" name="subscriber_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['s']->value['subscriber_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item" /></td> <td><input type="hidden" name="subscribers[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['s']->value['subscriber_id'], ENT_QUOTES, 'UTF-8'); ?> ][email]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['s']->value['email'], ENT_QUOTES, 'UTF-8'); ?> " /> <a href="mailto:<?php echo htmlspecialchars(rawurlencode($_smarty_tpl->tpl_vars['s']->value['email']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['s']->value['email'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <input type="hidden" name="product_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <td class="nowrap right" width="5%"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete", 'href' => "products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['product_id']->value . "&selected_section=subscribers&deleted_subscription_id=" . (string) $_smarty_tpl->tpl_vars['s']->value['subscriber_id'])); ?> </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(); } ?> <div class="hidden-tools"> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] == $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php } ?> </div> </td> </tr> <?php } ?> </tbody> </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' => "product_subscribers", 'search' => $_smarty_tpl->tpl_vars['product_subscribers_search']->value), 0); ?> </form> <?php }
function content_55dc78e2952329_40439016($_smarty_tpl) { fn_preload_lang_vars(array('view', 'edit', 'delete')); if (!$_smarty_tpl->tpl_vars['no_table']->value) { ?> <table width="100%" class="table table-middle table-objects<?php if ($_smarty_tpl->tpl_vars['table_striped']->value) { ?> table-striped<?php } ?> "> <tbody> <?php } ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['status']->value, 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['additional_class']->value, ENT_QUOTES, 'UTF-8'); ?> cm-row-item" <?php if ($_smarty_tpl->tpl_vars['row_id']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['row_id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> data-ct-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['table']->value, ENT_QUOTES, 'UTF-8'); ?> ="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['checkbox_name']->value) { ?> <td> <input type="checkbox" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['checkbox_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['checkbox_value']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['id']->value : $tmp, ENT_QUOTES, 'UTF-8'); ?> "<?php if ($_smarty_tpl->tpl_vars['checked']->value) { ?> checked="checked"<?php } ?> class="cm-item" /> </td> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['draggable']->value) { ?> <td width="1%" class="no-padding-td"> <span class="handler cm-sortable-handle"></span> </td> <?php } ?> <td width="<?php if ($_smarty_tpl->tpl_vars['href_desc']->value) { ?> 77<?php } else { ?> 28<?php } ?> %"> <div class="object-group-link-wrap"> <?php if (!$_smarty_tpl->tpl_vars['non_editable']->value) { ?> <a <?php if ($_smarty_tpl->tpl_vars['no_popup']->value) { ?> href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['href']->value), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> class="row-status <?php if (!$_smarty_tpl->tpl_vars['main_link']->value) { ?> cm-external-click<?php } if ($_smarty_tpl->tpl_vars['non_editable']->value) { ?> no-underline<?php } if ($_smarty_tpl->tpl_vars['main_link']->value) { ?> link<?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link_meta']->value, ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['is_promo']->value) { ?> cm-promo-popup<?php } ?> "<?php if (!$_smarty_tpl->tpl_vars['non_editable']->value && !$_smarty_tpl->tpl_vars['not_clickable']->value) { ?> data-ca-external-click-id="opener_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id_prefix']->value, ENT_QUOTES, 'UTF-8'); echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } if ($_smarty_tpl->tpl_vars['main_link']->value) { ?> <?php if (!$_smarty_tpl->tpl_vars['is_promo']->value) { ?> href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['main_link']->value), ENT_QUOTES, 'UTF-8'); } ?> "<?php } ?> ><?php if ($_smarty_tpl->tpl_vars['show_id']->value) { ?> #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['text']->value, ENT_QUOTES, 'UTF-8'); ?> </a> <?php } else { ?> <span class="unedited-element block <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link_meta']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['text']->value) === null || $tmp === '' ? $_smarty_tpl->__("view") : $tmp, ENT_QUOTES, 'UTF-8'); ?> </span> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['href_desc']->value) { ?> <small><?php echo $_smarty_tpl->tpl_vars['href_desc']->value; ?> </small><?php } ?> <?php if ($_smarty_tpl->tpl_vars['company_object']->value) { ?> <?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['company_object']->value), 0); ?> <?php } ?> </div> </td> <td width="<?php if ($_smarty_tpl->tpl_vars['href_desc']->value) { ?> 0<?php } else { ?> 50<?php } ?> %"> <span class="row-status object-group-details"><?php echo $_smarty_tpl->tpl_vars['details']->value; ?> </span> </td> <?php if ($_smarty_tpl->tpl_vars['extra_data']->value) { ?> <?php echo $_smarty_tpl->tpl_vars['extra_data']->value; ?> <?php } ?> <td width="10%" class="right nowrap"> <div class="pull-right hidden-tools"> <?php $_smarty_tpl->_capture_stack[0][] = array("items_tools", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['tool_items']->value) { ?> <?php echo $_smarty_tpl->tpl_vars['tool_items']->value; ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['non_editable']->value || $_smarty_tpl->tpl_vars['is_view_link']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['no_popup']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => ($tmp = @$_smarty_tpl->tpl_vars['link_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("edit") : $tmp, 'href' => $_smarty_tpl->tpl_vars['href']->value)); ?> </li> <?php } else { ?> <li><?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "group" . (string) $_smarty_tpl->tpl_vars['id_prefix']->value . (string) $_smarty_tpl->tpl_vars['id']->value, 'edit_onclick' => $_smarty_tpl->tpl_vars['onclick']->value, 'text' => $_smarty_tpl->tpl_vars['header_text']->value, 'act' => ($tmp = @$_smarty_tpl->tpl_vars['act']->value) === null || $tmp === '' ? "edit" : $tmp, 'picker_meta' => $_smarty_tpl->tpl_vars['picker_meta']->value, 'link_text' => $_smarty_tpl->tpl_vars['link_text']->value, 'href' => $_smarty_tpl->tpl_vars['href']->value, 'is_promo' => $_smarty_tpl->tpl_vars['is_promo']->value, 'no_icon_link' => true), 0); ?> </li> <?php } ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['non_editable']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['href_delete']->value && !$_smarty_tpl->tpl_vars['skip_delete']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['is_promo']->value) { ?> <?php $_smarty_tpl->tpl_vars['class'] = new Smarty_variable("cm-promo-popup", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['class'] = new Smarty_variable("cm-delete-row", null, 0); ?> <?php $_smarty_tpl->tpl_vars['href'] = new Smarty_variable($_smarty_tpl->tpl_vars['href_delete']->value, null, 0); ?> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "text", 'text' => __("delete"), 'href' => $_smarty_tpl->tpl_vars['href']->value, 'class' => "cm-confirm cm-tooltip cm-ajax cm-post cm-ajax-force cm-ajax-full-render " . (string) $_smarty_tpl->tpl_vars['class']->value, 'data' => array("data-ca-target-id" => $_smarty_tpl->tpl_vars['delete_target_id']->value, "data-ca-params" => $_smarty_tpl->tpl_vars['delete_data']->value))); ?> </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']['items_tools'], 'class' => "dropleft")); ?> </div> <?php echo $_smarty_tpl->tpl_vars['links']->value; ?> </td> <?php if (!$_smarty_tpl->tpl_vars['nostatus']->value) { ?> <td width="12%"> <div class="pull-right nowrap"> <?php if ($_smarty_tpl->tpl_vars['non_editable']->value == true || $_smarty_tpl->tpl_vars['is_promo']->value) { ?> <?php $_smarty_tpl->tpl_vars["display"] = new Smarty_variable("text", null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['can_change_status']->value) { ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(false, null, 0); ?> <?php $_smarty_tpl->tpl_vars["display"] = new Smarty_variable('', null, 0); ?> <?php } ?> <?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['id']->value, 'status' => $_smarty_tpl->tpl_vars['status']->value, 'hidden' => $_smarty_tpl->tpl_vars['hidden']->value, 'object_id_name' => $_smarty_tpl->tpl_vars['object_id_name']->value, 'table' => $_smarty_tpl->tpl_vars['table']->value, 'hide_for_vendor' => $_smarty_tpl->tpl_vars['hide_for_vendor']->value, 'display' => $_smarty_tpl->tpl_vars['display']->value, 'non_editable' => $_smarty_tpl->tpl_vars['non_editable']->value, 'update_controller' => $_smarty_tpl->tpl_vars['update_controller']->value, 'st_result_ids' => $_smarty_tpl->tpl_vars['st_result_ids']->value), 0); ?> </div> </td> <?php } ?> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['row_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></tr> <?php if (!$_smarty_tpl->tpl_vars['no_table']->value) { ?> </tbody> </table> <?php } }
function content_55ccecb50542d2_46842350($_smarty_tpl) { 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('edit', 'remove')); if ($_smarty_tpl->tpl_vars['view_mode']->value == "simple") { ?> <span <?php if (!$_smarty_tpl->tpl_vars['clone']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['holder']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } ?> class="cm-js-item<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> cm-clone<?php } if ($_smarty_tpl->tpl_vars['clone']->value || $_smarty_tpl->tpl_vars['hidden']->value) { ?> hidden<?php } ?> "><?php if (!$_smarty_tpl->tpl_vars['first_item']->value) { ?> <span class="cm-comma<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> hidden<?php } ?> ">, </span><?php } ?> #<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order_id']->value, ENT_QUOTES, 'UTF-8'); ?> </span> <?php } else { ?> <tr <?php if (!$_smarty_tpl->tpl_vars['clone']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['holder']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } ?> class="cm-js-item<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> cm-clone hidden<?php } ?> "> <td> <a href="<?php echo htmlspecialchars(fn_url("orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['order_id']->value), ENT_QUOTES, 'UTF-8'); ?> "> <span>#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['order_id']->value, ENT_QUOTES, 'UTF-8'); ?> </span> </a></td> <td><?php if ($_smarty_tpl->tpl_vars['clone']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['status']->value, ENT_QUOTES, 'UTF-8'); } else { echo $_smarty_tpl->getSubTemplate("common/status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('status' => $_smarty_tpl->tpl_vars['status']->value, 'display' => "view", 'name' => "order_statuses[" . (string) $_smarty_tpl->tpl_vars['order_id']->value . "]"), 0); } ?> </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customer']->value, ENT_QUOTES, 'UTF-8'); ?> </td> <td> <a href="<?php echo htmlspecialchars(fn_url("orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['order_id']->value), ENT_QUOTES, 'UTF-8'); ?> " class="underlined"><?php if ($_smarty_tpl->tpl_vars['clone']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['timestamp']->value, ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['timestamp']->value, (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['date_format'] . ", " . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['time_format']), ENT_QUOTES, 'UTF-8'); } ?> </a></td> <td class="right"> <?php if ($_smarty_tpl->tpl_vars['clone']->value) { echo htmlspecialchars($_smarty_tpl->tpl_vars['total']->value, ENT_QUOTES, 'UTF-8'); } else { echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['total']->value), 0); } ?> </td> <?php if (!$_smarty_tpl->tpl_vars['view_only']->value) { ?> <td class="nowrap"> <div class="hidden-tools"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => "orders.details?order_id=" . (string) $_smarty_tpl->tpl_vars['order_id']->value)); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("remove"), 'onclick' => "Tygh." . "\$" . ".cePicker('delete_js_item', '" . (string) $_smarty_tpl->tpl_vars['holder']->value . "', '" . (string) $_smarty_tpl->tpl_vars['order_id']->value . "', 'o'); return false;")); ?> </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'])); ?> </div> </td> <?php } ?> </tr> <?php } }
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); }
function content_55e61f9b7722c4_18014718($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/var/www/html/market/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('add_post', 'add_post', 'no_data', 'text_enabled_testimonials_notice')); if ($_smarty_tpl->tpl_vars['discussion']->value && $_smarty_tpl->tpl_vars['discussion']->value['object_type'] && !$_smarty_tpl->tpl_vars['discussion']->value['is_empty']) { ?> <?php $_smarty_tpl->tpl_vars['allow_save'] = new Smarty_variable(($_smarty_tpl->tpl_vars['discussion']->value['object_type'] != "M" || !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) && fn_check_view_permissions("discussion.update"), null, 0); ?> <div id="content_discussion"> <div class="clearfix"> <div class="buttons-container buttons-bg pull-right"> <?php if (fn_check_view_permissions("discussion.add") && !(fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['object_company_id']->value || $_smarty_tpl->tpl_vars['discussion']->value['object_type'] == 'M'))) { ?> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "E") { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_post", 'title' => __("add_post"), 'icon' => "icon-plus", 'act' => "general", 'link_class' => "cm-dialog-switch-avail"), 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 } else { ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_post", 'link_text' => __("add_post"), 'act' => "general", 'link_class' => "cm-dialog-switch-avail"), 0); ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['posts'] && fn_check_view_permissions("discussion_manager")) { ?> <?php $_smarty_tpl->tpl_vars['show_save_btn'] = new Smarty_variable(true, null, 2); $_ptr = $_smarty_tpl->parent; while ($_ptr != null) { $_ptr->tpl_vars['show_save_btn'] = clone $_smarty_tpl->tpl_vars['show_save_btn']; $_ptr = $_ptr->parent; } ?> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "E") { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons_insert", null, null); ob_start(); ?> <?php } ?> <?php if (fn_check_view_permissions("discussion.m_delete")) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[discussion.m_delete]", 'form' => "update_posts_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 } ?> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "E") { ?> <?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 } ?> </div> </div><br> <?php if ($_smarty_tpl->tpl_vars['discussion']->value['posts']) { ?> <?php echo smarty_function_script(array('src' => "js/addons/discussion/discussion.js"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('save_current_page' => true, 'id' => "pagination_discussion", 'search' => $_smarty_tpl->tpl_vars['discussion']->value['search']), 0); ?> <div class="posts-container <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-no-hide-input<?php } else { ?> cm-hide-inputs<?php } ?> "> <?php $_smarty_tpl->tpl_vars["post"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["post"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['discussion']->value['posts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["post"]->key => $_smarty_tpl->tpl_vars["post"]->value) { $_smarty_tpl->tpl_vars["post"]->_loop = true; ?> <div class="post-item <?php if ($_smarty_tpl->tpl_vars['discussion']->value['object_type'] == "O") { if ($_smarty_tpl->tpl_vars['post']->value['user_id'] == $_smarty_tpl->tpl_vars['user_id']->value) { ?> incoming<?php } else { ?> outgoing<?php } } ?> "> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "discussion:items_list_row")); $_block_repeat = true; echo smarty_block_hook(array('name' => "discussion:items_list_row"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("addons/discussion/views/discussion_manager/components/post.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('post' => $_smarty_tpl->tpl_vars['post']->value, 'type' => $_smarty_tpl->tpl_vars['discussion']->value['type']), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "discussion:items_list_row"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> </div> <?php echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "pagination_discussion", 'search' => $_smarty_tpl->tpl_vars['discussion']->value['search']), 0); ?> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> </div> <?php } elseif ($_smarty_tpl->tpl_vars['discussion']->value['is_empty']) { ?> <?php echo $_smarty_tpl->__("text_enabled_testimonials_notice", array("[link]" => fn_url("addons.manage#groupdiscussion"))); ?> <?php } }
function content_55d2ecf6a248d2_80709672($_smarty_tpl) { fn_preload_lang_vars(array('position_short', 'name', 'delivery_time', 'weight_limit', 'usergroups', 'status', 'edit', 'view', 'usergroup', 'delete', 'no_data', 'add_shipping_method', 'manage_shippings')); $_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="shippings_form" class="<?php if (fn_check_form_permissions('')) { ?> cm-hide-inputs<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['shippings']->value) { ?> <table width="100%" class="table 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="1%"><?php echo $_smarty_tpl->__("position_short"); ?> </th> <th width="20%"><?php echo $_smarty_tpl->__("name"); ?> </th> <th><?php echo $_smarty_tpl->__("delivery_time"); ?> </th> <th><?php echo $_smarty_tpl->__("weight_limit"); ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> )</th> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <th><?php echo $_smarty_tpl->__("usergroups"); ?> </th> <?php } ?> <th width="5%"> </th> <th width="10%" class="right"><?php echo $_smarty_tpl->__("status"); ?> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['shipping'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['shipping']->_loop = false; $_from = $_smarty_tpl->tpl_vars['shippings']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['shipping']->key => $_smarty_tpl->tpl_vars['shipping']->value) { $_smarty_tpl->tpl_vars['shipping']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['shipping']->value, "shippings"), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["status_display"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("edit"), null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["status_display"] = new Smarty_variable("text", null, 0); ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0); } ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['shipping']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } else { ?> cm-no-hide-input<?php } ?> "> <input type="hidden" name="shipping_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> ][tax_ids][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['tax_ids'], ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['tax_ids'], ENT_QUOTES, 'UTF-8'); ?> " /> <td> <input type="checkbox" name="shipping_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item" /></td> <td> <input type="text" name="shipping_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> ][position]" size="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " class="input-micro input-hidden" /></td> <td data-ct-shipping-name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping'], ENT_QUOTES, 'UTF-8'); ?> "> <a href="<?php echo htmlspecialchars(fn_url("shippings.update?shipping_id=" . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping'], ENT_QUOTES, 'UTF-8'); ?> </a> <?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['shipping']->value), 0); ?> </td> <td> <input type="text" name="shipping_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> ][delivery_time]" size="20" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['delivery_time'], ENT_QUOTES, 'UTF-8'); ?> " class="input-mini input-hidden" /></td> <td class="nowrap"> <input type="text" name="shipping_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> ][min_weight]" size="4" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['min_weight'], ENT_QUOTES, 'UTF-8'); ?> " class="input-mini input-hidden" /> - <input type="text" name="shipping_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], ENT_QUOTES, 'UTF-8'); ?> ][max_weight]" size="4" value="<?php if ($_smarty_tpl->tpl_vars['shipping']->value['max_weight'] != "0.00") { echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['max_weight'], ENT_QUOTES, 'UTF-8'); } ?> " class="input-mini input-hidden right" /></td> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <td class="nowrap"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('select_mode' => true, 'title' => __("usergroup"), 'id' => "ship_data_" . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], 'name' => "shipping_data[" . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping_id'] . "][usergroup_ids]", 'usergroups' => $_smarty_tpl->tpl_vars['usergroups']->value, 'usergroup_ids' => $_smarty_tpl->tpl_vars['shipping']->value['usergroup_ids'], 'input_extra' => ''), 0); ?> </td> <?php } ?> <td class="nowrap"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_smarty_tpl->tpl_vars['link_text']->value, 'href' => "shippings.update?shipping_id=" . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping_id'])); ?> </li> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm", 'href' => "shippings.delete?shipping_id=" . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping_id'])); ?> </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(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> </td> <td class="right"> <?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['shipping']->value['shipping_id'], 'display' => $_smarty_tpl->tpl_vars['status_display']->value, 'status' => $_smarty_tpl->tpl_vars['shipping']->value['status'], 'hidden' => '', 'object_id_name' => "shipping_id", 'table' => "shippings"), 0); ?> </td> </tr> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> </form> <?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['shippings']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[shippings.m_delete]", 'form' => "shippings_form")); ?> </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 smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php if ($_smarty_tpl->tpl_vars['shippings']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[shippings.m_update]", 'but_role' => "submit-link", 'but_target_form' => "shippings_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 echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tool_href' => "shippings.add", 'prefix' => "top", 'hide_tools' => true, 'link_text' => '', 'title' => __("add_shipping_method"), '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 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(); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("manage_shippings"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'select_languages' => true), 0); }
function content_55cdb2a772c4b0_94646970($_smarty_tpl) { if (!is_callable('smarty_function_math')) { include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php'; } fn_preload_lang_vars(array('position_short', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'name', 'status', 'expand_sublist_of_items', 'expand_sublist_of_items', 'collapse_sublist_of_items', 'collapse_sublist_of_items', 'edit', 'delete', 'no_data')); if (!$_smarty_tpl->tpl_vars['checkbox_name']->value) { $_smarty_tpl->tpl_vars["checkbox_name"] = new Smarty_variable("page_ids", null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['parent_id']->value) { ?> <div <?php if (!$_smarty_tpl->tpl_vars['expand_all']->value) { ?> class="hidden"<?php } ?> id="page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['parent_id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php } $_smarty_tpl->tpl_vars['page'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['page']->_loop = false; $_from = $_smarty_tpl->tpl_vars['pages_tree']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['page']->key => $_smarty_tpl->tpl_vars['page']->value) { $_smarty_tpl->tpl_vars['page']->_loop = true; ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['page']->value, "pages"), null, 0); } ?> <table width="100%" class="table table-tree table-middle table-nobg"> <?php if ($_smarty_tpl->tpl_vars['header']->value && !$_smarty_tpl->tpl_vars['hide_header']->value) { $_smarty_tpl->tpl_vars["header"] = new Smarty_variable('', null, 0); ?> <thead> <tr> <th class="left" width="3%"> <?php if ($_smarty_tpl->tpl_vars['display']->value != "radio") { ?> <?php echo $_smarty_tpl->getSubTemplate("common/check_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> </th> <?php if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <th class="left" width="7%"><?php echo $_smarty_tpl->__("position_short"); ?> </th> <?php } ?> <th width="70%" class="left"> <?php if (!$_smarty_tpl->tpl_vars['hide_show_all']->value && !$_smarty_tpl->tpl_vars['search']->value['paginate']) { ?> <span alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " id="on_page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combinations-pages<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['expand_all']->value) { ?> hidden<?php } ?> " ><span class="exicon-expand "></span></span> <span alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " id="off_page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combinations-pages<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->tpl_vars['expand_all']->value) { ?> hidden<?php } ?> " ><span class="exicon-collapse "></span></span> <?php } ?> <?php echo $_smarty_tpl->__("name"); ?> </th> <?php if (!$_smarty_tpl->tpl_vars['hide_delete_button']->value) { ?> <th width="10%"> </th><?php } ?> <?php if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <th width="10%" class="right"><?php echo $_smarty_tpl->__("status"); ?> </th> <?php } ?> </tr> </thead> <?php } ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['page']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['page']->value['level'] > 0 && !$_smarty_tpl->tpl_vars['search']->value['paginate']) { ?> class="multiple-table-row"<?php } ?> > <td class="left" width="3%"> <?php if ($_smarty_tpl->tpl_vars['display']->value == "radio") { ?> <input type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['checkbox_name']->value, ENT_QUOTES, 'UTF-8'); ?> " id="radio_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item" /> <?php } else { ?> <input type="checkbox" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['checkbox_name']->value, ENT_QUOTES, 'UTF-8'); ?> []" id="checkbox_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item" /> <?php } ?> </td> <?php if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <td width="7%"> <input type="text" name="pages_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> ][position]" size="3" maxlength="10" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " class="input-micro input-hidden" /> <?php if (fn_allowed_for("ULTIMATE")) { ?> <input type="hidden" name="pages_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> ][company_id]" size="3" maxlength="3" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['company_id'], ENT_QUOTES, 'UTF-8'); ?> " class="hidden" /> <?php } ?> </td> <?php } ?> <td class="row-status" width="70%"> <div class="text-over" <?php if (!$_smarty_tpl->tpl_vars['search']->value['paginate']) { ?> style="padding-left: <?php echo smarty_function_math(array('equation' => "x*14", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['page']->value['level']) === null || $tmp === '' ? 0 : $tmp), $_smarty_tpl); ?> px;"<?php } ?> ><?php if ($_smarty_tpl->tpl_vars['page']->value['subpages'] || $_smarty_tpl->tpl_vars['page']->value['has_children']) { $_smarty_tpl->tpl_vars["_dispatch"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['dispatch']->value) === null || $tmp === '' ? "pages.manage" : $tmp, null, 0); if ($_smarty_tpl->tpl_vars['except_id']->value) { $_smarty_tpl->tpl_vars["except_url"] = new Smarty_variable("&except_id=" . (string) $_smarty_tpl->tpl_vars['except_id']->value, null, 0); } ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination-pages<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> <?php if ($_smarty_tpl->tpl_vars['expand_all']->value && !$_smarty_tpl->tpl_vars['hide_show_all']->value) { ?> hidden<?php } ?> " <?php if ($_smarty_tpl->tpl_vars['page']->value['has_children']) { ?> onclick="Tygh.$.ceAjax('request', '<?php echo fn_url((string) $_smarty_tpl->tpl_vars['_dispatch']->value . "?parent_id=" . (string) $_smarty_tpl->tpl_vars['page']->value['page_id'] . "&get_tree=multi_level" . (string) $_smarty_tpl->tpl_vars['except_url']->value . "&display=" . (string) $_smarty_tpl->tpl_vars['display']->value . "&checkbox_name=" . (string) $_smarty_tpl->tpl_vars['checkbox_name']->value . "&combination_suffix=" . (string) $_smarty_tpl->tpl_vars['combination_suffix']->value); ?> ', <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> result_ids: 'page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> ', caching: true<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> );"<?php } ?> ><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_page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination-pages<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> <?php if (!$_smarty_tpl->tpl_vars['expand_all']->value || $_smarty_tpl->tpl_vars['hide_show_all']->value) { ?> hidden<?php } ?> "><span class="exicon-collapse"></span> </span><?php } elseif (!$_smarty_tpl->tpl_vars['search']->value['paginate']) { ?> <span style="padding-left: 14px;"> </span><?php } if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <a href="<?php echo htmlspecialchars(fn_url("pages.update?page_id=" . (string) $_smarty_tpl->tpl_vars['page']->value['page_id'] . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value), ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['page']->value['status'] == "N") { ?> class="manage-root-item-disabled"<?php } ?> id="page_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page'], ENT_QUOTES, 'UTF-8'); ?> "><?php } else { ?> <label class="inline-label" for="radio_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> " id="page_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page'], ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> </a><?php } else { ?> </label><?php } if ($_smarty_tpl->tpl_vars['page']->value['page_type']) { $_smarty_tpl->tpl_vars["pt"] = new Smarty_variable($_smarty_tpl->tpl_vars['page_types']->value[$_smarty_tpl->tpl_vars['page']->value['page_type']], null, 0); ?> <span class="muted"> (<?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['pt']->value['single']); ?> )</span><?php } ?> <div class="shift-left"><?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['page']->value), 0); ?> </div></div> </td> <?php if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <td width="10%"> <input type="hidden" name="pages_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> ][parent_id]" size="3" maxlength="10" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page']->value['parent_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['search']->value['get_tree']) { ?> <?php $_smarty_tpl->tpl_vars["multi_level"] = new Smarty_variable("&multi_level=Y", null, 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['picker']->value) { ?> <?php $_smarty_tpl->tpl_vars["_href"] = new Smarty_variable("pages.update?page_id=" . (string) $_smarty_tpl->tpl_vars['page']->value['page_id'] . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value, null, 0); ?> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => $_smarty_tpl->tpl_vars['_href']->value)); ?> </li> <?php if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['allow_save']->value || !fn_allowed_for("ULTIMATE")) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "confirm", 'href' => "pages.delete?page_type=" . (string) $_smarty_tpl->tpl_vars['page']->value['page_type'] . "&page_id=" . (string) $_smarty_tpl->tpl_vars['page']->value['page_id'] . (string) $_smarty_tpl->tpl_vars['multi_level']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </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(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> </td> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_delete_button']->value) { ?> <td width="10%" class="nowrap right"> <?php if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['allow_save']->value || !fn_allowed_for("ULTIMATE")) { ?> <?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['page']->value['page_id'], 'status' => $_smarty_tpl->tpl_vars['page']->value['status'], 'hidden' => true, 'object_id_name' => "page_id", 'table' => "pages", 'popup_additional_class' => "dropleft"), 0); ?> <?php } ?> </td> <?php } ?> </tr> </table> <?php if ($_smarty_tpl->tpl_vars['page']->value['subpages'] || $_smarty_tpl->tpl_vars['page']->value['has_children']) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/pages_tree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('pages_tree' => $_smarty_tpl->tpl_vars['page']->value['subpages'], 'parent_id' => $_smarty_tpl->tpl_vars['page']->value['page_id']), 0); ?> <?php } } if (!$_smarty_tpl->tpl_vars['page']->_loop) { ?> <?php if (!$_smarty_tpl->tpl_vars['hide_show_all']->value) { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } } ?> <?php if ($_smarty_tpl->tpl_vars['parent_id']->value) { ?> <!--page<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['combination_suffix']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['parent_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div><?php } }
function content_55e32f3b991356_25240200($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php'; } fn_preload_lang_vars(array('no_data', 'no_data', 'no_data', 'manage_reports', 'edit_report', 'reports')); echo smarty_function_script(array('src' => "js/lib/amcharts/amcharts.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/lib/amcharts/pie.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/lib/amcharts/serial.js"), $_smarty_tpl); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <div id="content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['report']->value['report_id'], ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['report']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['report']->value['tables']) { ?> <?php $_smarty_tpl->tpl_vars["table_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['table']->value['table_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["table_prefix"] = new Smarty_variable("table_" . (string) $_smarty_tpl->tpl_vars['table_id']->value, null, 0); ?> <div id="content_table_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['table_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if (!$_smarty_tpl->tpl_vars['table']->value['elements'] || $_smarty_tpl->tpl_vars['table']->value['empty_values'] == "Y") { ?> <p><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } elseif ($_smarty_tpl->tpl_vars['table']->value['type'] == "T") { ?> <?php echo $_smarty_tpl->getSubTemplate("views/sales_reports/components/table.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['table']->value['type'] == "P") { ?> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['table_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> pie"><?php echo $_smarty_tpl->getSubTemplate("views/sales_reports/components/amchart_pie.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('chart_data' => $_smarty_tpl->tpl_vars['new_array']->value['pie_data'], 'chart_id' => $_smarty_tpl->tpl_vars['table_prefix']->value), 0); ?> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['table_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> pie--></div> <?php } elseif ($_smarty_tpl->tpl_vars['table']->value['type'] == "B") { ?> <div id="div_scroll_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['table_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="reports-graph-scroll"> <div id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['table_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> bar"><?php echo $_smarty_tpl->getSubTemplate("views/sales_reports/components/amchart_bar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('chart_data' => $_smarty_tpl->tpl_vars['new_array']->value['column_data'], 'chart_id' => $_smarty_tpl->tpl_vars['table_prefix']->value), 0); ?> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['table_prefix']->value, ENT_QUOTES, 'UTF-8'); ?> bar--></div> </div> <?php } ?> <!--content_table_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['table_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?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_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'active_tab' => "table_" . (string) $_smarty_tpl->tpl_vars['table_id']->value, 'track' => true), 0); ?> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> <!--content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['report']->value['report_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(); } ?> <?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(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("manage_reports"), 'href' => "sales_reports.manage")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit_report"), 'href' => "sales_reports.update_table?report_id=" . (string) $_smarty_tpl->tpl_vars['report_id']->value . "&table_id=" . (string) $_smarty_tpl->tpl_vars['table']->value['table_id'])); ?> </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 $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/sales_reports/components/sales_reports_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('period' => $_smarty_tpl->tpl_vars['report']->value['period'], 'search' => $_smarty_tpl->tpl_vars['report']->value), 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' => __("reports"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar']), 0); ?> <?php }
function content_55dc81ac7ddd16_50130614($_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('position_short', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'expand_collapse_list', 'name', 'products', 'status', 'expand_sublist_of_items', 'expand_sublist_of_items', 'expand_sublist_of_items', 'expand_sublist_of_items', 'collapse_sublist_of_items', 'collapse_sublist_of_items', 'disabled', 'expand_sublist_of_items', 'expand_sublist_of_items', 'expand_sublist_of_items', 'expand_sublist_of_items', 'collapse_sublist_of_items', 'collapse_sublist_of_items', 'expand_sublist_of_items', 'expand_sublist_of_items', 'expand_sublist_of_items', 'expand_sublist_of_items', 'collapse_sublist_of_items', 'collapse_sublist_of_items', 'disabled', 'add_product', 'edit', 'category_deletion_side_effects', 'delete')); if ($_smarty_tpl->tpl_vars['parent_id']->value) { ?> <div class="hidden" id="cat_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['parent_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php } $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['category']->_loop = false; $_from = $_smarty_tpl->tpl_vars['categories_tree']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value) { $_smarty_tpl->tpl_vars['category']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars["comb_id"] = new Smarty_variable("cat_" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id'], null, 0); ?> <table class="table table-tree table-middle"> <?php if ($_smarty_tpl->tpl_vars['header']->value && !$_smarty_tpl->tpl_vars['parent_id']->value) { ?> <?php $_smarty_tpl->tpl_vars["header"] = new Smarty_variable('', null, 0); ?> <thead> <tr> <th 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="8%"><?php echo $_smarty_tpl->__("position_short"); ?> </th> <th width="54%"> <?php if ($_smarty_tpl->tpl_vars['show_all']->value && !$_REQUEST['b_id']) { ?> <div class="pull-left"> <span alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " id="on_cat" class="cm-combinations<?php if ($_smarty_tpl->tpl_vars['expand_all']->value) { ?> hidden<?php } ?> "><span class="exicon-expand"> </span></span> <span alt="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " title="<?php echo $_smarty_tpl->__("expand_collapse_list"); ?> " id="off_cat" class="cm-combinations<?php if (!$_smarty_tpl->tpl_vars['expand_all']->value) { ?> hidden<?php } ?> "><span class="exicon-collapse"> </span></span> </div> <?php } ?> <?php echo $_smarty_tpl->__("name"); ?> </th> <th width="12%" class="center"><?php echo $_smarty_tpl->__("products"); ?> </th> <th width="5%" class="center"> </th> <th width="10%" class="right"><?php echo $_smarty_tpl->__("status"); ?> </th> </tr> </thead> <?php } ?> <?php if (fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['category']->value['disabled']) { ?> <tbody> <tr class="<?php if ($_smarty_tpl->tpl_vars['category']->value['level'] > 0) { ?> multiple-table-row <?php } ?> cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['category']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo smarty_function_math(array('equation' => "x*14", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['category']->value['level']) === null || $tmp === '' ? "0" : $tmp, 'assign' => "shift"), $_smarty_tpl); ?> <td width="5%"> </td> <td width="8%"> </td> <td width="54%"> <span style="padding-left: <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shift']->value, ENT_QUOTES, 'UTF-8'); ?> px;"><?php if ($_smarty_tpl->tpl_vars['category']->value['has_children'] || $_smarty_tpl->tpl_vars['category']->value['subcategories']) { if ($_smarty_tpl->tpl_vars['show_all']->value) { ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination <?php if ($_smarty_tpl->tpl_vars['expand_all']->value) { ?> hidden<?php } ?> " /><span class="exicon-expand"> </span></span><?php } else { ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="exicon-collapse cm-combination" onclick="if (!Tygh.$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> ').children().get(0)) Tygh.$.ceAjax('request', '<?php echo fn_url("categories.manage?category_id=" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id']); ?> ', <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> result_ids: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> )"><span class="exicon-expand"> </span></span><?php } ?> <span alt="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " id="off_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination<?php if (!$_smarty_tpl->tpl_vars['expand_all']->value || !$_smarty_tpl->tpl_vars['show_all']->value) { ?> hidden<?php } ?> "><span class="exicon-collapse"></span></span><?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['category']->value['status'] == "N") { ?> <span class="small-note">- [<?php echo $_smarty_tpl->__("disabled"); ?> ]</span><?php } ?> </span> </td> <td width="12%" class="center"> </td> <td width="5%" class="center"> </td> <td width="10%" class="right"> </td> </tr> </tbody> <?php } else { ?> <tr class="<?php if ($_smarty_tpl->tpl_vars['category']->value['level'] > 0) { ?> multiple-table-row <?php } ?> cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['category']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo smarty_function_math(array('equation' => "x*14", 'x' => ($tmp = @$_smarty_tpl->tpl_vars['category']->value['level']) === null || $tmp === '' ? "0" : $tmp, 'assign' => "shift"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['category']->value['company_categories']) { ?> <?php $_smarty_tpl->tpl_vars["comb_id"] = new Smarty_variable("comp_" . (string) $_smarty_tpl->tpl_vars['category']->value['company_id'], null, 0); ?> <td width="5%"> </td> <td width="8%"> </td> <td width="54%"> <span style="padding-left: <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shift']->value, ENT_QUOTES, 'UTF-8'); ?> px;"><?php if ($_smarty_tpl->tpl_vars['show_all']->value) { ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination <?php if ($_smarty_tpl->tpl_vars['expand_all']->value) { ?> hidden<?php } ?> "><span class="exicon-expand"></span> </span><?php } else { ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination" onclick="if (!Tygh.$('#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> ').children().get(0)) Tygh.$.ceAjax('request', '<?php echo fn_url("categories.manage?category_id=" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id']); ?> ', <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> result_ids: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> )"> <span class="exicon-expand"></span></span><?php } ?> <span alt="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " id="off_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination<?php if (!$_smarty_tpl->tpl_vars['expand_all']->value || !$_smarty_tpl->tpl_vars['show_all']->value) { ?> hidden<?php } ?> "><span class="exicon-collapse"></span></span><span class="row-status"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category'], ENT_QUOTES, 'UTF-8'); ?> </span></span> </td> <td width="12%" class="center"> </td> <td width="10%" class="center"> </td> <td width="10%" class="right"> </td> <?php } else { ?> <td width="5%"> <input type="checkbox" name="category_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category_id'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox cm-item cm-item-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['category']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> " /></td> <td width="8%"> <input type="text" name="categories_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category_id'], ENT_QUOTES, 'UTF-8'); ?> ][position]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " size="3" class="input-micro input-hidden" /></td> <td width="54%"> <span style="padding-left: <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shift']->value, ENT_QUOTES, 'UTF-8'); ?> px;"><?php if ($_smarty_tpl->tpl_vars['category']->value['has_children'] || $_smarty_tpl->tpl_vars['category']->value['subcategories']) { if ($_smarty_tpl->tpl_vars['show_all']->value) { ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_cat_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination <?php if ($_smarty_tpl->tpl_vars['expand_all']->value) { ?> hidden<?php } ?> " ><span class="exicon-expand"> </span></span><?php } else { ?> <span alt="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("expand_sublist_of_items"); ?> " id="on_cat_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination" onclick="if (!Tygh.$('#cat_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category_id'], ENT_QUOTES, 'UTF-8'); ?> ').children().get(0)) Tygh.$.ceAjax('request', '<?php echo fn_url("categories.manage?category_id=" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id']); ?> ', <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ldelim']->value, ENT_QUOTES, 'UTF-8'); ?> result_ids: 'cat_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category_id'], ENT_QUOTES, 'UTF-8'); ?> '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rdelim']->value, ENT_QUOTES, 'UTF-8'); ?> )"><span class="exicon-expand"> </span></span><?php } ?> <span alt="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " title="<?php echo $_smarty_tpl->__("collapse_sublist_of_items"); ?> " id="off_cat_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-combination<?php if (!$_smarty_tpl->tpl_vars['expand_all']->value || !$_smarty_tpl->tpl_vars['show_all']->value) { ?> hidden<?php } ?> " ><span class="exicon-collapse"> </span></span><?php } ?> <a class="row-status <?php if ($_smarty_tpl->tpl_vars['category']->value['status'] == "N") { ?> manage-root-item-disabled<?php } if (!$_smarty_tpl->tpl_vars['category']->value['subcategories']) { ?> normal<?php } ?> " href="<?php echo htmlspecialchars(fn_url("categories.update?category_id=" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id']), ENT_QUOTES, 'UTF-8'); ?> "<?php if (!$_smarty_tpl->tpl_vars['category']->value['subcategories']) { ?> style="padding-left: 14px;"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['category'], ENT_QUOTES, 'UTF-8'); ?> </a><?php if ($_smarty_tpl->tpl_vars['category']->value['status'] == "N") { ?> <span class="small-note">- [<?php echo $_smarty_tpl->__("disabled"); ?> ]</span><?php } ?> </span> </td> <td width="12%" class="center"> <a href="<?php echo htmlspecialchars(fn_url("products.manage?cid=" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id']), ENT_QUOTES, 'UTF-8'); ?> " class="badge"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value['product_count'], ENT_QUOTES, 'UTF-8'); ?> </a> </td> <td width="10%" class="center"> <div class="hidden-tools"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_items", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("add_product"), 'href' => "products.add?category_id=" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id'])); ?> </li> <?php if (!$_smarty_tpl->tpl_vars['hide_inputs']->value) { ?> <li class="divider"></li> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => "categories.update?category_id=" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id'])); ?> </li> <li><?php ob_start(); echo $_smarty_tpl->__("category_deletion_side_effects"); $_tmp2 = ob_get_clean(); smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'class' => "cm-confirm cm-post", 'data' => array("data-ca-confirm-text" => $_tmp2), 'text' => __("delete"), 'href' => "categories.delete?category_id=" . (string) $_smarty_tpl->tpl_vars['category']->value['category_id'])); ?> </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_items'])); ?> </div> </td> <td width="10%" class="nowrap right"> <?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['category']->value['category_id'], 'status' => $_smarty_tpl->tpl_vars['category']->value['status'], 'hidden' => true, 'object_id_name' => "category_id", 'table' => "categories", 'non_editable' => $_smarty_tpl->tpl_vars['hide_inputs']->value), 0); ?> </td> <?php } ?> </tr> <?php } ?> </table> <?php if ($_smarty_tpl->tpl_vars['category']->value['has_children'] || $_smarty_tpl->tpl_vars['category']->value['subcategories']) { ?> <div class="<?php if (!$_smarty_tpl->tpl_vars['expand_all']->value) { ?> hidden<?php } ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <?php if ($_smarty_tpl->tpl_vars['category']->value['subcategories']) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/categories/components/categories_tree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('categories_tree' => $_smarty_tpl->tpl_vars['category']->value['subcategories'], 'parent_id' => false), 0); ?> <?php } ?> <!--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['comb_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php } } ?> <?php if ($_smarty_tpl->tpl_vars['parent_id']->value) { ?> <!--cat_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['parent_id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div><?php } }
function content_55ccf5f2d76602_89796964($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.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('text_restore_question', 'open_file_or_create_new', 'new_file', 'create_file', 'could_not_open_file', 'upload_file', 'upload', 'new_folder', 'name', 'new_file', 'name', 'change_permissions', 'on_site_template_editing', 'restore_from_repository', 'change_permissions', 'download', 'make_archive', 'extract_archive', 'rename', 'delete', 'create_file', 'create_folder', 'upload_file', 'create', 'file_editor')); echo smarty_function_script(array('src' => "js/lib/ace/ace.js"), $_smarty_tpl); ?> <?php echo smarty_function_script(array('src' => "js/tygh/file_editor.js"), $_smarty_tpl); ?> <script type="text/javascript"> (function (_, $) { _.tr({ text_restore_question : '<?php echo strtr($_smarty_tpl->__("text_restore_question"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/")); ?> ', text_enter_filename : '<?php echo $_smarty_tpl->__(strtr("text_enter_filename", array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"))); ?> ', text_are_you_sure_to_delete_file : '<?php echo $_smarty_tpl->__(strtr("text_are_you_sure_to_delete_file", array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"))); ?> ' }); <?php if ($_smarty_tpl->tpl_vars['selected_path']->value) { ?> _.file_editor.selected_path = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_path']->value, ENT_QUOTES, 'UTF-8'); ?> '; <?php } ?> _.file_editor.rel_path = '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rel_path']->value, ENT_QUOTES, 'UTF-8'); ?> '; }(Tygh, Tygh.$)); </script> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <div id="error_box" class="hidden"> <div align="center" class="notification-e"> <div id="error_status"></div> </div> </div> <div id="status_box" class="hidden"> <div class="notification-n" align="center"> <div id="status"></div> </div> </div> <!--Editor--> <div class="te-content cm-te-content"> <div id="template_text"></div> <div id="template_image" class="te-template-image"></div> </div> <div class="cm-te-messages"> <div class="te-empty-folder empty-text"> <h2><?php echo $_smarty_tpl->__("open_file_or_create_new"); ?> </h2> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_file", 'text' => __("new_file"), 'content' => '', 'link_text' => __("create_file"), 'act' => "general", 'link_class' => "cm-dialog-auto-size btn-primary", 'icon' => "icon-plus icon-white"), 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "file_editor:directory_action")); $_block_repeat = true; echo smarty_block_hook(array('name' => "file_editor:directory_action"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "file_editor:directory_action"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <div class="te-unknown-file empty-text"> <h2><?php echo $_smarty_tpl->__("could_not_open_file"); ?> </h2> </div> </div> <div class="hidden" id="content_upload_file" title="<?php echo $_smarty_tpl->__("upload_file"); ?> "> <div class="install-addon"> <form name="upload_form" action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" enctype="multipart/form-data" class="form-horizontal"> <input type="hidden" name="path" id="upload_path" /> <div class="install-addon-wrapper"> <img class="install-addon-banner" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8'); ?> /addon_box.png" width="151px" height="141px" /> <?php echo $_smarty_tpl->getSubTemplate("common/fileuploader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('var_name' => "uploaded_data[0]"), 0); ?> </div> <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_name' => "dispatch[file_editor.upload_file]", 'but_meta' => "cm-te-upload-file", 'cancel_action' => "close", 'but_text' => __("upload")), 0); ?> </div> </form> </div> </div> <div class="hidden" id="content_add_new_folder" title="<?php echo $_smarty_tpl->__("new_folder"); ?> "> <form name="add_folder_form" class="form-horizontal form-edit"> <div class="control-group"> <label for="elm_new_folder" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input type="text" class="span4" name="new_folder" id="elm_new_folder" value="" /> </div> </div> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('cancel_action' => "close", 'but_meta' => "cm-te-create-folder cm-dialog-closer"), 0); ?> </div> </form> </div> <div class="hidden" id="content_add_new_file" title="<?php echo $_smarty_tpl->__("new_file"); ?> "> <form name="add_file_form" class="form-horizontal form-edit"> <div class="control-group"> <label for="elm_new_file" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input type="text" class="span4" name="new_file" id="elm_new_file" value="" /> </div> </div> <div class="buttons-container"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('cancel_action' => "close", 'but_meta' => "cm-dialog-closer cm-te-create-file"), 0); ?> </div> </form> </div> <?php if (!defined("IS_WINDOWS")) { ?> <div class="hidden" title="<?php echo $_smarty_tpl->__("change_permissions"); ?> " id="content_chmod"> <?php echo $_smarty_tpl->getSubTemplate("views/file_editor/components/chmod.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <!--content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> --></div> <?php } ?> <?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->tpl_vars['current_url'] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "file_editor:on_site_template_editing")); $_block_repeat = true; echo smarty_block_hook(array('name' => "file_editor:on_site_template_editing"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li class="cm-te-onsite-editing"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("on_site_template_editing"), 'href' => fn_url("customization.update_mode?type=design&status=enable&return_url=" . (string) $_smarty_tpl->tpl_vars['current_url']->value), 'target' => "_blank")); ?> </li> <li class="divider"></li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "file_editor:on_site_template_editing"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['active_section']->value == "themes") { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "file_editor:restore_from_repository")); $_block_repeat = true; echo smarty_block_hook(array('name' => "file_editor:restore_from_repository"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li class="cm-te-restore"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("restore_from_repository"))); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "file_editor:restore_from_repository"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> <?php if (!defined("IS_WINDOWS")) { ?> <li><?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "chmod", 'link_text' => __("change_permissions"), 'act' => "link", 'link_class' => "cm-te-perms cm-dialog-auto-size"), 0); ?> </li> <?php } ?> <li class="cm-te-getfile"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("download"))); ?> </li> <li class="cm-te-compress"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("make_archive"))); ?> </li> <li class="cm-te-decompress"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("extract_archive"))); ?> </li> <li class="cm-te-rename"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("rename"))); ?> </li> <li class="cm-te-delete"><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"))); ?> </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'], 'class' => "ce-te-actions")); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "file_editor:save_file")); $_block_repeat = true; echo smarty_block_hook(array('name' => "file_editor:save_file"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_changes.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "cm-te-save-file btn-primary disabled", 'but_role' => "submit"), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "file_editor:save_file"), $_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("sidebar", null, null); ob_start(); ?> <div class="sidebar-row"> <ul class="nav nav-pills"> <?php $_smarty_tpl->tpl_vars['section'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['section']->_loop = false; $_from = $_smarty_tpl->tpl_vars['sections']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['section']->key => $_smarty_tpl->tpl_vars['section']->value) { $_smarty_tpl->tpl_vars['section']->_loop = true; ?> <li <?php if ($_smarty_tpl->tpl_vars['active_section']->value == $_smarty_tpl->tpl_vars['section']->value) { ?> class="active"<?php } ?> ><a href="<?php echo htmlspecialchars(fn_url("file_editor.manage?active_section=" . (string) $_smarty_tpl->tpl_vars['section']->value . "&selected_path=/"), ENT_QUOTES, 'UTF-8'); ?> " ><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['section']->value); ?> </a></li> <?php } ?> </ul> </div> <hr> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "file_editor:tree")); $_block_repeat = true; echo smarty_block_hook(array('name' => "file_editor:tree"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="sidebar-row"> <!--file tree--> <div id="filelist" class="cm-te-file-tree nested-list nested-list-folders"></div> <!--#file tree--> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "file_editor:tree"), $_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("adv_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' => "file_editor:tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "file_editor:tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li class="cm-te-create-file"><?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_file", 'content' => '', 'link_text' => __("create_file"), 'act' => "edit", 'no_icon_link' => "true", 'link_class' => "cm-dialog-auto-size"), 0); ?> </li> <li class="cm-te-create-folder"><?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_new_folder", 'content' => '', 'link_text' => __("create_folder"), 'act' => "edit", 'no_icon_link' => "true", 'link_class' => "cm-dialog-auto-size"), 0); ?> </li> <li><?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "upload_file", 'content' => '', 'link_text' => __("upload_file"), 'act' => "edit", 'no_icon_link' => "true", 'link_class' => "cm-dialog-auto-size"), 0); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "file_editor: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 echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('prefix' => "main", 'tool_meta' => "cm-te-create", 'hide_actions' => true, 'tools_list' => Smarty::$_smarty_vars['capture']['tools_list'], 'display' => "inline", 'title' => __("create"), '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("mainbox_title", null, null); ob_start(); echo $_smarty_tpl->__("file_editor"); ?> <span class="muted f-small cm-te-path te-path"></span> <?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 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(); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['mainbox'], 'title' => Smarty::$_smarty_vars['capture']['mainbox_title'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'sidebar_position' => "left"), 0); ?> <?php }
function content_55d2ed05346cd0_99774659($_smarty_tpl) { if (!is_callable('smarty_function_math')) { include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php'; } fn_preload_lang_vars(array('remove', 'edit')); if (intval($_smarty_tpl->tpl_vars['company_id']->value)) { ?> <?php $_smarty_tpl->tpl_vars['company'] = new Smarty_variable(fn_get_company_name($_smarty_tpl->tpl_vars['company_id']->value), null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars['company'] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['ldelim']->value . "company" . (string) $_smarty_tpl->tpl_vars['rdelim']->value, null, 0); } if ($_smarty_tpl->tpl_vars['multiple']->value) { ?> <tr <?php if (!$_smarty_tpl->tpl_vars['clone']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['holder']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } ?> class="cm-js-item <?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> cm-clone hidden<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['position_field']->value) { ?> <td><input type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo smarty_function_math(array('equation' => "a*b", 'a' => $_smarty_tpl->tpl_vars['position']->value, 'b' => 10), $_smarty_tpl); ?> " size="3" class="input-text-short"<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> disabled="disabled"<?php } ?> /></td><?php } ?> <td><?php if ($_smarty_tpl->tpl_vars['hidden_field']->value) { ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8'); ?> []" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company_id']->value, ENT_QUOTES, 'UTF-8'); ?> " size="3" class="input-text-short"<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> disabled="disabled"<?php } ?> /><?php } if (!$_smarty_tpl->tpl_vars['view_only']->value) { ?> <a href="<?php echo htmlspecialchars(fn_url("companies.update?company_id=" . (string) $_smarty_tpl->tpl_vars['company_id']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['company']->value, ENT_QUOTES, 'UTF-8'); if (!$_smarty_tpl->tpl_vars['view_only']->value) { ?> </a><?php } ?> </td> <td class="nowrap"> <?php if (!$_smarty_tpl->tpl_vars['hide_delete_button']->value && !$_smarty_tpl->tpl_vars['view_only']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("remove"), 'onclick' => "Tygh." . "\$" . ".cePicker('delete_js_item', '" . (string) $_smarty_tpl->tpl_vars['holder']->value . "', '" . (string) $_smarty_tpl->tpl_vars['company_id']->value . "', 'm'); return false;")); ?> </li> <?php if (!$_smarty_tpl->tpl_vars['hide_edit_button']->value != "view") { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => "companies.update?company_id=" . (string) $_smarty_tpl->tpl_vars['company_id']->value)); ?> </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(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> <?php } ?> </td> </tr> <?php } else { ?> <<?php if ($_smarty_tpl->tpl_vars['single_line']->value) { ?> span<?php } else { ?> p<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['clone']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['holder']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } ?> class="cm-js-item no-margin<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> cm-clone hidden<?php } ?> "> <?php if (!$_smarty_tpl->tpl_vars['first_item']->value && $_smarty_tpl->tpl_vars['single_line']->value) { ?> <span class="cm-comma<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> hidden<?php } ?> ">, </span><?php } ?> <input class="input-text-medium cm-picker-value-description<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['extra_class']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['company']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['display_input_id']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['display_input_id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> size="10" name="company_name" readonly="readonly" <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['extra']->value, ENT_QUOTES, 'UTF-8'); ?> /> </<?php if ($_smarty_tpl->tpl_vars['single_line']->value) { ?> span<?php } else { ?> p<?php } ?> > <?php } }
function content_55ccdf866478f4_26867985($_smarty_tpl) { fn_preload_lang_vars(array('manage', 'settings', 'view', 'settings', 'uninstall', 'install', 'installed', 'no_data')); if ($_smarty_tpl->tpl_vars['addons_list']->value) { ?> <table class="table table-addons"> <?php $_smarty_tpl->tpl_vars["a"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["a"]->_loop = false; $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['addons_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["a"]->key => $_smarty_tpl->tpl_vars["a"]->value) { $_smarty_tpl->tpl_vars["a"]->_loop = true; $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["a"]->key; ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(false, null, 0); ?> <?php $_smarty_tpl->tpl_vars["href_delete"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url("addons.update?addon=" . (string) $_smarty_tpl->tpl_vars['a']->value['addon'] . "&return_url=" . (string) $_smarty_tpl->tpl_vars['c_url']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars["display"] = new Smarty_variable("text", null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["hide_for_vendor"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['a']->value['status'] == "N") { ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(true, null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["display"] = new Smarty_variable("popup", null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['a']->value['has_options']) { ?> <?php $_smarty_tpl->tpl_vars["act"] = new Smarty_variable("edit", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["act"] = new Smarty_variable("none", null, 0); ?> <?php $_smarty_tpl->tpl_vars["non_editable"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) { ?> <?php $_smarty_tpl->tpl_vars["href_delete"] = new Smarty_variable(fn_url("addons.uninstall?addon=" . (string) $_smarty_tpl->tpl_vars['a']->value['addon'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['c_url']->value), null, 0); ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['a']->value['separate'] && !$_smarty_tpl->tpl_vars['non_editable']->value) { ?> <?php $_smarty_tpl->tpl_vars["href"] = new Smarty_variable(fn_url("addons.update?addon=" . (string) $_smarty_tpl->tpl_vars['a']->value['addon']), null, 0); ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("manage"), null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['a']->value['status'] != "N") { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("settings"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable(" ", null, 0); ?> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("addons_row", null, null); ob_start(); ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['a']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['additional_class']->value, ENT_QUOTES, 'UTF-8'); ?> cm-row-item" id="addon_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> "> <td class="addon-icon"> <div class="bg-icon"> <?php if ($_smarty_tpl->tpl_vars['a']->value['status'] == "N") { ?> <i class="exicon-box"></i> <?php } else { ?> <i class="exicon-box-blue"></i> <?php } ?> </div> </td> <td width="80%"> <div class="object-group-link-wrap"> <?php if (!$_smarty_tpl->tpl_vars['non_editable']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['a']->value['separate']) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['href']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['a']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } else { ?> <a class="row-status cm-external-click<?php if ($_smarty_tpl->tpl_vars['non_editable']->value) { ?> no-underline<?php } ?> <?php if (!$_smarty_tpl->tpl_vars['a']->value['snapshot_correct']) { ?> cm-promo-popup<?php } ?> " <?php if ($_smarty_tpl->tpl_vars['a']->value['snapshot_correct']) { ?> data-ca-external-click-id="opener_group<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['a']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } ?> <?php } else { ?> <span class="unedited-element block"><?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['a']->value['name']) === null || $tmp === '' ? $_smarty_tpl->__("view") : $tmp, ENT_QUOTES, 'UTF-8'); ?> </span> <?php } ?> <br><span class="row-status object-group-details"><?php echo $_smarty_tpl->tpl_vars['a']->value['description']; ?> </span> </div> </td> <td width="10%" class="right nowrap"> <?php if ($_smarty_tpl->tpl_vars['show_installed']->value && $_smarty_tpl->tpl_vars['a']->value['status'] != 'N') { ?> <div class="pull-right"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['a']->value['separate']) { ?> <?php if (!$_smarty_tpl->tpl_vars['non_editable']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => $_smarty_tpl->tpl_vars['link_text']->value, 'href' => $_smarty_tpl->tpl_vars['href']->value)); ?> </li> <?php } else { ?> <li class="disabled"><a><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link_text']->value, ENT_QUOTES, 'UTF-8'); ?> </a></li> <?php } ?> <?php } else { ?> <li><?php ob_start(); echo $_smarty_tpl->__("settings"); $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "group" . (string) $_smarty_tpl->tpl_vars['key']->value, 'text' => $_tmp2 . ": " . (string) $_smarty_tpl->tpl_vars['a']->value['name'], 'act' => ($tmp = @$_smarty_tpl->tpl_vars['act']->value) === null || $tmp === '' ? "link" : $tmp, 'link_text' => $_smarty_tpl->tpl_vars['link_text']->value, 'href' => $_smarty_tpl->tpl_vars['href']->value, 'is_promo' => !$_smarty_tpl->tpl_vars['a']->value['snapshot_correct']), 0); ?> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['href_delete']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'class' => "cm-confirm", 'text' => __("uninstall"), 'data' => array('data-ca-target-id' => 'addons_list,header_navbar,header_subnav'), 'href' => $_smarty_tpl->tpl_vars['href_delete']->value)); ?> </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 smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> <?php } ?> </td> <td width="15%"> <?php if ($_smarty_tpl->tpl_vars['a']->value['status'] == 'N') { ?> <?php if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) { ?> <div class="pull-right"> <a class="btn lowercase <?php if ($_smarty_tpl->tpl_vars['a']->value['snapshot_correct']) { ?> cm-ajax cm-ajax-full-render<?php } else { ?> cm-promo-popup<?php } ?> " href="<?php echo htmlspecialchars(fn_url("addons.install?addon=" . (string) $_smarty_tpl->tpl_vars['key']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['c_url']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="addons_list,header_navbar,header_subnav"><?php echo $_smarty_tpl->__("install"); ?> </a> </div> <?php } ?> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['show_installed']->value) { ?> <div class="pull-right nowrap"> <?php if (!$_smarty_tpl->tpl_vars['a']->value['snapshot_correct']) { $_smarty_tpl->tpl_vars['status_meta'] = new Smarty_variable("cm-promo-popup", null, 0); } else { $_smarty_tpl->tpl_vars['status_meta'] = new Smarty_variable('', null, 0); } ?> <?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['key']->value, 'status' => $_smarty_tpl->tpl_vars['a']->value['status'], 'hide_for_vendor' => $_smarty_tpl->tpl_vars['hide_for_vendor']->value, 'non_editable' => false, 'status_meta' => $_smarty_tpl->tpl_vars['status_meta']->value, 'display' => $_smarty_tpl->tpl_vars['display']->value, 'update_controller' => "addons"), 0); ?> </div> <?php } else { ?> <span class="pull-right label label-info"><?php echo $_smarty_tpl->__("installed"); ?> </span> <?php } ?> <?php } ?> </td> <!--addon_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> --></tr> <?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['show_installed']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['a']->value['status'] == 'A' || $_smarty_tpl->tpl_vars['a']->value['status'] == 'D') { ?> <?php echo Smarty::$_smarty_vars['capture']['addons_row']; ?> <?php } ?> <?php } else { ?> <?php echo Smarty::$_smarty_vars['capture']['addons_row']; ?> <?php } ?> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?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_55d2ec43d52980_67621944($_smarty_tpl) { fn_preload_lang_vars(array('no_items', 'text_select_fields2edit_note', 'modify_selected', 'select_fields_to_edit', 'bulk_category_addition', 'edit_selected', 'add_category', 'total', 'categories', 'products', 'active_categories', 'hidden_categories', 'disabled_categories', 'categories')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); $_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(fn_check_form_permissions(''), null, 0); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="category_tree_form" class="<?php if ($_smarty_tpl->tpl_vars['hide_inputs']->value) { ?> cm-hide-inputs<?php } ?> "> <div class="items-container"> <?php if ($_smarty_tpl->tpl_vars['categories_tree']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/categories/components/categories_tree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('header' => "1", 'parent_id' => $_smarty_tpl->tpl_vars['category_id']->value, 'st_result_ids' => "categories_stats", 'st_return_url' => $_smarty_tpl->tpl_vars['config']->value['current_url']), 0); ?> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_items"); ?> </p> <?php } ?> </div> <?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/categories/components/categories_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_meta' => "cm-process-items", 'but_name' => "dispatch[categories.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 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); ?> <?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(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("bulk_category_addition"), 'href' => "categories.m_add")); ?> </li> <?php if ($_smarty_tpl->tpl_vars['categories_tree']->value) { ?> <?php if (!$_smarty_tpl->tpl_vars['hide_inputs']->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' => "category_tree_form")); ?> </li> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[categories.m_delete]", 'form' => "category_tree_form")); ?> </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 smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php if ($_smarty_tpl->tpl_vars['categories_tree']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[categories.m_update]", 'but_role' => "submit-link", 'but_target_form' => "category_tree_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 echo $_smarty_tpl->getSubTemplate("common/tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tool_href' => "categories.add", 'prefix' => "top", 'hide_tools' => "true", 'title' => __("add_category"), '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(); ?> <div class="sidebar-row" id="categories_stats"> <h6><?php echo $_smarty_tpl->__("total"); ?> </h6> <ul class="unstyled sidebar-stat"> <li><?php echo $_smarty_tpl->__("categories"); ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['categories_stats']->value['categories_total'], ENT_QUOTES, 'UTF-8'); ?> </span></li> <li><?php echo $_smarty_tpl->__("products"); ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['categories_stats']->value['products_total'], ENT_QUOTES, 'UTF-8'); ?> </span></li> <li><?php echo $_smarty_tpl->__("active_categories"); ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['categories_stats']->value['categories_active'], ENT_QUOTES, 'UTF-8'); ?> </span></li> <li><?php echo $_smarty_tpl->__("hidden_categories"); ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['categories_stats']->value['categories_hidden'], ENT_QUOTES, 'UTF-8'); ?> </span></li> <li><?php echo $_smarty_tpl->__("disabled_categories"); ?> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['categories_stats']->value['categories_disabled'], ENT_QUOTES, 'UTF-8'); ?> </span></li> </ul> <!--categories_stats--></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(); } ?> </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(); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("categories"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'select_languages' => true), 0); ?> <?php }
function content_55dc81a6027c27_25441318($_smarty_tpl) { if (!is_callable('smarty_function_math')) { include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php'; } if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('delete', 'edit', 'remove')); if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['product_id']->value && $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["product_data"] = new Smarty_variable(fn_get_product_data($_smarty_tpl->tpl_vars['product_id']->value, $_SESSION['auth'], @constant('CART_LANGUAGE'), "?:products.company_id,?:product_descriptions.product", false, false, false, false, false, false, true), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["product"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['product']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['product']->value : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['owner_company_id']->value && $_smarty_tpl->tpl_vars['owner_company_id']->value != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["show_only_name"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } } ?> <?php if ($_smarty_tpl->tpl_vars['type']->value == "options") { ?> <tr <?php if (!$_smarty_tpl->tpl_vars['clone']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['root_id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delete_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } ?> class="cm-js-item<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> cm-clone hidden<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['position_field']->value) { ?> <td><input type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delete_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo smarty_function_math(array('equation' => "a*b", 'a' => $_smarty_tpl->tpl_vars['position']->value, 'b' => 10), $_smarty_tpl); ?> " size="3" class="input-text-short" <?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> disabled="disabled"<?php } ?> /></td><?php } ?> <td> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value, ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['show_only_name']->value) { 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_data']->value), 0); } ?> <?php if ($_smarty_tpl->tpl_vars['options']->value) { ?> <br> <small><?php echo $_smarty_tpl->tpl_vars['options']->value; ?> </small> <?php } ?> <?php if (is_array($_smarty_tpl->tpl_vars['options_array']->value)) { ?> <?php $_smarty_tpl->tpl_vars["option"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["option"]->_loop = false; $_smarty_tpl->tpl_vars["option_id"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['options_array']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["option"]->key => $_smarty_tpl->tpl_vars["option"]->value) { $_smarty_tpl->tpl_vars["option"]->_loop = true; $_smarty_tpl->tpl_vars["option_id"]->value = $_smarty_tpl->tpl_vars["option"]->key; ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8'); ?> [product_options][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['option']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> disabled="disabled"<?php } ?> /> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product_id']->value) { ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8'); ?> [product_id]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> disabled="disabled"<?php } ?> /> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['amount_input']->value == "hidden") { ?> <input type="hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8'); ?> [amount]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['amount']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> disabled="disabled"<?php } ?> /> <?php } ?> </td> <?php if ($_smarty_tpl->tpl_vars['amount_input']->value == "text") { ?> <td class="center"> <?php if ($_smarty_tpl->tpl_vars['show_only_name']->value) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['amount']->value, ENT_QUOTES, 'UTF-8'); ?> <?php } else { ?> <input type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8'); ?> [amount]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['amount']->value, ENT_QUOTES, 'UTF-8'); ?> " size="3" class="input-micro"<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> disabled="disabled"<?php } ?> /> <?php } ?> </td> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "product_picker:table_column_options")); $_block_repeat = true; echo smarty_block_hook(array('name' => "product_picker:table_column_options"), 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' => "product_picker:table_column_options"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <td class="nowrap"> <?php if (!$_smarty_tpl->tpl_vars['hide_delete_button']->value && !$_smarty_tpl->tpl_vars['show_only_name']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'onclick' => "Tygh." . "\$" . ".cePicker('delete_js_item', '" . (string) $_smarty_tpl->tpl_vars['root_id']->value . "', '" . (string) $_smarty_tpl->tpl_vars['delete_id']->value . "', 'p'); return false;")); ?> </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(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> <?php } else { ?> <?php } ?> </td> </tr> <?php } elseif ($_smarty_tpl->tpl_vars['type']->value == "product") { ?> <tr <?php if (!$_smarty_tpl->tpl_vars['clone']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['root_id']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delete_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } ?> class="cm-js-item<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> cm-clone hidden<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['position_field']->value) { ?> <td><input type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['delete_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo smarty_function_math(array('equation' => "a*b", 'a' => $_smarty_tpl->tpl_vars['position']->value, 'b' => 10), $_smarty_tpl); ?> " size="3" class="input-text-short" <?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> disabled="disabled"<?php } ?> /></td><?php } ?> <td><?php if (!$_smarty_tpl->tpl_vars['show_only_name']->value) { ?> <a href="<?php echo htmlspecialchars(fn_url("products.update?product_id=" . (string) $_smarty_tpl->tpl_vars['delete_id']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->tpl_vars['product']->value; ?> </a><?php } else { echo $_smarty_tpl->tpl_vars['product']->value; ?> <?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_data']->value), 0); } ?> </td> <td> </td> <td class="nowrap"><?php if (!$_smarty_tpl->tpl_vars['hide_delete_button']->value && !$_smarty_tpl->tpl_vars['show_only_name']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); 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['delete_id']->value)); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("remove"), 'onclick' => "Tygh." . "\$" . ".cePicker('delete_js_item', '" . (string) $_smarty_tpl->tpl_vars['root_id']->value . "', '" . (string) $_smarty_tpl->tpl_vars['delete_id']->value . "', 'p'); return false;")); ?> </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(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> <?php } ?> </td> </tr> <?php } elseif ($_smarty_tpl->tpl_vars['type']->value == "single") { ?> <span <?php if (!$_smarty_tpl->tpl_vars['clone']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['holder']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } ?> class="cm-js-item <?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> cm-clone hidden<?php } ?> "> <?php if (!$_smarty_tpl->tpl_vars['first_item']->value && $_smarty_tpl->tpl_vars['single_line']->value) { ?> <span class="cm-comma<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> hidden<?php } ?> ">, </span><?php } ?> <div class="input-append"> <input class="cm-picker-value-description <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['extra_class']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['display_input_id']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['display_input_id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> size="10" name="product_name" readonly="readonly" <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['extra']->value, ENT_QUOTES, 'UTF-8'); ?> id="appendedInputButton"> <?php $_smarty_tpl->tpl_vars["_but_text"] = new Smarty_variable("<i class='icon-plus'></i>", null, 0); ?> <?php $_smarty_tpl->tpl_vars["_but_role"] = new Smarty_variable("icon", null, 0); ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_id' => "opener_picker_" . (string) $_smarty_tpl->tpl_vars['data_id']->value, 'but_href' => fn_url("products.picker?display=radio&company_ids=" . (string) $_smarty_tpl->tpl_vars['company_ids']->value . "&picker_for=" . (string) $_smarty_tpl->tpl_vars['picker_for']->value . "&extra=" . (string) $_smarty_tpl->tpl_vars['extra_var']->value . "&checkbox_name=" . (string) $_smarty_tpl->tpl_vars['checkbox_name']->value . "&except_id=" . (string) $_smarty_tpl->tpl_vars['except_id']->value . "&data_id=" . (string) $_smarty_tpl->tpl_vars['data_id']->value . (string) $_smarty_tpl->tpl_vars['extra_url']->value), 'but_text' => $_smarty_tpl->tpl_vars['_but_text']->value, 'but_role' => $_smarty_tpl->tpl_vars['_but_role']->value, 'but_icon' => $_smarty_tpl->tpl_vars['_but_icon']->value, 'but_target_id' => "content_" . (string) $_smarty_tpl->tpl_vars['data_id']->value, 'but_meta' => (string) $_smarty_tpl->tpl_vars['but_meta']->value . " cm-dialog-opener add-on btn"), 0); ?> </div> </span> <?php } }
function content_55e61e6bb11d10_64552035($_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('contact_information', 'user_profile_info', 'text_multiprofile_notice', 'billing_address', 'shipping_address', 'shipping_address', 'usergroup', 'status', 'no_data', 'allow_api_access', 'api_key', 'new_profile', 'editing_profile', 'editing_profile', 'editing_profile', 'view_all_orders', 'act_on_behalf', 'delete', 'create', 'notify_user')); if ($_smarty_tpl->tpl_vars['user_data']->value) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['user_data']->value['user_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, 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); ?> <form name="profile_form" action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" class="form-horizontal form-edit form-table <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['id']->value && $_smarty_tpl->tpl_vars['user_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['id']->value != $_smarty_tpl->tpl_vars['auth']->value['user_id'] || $_smarty_tpl->tpl_vars['hide_inputs']->value) { ?> cm-hide-inputs<?php } ?> "> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(false, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['user_type'] == $_smarty_tpl->tpl_vars['auth']->value['user_type'] && $_smarty_tpl->tpl_vars['user_data']->value['is_root'] == 'Y' && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id'] && (!$_smarty_tpl->tpl_vars['user_data']->value['company_id'] || $_smarty_tpl->tpl_vars['user_data']->value['company_id'] == $_smarty_tpl->tpl_vars['auth']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_allowed_for("ULTIMATE") && !fn_allow_save_object($_smarty_tpl->tpl_vars['user_data']->value, "users") && $_smarty_tpl->tpl_vars['id']->value && !fn_ult_check_users_usergroup_companies($_smarty_tpl->tpl_vars['id']->value) && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php $_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_allowed_for("MULTIVENDOR") && (!fn_allow_save_object($_smarty_tpl->tpl_vars['user_data']->value, "users") || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_REQUEST['user_type'] == 'C' || fn_string_not_empty($_smarty_tpl->tpl_vars['user_data']->value['company_id']) && $_smarty_tpl->tpl_vars['user_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php $_smarty_tpl->tpl_vars['hide_inputs'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <input type="hidden" name="user_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="selected_section" id="selected_section" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_section']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="user_type" value="<?php echo htmlspecialchars($_REQUEST['user_type'], ENT_QUOTES, 'UTF-8'); ?> " /> <div id="content_general"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:general_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:general_content"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_account.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php if ((fn_allowed_for("ULTIMATE") || $_smarty_tpl->tpl_vars['user_type']->value == "V") && $_smarty_tpl->tpl_vars['id']->value != $_smarty_tpl->tpl_vars['auth']->value['user_id']) { ?> <?php $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var'] = new Smarty_variable(false, null, 0); ?> <?php if (fn_allowed_for("ULTIMATE") && fn_check_user_type_admin_area($_smarty_tpl->tpl_vars['user_type']->value)) { ?> <?php $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var'] = new Smarty_variable('all_vendors', null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "user_data[company_id]", 'id' => "user_data_company_id", 'selected' => $_smarty_tpl->tpl_vars['user_data']->value['company_id'], 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value, 'disable_company_picker' => $_smarty_tpl->tpl_vars['hide_inputs']->value), 0); ?> <?php } else { ?> <input type="hidden" name="user_data[company_id]" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['user_data']->value['company_id']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8'); ?> "> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:general_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profile_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section' => "C", 'title' => __("contact_information")), 0); ?> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['user_multiple_profiles'] == "Y" && $_smarty_tpl->tpl_vars['id']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("user_profile_info")), 0); ?> <p class="form-note"><?php echo $_smarty_tpl->__("text_multiprofile_notice"); ?> </p> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/multiple_profiles.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['profile_fields']->value['B']) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profile_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section' => "B", 'title' => __("billing_address")), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profile_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section' => "S", 'title' => __("shipping_address"), 'body_id' => "sa", 'shipping_flag' => fn_compare_shipping_billing($_smarty_tpl->tpl_vars['profile_fields']->value)), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("views/profiles/components/profile_fields.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('section' => "S", 'title' => __("shipping_address"), 'shipping_flag' => false), 0); ?> <?php } ?> </div> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <?php if ($_smarty_tpl->tpl_vars['id']->value && ((!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['runtime']->value['company_id'] || 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['usergroups']->value && !$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['auth']->value['is_root'] == 'Y' && ($_smarty_tpl->tpl_vars['user_data']->value['company_id'] != 0 || $_smarty_tpl->tpl_vars['user_data']->value['company_id'] == 0 && $_smarty_tpl->tpl_vars['user_data']->value['is_root'] != 'Y') || $_smarty_tpl->tpl_vars['user_data']->value['user_type'] == 'V' && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_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'] && $_smarty_tpl->tpl_vars['user_data']->value['company_id'] == $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) { ?> <div id="content_usergroups" class="cm-hide-save-button"> <?php if ($_smarty_tpl->tpl_vars['usergroups']->value) { ?> <table width="100%" class="table table-middle"> <thead> <tr> <th width="50%"><?php echo $_smarty_tpl->__("usergroup"); ?> </th> <th class="right" width="10%"><?php echo $_smarty_tpl->__("status"); ?> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['usergroup'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['usergroup']->_loop = false; $_from = $_smarty_tpl->tpl_vars['usergroups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['usergroup']->key => $_smarty_tpl->tpl_vars['usergroup']->value) { $_smarty_tpl->tpl_vars['usergroup']->_loop = true; ?> <tr> <td><a href="<?php echo htmlspecialchars(fn_url("usergroups.manage#group" . (string) $_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['usergroup']->value['usergroup'], ENT_QUOTES, 'UTF-8'); ?> </a></td> <td class="right"> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['usergroups'][$_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id']]) { ?> <?php $_smarty_tpl->tpl_vars["ug_status"] = new Smarty_variable($_smarty_tpl->tpl_vars['user_data']->value['usergroups'][$_smarty_tpl->tpl_vars['usergroup']->value['usergroup_id']]['status'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["ug_status"] = new Smarty_variable("F", 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['usergroup']->value['usergroup_id'], 'status' => $_smarty_tpl->tpl_vars['ug_status']->value, 'hidden' => '', 'items_status' => fn_get_predefined_statuses("profiles"), 'extra' => "&user_id=" . (string) $_smarty_tpl->tpl_vars['id']->value, 'update_controller' => "usergroups", 'notify' => true, 'hide_for_vendor' => $_smarty_tpl->tpl_vars['runtime']->value['company_id']), 0); ?> </td> </tr> <?php } ?> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } ?> </div> <?php } ?> <?php } ?> <div id="content_addons"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:detailed_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:detailed_content"), 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' => "profiles:detailed_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php if ($_smarty_tpl->tpl_vars['show_api_tab']->value) { ?> <div id="content_api"> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['hide_api_checkbox']->value) { ?> hidden<?php } ?> "> <div class="controls"> <label class="checkbox" for="sw_api_container"> <input <?php if ($_smarty_tpl->tpl_vars['user_data']->value['api_key'] != '') { ?> checked="checked"<?php } ?> class="cm-combination" type="checkbox" name="user_api_status" value="Y" id="sw_api_container" /><?php echo $_smarty_tpl->__("allow_api_access"); ?> </label> </div> </div> <div id="api_container" <?php if ($_smarty_tpl->tpl_vars['user_data']->value['api_key'] == '') { ?> class="hidden"<?php } ?> > <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("api_key"); ?> </label> <div class="controls"> <input type="text" class="input-large" name="user_data[api_key]" value="<?php if ($_smarty_tpl->tpl_vars['user_data']->value['api_key']) { echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['api_key'], ENT_QUOTES, 'UTF-8'); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['new_api_key']->value, ENT_QUOTES, 'UTF-8'); } ?> " readonly="readonly"/> </div> </div> </div> </div> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:tabs_content"), 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' => "profiles:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if (!fn_allow_save_object($_smarty_tpl->tpl_vars['user_data']->value, "users") && $_smarty_tpl->tpl_vars['id']->value && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id'] || $_smarty_tpl->tpl_vars['hide_inputs']->value) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "profiles:tabs_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:tabs_extra"), 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' => "profiles:tabs_extra"), $_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/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'group_name' => $_smarty_tpl->tpl_vars['runtime']->value['controller'], 'active_tab' => $_smarty_tpl->tpl_vars['selected_section']->value, 'track' => true), 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 if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->tpl_vars["_user_desc"] = new Smarty_variable(fn_get_user_type_description($_smarty_tpl->tpl_vars['user_type']->value), null, 0); ?> <?php ob_start(); echo $_smarty_tpl->__("new_profile"); $_tmp1 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp1 . " (" . (string) $_smarty_tpl->tpl_vars['_user_desc']->value . ")", null, 0); } else { ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->value['firstname']) { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_profile"); $_tmp2 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp2 . ": " . (string) $_smarty_tpl->tpl_vars['user_data']->value['firstname'] . " " . (string) $_smarty_tpl->tpl_vars['user_data']->value['lastname'], null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['user_data']->value['b_firstname']) { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_profile"); $_tmp3 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp3 . ": " . (string) $_smarty_tpl->tpl_vars['user_data']->value['b_firstname'] . " " . (string) $_smarty_tpl->tpl_vars['user_data']->value['b_lastname'], null, 0); ?> <?php } else { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_profile"); $_tmp4 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp4 . ": " . (string) $_smarty_tpl->tpl_vars['user_data']->value['email'], null, 0); ?> <?php } } ?> <?php $_smarty_tpl->tpl_vars['_title'] = new Smarty_variable(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['_title']->value), null, 0); $_smarty_tpl->tpl_vars["redirect_url"] = new Smarty_variable("profiles.manage%26user_type=" . (string) $_smarty_tpl->tpl_vars['user_data']->value['user_type'], null, 0); ?> <?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' => "profiles:update_tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "profiles:update_tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['user_data']->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['id']->value)); ?> </li> <?php } ?> <?php if (fn_user_need_login($_smarty_tpl->tpl_vars['user_data']->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']) && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id'] && !($_smarty_tpl->tpl_vars['user_data']->value['user_type'] == 'A' && $_smarty_tpl->tpl_vars['user_data']->value['is_root'] == 'Y' && !$_smarty_tpl->tpl_vars['user_data']->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['id']->value)); ?> </li> <li class="divider"></li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm cm-post", 'href' => "profiles.delete?user_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['redirect_url']->value)); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "profiles:update_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 if ($_smarty_tpl->tpl_vars['id']->value && trim(Smarty::$_smarty_vars['capture']['tools_list']) !== '') { ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php } ?> <div class="btn-group btn-hover dropleft"> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_changes.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_meta' => "dropdown-toggle", 'but_role' => "submit-link", 'but_name' => "dispatch[profiles." . (string) $_smarty_tpl->tpl_vars['runtime']->value['mode'] . "]", 'but_target_form' => "profile_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("create"), 'but_meta' => "dropdown-toggle", 'but_role' => "submit-link", 'but_name' => "dispatch[profiles." . (string) $_smarty_tpl->tpl_vars['runtime']->value['mode'] . "]", 'but_target_form' => "profile_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php } ?> <ul class="dropdown-menu"> <li><a><input type="checkbox" name="notify_customer" value="Y" checked="checked" id="notify_customer" /> <?php echo $_smarty_tpl->__("notify_user"); ?> </a></li> </ul> </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/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'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons']), 0); ?> </form><?php }
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); }
function content_55ccf16de31ed7_69152506($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_function_style')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.style.php'; } if (!is_callable('smarty_block_hook')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_modifier_replace')) { include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/modifier.replace.php'; } if (!is_callable('smarty_function_split')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.split.php'; } fn_preload_lang_vars(array('current_theme', 'general', 'directory', 'name', 'description', 'theme_styles_and_layouts', 'layout', 'theme_editor.style', 'visual_editor', 'theme_no_styles_text', 'visual_editor', 'remove_theme', 'layouts', 'theme_editor.styles', 'active', 'activate', 'use_this_style', 'currently_in_use', 'activate', 'no_themes_available', 'install', 'preview', 'install', 'no_themes_available', 'clone_theme', 'rebuild_cache_automatically', 'rebuild_cache_automatically_tooltip', 'theme_information', 'name', 'directory', 'layouts', 'theme_editor.styles', 'developer', 'marketplace', 'marketplace_find_more', 'upload_theme', 'upload_theme', 'clone_theme', 'themes')); echo smarty_function_script(array('src' => "js/lib/bootstrap_switch/js/bootstrapSwitch.js"), $_smarty_tpl); ?> <?php echo smarty_function_style(array('src' => "lib/bootstrap_switch/stylesheets/bootstrapSwitch.css"), $_smarty_tpl); ?> <?php echo $_smarty_tpl->getSubTemplate("common/previewer.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->_capture_stack[0][] = array("upload_theme", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/themes/components/upload_theme.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 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->tpl_vars['theme'] = new Smarty_variable($_smarty_tpl->tpl_vars['available_themes']->value['current'], null, 0); $_smarty_tpl->tpl_vars['theme_name'] = new Smarty_variable($_smarty_tpl->tpl_vars['available_themes']->value['current']['theme_name'], null, 0); ?> <div class="themes" id="themes_list"> <h4><?php echo $_smarty_tpl->__("current_theme"); ?> </h4> <div class="row"> <?php $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="clone_theme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> _form" class="cm-ajax cm-comet cm-form-dialog-closer form-horizontal form-edit "> <input type="hidden" name="theme_data[theme_src]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="result_ids" value="themes_list,elm_sidebar"> <div class="add-new-object-group"> <div class="tabs cm-j-tabs"> <ul class="nav nav-tabs"> <li id="tab_clone_theme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js active"><a><?php echo $_smarty_tpl->__("general"); ?> </a></li> </ul> </div> <div class="cm-tabs-content" id="content_tab_clone_theme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> "> <fieldset> <div class="control-group"> <label class="control-label cm-required" for="elm_theme_dir_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("directory"); ?> </label> <div class="controls"> <input type="text" id="elm_theme_dir_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " name="theme_data[theme_dest]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> _clone" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_theme_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input type="text" id="elm_theme_title_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " name="theme_data[title]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_theme_desc_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("description"); ?> </label> <div class="controls"> <textarea name="theme_data[description]" id="elm_theme_desc_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " cols="50" rows="4" class="span9"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> </fieldset> </div> </div> <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_name' => "dispatch[themes.clone]", 'cancel_action' => "close", 'save' => true), 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 if ($_smarty_tpl->tpl_vars['theme']->value['screenshot']) { ?> <div id="theme_image"> <?php if ($_smarty_tpl->tpl_vars['theme']->value['styles'][$_smarty_tpl->tpl_vars['layout']->value['style_id']]['image']) { ?> <img class="span4 screenshot" width="250" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['styles'][$_smarty_tpl->tpl_vars['layout']->value['style_id']]['image'], ENT_QUOTES, 'UTF-8'); ?> "> <?php } else { ?> <div class="no-image span4"><i class="glyph-image" title="No image"></i></div> <?php } ?> <!--theme_image--></div> <?php } ?> <div class="span8 theme-description" id="theme_description_container"> <h4 class="lead"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['layout']->value['style_name']) { ?> : <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['layout']->value['style_name'], ENT_QUOTES, 'UTF-8'); } ?> </h4> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:current_theme_options")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:current_theme_options"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['theme']->value['styles']) { ?> <span class="muted"><?php echo $_smarty_tpl->__("theme_styles_and_layouts"); ?> </span> <table class="table table-middle"> <thead> <tr> <th><?php echo $_smarty_tpl->__("layout"); ?> </th> <th><?php echo $_smarty_tpl->__("theme_editor.style"); ?> </th> <th> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['available_layout'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['available_layout']->_loop = false; $_from = $_smarty_tpl->tpl_vars['theme']->value['layouts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['available_layout']->key => $_smarty_tpl->tpl_vars['available_layout']->value) { $_smarty_tpl->tpl_vars['available_layout']->_loop = true; ?> <tr> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['available_layout']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </td> <td> <?php $_smarty_tpl->tpl_vars['styles_descr'] = new Smarty_variable(array(), null, 0); ?> <?php $_smarty_tpl->tpl_vars['style'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['style']->_loop = false; $_from = $_smarty_tpl->tpl_vars['available_themes']->value['current']['styles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['style']->key => $_smarty_tpl->tpl_vars['style']->value) { $_smarty_tpl->tpl_vars['style']->_loop = true; ?> <?php $_smarty_tpl->createLocalArrayVariable('styles_descr', null, 0); $_smarty_tpl->tpl_vars['styles_descr']->value[$_smarty_tpl->tpl_vars['style']->value['style_id']] = $_smarty_tpl->tpl_vars['style']->value['name']; ?> <?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['available_layout']->value['layout_id'], 'status' => $_smarty_tpl->tpl_vars['available_layout']->value['style_id'], 'items_status' => $_smarty_tpl->tpl_vars['styles_descr']->value, 'update_controller' => "themes.styles", 'status_target_id' => "theme_description_container,themes_list", 'statuses' => $_smarty_tpl->tpl_vars['available_themes']->value['current']['styles'], 'btn_meta' => mb_strtolower("btn-text o-status-" . (string) $_smarty_tpl->tpl_vars['o']->value['status'], 'UTF-8'), 'default_status_text' => __('none')), 0); ?> </td> <td class="right"> <?php if ($_smarty_tpl->tpl_vars['available_layout']->value['is_default']) { ?> <?php $_smarty_tpl->tpl_vars['is_default'] = new Smarty_variable('btn-small btn-primary', null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['is_default'] = new Smarty_variable('btn-small', null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=theme_editor&status=enable&s_layout=" . (string) $_smarty_tpl->tpl_vars['available_layout']->value['layout_id'], 'but_text' => __("visual_editor"), 'but_role' => "action", 'but_meta' => $_smarty_tpl->tpl_vars['is_default']->value, 'but_target' => "_blank"), 0); ?> </td> <tr> <?php } ?> </tbody> </table> <?php } else { ?> <div class="theme-no-styles"> <span class="muted"><?php echo $_smarty_tpl->__("theme_no_styles_text"); ?> </span> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=theme_editor&status=enable", 'but_text' => __("visual_editor"), 'but_role' => "action", 'but_meta' => "btn-primary"), 0); ?> </div> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes:current_theme_options"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <!--theme_description_container--></div> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <div id="content_installed_themes"> <div id="themes_manage" class="themes-current clearfix"> <div class="themes-available"> <?php if ($_smarty_tpl->tpl_vars['available_themes']->value['installed']) { ?> <?php $_smarty_tpl->tpl_vars['installed_theme'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['installed_theme']->_loop = false; $_smarty_tpl->tpl_vars['theme_name'] = new Smarty_Variable(); $_from = array_reverse($_smarty_tpl->tpl_vars['available_themes']->value['installed']); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['installed_theme']->key => $_smarty_tpl->tpl_vars['installed_theme']->value) { $_smarty_tpl->tpl_vars['installed_theme']->_loop = true; $_smarty_tpl->tpl_vars['theme_name']->value = $_smarty_tpl->tpl_vars['installed_theme']->key; ?> <div class="row"> <?php if ($_smarty_tpl->tpl_vars['installed_theme']->value) { ?> <div class="theme-subtitle"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:remove_theme")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:remove_theme"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <a class="cm-confirm cm-tooltip btn pull-right btn-small" data-ce-tooltip-position="top" href="<?php echo htmlspecialchars(fn_url("themes.delete?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("remove_theme"); ?> "> <i class="icon-trash"></i> </a> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes:remove_theme"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <span class="label pull-right"><?php echo htmlspecialchars(count($_smarty_tpl->tpl_vars['installed_theme']->value['layouts']), ENT_QUOTES, 'UTF-8'); ?> <?php echo $_smarty_tpl->__("layouts"); ?> </span> <span class="label pull-right"><?php echo htmlspecialchars(count($_smarty_tpl->tpl_vars['installed_theme']->value['styles']), ENT_QUOTES, 'UTF-8'); ?> <?php echo $_smarty_tpl->__("theme_editor.styles"); ?> </span> <h4 id="anchor_<?php echo htmlspecialchars(smarty_modifier_replace($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ' ', '_'), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['theme']->value['theme_name'] == $_smarty_tpl->tpl_vars['theme_name']->value) { ?> <span class="label label-success"><?php echo $_smarty_tpl->__("active"); ?> </span><?php } ?> </h4> </div> <?php if ($_smarty_tpl->tpl_vars['installed_theme']->value['styles']) { ?> <?php $_smarty_tpl->tpl_vars['style'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['style']->_loop = false; $_from = $_smarty_tpl->tpl_vars['installed_theme']->value['styles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['style']->key => $_smarty_tpl->tpl_vars['style']->value) { $_smarty_tpl->tpl_vars['style']->_loop = true; ?> <div class="span4"> <div class="theme <?php if ($_smarty_tpl->tpl_vars['style']->value['style_id'] == $_smarty_tpl->tpl_vars['layout']->value['style_id'] && $_smarty_tpl->tpl_vars['layout']->value['theme_name'] == $_smarty_tpl->tpl_vars['theme_name']->value) { ?> theme-selected<?php } ?> "> <div class="theme-title"> <span title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> : <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </span> </div> <div class="theme-use"> <?php if ($_smarty_tpl->tpl_vars['theme_name']->value != $_smarty_tpl->tpl_vars['runtime']->value['layout']['theme_name']) { ?> <?php $_smarty_tpl->tpl_vars['but_text'] = new Smarty_variable($_smarty_tpl->__("activate"), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['but_text'] = new Smarty_variable($_smarty_tpl->__("use_this_style"), null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['style']->value['style_id'] == $_smarty_tpl->tpl_vars['layout']->value['style_id'] && $_smarty_tpl->tpl_vars['layout']->value['theme_name'] == $_smarty_tpl->tpl_vars['theme_name']->value) { ?> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['image'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-image-id="img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['style_id'], ENT_QUOTES, 'UTF-8'); ?> " class="theme-in-use cm-previewer"><?php echo $_smarty_tpl->__("currently_in_use"); ?> </a> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "themes.set?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value . "&style=" . (string) $_smarty_tpl->tpl_vars['style']->value['style_id'], 'but_text' => $_smarty_tpl->tpl_vars['but_text']->value, 'but_role' => "action", 'but_meta' => "btn-primary"), 0); ?> <?php } ?> </div> <?php if ($_smarty_tpl->tpl_vars['style']->value['image']) { ?> <a id="image_img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['style_id'], ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['image'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-image-id="img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['style_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-previewer"> <img class="screenshot" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['style']->value['image'], ENT_QUOTES, 'UTF-8'); ?> " alt="" width="250"> </a> <?php } else { ?> <div class="no-image"><i class="glyph-image" title="No image"></i></div> <?php } ?> </div> </div> <?php } ?> <?php } else { ?> <div class="span4"> <div class="theme"> <div class="theme-title"> <span title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </span> </div> <?php if ($_smarty_tpl->tpl_vars['theme_name']->value != $_smarty_tpl->tpl_vars['runtime']->value['layout']['theme_name']) { ?> <div class="theme-use"> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "themes.set?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value . "&style=" . (string) $_smarty_tpl->tpl_vars['style']->value['style_id'], 'but_text' => __("activate"), 'but_role' => "action", 'but_meta' => "btn-primary"), 0); ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['installed_theme']->value['screenshot']) { ?> <a id="image_img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-image-id="img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-previewer"><img class="screenshot" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['installed_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8'); ?> " alt="" width="250"></a> <?php } ?> </div> </div> <?php } ?> <?php } ?> <!--/row--></div> <?php } ?> <?php } else { ?> <div class="no-items"> <?php echo $_smarty_tpl->__("no_themes_available"); ?> </div> <?php } ?> </div> </div> </div> <div id="content_browse_all_available_themes"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:install_themes")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:install_themes"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo smarty_function_split(array('data' => $_smarty_tpl->tpl_vars['available_themes']->value['repo'], 'size' => 3, 'assign' => "splitted_themes", 'simple' => true), $_smarty_tpl); ?> <div class="themes-available"> <?php if ($_smarty_tpl->tpl_vars['available_themes']->value['repo']) { ?> <?php $_smarty_tpl->tpl_vars["repo_themes"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["repo_themes"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['splitted_themes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["repo_themes"]->key => $_smarty_tpl->tpl_vars["repo_themes"]->value) { $_smarty_tpl->tpl_vars["repo_themes"]->_loop = true; ?> <div class="row"> <?php $_smarty_tpl->tpl_vars["repo_theme"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["repo_theme"]->_loop = false; $_smarty_tpl->tpl_vars["theme_name"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['repo_themes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["repo_theme"]->key => $_smarty_tpl->tpl_vars["repo_theme"]->value) { $_smarty_tpl->tpl_vars["repo_theme"]->_loop = true; $_smarty_tpl->tpl_vars["theme_name"]->value = $_smarty_tpl->tpl_vars["repo_theme"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['repo_theme']->value) { ?> <div class="span4"> <div class="theme"> <div class="theme-title"> <span title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </span> </div> <div class="theme-use"> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "themes.install?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value, 'but_text' => __("install"), 'but_role' => "action", 'but_meta' => "btn-primary cm-comet cm-ajax", 'but_target_id' => "themes_list"), 0); ?> </div> <?php if ($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot']) { ?> <a id="image_img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-image-id="img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-previewer"><img class="screenshot" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8'); ?> " alt="" width="250"></a> <?php } ?> <div class="theme-actions"> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot']) { ?> <li><a id="image_img_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['repo_theme']->value['screenshot'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-image-id="img_button_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-previewer"><?php echo $_smarty_tpl->__("preview"); ?> </a></li> <?php } ?> <li><a class="cm-comet cm-ajax" data-ca-target-id="themes_list" href="<?php echo htmlspecialchars(fn_url("themes.install?theme_name=" . (string) $_smarty_tpl->tpl_vars['theme_name']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="themes_list"><?php echo $_smarty_tpl->__("install"); ?> </a></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'], 'placement' => "right")); ?> </div> </div> </div> <?php } ?> <?php } ?> </div> <?php } ?> <?php } else { ?> <div class="no-items"> <?php echo $_smarty_tpl->__("no_themes_available"); ?> </div> <?php } ?> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes:install_themes"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->tpl_vars['theme_name'] = new Smarty_variable($_smarty_tpl->tpl_vars['available_themes']->value['current']['theme_name'], null, 0); ?> <div class="hidden" id="content_elm_clone_theme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme_name']->value, ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("clone_theme"); ?> "> <?php echo Smarty::$_smarty_vars['capture']['add_new_picker']; ?> </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(); } echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'active_tab' => $_REQUEST['selected_section']), 0); ?> <!--themes_list--></div> <?php $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null); ob_start(); ?> <div class="container themes-side"> <div class="sidebar-row"> <ul class="unstyled list-with-btns"> <li> <div class="list-description"> <?php echo $_smarty_tpl->__("rebuild_cache_automatically"); ?> <i class="cm-tooltip icon-question-sign" title="<?php echo $_smarty_tpl->__("rebuild_cache_automatically_tooltip"); ?> "></i> </div> <div class="switch switch-mini cm-switch-change list-btns" id="rebuild_cache_automatically"> <input type="checkbox" name="compile_check" value="1" <?php if ($_smarty_tpl->tpl_vars['dev_modes']->value['compile_check']) { ?> checked="checked"<?php } ?> /> </div> </li> </ul> </div> <script type="text/javascript"> (function (_, $) { $(_.doc).on('switch-change', '.cm-switch-change', function (e, data) { var value = data.value; $.ceAjax('request', fn_url("themes.update_dev_mode"), { data: { dev_mode: data.el.prop('name'), state: value ? 1 : 0 } }); }); $.ceEvent('on', 'ce.ajaxdone', function(){ if ($('.switch .switch-mini').length == 0) { $('.switch')['bootstrapSwitch'](); } }); }(Tygh, Tygh.$)); </script> <hr> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:options")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:options"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="sidebar-row clearfix"> <h6><?php echo $_smarty_tpl->__("theme_information"); ?> </h6> <div class="row-fluid"> <div class="span7 muted"><?php echo $_smarty_tpl->__("name"); ?> </div> <div class="span5 right"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['title'], ENT_QUOTES, 'UTF-8'); ?> </div> </div> <div class="row-fluid"> <div class="span7 muted" title="/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['theme_name'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("directory"); ?> </div> <div class="span5 right"><a class="pull-right" href="<?php echo htmlspecialchars(fn_url("file_editor.manage?active_section=themes&selected_path=" . (string) $_smarty_tpl->tpl_vars['settings']->value['theme_name']), ENT_QUOTES, 'UTF-8'); ?> ">/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['theme_name'], ENT_QUOTES, 'UTF-8'); ?> </a></div> </div> <div class="row-fluid"> <div class="span7 muted"><?php echo $_smarty_tpl->__("layouts"); ?> </div> <div class="span5 right"><a href="<?php echo htmlspecialchars(fn_url("block_manager.manage"), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(count($_smarty_tpl->tpl_vars['theme']->value['layouts']), ENT_QUOTES, 'UTF-8'); ?> </a></div> </div> <div class="row-fluid"> <div class="span7 muted"><?php echo $_smarty_tpl->__("theme_editor.styles"); ?> </div> <div class="span5 right"><a href="#anchor_<?php echo htmlspecialchars(smarty_modifier_replace($_smarty_tpl->tpl_vars['theme']->value['title'], ' ', '_'), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars(count($_smarty_tpl->tpl_vars['theme']->value['styles']), ENT_QUOTES, 'UTF-8'); ?> </a> </div> </div> <div class="row-fluid"> <div class="span7 muted" ><?php echo $_smarty_tpl->__("developer"); ?> </div> <div class="span5 right"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['theme']->value['developer'], ENT_QUOTES, 'UTF-8'); ?> </div> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes:options"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <hr> <div class="sidebar-row marketplace"> <h6><?php echo $_smarty_tpl->__("marketplace"); ?> </h6> <p class="marketplace-link"><?php echo $_smarty_tpl->__("marketplace_find_more", array("[href]" => $_smarty_tpl->tpl_vars['config']->value['resources']['marketplace_url'])); ?> </p> </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(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "themes:adv_buttons")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:adv_buttons"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (fn_allowed_for("ULTIMATE") && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] || fn_allowed_for("MULTIVENDOR") && !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "upload_theme", 'text' => __("upload_theme"), 'title' => __("upload_theme"), 'content' => Smarty::$_smarty_vars['capture']['upload_theme'], 'act' => "general", 'link_class' => "cm-dialog-auto-size", 'icon' => "icon-plus", 'link_text' => ''), 0); ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes:adv_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_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' => "themes:tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "themes:tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "dialog", 'text' => __("clone_theme"), 'target_id' => "content_elm_clone_theme_" . (string) $_smarty_tpl->tpl_vars['theme_name']->value)); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "themes: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_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 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(); } ob_start(); echo $_smarty_tpl->__("themes"); $_tmp1 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_tmp1, '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']), 0); ?> <?php }
function content_55e61f9ae0ca45_28054294($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_function_math')) { include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php'; } if (!is_callable('smarty_modifier_enum')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.enum.php'; } if (!is_callable('smarty_modifier_in_array')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.in_array.php'; } fn_preload_lang_vars(array('information', 'name', 'text_ult_product_store_field_tooltip', 'categories', 'tt_views_products_update_categories', 'price', 'full_description', 'edit_content_on_site', 'images', 'text_product_thumbnail', 'text_product_detailed_image', 'options_settings', 'options_type', 'simultaneous', 'sequential', 'exceptions_type', 'forbidden', 'allowed', 'pricing_inventory', 'sku', 'list_price', 'tt_views_products_update_list_price', 'in_stock', 'edit', 'zero_price_action', 'zpa_refuse', 'zpa_permit', 'zpa_ask_price', 'inventory', 'tt_views_products_update_inventory', 'track_with_options', 'track_without_options', 'dont_track', 'min_order_qty', 'max_order_qty', 'quantity_step', 'list_quantity_count', 'taxes', 'availability', 'usergroups', 'creation_date', 'available_since', 'out_of_stock_actions', 'tt_views_products_update_out_of_stock_actions', 'none', 'buy_in_advance', 'sign_up_for_notification', 'extra', 'product_details_view', 'feature_comparison', 'downloadable', 'edp_enable_shipping', 'time_unlimited_download', 'short_description', 'popularity', 'ttc_popularity', 'search_words', 'promo_text', 'additional_images', 'sort_images', 'sort', 'additional_thumbnail', 'additional_popup_larger_image', 'text_additional_thumbnail', 'text_additional_detailed_image', 'additional_thumbnail', 'additional_popup_larger_image', 'text_additional_thumbnail', 'text_additional_detailed_image', 'seo_meta_data', 'page_title', 'ttc_page_title', 'meta_description', 'meta_keywords', 'preview', 'clone', 'delete', 'editing_product', 'new_product')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <?php $_smarty_tpl->tpl_vars["categories_company_id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_data']->value['company_id'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['product_data']->value, "product"), null, 0); ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["categories_company_id"] = new Smarty_variable('', null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input_if_shared_product"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y") { ?> <?php $_smarty_tpl->tpl_vars["show_update_for_all"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product_data']->value['product_id']) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['product_data']->value['product_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); ?> <?php } ?> <form id='form' action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="product_update_form" class="form-horizontal form-edit cm-disable-empty-files <?php if (fn_check_form_permissions('') || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['product_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> cm-hide-inputs<?php } ?> " enctype="multipart/form-data"> <input type="hidden" name="fake" value="1" /> <input type="hidden" class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> " name="selected_section" id="selected_section" value="<?php echo htmlspecialchars($_REQUEST['selected_section'], ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> " name="product_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <div class="product-manage" id="content_detailed"> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("information"), 'target' => "#acc_information"), 0); ?> <div id="acc_information" class="collapse in"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label for="product_description_product" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input class="input-large" form="form" type="text" name="product_data[product]" id="product_description_product" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['product'], 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' => 'product', 'name' => "update_all_vendors[product]"), 0); ?> </div> </div> <?php $_smarty_tpl->tpl_vars["result_ids"] = new Smarty_variable("product_categories", null, 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "companies:product_details_fields")); $_block_repeat = true; echo smarty_block_hook(array('name' => "companies:product_details_fields"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if (fn_allowed_for("MULTIVENDOR") && $_smarty_tpl->tpl_vars['mode']->value != "add") { ?> <?php $_smarty_tpl->tpl_vars["reload_form"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["companies_tooltip"] = new Smarty_variable($_smarty_tpl->__("text_ult_product_store_field_tooltip"), null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "product_data[company_id]", 'id' => "product_data_company_id", 'selected' => $_smarty_tpl->tpl_vars['product_data']->value['company_id'], 'tooltip' => $_smarty_tpl->tpl_vars['companies_tooltip']->value, 'reload_form' => $_smarty_tpl->tpl_vars['reload_form']->value), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "companies:product_details_fields"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <input type="hidden" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['result_ids']->value, ENT_QUOTES, 'UTF-8'); ?> " name="result_ids"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> " id="product_categories"> <?php echo smarty_function_math(array('equation' => "rand()", 'assign' => "rnd"), $_smarty_tpl); ?> <?php if ($_REQUEST['category_id']) { ?> <?php $_smarty_tpl->tpl_vars["request_category_id"] = new Smarty_variable(explode(",", $_REQUEST['category_id']), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["request_category_id"] = new Smarty_variable('', null, 0); ?> <?php } ?> <label for="ccategories_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['rnd']->value, ENT_QUOTES, 'UTF-8'); ?> _ids" class="control-label cm-required"><?php echo $_smarty_tpl->__("categories"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_categories")), 0); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("pickers/categories/picker.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('hide_input' => $_smarty_tpl->tpl_vars['product_data']->value['shared_product'], 'company_ids' => $_smarty_tpl->tpl_vars['product_data']->value['company_id'], 'rnd' => $_smarty_tpl->tpl_vars['rnd']->value, 'data_id' => "categories", 'input_name' => "product_data[category_ids]", 'radio_input_name' => "product_data[main_category]", 'main_category' => $_smarty_tpl->tpl_vars['product_data']->value['main_category'], 'item_ids' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['category_ids']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['request_category_id']->value : $tmp, 'hide_link' => true, 'hide_delete_button' => true, 'display_input_id' => "category_ids", 'disable_no_item_text' => true, 'view_mode' => "list", 'but_meta' => "btn"), 0); ?> </div> <!--product_categories--></div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label for="elm_price_price" class="control-label cm-required"><?php echo $_smarty_tpl->__("price"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> ):</label> <div class="controls"> <input type="text" name="product_data[price]" id="elm_price_price" size="10" value="<?php echo htmlspecialchars(fn_format_price(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['price']) === null || $tmp === '' ? "0.00" : $tmp, $_smarty_tpl->tpl_vars['primary_currency']->value, null, false), ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> <?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', 'name' => "update_all_vendors[price]"), 0); ?> </div> </div> <div class="control-group cm-no-hide-input"> <label class="control-label" for="elm_product_full_descr"><?php echo $_smarty_tpl->__("full_description"); ?> :</label> <div class="controls"> <?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' => 'full_description', 'name' => "update_all_vendors[full_description]"), 0); ?> <textarea id="elm_product_full_descr" name="product_data[full_description]" cols="55" rows="8" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['full_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <?php ob_start(); echo htmlspecialchars(urlencode($_smarty_tpl->tpl_vars['view_uri']->value), ENT_QUOTES, 'UTF-8'); $_tmp1 = ob_get_clean(); ob_start(); if (fn_allowed_for("ULTIMATE")) { echo "&switch_company_id="; echo (string) $_smarty_tpl->tpl_vars['product_data']->value['company_id']; } $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=live_editor&status=enable&frontend_url=" . $_tmp1 . $_tmp2, 'but_text' => __("edit_content_on_site"), 'but_role' => "action", 'but_meta' => "btn-small btn-live-edit cm-post", 'but_target' => "_blank"), 0); ?> <?php } ?> </div> </div> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "product_data[status]", 'id' => "elm_product_status", 'obj' => $_smarty_tpl->tpl_vars['product_data']->value, 'hidden' => true), 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_detailed_images")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_detailed_images"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("images"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_main", 'image_object_type' => "product", 'image_pair' => $_smarty_tpl->tpl_vars['product_data']->value['main_pair'], 'icon_text' => __("text_product_thumbnail"), 'detailed_text' => __("text_product_detailed_image"), 'no_thumbnail' => true), 0); ?> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_detailed_images"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("options_settings"), 'target' => "#acc_options"), 0); ?> <?php if (fn_allowed_for("ULTIMATE:FREE")) { ?> <?php $_smarty_tpl->tpl_vars['promo_class'] = new Smarty_variable("cm-promo-popup", null, 0); ?> <?php $_smarty_tpl->tpl_vars['disable_selectors'] = new Smarty_variable(true, null, 0); ?> <?php } ?> <div id="acc_options" class="collapse in"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['promo_class']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_options_type"><?php echo $_smarty_tpl->__("options_type"); ?> :</label> <div class="controls"> <select class="span3" name="product_data[options_type]" id="elm_options_type" <?php if ($_smarty_tpl->tpl_vars['disable_selectors']->value) { ?> disabled="disabled"<?php } ?> > <option value="P" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['options_type'] == "P") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("simultaneous"); ?> </option> <option value="S" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['options_type'] == "S") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("sequential"); ?> </option> </select> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['promo_class']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_exceptions_type"><?php echo $_smarty_tpl->__("exceptions_type"); ?> :</label> <div class="controls"> <select class="span3" name="product_data[exceptions_type]" id="elm_exceptions_type" <?php if ($_smarty_tpl->tpl_vars['disable_selectors']->value) { ?> disabled="disabled"<?php } ?> > <option value="F" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['exceptions_type'] == "F") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("forbidden"); ?> </option> <option value="A" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['exceptions_type'] == "A") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("allowed"); ?> </option> </select> </div> </div> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("pricing_inventory"), 'target' => "#acc_pricing_inventory"), 0); ?> <div id="acc_pricing_inventory" class="collapse in"> <div class="control-group"> <label class="control-label" for="elm_product_code"><?php echo $_smarty_tpl->__("sku"); ?> :</label> <div class="controls"> <input type="text" name="product_data[product_code]" id="elm_product_code" size="20" maxlength="32" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['product_code'], ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_list_price"><?php echo $_smarty_tpl->__("list_price"); ?> (<?php echo $_smarty_tpl->tpl_vars['currencies']->value[$_smarty_tpl->tpl_vars['primary_currency']->value]['symbol']; ?> ) <?php echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_list_price")), 0); ?> :</label> <div class="controls"> <input type="text" name="product_data[list_price]" id="elm_list_price" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['list_price']) === null || $tmp === '' ? "0.00" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_in_stock"><?php echo $_smarty_tpl->__("in_stock"); ?> :</label> <div class="controls"> <?php if ($_smarty_tpl->tpl_vars['product_data']->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['id']->value, 'but_role' => "edit"), 0); ?> <?php } else { ?> <input type="text" name="product_data[amount]" id="elm_in_stock" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['amount']) === null || $tmp === '' ? "1" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> <?php } ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_zero_price_action"><?php echo $_smarty_tpl->__("zero_price_action"); ?> :</label> <div class="controls"> <select class="span5" name="product_data[zero_price_action]" id="elm_zero_price_action"> <option value="R" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "R") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("zpa_refuse"); ?> </option> <option value="P" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "P") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("zpa_permit"); ?> </option> <option value="A" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['zero_price_action'] == "A") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("zpa_ask_price"); ?> </option> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_product_tracking"><?php echo $_smarty_tpl->__("inventory"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_inventory")), 0); ?> :</label> <div class="controls"> <select class="span3" name="product_data[tracking]" id="elm_product_tracking" <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "N") { ?> disabled="disabled"<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['product_options']->value) { ?> <option value="<?php echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS"), ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == smarty_modifier_enum("ProductTracking::TRACK_WITH_OPTIONS") && $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "Y") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("track_with_options"); ?> </option> <?php } ?> <option value="<?php echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITHOUT_OPTIONS"), ENT_QUOTES, 'UTF-8'); ?> " <?php ob_start(); echo htmlspecialchars(smarty_modifier_enum("ProductTracking::TRACK_WITHOUT_OPTIONS"), ENT_QUOTES, 'UTF-8'); $_tmp3 = ob_get_clean(); if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == $_tmp3 && $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "Y") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("track_without_options"); ?> </option> <option value="<?php echo htmlspecialchars(smarty_modifier_enum("ProductTracking::DO_NOT_TRACK"), ENT_QUOTES, 'UTF-8'); ?> " <?php ob_start(); echo htmlspecialchars(smarty_modifier_enum("ProductTracking::DO_NOT_TRACK"), ENT_QUOTES, 'UTF-8'); $_tmp4 = ob_get_clean(); if ($_smarty_tpl->tpl_vars['product_data']->value['tracking'] == $_tmp4 || $_smarty_tpl->tpl_vars['settings']->value['General']['inventory_tracking'] == "N") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("dont_track"); ?> </option> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_min_qty"><?php echo $_smarty_tpl->__("min_order_qty"); ?> :</label> <div class="controls"> <input type="text" name="product_data[min_qty]" size="10" id="elm_min_qty" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['min_qty']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_max_qty"><?php echo $_smarty_tpl->__("max_order_qty"); ?> :</label> <div class="controls"> <input type="text" name="product_data[max_qty]" id="elm_max_qty" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['max_qty']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_qty_step"><?php echo $_smarty_tpl->__("quantity_step"); ?> :</label> <div class="controls"> <input type="text" name="product_data[qty_step]" id="elm_qty_step" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['qty_step']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_list_qty_count"><?php echo $_smarty_tpl->__("list_quantity_count"); ?> :</label> <div class="controls"> <input type="text" name="product_data[list_qty_count]" id="elm_list_qty_count" size="10" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['list_qty_count']) === null || $tmp === '' ? "0" : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-small" /> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("taxes"); ?> :</label> <div class="controls"> <input type="hidden" name="product_data[tax_ids]" value="" /> <?php $_smarty_tpl->tpl_vars["tax"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["tax"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['taxes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["tax"]->key => $_smarty_tpl->tpl_vars["tax"]->value) { $_smarty_tpl->tpl_vars["tax"]->_loop = true; ?> <label class="checkbox inline" for="elm_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="product_data[tax_ids][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> ]" id="elm_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['tax']->value['tax_id'], $_smarty_tpl->tpl_vars['product_data']->value['tax_ids'])) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars["tax"]->_loop) { ?> – <?php } ?> </div> </div> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("availability"), 'target' => "#acc_availability"), 0); ?> <div id="acc_availability" class="collapse in"> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "ug_id", 'name' => "product_data[usergroup_ids]", 'usergroups' => fn_get_usergroups(array("type" => "C", "status" => array("A", "H")), @constant('DESCR_SL')), 'usergroup_ids' => $_smarty_tpl->tpl_vars['product_data']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0); ?> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_date_holder"><?php echo $_smarty_tpl->__("creation_date"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_date_holder", 'date_name' => "product_data[timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_date_avail_holder"><?php echo $_smarty_tpl->__("available_since"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_date_avail_holder", 'date_name' => "product_data[avail_since]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['avail_since']) === null || $tmp === '' ? '' : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_out_of_stock_actions"><?php echo $_smarty_tpl->__("out_of_stock_actions"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("tt_views_products_update_out_of_stock_actions")), 0); ?> :</label> <div class="controls"> <select class="span3" name="product_data[out_of_stock_actions]" id="elm_out_of_stock_actions"> <option value="N" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "N") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("none"); ?> </option> <option value="B" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "B") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("buy_in_advance"); ?> </option> <option value="S" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['out_of_stock_actions'] == "S") { ?> selected="selected"<?php } ?> ><?php echo $_smarty_tpl->__("sign_up_for_notification"); ?> </option> </select> </div> </div> </div> <hr> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("extra"), 'target' => "#acc_extra"), 0); ?> <div id="acc_extra" class="collapse in"> <div class="control-group"> <label class="control-label" for="elm_details_layout"><?php echo $_smarty_tpl->__("product_details_view"); ?> :</label> <div class="controls"> <select class="span5" id="elm_details_layout" name="product_data[details_layout]"> <?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 = fn_get_product_details_views($_smarty_tpl->tpl_vars['id']->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; ?> <option <?php if ($_smarty_tpl->tpl_vars['product_data']->value['details_layout'] == $_smarty_tpl->tpl_vars['layout']->value) { ?> selected="selected"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['layout']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value, ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> </div> </div> <div class="control-group"> <label class="control-label" for="elm_product_feature_comparison"><?php echo $_smarty_tpl->__("feature_comparison"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[feature_comparison]" value="N" /> <input type="checkbox" name="product_data[feature_comparison]" id="elm_product_feature_comparison" value="Y" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['feature_comparison'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['enable_edp'] == "Y") { ?> <div class="control-group"> <label class="control-label" for="elm_product_is_edp"><?php echo $_smarty_tpl->__("downloadable"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[is_edp]" value="N" /> <input type="checkbox" name="product_data[is_edp]" id="elm_product_is_edp" value="Y" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] == "Y") { ?> checked="checked"<?php } ?> onclick="Tygh.$('#edp_shipping').toggleBy(); Tygh.$('#edp_unlimited').toggleBy();"/> </label> </div> </div> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] != "Y") { ?> hidden<?php } ?> " id="edp_shipping"> <label class="control-label" for="elm_product_edp_shipping"><?php echo $_smarty_tpl->__("edp_enable_shipping"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[edp_shipping]" value="N" /> <input type="checkbox" name="product_data[edp_shipping]" id="elm_product_edp_shipping" value="Y"<?php if ($_smarty_tpl->tpl_vars['product_data']->value['edp_shipping'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> <div class="control-group <?php if ($_smarty_tpl->tpl_vars['product_data']->value['is_edp'] != "Y") { ?> hidden<?php } ?> " id="edp_unlimited"> <label class="control-label" for="elm_product_edp_unlimited"><?php echo $_smarty_tpl->__("time_unlimited_download"); ?> :</label> <div class="controls"> <label class="checkbox"> <input type="hidden" name="product_data[unlimited_download]" value="N" /> <input type="checkbox" name="product_data[unlimited_download]" id="elm_product_edp_unlimited" value="Y" <?php if ($_smarty_tpl->tpl_vars['product_data']->value['unlimited_download'] == "Y") { ?> checked="checked"<?php } ?> /> </label> </div> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_from' => $_smarty_tpl->tpl_vars['product_data']->value['localization'], 'data_name' => "product_data[localization]"), 0); ?> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_short_descr"><?php echo $_smarty_tpl->__("short_description"); ?> :</label> <div class="controls"> <textarea id="elm_product_short_descr" name="product_data[short_description]" cols="55" rows="2" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['short_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?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' => "short_description", 'name' => "update_all_vendors[short_description]"), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_product_popularity"><?php echo $_smarty_tpl->__("popularity"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_popularity")), 0); ?> :</label> <div class="controls"> <input type="text" name="product_data[popularity]" id="elm_product_popularity" size="55" value="<?php echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['product_data']->value['popularity']) === null || $tmp === '' ? 0 : $tmp, ENT_QUOTES, 'UTF-8'); ?> " class="input-long" /> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_search_words"><?php echo $_smarty_tpl->__("search_words"); ?> :</label> <div class="controls"> <textarea name="product_data[search_words]" id="elm_product_search_words" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['search_words'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?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' => 'search_words', 'name' => "update_all_vendors[search_words]"), 0); ?> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_promo_text"><?php echo $_smarty_tpl->__("promo_text"); ?> :</label> <div class="controls"> <textarea id="elm_product_promo_text" name="product_data[promo_text]" cols="55" rows="2" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['promo_text'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?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' => "promo_text", 'name' => "update_all_vendors[promo_text]"), 0); ?> </div> </div> </div> <!--content_detailed--></div> <div id="content_images" class="hidden clearfix"> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("additional_images")), 0); ?> <?php if ($_smarty_tpl->tpl_vars['product_data']->value['image_pairs']) { ?> <div class="cm-sortable sortable-box" data-ca-sortable-table="images_links" data-ca-sortable-id-name="pair_id" id="additional_images"> <?php $_smarty_tpl->tpl_vars["new_image_position"] = new Smarty_variable("0", null, 0); ?> <?php $_smarty_tpl->tpl_vars['pair'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['pair']->_loop = false; $_from = $_smarty_tpl->tpl_vars['product_data']->value['image_pairs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['pair']->key => $_smarty_tpl->tpl_vars['pair']->value) { $_smarty_tpl->tpl_vars['pair']->_loop = true; ?> <div class="cm-row-item cm-sortable-id-<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['pair']->value['pair_id'], ENT_QUOTES, 'UTF-8'); ?> cm-sortable-box"> <div class="cm-sortable-handle sortable-bar"><img src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8'); ?> /icon_sort_bar.gif" width="26" height="25" border="0" title="<?php echo $_smarty_tpl->__("sort_images"); ?> " alt="<?php echo $_smarty_tpl->__("sort"); ?> " class="valign" /></div> <div class="sortable-item"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_additional", 'image_object_type' => "product", 'image_key' => $_smarty_tpl->tpl_vars['pair']->value['pair_id'], 'image_type' => "A", 'image_pair' => $_smarty_tpl->tpl_vars['pair']->value, 'icon_title' => __("additional_thumbnail"), 'detailed_title' => __("additional_popup_larger_image"), 'icon_text' => __("text_additional_thumbnail"), 'detailed_text' => __("text_additional_detailed_image"), 'delete_pair' => true, 'no_thumbnail' => true), 0); ?> </div> <div class="clear"></div> </div> <?php if ($_smarty_tpl->tpl_vars['new_image_position']->value <= $_smarty_tpl->tpl_vars['pair']->value['position']) { ?> <?php $_smarty_tpl->tpl_vars["new_image_position"] = new Smarty_variable($_smarty_tpl->tpl_vars['pair']->value['position'], null, 0); ?> <?php } ?> <?php } ?> </div> <?php } ?> <div id="box_new_image"> <div class="clear cm-row-item"> <input type="hidden" name="product_add_additional_image_data[0][position]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['new_image_position']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-image-field" /> <div class="image-upload-wrap pull-left"><?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "product_add_additional", 'image_object_type' => "product", 'image_type' => "A", 'icon_title' => __("additional_thumbnail"), 'detailed_title' => __("additional_popup_larger_image"), 'icon_text' => __("text_additional_thumbnail"), 'detailed_text' => __("text_additional_detailed_image"), 'no_thumbnail' => true), 0); ?> </div> <div class="pull-right"><?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "new_image"), 0); ?> </div> </div> </div> </div> <div id="content_seo" class="hidden"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_seo")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_seo"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("seo_meta_data"), 'target' => "#acc_seo_meta"), 0); ?> <div id="acc_seo_meta" class="collapse in"> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_page_title"><?php echo $_smarty_tpl->__("page_title"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_page_title")), 0); ?> :</label> <div class="controls"> <input type="text" name="product_data[page_title]" id="elm_product_page_title" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['page_title'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> <?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' => "page_title", 'name' => "update_all_vendors[page_title]"), 0); ?> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_meta_descr"><?php echo $_smarty_tpl->__("meta_description"); ?> :</label> <div class="controls"> <textarea name="product_data[meta_description]" id="elm_product_meta_descr" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['meta_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?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' => "meta_description", 'name' => "update_all_vendors[meta_description]"), 0); ?> </div> </div> <div class="control-group <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input_if_shared_product']->value, ENT_QUOTES, 'UTF-8'); ?> "> <label class="control-label" for="elm_product_meta_keywords"><?php echo $_smarty_tpl->__("meta_keywords"); ?> :</label> <div class="controls"> <textarea name="product_data[meta_keywords]" id="elm_product_meta_keywords" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product_data']->value['meta_keywords'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?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' => "meta_keywords", 'name' => "update_all_vendors[meta_keywords]"), 0); ?> </div> </div> </div> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_seo"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <div id="content_shippings" class="hidden"> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_shipping_settings.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_qty_discounts")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_qty_discounts"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_qty_discounts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_qty_discounts"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_features.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_id' => $_smarty_tpl->tpl_vars['product_data']->value['product_id']), 0); ?> <div id="content_addons"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:detailed_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:detailed_content"), 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' => "products:detailed_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:tabs_content"), 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' => "products:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/view_tools.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('url' => "products.update?product_id="), 0); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:update_tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("preview"), 'href' => $_smarty_tpl->tpl_vars['view_uri']->value)); ?> </li> <li class="divider"></li> <?php } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("clone"), 'class' => "cm-post", 'href' => "products.clone?product_id=" . (string) $_smarty_tpl->tpl_vars['id']->value)); ?> </li> <?php if ($_smarty_tpl->tpl_vars['allow_save']->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['id']->value)); ?> </li> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_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_list'])); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_role' => "submit-link", 'but_name' => "dispatch[products.update]", 'but_target_form' => "product_update_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 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> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:tabs_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:tabs_extra"), 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:tabs_extra"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <div class="cm-hide-save-button hidden" id="content_options"> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_options.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <?php if ($_smarty_tpl->tpl_vars['settings']->value['General']['enable_edp'] == "Y") { ?> <div id="content_files" class="cm-hide-save-button hidden"> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "products:content_files")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:content_files"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/products_update_files.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:content_files"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <?php } ?> <div id="content_subscribers" class="cm-hide-save-button hidden"> <?php echo $_smarty_tpl->getSubTemplate("views/products/components/product_subscribers.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_id' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </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(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'group_name' => $_smarty_tpl->tpl_vars['runtime']->value['controller'], 'active_tab' => $_REQUEST['selected_section'], 'track' => true), 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->smarty->_tag_stack[] = array('hook', array('name' => "products:update_mainbox_params")); $_block_repeat = true; echo smarty_block_hook(array('name' => "products:update_mainbox_params"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); ?> <?php ob_start(); echo $_smarty_tpl->__("editing_product"); $_tmp5 = ob_get_clean(); echo htmlspecialchars(preg_replace('!<[^>]*?>!', ' ', $_tmp5 . ": " . (string) $_smarty_tpl->tpl_vars['product_data']->value['product']), 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(); } } else { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox_title", null, null); ob_start(); ?> <?php echo $_smarty_tpl->__("new_product"); ?> <?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 $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "products:update_mainbox_params"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => Smarty::$_smarty_vars['capture']['mainbox_title'], 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'select_languages' => $_smarty_tpl->tpl_vars['id']->value, 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons']), 0); }
function content_55e3e067347005_40680962($_smarty_tpl) { fn_preload_lang_vars(array('banner', 'type', 'status', 'graphic_banner', 'text_banner', 'edit', 'delete', 'no_data', 'banners_statistics', 'add_banner', 'banners')); ?> <?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="banners_form" class=" cm-hide-inputs" enctype="multipart/form-data"> <input type="hidden" name="fake" value="1" /> <?php if ($_smarty_tpl->tpl_vars['banners']->value) { ?> <table 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('class' => "cm-no-hide-input"), 0); ?> </th> <th><?php echo $_smarty_tpl->__("banner"); ?> </th> <th><?php echo $_smarty_tpl->__("type"); ?> </th> <th width="6%"> </th> <th width="10%" class="right"><?php echo $_smarty_tpl->__("status"); ?> </th> </tr> </thead> <?php $_smarty_tpl->tpl_vars['banner'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['banner']->_loop = false; $_from = $_smarty_tpl->tpl_vars['banners']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['banner']->key => $_smarty_tpl->tpl_vars['banner']->value) { $_smarty_tpl->tpl_vars['banner']->_loop = true; ?> <tr class="cm-row-status-<?php echo htmlspecialchars(mb_strtolower($_smarty_tpl->tpl_vars['banner']->value['status'], 'UTF-8'), ENT_QUOTES, 'UTF-8'); ?> "> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['banner']->value, "banners"), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input"] = new Smarty_variable("cm-no-hide-input", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["no_hide_input"] = new Smarty_variable('', null, 0); ?> <?php } ?> <td class="left"> <input type="checkbox" name="banner_ids[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['banner']->value['banner_id'], ENT_QUOTES, 'UTF-8'); ?> " class="cm-item <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> " /></td> <td class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "> <a class="row-status" href="<?php echo htmlspecialchars(fn_url("banners.update?banner_id=" . (string) $_smarty_tpl->tpl_vars['banner']->value['banner_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['banner']->value['banner'], ENT_QUOTES, 'UTF-8'); ?> </a> <?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['banner']->value), 0); ?> </td> <td class="nowrap row-status <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['no_hide_input']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php if ($_smarty_tpl->tpl_vars['banner']->value['type'] == "G") { echo $_smarty_tpl->__("graphic_banner"); } else { echo $_smarty_tpl->__("text_banner"); } ?> </td> <td> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => "banners.update?banner_id=" . (string) $_smarty_tpl->tpl_vars['banner']->value['banner_id'])); ?> </li> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'class' => "cm-confirm", 'text' => __("delete"), 'href' => "banners.delete?banner_id=" . (string) $_smarty_tpl->tpl_vars['banner']->value['banner_id'])); ?> </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(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> </td> <td class="right"> <?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['banner']->value['banner_id'], 'status' => $_smarty_tpl->tpl_vars['banner']->value['status'], 'hidden' => true, 'object_id_name' => "banner_id", 'table' => "banners", 'popup_additional_class' => (string) $_smarty_tpl->tpl_vars['no_hide_input']->value . " dropleft"), 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("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['addons']->value['statistics']['status'] == "A") { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("banners_statistics"), 'href' => "statistics.banners")); ?> </li> <?php if ($_smarty_tpl->tpl_vars['banners']->value) { ?> <li class="divider"></li> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['banners']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[banners.m_delete]", 'form' => "banners_form")); ?> </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 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(); } $_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' => "banners.add", 'prefix' => "top", 'hide_tools' => "true", 'title' => __("add_banner"), '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(); } ?> </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(); } echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("banners"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'select_languages' => true), 0); ?> <?php }
function content_55d80a94046312_84245036($_smarty_tpl) { fn_preload_lang_vars(array('value', 'language_variable', 'delete', 'restore_default', 'no_data', 'language_variable', 'value', 'new_language_variable', 'add_language_variable', 'on_site_text_editing', 'translations')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <div id="content_translations"> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="language_variables_form"> <input type="hidden" name="q" value="<?php echo htmlspecialchars($_REQUEST['q'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="selected_section" value="<?php echo htmlspecialchars($_REQUEST['selected_section'], 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), 0); ?> <?php $_smarty_tpl->tpl_vars['c_url'] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['lang_data']->value) { ?> <table class="table" width="100%"> <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="60%"><?php echo $_smarty_tpl->__("value"); ?> </th> <th width="33%"><?php echo $_smarty_tpl->__("language_variable"); ?> </th> <th> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars["var"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["var"]->_loop = false; $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['lang_data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["var"]->key => $_smarty_tpl->tpl_vars["var"]->value) { $_smarty_tpl->tpl_vars["var"]->_loop = true; $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["var"]->key; ?> <tr> <td> <input type="checkbox" name="names[]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['name'], ENT_QUOTES, 'UTF-8'); ?> " class="checkbox cm-item"> </td> <td> <textarea name="lang_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][value]" rows="3" class="span7"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['value'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </td> <td> <input type="hidden" name="lang_data[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8'); ?> ][name]" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['name'], ENT_QUOTES, 'UTF-8'); ?> "> <p class="lang-name"><span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['var']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </span></p> </td> <td> <?php if (fn_allowed_for("ULTIMATE") && !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/update_for_all.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display' => true, 'object_id' => $_smarty_tpl->tpl_vars['key']->value, 'name' => "lang_data[" . (string) $_smarty_tpl->tpl_vars['key']->value . "][overwrite]"), 0); ?> <?php } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_items", null, null); ob_start(); ?> <a class="cm-confirm" href="<?php echo htmlspecialchars(fn_url("languages.delete_variable?name=" . (string) $_smarty_tpl->tpl_vars['var']->value['name'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['c_url']->value), ENT_QUOTES, 'UTF-8'); ?> " title="<?php echo $_smarty_tpl->__("delete"); ?> "> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php echo $_smarty_tpl->__("restore_default"); ?> <?php } ?> <?php } else { ?> <i class="icon-trash"></i> <?php } ?> </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(); } ?> <div class="hidden-tools"> <?php echo $_smarty_tpl->getSubTemplate("common/table_tools_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('prefix' => $_smarty_tpl->tpl_vars['var']->value['name'], 'tools_list' => Smarty::$_smarty_vars['capture']['tools_items']), 0); ?> </div> </td> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <p class="no-items"><?php echo $_smarty_tpl->__("no_data"); ?> </p> <?php } echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </form> <?php if ($_smarty_tpl->tpl_vars['lang_data']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("delete_button", null, null); ob_start(); ?> <?php echo htmlspecialchars(Smarty::$_smarty_vars['capture']['delete_button'], ENT_QUOTES, 'UTF-8'); ?> <li class="cm-tab-tools" id="tools_translations_delete_buttons"> <?php smarty_template_function_btn($_smarty_tpl, array('type' => "delete_selected", 'dispatch' => "dispatch[languages.m_delete_variables]", 'form' => "language_variables_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_tpl->_capture_stack[0][] = array("add_button", null, null); ob_start(); ?> <?php echo htmlspecialchars(Smarty::$_smarty_vars['capture']['add_button'], ENT_QUOTES, 'UTF-8'); ?> <span class="cm-tab-tools btn-group" id="tools_translations_save_button"> <?php echo $_smarty_tpl->getSubTemplate("buttons/save.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[languages.m_update_variables]", 'but_role' => "submit-link", 'but_target_form' => "language_variables_form"), 0); ?> </span> <?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("add_langvar", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="lang_add_var"> <input type="hidden" name="page" value="<?php echo htmlspecialchars($_REQUEST['page'], ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="q" value="<?php echo htmlspecialchars($_REQUEST['q'], ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="selected_section" value="<?php echo htmlspecialchars($_REQUEST['selected_section'], ENT_QUOTES, 'UTF-8'); ?> " /> <table class="table"> <thead> <tr class="cm-first-sibling"> <th width="40%"><?php echo $_smarty_tpl->__("language_variable"); ?> </th> <th width="50%"><?php echo $_smarty_tpl->__("value"); ?> </th> <th width="10%"> </th> </tr> </thead> <tbody> <tr id="box_new_lang_tag" valign="top"> <td> <input type="text" size="30" name="new_lang_data[0][name]"></td> <td> <textarea name="new_lang_data[0][value]" cols="48" rows="2"></textarea></td> <td> <?php echo $_smarty_tpl->getSubTemplate("buttons/multiple_buttons.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('item_id' => "new_lang_tag"), 0); ?> </td> </tr> </tbody> </table> <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_name' => "dispatch[languages.update_variables]", 'cancel_action' => "close"), 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(); } ?> </div> <?php echo Smarty::$_smarty_vars['capture']['popups']; ?> <?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("views/languages/components/langvars_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 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 echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "add_langvar", 'text' => __("new_language_variable"), 'title' => __("add_language_variable"), 'content' => Smarty::$_smarty_vars['capture']['add_langvar'], 'act' => "general", '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("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("on_site_text_editing"), 'href' => fn_url("customization.update_mode?type=translation&status=enable&return_url=" . (string) $_smarty_tpl->tpl_vars['c_url']->value), 'target' => "_blank")); ?> </li> <li class="divider"></li> <?php echo Smarty::$_smarty_vars['capture']['delete_button']; ?> <?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 echo Smarty::$_smarty_vars['capture']['add_button']; ?> <?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' => __("translations"), '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'], 'select_languages' => true), 0); ?> <?php }
function content_55d2ed042b4228_06464166($_smarty_tpl) { if (!is_callable('smarty_modifier_in_array')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.in_array.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('name', 'icon', 'delivery_time', 'weight_limit', 'rate_calculation', 'rate_calculation_manual', 'rate_calculation_realtime', 'shipping_service', 'test', 'weight', 'test', 'test', 'taxes', 'usergroups', 'ttc_usergroups', 'add_shipping_method', 'shipping_methods', 'delete', 'new_shipping_method', 'editing_shipping_method')); if ($_smarty_tpl->tpl_vars['shipping']->value) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['shipping']->value['shipping_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['shipping']->value, "shippings"), null, 0); ?> <script type="text/javascript"> (function(_, $) { $(document).ready(function() { $('#elm_rate_calculation_R,#elm_rate_calculation_M').on('change', function() { if ($(this).val() == 'M') { $('#elm_service').val(''); $('#elm_service').prop('disabled', true); } else { $('#elm_service').prop('disabled', false); } $('#elm_service').trigger('change'); }); $('#elm_service').on('change', function() { var option = $(this).find('option:selected'); var href; if (option.val()) { href = fn_url('shippings.configure?shipping_id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> &module=' + option.data('caShippingModule') + '&code=' + option.data('caShippingCode')); if ($('#configure a').prop('href') != href) { $('#content_configure').remove(); $('#configure a').prop('href', href); } $('#configure').show(); } else { $('#configure').hide(); } }); }); }(Tygh, Tygh.$)); </script> <?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="shippings_form" enctype="multipart/form-data" class="form-horizontal form-edit <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> "> <input type="hidden" name="shipping_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <?php if ($_smarty_tpl->tpl_vars['id']->value) { $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <div id="content_general"> <?php } ?> <fieldset> <div class="control-group"> <label class="control-label cm-required" for="ship_descr_shipping"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input type="text" name="shipping_data[shipping]" id="ship_descr_shipping" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['shipping'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> </div> </div> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["zero_company_id_name_lang_var"] = new Smarty_variable("none", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "shipping_data[company_id]", 'id' => "shipping_data_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'selected' => $_smarty_tpl->tpl_vars['shipping']->value['company_id'], 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value), 0); ?> <?php } ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("icon"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/attach_images.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('image_name' => "shipping", 'image_object_type' => "shipping", 'image_pair' => $_smarty_tpl->tpl_vars['shipping']->value['icon'], 'no_detailed' => "Y", 'hide_titles' => "Y", 'image_object_id' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_delivery_time"><?php echo $_smarty_tpl->__("delivery_time"); ?> </label> <div class="controls"> <input type="text" class="input-medium" name="shipping_data[delivery_time]" id="elm_delivery_time" size="30" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['delivery_time'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_min_weight"><?php echo $_smarty_tpl->__("weight_limit"); ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> ):</label> <div class="controls"> <input type="text" name="shipping_data[min_weight]" id="elm_min_weight" size="4" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['min_weight'], ENT_QUOTES, 'UTF-8'); ?> " class="input-mini" /> - <input type="text" name="shipping_data[max_weight]" size="4" value="<?php if ($_smarty_tpl->tpl_vars['shipping']->value['max_weight'] != "0.00") { echo htmlspecialchars($_smarty_tpl->tpl_vars['shipping']->value['max_weight'], ENT_QUOTES, 'UTF-8'); } ?> " class="input-mini right" /> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("rate_calculation"); ?> </label> <div class="controls"> <label class="radio inline" for="elm_rate_calculation_M"> <input type="radio" name="shipping_data[rate_calculation]" id="elm_rate_calculation_M" value="M" <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate_calculation'] == "M" || !$_smarty_tpl->tpl_vars['shipping']->value['rate_calculation']) { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("rate_calculation_manual"); ?> </label> <label class="radio inline" for="elm_rate_calculation_R"> <input type="radio" name="shipping_data[rate_calculation]" id="elm_rate_calculation_R" value="R" <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate_calculation'] == "R") { ?> checked="checked"<?php } ?> /> <?php echo $_smarty_tpl->__("rate_calculation_realtime"); ?> </label> </div> </div> <div class="control-group"> <label class="control-label" for="elm_service"><?php echo $_smarty_tpl->__("shipping_service"); ?> </label> <div class="controls"> <select name="shipping_data[service_id]" id="elm_service" <?php if ($_smarty_tpl->tpl_vars['shipping']->value['rate_calculation'] == "M" || !$_smarty_tpl->tpl_vars['id']->value) { ?> disabled="disabled"<?php } ?> > <option value="">--</option> <?php $_smarty_tpl->tpl_vars['service'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['service']->_loop = false; $_from = $_smarty_tpl->tpl_vars['services']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['service']->key => $_smarty_tpl->tpl_vars['service']->value) { $_smarty_tpl->tpl_vars['service']->_loop = true; ?> <option data-ca-shipping-module="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['module'], ENT_QUOTES, 'UTF-8'); ?> " data-ca-shipping-code="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['code'], ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['service_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['shipping']->value['service_id'] == $_smarty_tpl->tpl_vars['service']->value['service_id']) { ?> selected="selected"<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['service']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </option> <?php } ?> </select> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <span><?php echo $_smarty_tpl->__("test"); ?> </span> <?php echo $_smarty_tpl->__("weight"); ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['settings']->value['General']['weight_symbol'], ENT_QUOTES, 'UTF-8'); ?> ) <div class="input-append"> <input id="elm_weight" type="text" class="input-mini" size="3" name="shipping_data[test_weight]" value="0" /> <input type="hidden" name="result_ids" value="elm_shipping_test" /> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_role' => "action", 'but_name' => "dispatch[shippings.test]", 'but_text' => __("test"), 'but_meta' => "cm-submit btn cm-skip-validation cm-ajax cm-form-dialog-opener"), 0); ?> </div> <div id="elm_shipping_test" title="<?php echo $_smarty_tpl->__("test"); ?> "></div> <?php } ?> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("taxes"); ?> </label> <div class="controls"> <?php $_smarty_tpl->tpl_vars["tax"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["tax"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['taxes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["tax"]->key => $_smarty_tpl->tpl_vars["tax"]->value) { $_smarty_tpl->tpl_vars["tax"]->_loop = true; ?> <label class="checkbox inline" for="elm_shippings_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="checkbox" name="shipping_data[tax_ids][<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> ]" id="elm_shippings_taxes_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " <?php if (smarty_modifier_in_array($_smarty_tpl->tpl_vars['tax']->value['tax_id'], $_smarty_tpl->tpl_vars['shipping']->value['tax_ids'])) { ?> checked="checked"<?php } ?> value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax_id'], ENT_QUOTES, 'UTF-8'); ?> " /> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tax']->value['tax'], ENT_QUOTES, 'UTF-8'); ?> </label> <?php } if (!$_smarty_tpl->tpl_vars["tax"]->_loop) { ?> – <?php } ?> </div> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:update")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:update"), 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' => "shippings:update"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_usergroups")), 0); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "elm_ship_data_usergroup_id", 'name' => "shipping_data[usergroup_ids]", 'usergroups' => $_smarty_tpl->tpl_vars['usergroups']->value, 'usergroup_ids' => $_smarty_tpl->tpl_vars['shipping']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0); ?> </div> </div> <?php } echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_name' => "shipping_data[localization]", 'data_from' => $_smarty_tpl->tpl_vars['shipping']->value['localization']), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "shipping_data[status]", 'id' => "elm_shipping_status", 'obj' => $_smarty_tpl->tpl_vars['shipping']->value), 0); ?> </fieldset> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:update_tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:update_tools_list"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("add_shipping_method"), 'href' => "shippings.add")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("shipping_methods"), 'href' => "shippings.manage")); ?> </li> <li class="divider"></li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete"), 'class' => "cm-confirm", 'dispatch' => "dispatch[shippings.delete_rate_values]", 'form' => "shippings_form")); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "shippings:update_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_list'])); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['hide_for_vendor']->value) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[shippings.update]", 'but_target_form' => "shippings_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> <?php } else { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[shippings.update]", 'hide_first_button' => true, 'hide_second_button' => true, 'but_target_form' => "shippings_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 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 if ($_smarty_tpl->tpl_vars['id']->value) { ?> <input type="hidden" name="selected_section" value="general" /> <!--content_general--></div> <div id="content_configure"> <!--content_configure--></div> <div id="content_shipping_charges"> <?php echo $_smarty_tpl->getSubTemplate("views/shippings/components/rates.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['id']->value, 'shipping' => $_smarty_tpl->tpl_vars['shipping']->value), 0); ?> <!--content_shipping_charges--></div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "shippings:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "shippings:tabs_content"), 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' => "shippings:tabs_content"), $_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/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'active_tab' => $_REQUEST['selected_section'], 'track' => true), 0); ?> <?php } ?> </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 if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->tpl_vars["title"] = new Smarty_variable($_smarty_tpl->__("new_shipping_method"), null, 0); } else { ?> <?php ob_start(); echo $_smarty_tpl->__("editing_shipping_method"); $_tmp1 = ob_get_clean(); $_smarty_tpl->tpl_vars["title"] = new Smarty_variable($_tmp1 . ": " . (string) $_smarty_tpl->tpl_vars['shipping']->value['shipping'], null, 0); } 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'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'select_languages' => true), 0); ?> <?php }
function content_55dc7cc5c1a670_13636549($_smarty_tpl) { if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } if (!is_callable('smarty_block_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } fn_preload_lang_vars(array('information', 'name', 'description', 'edit_content_on_site', 'seo_meta_data', 'page_title', 'ttc_page_title', 'meta_description', 'meta_keywords', 'availability', 'usergroups', 'creation_date', 'use_avail_period', 'avail_from', 'avail_till', 'preview', 'clone_this_page', 'delete_this_page', 'pages')); if ($_smarty_tpl->tpl_vars['page_data']->value['page_id']) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['page_data']->value['page_id'], null, 0); } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(0, null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['id']->value && $_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK') && (!fn_allowed_for("ULTIMATE") || $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars['view_uri'] = new Smarty_variable(fn_get_preview_url("pages.view?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value, $_smarty_tpl->tpl_vars['page_data']->value, $_smarty_tpl->tpl_vars['auth']->value['user_id']), null, 0); } ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(true, null, 0); if (fn_allowed_for("ULTIMATE")) { ?> <?php $_smarty_tpl->tpl_vars["allow_save"] = new Smarty_variable(fn_allow_save_object($_smarty_tpl->tpl_vars['page_data']->value, "pages"), null, 0); } $_smarty_tpl->tpl_vars['show_save_btn'] = new Smarty_variable($_smarty_tpl->tpl_vars['allow_save']->value, null, 2); $_ptr = $_smarty_tpl->parent; while ($_ptr != null) { $_ptr->tpl_vars['show_save_btn'] = clone $_smarty_tpl->tpl_vars['show_save_btn']; $_ptr = $_ptr->parent; } $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tabsbox", null, null); ob_start(); ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="page_update_form" class="form-horizontal form-edit <?php if (!$_smarty_tpl->tpl_vars['allow_save']->value) { ?> cm-hide-inputs<?php } ?> " enctype="multipart/form-data"> <div id="update_page_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" class="cm-no-hide-input" id="selected_section" name="selected_section" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selected_section']->value, ENT_QUOTES, 'UTF-8'); ?> "/> <input type="hidden" class="cm-no-hide-input" id="page_id" name="page_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="page_data[page_type]" id="page_type" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_type']->value, ENT_QUOTES, 'UTF-8'); ?> "/> <input type="hidden" class="cm-no-hide-input" name="come_from" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['come_from']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" class="cm-no-hide-input" name="result_ids" value="update_page_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> "/> <div id="content_basic"> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("information"), 'target' => "#pages_information_setting"), 0); ?> <div id="pages_information_setting" class="in collapse"> <fieldset> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/parent_page_selector.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <div class="control-group"> <label for="elm_page_name" class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> :</label> <div class="controls"> <input type="text" name="page_data[page]" id="elm_page_name" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> </div> </div> <?php if ($_smarty_tpl->tpl_vars['page_data']->value['parent_id'] != 0 && $_smarty_tpl->tpl_vars['page_data']->value['page_id'] != 0) { ?> <?php $_smarty_tpl->tpl_vars["disable_company_picker"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if (fn_allowed_for("MULTIVENDOR")) { ?> <?php $_smarty_tpl->tpl_vars["zero_company_id_name_lang_var"] = new Smarty_variable("none", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/companies/components/company_field.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('name' => "page_data[company_id]", 'id' => "elm_page_data_company_id", 'zero_company_id_name_lang_var' => $_smarty_tpl->tpl_vars['zero_company_id_name_lang_var']->value, 'selected' => $_smarty_tpl->tpl_vars['page_data']->value['company_id'], 'reload_form' => true, 'disable_company_picker' => $_smarty_tpl->tpl_vars['disable_company_picker']->value), 0); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:detailed_description")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:detailed_description"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <div class="control-group"> <label class="control-label" for="elm_page_descr"><?php echo $_smarty_tpl->__("description"); ?> :</label> <div class="controls"> <textarea id="elm_page_descr" name="page_data[description]" cols="55" rows="8" class="cm-wysiwyg input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <?php ob_start(); echo htmlspecialchars(urlencode($_smarty_tpl->tpl_vars['view_uri']->value), ENT_QUOTES, 'UTF-8'); $_tmp1 = ob_get_clean(); ob_start(); if (fn_allowed_for("ULTIMATE")) { echo "&switch_company_id="; echo (string) $_smarty_tpl->tpl_vars['page_data']->value['company_id']; } $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "customization.update_mode?type=live_editor&status=enable&frontend_url=" . $_tmp1 . $_tmp2, 'but_text' => __("edit_content_on_site"), 'but_role' => "action", 'but_meta' => "btn-small btn-live-edit cm-post", 'but_target' => "_blank"), 0); ?> <?php } ?> </div> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['page_type']->value == @constant('PAGE_TYPE_LINK')) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/pages_link.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "pages:detailed_description"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "page_data[status]", 'id' => "elm_page_status", 'obj' => $_smarty_tpl->tpl_vars['page_data']->value, 'hidden' => true), 0); ?> </fieldset> </div> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("seo_meta_data"), 'target' => "#pages_seo_meta_data_setting"), 0); ?> <div id="pages_seo_meta_data_setting" class="in collapse"> <fieldset> <div class="control-group"> <label class="control-label" for="elm_page_title"><?php echo $_smarty_tpl->__("page_title"); echo $_smarty_tpl->getSubTemplate("common/tooltip.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('tooltip' => __("ttc_page_title")), 0); ?> :</label> <div class="controls"> <input type="text" name="page_data[page_title]" id="elm_page_title" size="55" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_title'], ENT_QUOTES, 'UTF-8'); ?> " class="input-large" /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_meta_descr"><?php echo $_smarty_tpl->__("meta_description"); ?> :</label> <div class="controls"> <textarea name="page_data[meta_description]" id="elm_page_meta_descr" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['meta_description'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_meta_keywords"><?php echo $_smarty_tpl->__("meta_keywords"); ?> :</label> <div class="controls"> <textarea name="page_data[meta_keywords]" id="elm_page_meta_keywords" cols="55" rows="2" class="input-large"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['meta_keywords'], ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> </div> </fieldset> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("availability"), 'target' => "#pages_availability_setting"), 0); ?> <div id="pages_availability_setting" class="in collapse"> <fieldset> <?php if (!fn_allowed_for("ULTIMATE:FREE")) { ?> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "ug_id", 'name' => "page_data[usergroup_ids]", 'usergroups' => fn_get_usergroups(array("type" => "C", "status" => array("A", "H")), @constant('DESCR_SL')), 'usergroup_ids' => $_smarty_tpl->tpl_vars['page_data']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0); ?> </div> </div> <?php } ?> <div class="control-group"> <label class="control-label" for="elm_page_date"><?php echo $_smarty_tpl->__("creation_date"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_page_date", 'date_name' => "page_data[timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year']), 0); ?> </div> </div> <?php echo $_smarty_tpl->getSubTemplate("views/localizations/components/select.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_name' => "page_data[localization]", 'data_from' => $_smarty_tpl->tpl_vars['page_data']->value['localization']), 0); ?> <div class="control-group"> <label class="control-label" for="elm_page_use_avail_period"><?php echo $_smarty_tpl->__("use_avail_period"); ?> :</label> <div class="controls"> <input type="hidden" name="page_data[use_avail_period]" value="N"> <span class="checkbox"> <input type="checkbox" name="page_data[use_avail_period]" id="elm_page_use_avail_period" <?php if ($_smarty_tpl->tpl_vars['page_data']->value['use_avail_period'] == "Y") { ?> checked="checked"<?php } ?> value="Y" onclick="fn_activate_calendar(this);"> </span> </div> </div> <?php $_smarty_tpl->_capture_stack[0][] = array("calendar_disable", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['page_data']->value['use_avail_period'] != "Y") { ?> disabled="disabled"<?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="control-group"> <label class="control-label" for="elm_page_avail_from"><?php echo $_smarty_tpl->__("avail_from"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_page_avail_from", 'date_name' => "page_data[avail_from_timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['avail_from_timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => Smarty::$_smarty_vars['capture']['calendar_disable']), 0); ?> </div> </div> <div class="control-group"> <label class="control-label" for="elm_page_avail_till"><?php echo $_smarty_tpl->__("avail_till"); ?> :</label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/calendar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('date_id' => "elm_page_avail_till", 'date_name' => "page_data[avail_till_timestamp]", 'date_val' => ($tmp = @$_smarty_tpl->tpl_vars['page_data']->value['avail_till_timestamp']) === null || $tmp === '' ? @constant('TIME') : $tmp, 'start_year' => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_start_year'], 'extra' => Smarty::$_smarty_vars['capture']['calendar_disable']), 0); ?> </div> </div> </fieldset> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('inline_script', array()); $_block_repeat = true; echo smarty_block_inline_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo '<script'; ?> language="javascript"> function fn_activate_calendar(el) { Tygh.$('#elm_page_avail_from').prop('disabled', !el.checked); Tygh.$('#elm_page_avail_till').prop('disabled', !el.checked); } <?php echo '</script'; ?> ><?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_inline_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> </div> <div id="content_addons"> <?php if ($_smarty_tpl->tpl_vars['page_type']->value != @constant('PAGE_TYPE_LINK')) { ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:detailed_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:detailed_content"), 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' => "pages:detailed_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tabs_content")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:tabs_content"), 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' => "pages:tabs_content"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php if (!$_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_smarty_tpl->__($_smarty_tpl->tpl_vars['page_type_data']->value['new_name']), null, 0); } else { ?> <?php ob_start(); echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['page_type_data']->value['edit_name']); $_tmp3 = ob_get_clean(); $_smarty_tpl->tpl_vars["_title"] = new Smarty_variable($_tmp3 . ": " . (string) $_smarty_tpl->tpl_vars['page_data']->value['page'], null, 0); ?> <?php $_smarty_tpl->tpl_vars["select_languages"] = new Smarty_variable(true, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['view_uri']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("preview", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("preview"), 'href' => $_smarty_tpl->tpl_vars['view_uri']->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 } } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['id']->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['page_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; ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __($_smarty_tpl->tpl_vars['_p']->value['add_name']), 'href' => "pages.add?page_type=" . (string) $_smarty_tpl->tpl_vars['_k']->value . "&parent_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?php } ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tools_list")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:tools_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' => "pages:tools_list"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <li class="divider"></li> <?php echo Smarty::$_smarty_vars['capture']['preview']; ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'class' => "cm-post", 'text' => __("clone_this_page"), 'href' => "pages.clone?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['allow_save']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("delete_this_page"), 'class' => "cm-confirm cm-post", 'href' => "pages.delete?page_id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&come_from=" . (string) $_smarty_tpl->tpl_vars['come_from']->value)); ?> </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 } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php if (!$_smarty_tpl->tpl_vars['show_save_btn']->value) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable(true, null, 0); ?> <?php $_smarty_tpl->tpl_vars["hide_second_button"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[pages.update]", 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'hide_second_button' => $_smarty_tpl->tpl_vars['hide_second_button']->value, 'but_target_form' => "page_update_form", 'save' => $_smarty_tpl->tpl_vars['id']->value), 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(); } ?> <!--update_page_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['page_data']->value['page_id'], ENT_QUOTES, 'UTF-8'); ?> --></div> </form> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "pages:tabs_extra")); $_block_repeat = true; echo smarty_block_hook(array('name' => "pages:tabs_extra"), 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' => "pages:tabs_extra"), $_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(); } echo $_smarty_tpl->getSubTemplate("common/tabsbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('content' => Smarty::$_smarty_vars['capture']['tabsbox'], 'track' => true), 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(); if ($_smarty_tpl->tpl_vars['pages_tree']->value) { ?> <div class="sidebar-row"> <h6><?php echo $_smarty_tpl->__("pages"); ?> </h6> <div class="nested-tree"> <?php echo $_smarty_tpl->getSubTemplate("views/pages/components/pages_links_tree.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('show_all' => false, 'pages_tree' => $_smarty_tpl->tpl_vars['pages_tree']->value), 0); ?> </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(); } ?> <?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, 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar'], 'sidebar_position' => "left", 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons']), 0); ?> <?php }
function content_55dc7cba159965_29631468($_smarty_tpl) { if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.date_format.php'; } if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('content', 'user', 'ip', 'time', 'backtrace', 'no_data', 'settings', 'phpinfo', 'backup_restore', 'clean_logs', 'logs')); $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <?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' => "logs.manage", 'view_type' => "logs"), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("views/logs/components/logs_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 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/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php if ($_smarty_tpl->tpl_vars['logs']->value) { ?> <table class="table"> <thead> <tr> <th><?php echo $_smarty_tpl->__("content"); ?> </th> <th><?php echo $_smarty_tpl->__("user"); ?> </th> <th><?php echo $_smarty_tpl->__("ip"); ?> </th> <th><?php echo $_smarty_tpl->__("time"); ?> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars["log"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["log"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['logs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["log"]->key => $_smarty_tpl->tpl_vars["log"]->value) { $_smarty_tpl->tpl_vars["log"]->_loop = true; $_smarty_tpl->tpl_vars["_type"] = new Smarty_variable("log_type_" . (string) $_smarty_tpl->tpl_vars['log']->value['type'], null, 0); $_smarty_tpl->tpl_vars["_action"] = new Smarty_variable("log_action_" . (string) $_smarty_tpl->tpl_vars['log']->value['action'], null, 0); ?> <tr> <td width="70%" class="wrap"> <?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['_type']->value); if ($_smarty_tpl->tpl_vars['log']->value['action']) { ?> (<?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['_action']->value); ?> )<?php } ?> <br> <?php $_smarty_tpl->tpl_vars["v"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["v"]->_loop = false; $_smarty_tpl->tpl_vars["k"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['log']->value['content']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["v"]->key => $_smarty_tpl->tpl_vars["v"]->value) { $_smarty_tpl->tpl_vars["v"]->_loop = true; $_smarty_tpl->tpl_vars["k"]->value = $_smarty_tpl->tpl_vars["v"]->key; ?> <?php if ($_smarty_tpl->tpl_vars['v']->value && $_smarty_tpl->tpl_vars['k']->value != 'ip_address' && $_smarty_tpl->tpl_vars['k']->value != 'id') { ?> <strong><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['k']->value); ?> :</strong> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value, ENT_QUOTES, 'UTF-8'); ?> </span><br /> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['log']->value['backtrace']) { ?> <p><a onclick="Tygh.$('#backtrace_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['log']->value['log_id'], ENT_QUOTES, 'UTF-8'); ?> ').toggle(); return false;" class="underlined"><span><?php echo $_smarty_tpl->__("backtrace"); ?> ››</span></a></p> <div id="backtrace_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['log']->value['log_id'], ENT_QUOTES, 'UTF-8'); ?> " class="notice-box hidden"> <?php $_smarty_tpl->tpl_vars["v"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["v"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['log']->value['backtrace']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["v"]->key => $_smarty_tpl->tpl_vars["v"]->value) { $_smarty_tpl->tpl_vars["v"]->_loop = true; ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value['file'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['v']->value['function']) { ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value['function'], ENT_QUOTES, 'UTF-8'); ?> )<?php } ?> : <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value['line'], ENT_QUOTES, 'UTF-8'); ?> <br /> <?php } ?> </div> <?php } else { ?> <?php } ?> </td> <td> <?php if ($_smarty_tpl->tpl_vars['log']->value['user_id']) { ?> <a href="<?php echo htmlspecialchars(fn_url("profiles.update?user_id=" . (string) $_smarty_tpl->tpl_vars['log']->value['user_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['log']->value['lastname'], ENT_QUOTES, 'UTF-8'); if ($_smarty_tpl->tpl_vars['log']->value['firstname'] || $_smarty_tpl->tpl_vars['log']->value['lastname']) { ?> <?php } echo htmlspecialchars($_smarty_tpl->tpl_vars['log']->value['firstname'], ENT_QUOTES, 'UTF-8'); ?> </a> <?php } else { ?> — <?php } ?> </td> <td class="center"> <?php if ($_smarty_tpl->tpl_vars['log']->value['content']['ip_address']) { echo htmlspecialchars($_smarty_tpl->tpl_vars['log']->value['content']['ip_address'], ENT_QUOTES, 'UTF-8'); } else { ?> —<?php } ?> </td> <td> <span class="nowrap"><?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['log']->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'); ?> </span> </td> </tr> <?php } ?> </tbody> </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); ?> <?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' => "logs:tools")); $_block_repeat = true; echo smarty_block_hook(array('name' => "logs:tools"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("settings"), 'href' => "settings.manage?section_id=Logging")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'target' => "_blank", 'text' => __("phpinfo"), 'href' => "tools.phpinfo")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("backup_restore"), 'href' => "datakeeper.manage")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("clean_logs"), 'href' => "logs.clean", 'class' => "cm-confirm cm-post")); ?> </li> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "logs: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' => __("logs"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar']), 0); }
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_55ccecb4cf6e64_39106577($_smarty_tpl) { if (!is_callable('smarty_function_math')) { include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/function.math.php'; } fn_preload_lang_vars(array('edit', 'remove', 'add_categories', 'remove', 'remove', 'remove')); if ($_smarty_tpl->tpl_vars['category_id']->value) { ?> <?php $_smarty_tpl->tpl_vars["category_data"] = new Smarty_variable(fn_get_category_data($_smarty_tpl->tpl_vars['category_id']->value, @constant('CART_LANGUAGE'), '', false, true), null, 0); ?> <?php $_smarty_tpl->tpl_vars["category"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['category_data']->value['category']) === null || $tmp === '' ? (string) $_smarty_tpl->tpl_vars['ldelim']->value . "category" . (string) $_smarty_tpl->tpl_vars['rdelim']->value : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_smarty_tpl->tpl_vars['owner_company_id']->value && $_smarty_tpl->tpl_vars['owner_company_id']->value != $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['category_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['category_data']->value['company_id'] != $_smarty_tpl->tpl_vars['runtime']->value['company_id'])) { ?> <?php $_smarty_tpl->tpl_vars["show_only_name"] = new Smarty_variable(true, null, 0); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['owner_company_id']->value && $_smarty_tpl->tpl_vars['owner_company_id']->value != $_smarty_tpl->tpl_vars['runtime']->value['company_id']) { ?> <?php $_smarty_tpl->tpl_vars["hide_delete_button"] = new Smarty_variable(true, null, 0); ?> <?php } } else { ?> <?php $_smarty_tpl->tpl_vars["category"] = new Smarty_variable($_smarty_tpl->tpl_vars['default_name']->value, null, 0); } if ($_smarty_tpl->tpl_vars['multiple']->value) { ?> <tr <?php if (!$_smarty_tpl->tpl_vars['clone']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['holder']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } ?> class="cm-js-item <?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> cm-clone hidden<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['position_field']->value) { ?> <td><input type="text" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['input_name']->value, ENT_QUOTES, 'UTF-8'); ?> [<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category_id']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo smarty_function_math(array('equation' => "a*b", 'a' => $_smarty_tpl->tpl_vars['position']->value, 'b' => 10), $_smarty_tpl); ?> " size="3" class="input-text-short"<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> disabled="disabled"<?php } ?> /></td><?php } ?> <td> <?php if (!$_smarty_tpl->tpl_vars['show_only_name']->value) { ?> <a href="<?php echo htmlspecialchars(fn_url("categories.update?category_id=" . (string) $_smarty_tpl->tpl_vars['category_id']->value), ENT_QUOTES, 'UTF-8'); ?> "> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value, ENT_QUOTES, 'UTF-8'); ?> </a> <?php } else { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value, ENT_QUOTES, 'UTF-8'); ?> <?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['category_data']->value), 0); ?> <?php } ?> </td> <td width="5%" class="nowrap"> <?php if (!$_smarty_tpl->tpl_vars['view_only']->value || $_smarty_tpl->tpl_vars['show_only_name']->value) { ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("edit"), 'href' => "categories.update?category_id=" . (string) $_smarty_tpl->tpl_vars['category_id']->value)); ?> </li> <?php if (!$_smarty_tpl->tpl_vars['hide_delete_button']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("remove"), 'onclick' => "Tygh." . "\$" . ".cePicker('delete_js_item', '" . (string) $_smarty_tpl->tpl_vars['holder']->value . "', '" . (string) $_smarty_tpl->tpl_vars['category_id']->value . "', 'c'); return false;")); ?> </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(); } ?> <div class="hidden-tools"> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> </div> <?php } ?> </td> </tr> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['view_mode']->value != "list") { ?> <span <?php if (!$_smarty_tpl->tpl_vars['clone']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['holder']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } ?> class="cm-js-item <?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> cm-clone hidden<?php } ?> "> <?php if (!$_smarty_tpl->tpl_vars['first_item']->value && $_smarty_tpl->tpl_vars['single_line']->value) { ?> <span class="cm-comma<?php if ($_smarty_tpl->tpl_vars['clone']->value) { ?> hidden<?php } ?> ">, </span><?php } ?> <div class="input-append"> <input class="cm-picker-value-description <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['extra_class']->value, ENT_QUOTES, 'UTF-8'); ?> " type="text" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['display_input_id']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['display_input_id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> size="10" name="category_name" readonly="readonly" <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['extra']->value, ENT_QUOTES, 'UTF-8'); ?> id="appendedInputButton"> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['runtime']->value['controller'] != "companies") { ?> <?php if ($_smarty_tpl->tpl_vars['multiple']->value) { ?> <?php $_smarty_tpl->tpl_vars["_but_text"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['but_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("add_categories") : $tmp, null, 0); ?> <?php $_smarty_tpl->tpl_vars["_but_role"] = new Smarty_variable("add", null, 0); ?> <?php $_smarty_tpl->tpl_vars["_but_icon"] = new Smarty_variable("icon-plus", null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["_but_text"] = new Smarty_variable("<i class='icon-plus'></i>", null, 0); ?> <?php $_smarty_tpl->tpl_vars["_but_role"] = new Smarty_variable("icon", null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_id' => "opener_picker_" . (string) $_smarty_tpl->tpl_vars['data_id']->value, 'but_href' => fn_url("categories.picker?display=" . (string) $_smarty_tpl->tpl_vars['display']->value . "&company_ids=" . (string) $_smarty_tpl->tpl_vars['company_ids']->value . "&picker_for=" . (string) $_smarty_tpl->tpl_vars['picker_for']->value . "&extra=" . (string) $_smarty_tpl->tpl_vars['extra_var']->value . "&checkbox_name=" . (string) $_smarty_tpl->tpl_vars['checkbox_name']->value . "&root=" . (string) $_smarty_tpl->tpl_vars['default_name']->value . "&except_id=" . (string) $_smarty_tpl->tpl_vars['except_id']->value . "&data_id=" . (string) $_smarty_tpl->tpl_vars['data_id']->value . (string) $_smarty_tpl->tpl_vars['extra_url']->value), 'but_text' => $_smarty_tpl->tpl_vars['_but_text']->value, 'but_role' => $_smarty_tpl->tpl_vars['_but_role']->value, 'but_icon' => $_smarty_tpl->tpl_vars['_but_icon']->value, 'but_target_id' => "content_" . (string) $_smarty_tpl->tpl_vars['data_id']->value, 'but_meta' => (string) $_smarty_tpl->tpl_vars['but_meta']->value . " cm-dialog-opener add-on btn"), 0); ?> <?php } ?> </div> </span> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["default_category"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['ldelim']->value . "category" . (string) $_smarty_tpl->tpl_vars['rdelim']->value, null, 0); ?> <?php $_smarty_tpl->tpl_vars["default_category_id"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['ldelim']->value . "category_id" . (string) $_smarty_tpl->tpl_vars['rdelim']->value, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['first_item']->value || !$_smarty_tpl->tpl_vars['category_id']->value) { ?> <p class="cm-js-item cm-clone hidden"> <?php if ($_smarty_tpl->tpl_vars['hide_input']->value != "Y") { ?> <label class="radio inline-block" for="category_rb_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['default_category_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input id="category_rb_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['default_category_id']->value, ENT_QUOTES, 'UTF-8'); ?> " type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['radio_input_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['default_category_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> </label> <?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['default_category']->value, ENT_QUOTES, 'UTF-8'); ?> <a class="icon-remove-sign cm-tooltip hand hidden" onclick="Tygh.$.cePicker('delete_js_item', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['holder']->value, ENT_QUOTES, 'UTF-8'); ?> ', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['default_category_id']->value, ENT_QUOTES, 'UTF-8'); ?> ', 'c'); return false;" title="<?php echo $_smarty_tpl->__("remove"); ?> "></a> </p> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['category_id']->value) { ?> <div class="test3 cm-js-item <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['extra_class']->value, ENT_QUOTES, 'UTF-8'); ?> " id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['holder']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['extra']->value, ENT_QUOTES, 'UTF-8'); ?> > <?php if ($_smarty_tpl->tpl_vars['hide_input']->value != "Y") { ?> <label class="radio inline-block" for="category_radio_button_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input id="category_radio_button_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category_id']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php if ($_smarty_tpl->tpl_vars['main_category']->value == $_smarty_tpl->tpl_vars['category_id']->value) { ?> checked<?php } ?> type="radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['radio_input_name']->value, ENT_QUOTES, 'UTF-8'); ?> " value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category_id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> </label> <?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category']->value, ENT_QUOTES, 'UTF-8'); ?> <?php if ($_smarty_tpl->tpl_vars['category_data']->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['category_data']->value, 'simple' => true), 0); } ?> <?php if (fn_allowed_for("ULTIMATE")) { ?> <?php if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] && ($_smarty_tpl->tpl_vars['category_data']->value['company_id'] == $_smarty_tpl->tpl_vars['runtime']->value['company_id'] || $_smarty_tpl->tpl_vars['runtime']->value['company_id'] == $_smarty_tpl->tpl_vars['owner_company_id']->value)) { ?> <a onclick="Tygh.$.cePicker('delete_js_item', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['holder']->value, ENT_QUOTES, 'UTF-8'); ?> ', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category_id']->value, ENT_QUOTES, 'UTF-8'); ?> ', 'c'); return false;" class="icon-remove-sign cm-tooltip hand hidden" title="<?php echo $_smarty_tpl->__("remove"); ?> "></a> <?php } ?> <?php } else { ?> <a onclick="Tygh.$.cePicker('delete_js_item', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['holder']->value, ENT_QUOTES, 'UTF-8'); ?> ', '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['category_id']->value, ENT_QUOTES, 'UTF-8'); ?> ', 'c'); return false;" class="icon-remove-sign cm-tooltip hand hidden" title="<?php echo $_smarty_tpl->__("remove"); ?> "></a> <?php } ?> </div> <?php } ?> <?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 }
function smarty_template_function_btn($_smarty_tpl, $params) { $saved_tpl_vars = $_smarty_tpl->tpl_vars; foreach ($_smarty_tpl->smarty->template_functions['btn']['parameter'] as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value); } foreach ($params as $key => $value) { $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value); } ?> <?php if (fn_check_view_permissions($_smarty_tpl->tpl_vars['href']->value) && fn_check_view_permissions($_smarty_tpl->tpl_vars['dispatch']->value)) { ?> <?php if ($_smarty_tpl->tpl_vars['type']->value == "text") { ?> <a <?php if ($_smarty_tpl->tpl_vars['target']->value) { ?> target="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['target']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php if ($_smarty_tpl->tpl_vars['href']->value) { ?> href="<?php echo htmlspecialchars(fn_url($_smarty_tpl->tpl_vars['href']->value), ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php if ($_smarty_tpl->tpl_vars['class']->value) { ?> class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['class']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php if ($_smarty_tpl->tpl_vars['title']->value) { ?> title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8'); ?> "<?php } ?> <?php if ($_smarty_tpl->tpl_vars['data']->value) { ?> <?php $_smarty_tpl->tpl_vars['data_value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['data_value']->_loop = false; $_smarty_tpl->tpl_vars['data_name'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['data_value']->key => $_smarty_tpl->tpl_vars['data_value']->value) { $_smarty_tpl->tpl_vars['data_value']->_loop = true; $_smarty_tpl->tpl_vars['data_name']->value = $_smarty_tpl->tpl_vars['data_value']->key; ?> <?php if ($_smarty_tpl->tpl_vars['data_value']->value) { ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_name']->value, ENT_QUOTES, 'UTF-8'); ?> ="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['data_value']->value, ENT_QUOTES, 'UTF-8'); ?> " <?php } ?> <?php } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['onclick']->value) { ?> onclick="<?php echo $_smarty_tpl->tpl_vars['onclick']->value; ?> ; return false;"<?php } ?> > <?php if ($_smarty_tpl->tpl_vars['icon']->value && $_smarty_tpl->tpl_vars['icon_first']->value) { ?> <i class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['icon']->value, ENT_QUOTES, 'UTF-8'); ?> "></i><?php } ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['text']->value, ENT_QUOTES, 'UTF-8'); ?> <?php if ($_smarty_tpl->tpl_vars['icon']->value && !$_smarty_tpl->tpl_vars['icon_first']->value) { ?> <i class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['icon']->value, ENT_QUOTES, 'UTF-8'); ?> "></i><?php } ?> </a> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['type']->value == "list") { ?> <?php if (!$_smarty_tpl->tpl_vars['href']->value && !$_smarty_tpl->tpl_vars['process']->value) { ?> <?php $_smarty_tpl->tpl_vars['class'] = new Smarty_variable("cm-process-items cm-submit " . (string) $_smarty_tpl->tpl_vars['class']->value, null, 0); ?> <?php } ?> <?php $_smarty_tpl->createLocalArrayVariable('data', null, 0); $_smarty_tpl->tpl_vars['data']->value['data-ca-target-form'] = $_smarty_tpl->tpl_vars['form']->value; ?> <?php $_smarty_tpl->createLocalArrayVariable('data', null, 0); $_smarty_tpl->tpl_vars['data']->value['data-ca-dispatch'] = $_smarty_tpl->tpl_vars['dispatch']->value; ?> <?php smarty_template_function_btn($_smarty_tpl, array('type' => "text", 'target' => $_smarty_tpl->tpl_vars['target']->value, 'href' => $_smarty_tpl->tpl_vars['href']->value, 'data' => $_smarty_tpl->tpl_vars['data']->value, 'class' => $_smarty_tpl->tpl_vars['class']->value, 'onclick' => $_smarty_tpl->tpl_vars['onclick']->value, 'text' => $_smarty_tpl->tpl_vars['text']->value)); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['type']->value == "delete_selected") { ?> <?php if ($_smarty_tpl->tpl_vars['icon']->value) { ?> <?php $_smarty_tpl->tpl_vars['class'] = new Smarty_variable("btn", null, 0); ?> <?php $_smarty_tpl->tpl_vars['text'] = new Smarty_variable(" ", null, 0); ?> <?php } ?> <?php $_smarty_tpl->createLocalArrayVariable('data', null, 0); $_smarty_tpl->tpl_vars['data']->value['data-ca-target-form'] = $_smarty_tpl->tpl_vars['form']->value; ?> <?php $_smarty_tpl->createLocalArrayVariable('data', null, 0); $_smarty_tpl->tpl_vars['data']->value['data-ca-dispatch'] = $_smarty_tpl->tpl_vars['dispatch']->value; ?> <?php smarty_template_function_btn($_smarty_tpl, array('type' => "text", 'target' => $_smarty_tpl->tpl_vars['target']->value, 'href' => $_smarty_tpl->tpl_vars['href']->value, 'data' => $_smarty_tpl->tpl_vars['data']->value, 'class' => "cm-process-items cm-submit cm-confirm " . (string) $_smarty_tpl->tpl_vars['class']->value, 'click' => $_smarty_tpl->tpl_vars['click']->value, 'text' => ($tmp = @$_smarty_tpl->tpl_vars['text']->value) === null || $tmp === '' ? $_smarty_tpl->__("delete_selected") : $tmp)); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['type']->value == "delete") { ?> <?php $_smarty_tpl->createLocalArrayVariable('data', null, 0); $_smarty_tpl->tpl_vars['data']->value['data-ca-target-form'] = $_smarty_tpl->tpl_vars['form']->value; ?> <?php $_smarty_tpl->createLocalArrayVariable('data', null, 0); $_smarty_tpl->tpl_vars['data']->value['data-ca-dispatch'] = $_smarty_tpl->tpl_vars['dispatch']->value; ?> <?php smarty_template_function_btn($_smarty_tpl, array('type' => "text", 'target' => $_smarty_tpl->tpl_vars['target']->value, 'href' => $_smarty_tpl->tpl_vars['href']->value, 'data' => $_smarty_tpl->tpl_vars['data']->value, 'class' => (string) $_smarty_tpl->tpl_vars['class']->value, 'click' => $_smarty_tpl->tpl_vars['click']->value, 'text' => ($tmp = @$_smarty_tpl->tpl_vars['text']->value) === null || $tmp === '' ? $_smarty_tpl->__("delete") : $tmp)); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['type']->value == "dialog") { ?> <?php smarty_template_function_btn($_smarty_tpl, array('type' => "text", 'text' => $_smarty_tpl->tpl_vars['text']->value, 'class' => "cm-dialog-opener " . (string) $_smarty_tpl->tpl_vars['class']->value, 'href' => $_smarty_tpl->tpl_vars['href']->value, 'id' => $_smarty_tpl->tpl_vars['id']->value, 'title' => $_smarty_tpl->tpl_vars['title']->value, 'data' => array('data-ca-target-id' => $_smarty_tpl->tpl_vars['target_id']->value, 'data-ca-target-form' => $_smarty_tpl->tpl_vars['form']->value))); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['type']->value == "multiple") { ?> <?php echo smarty_function_script(array('src' => "js/tygh/node_cloning.js"), $_smarty_tpl); ?> <?php $_smarty_tpl->tpl_vars["tag_level"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['tag_level']->value) === null || $tmp === '' ? "1" : $tmp, null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['only_delete']->value != "Y") { if (!$_smarty_tpl->tpl_vars['hide_add']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "text", 'onclick' => "Tygh." . "\$" . "('#box_' + this.id).cloneNode(" . (string) $_smarty_tpl->tpl_vars['tag_level']->value . "); " . (string) $_smarty_tpl->tpl_vars['on_add']->value, 'id' => $_smarty_tpl->tpl_vars['item_id']->value)); ?> </li><?php } if (!$_smarty_tpl->tpl_vars['hide_clone']->value) { ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "text", 'onclick' => "Tygh." . "\$" . "('#box_' + this.id).cloneNode(" . (string) $_smarty_tpl->tpl_vars['tag_level']->value . ", true);", 'id' => $_smarty_tpl->tpl_vars['item_id']->value)); ?> </li><?php } } ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "text", 'only_delete' => $_smarty_tpl->tpl_vars['only_delete']->value, 'class' => "cm-delete-row")); ?> </li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['type']->value == "add") { ?> <?php smarty_template_function_btn($_smarty_tpl, array('type' => "text", 'title' => $_smarty_tpl->tpl_vars['title']->value, 'class' => "cm-tooltip btn", 'icon' => "icon-plus", 'href' => $_smarty_tpl->tpl_vars['href']->value)); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['type']->value == "text_add") { ?> <?php smarty_template_function_btn($_smarty_tpl, array('type' => "text", 'text' => $_smarty_tpl->tpl_vars['text']->value, 'class' => "btn btn-primary", 'icon' => "icon-plus icon-white", 'icon_first' => true, 'href' => $_smarty_tpl->tpl_vars['href']->value)); ?> <?php } ?> <?php } $_smarty_tpl->tpl_vars = $saved_tpl_vars; foreach (Smarty::$global_tpl_vars as $key => $value) { if (!isset($_smarty_tpl->tpl_vars[$key])) { $_smarty_tpl->tpl_vars[$key] = $value; } } }