• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP fn_query_remove函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中fn_query_remove函数的典型用法代码示例。如果您正苦于以下问题:PHP fn_query_remove函数的具体用法?PHP fn_query_remove怎么用?PHP fn_query_remove使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了fn_query_remove函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: content_55ccf2ea62cd14_13039228

    function content_55ccf2ea62cd14_13039228($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('advanced_filter', 'advanced', 'reset', 'reset', 'advanced_filter', 'advanced', 'reset', 'reset'));
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            ?>


<div id="product_filters_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['block']->value['block_id'], ENT_QUOTES, 'UTF-8');
            ?>
">
<div  class="ty-product-filters__wrapper testoriginal">
<?php 
            if ($_smarty_tpl->tpl_vars['items']->value && !$_REQUEST['advanced_filter']) {
                ?>


<?php 
                if (strpos($_SERVER['QUERY_STRING'], "dispatch=") !== false) {
                    ?>

    <?php 
                    $_smarty_tpl->tpl_vars["curl"] = new Smarty_variable($_smarty_tpl->tpl_vars['config']->value['current_url'], null, 0);
                    ?>

    <?php 
                    $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['curl']->value, "result_ids", "full_render", "filter_id", "view_all", "req_range_id", "advanced_filter", "features_hash", "subcats", "page"), null, 0);
                    ?>

<?php 
                } else {
                    ?>

    <?php 
                    $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable("products.search", null, 0);
                    ?>

<?php 
                }
                ?>


<?php 
                $_smarty_tpl->tpl_vars["reset_qstring"] = new Smarty_variable("products.search", null, 0);
                ?>


<?php 
                if ($_REQUEST['category_id'] && $_smarty_tpl->tpl_vars['settings']->value['General']['show_products_from_subcategories'] == "Y") {
                    ?>

    <?php 
                    $_smarty_tpl->tpl_vars["filter_qstring"] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['filter_qstring']->value, "subcats=Y"), null, 0);
                    ?>

    <?php 
                    $_smarty_tpl->tpl_vars["reset_qstring"] = new Smarty_variable(fn_link_attach($_smarty_tpl->tpl_vars['reset_qstring']->value, "subcats=Y"), null, 0);
                    ?>

<?php 
                }
                ?>


<?php 
                $_smarty_tpl->tpl_vars["allow_ajax"] = new Smarty_variable(true, null, 0);
                ?>

<?php 
                $_smarty_tpl->tpl_vars["ajax_div_ids"] = new Smarty_variable("product_filters_*,products_search_*,category_products_*,product_features_*,breadcrumbs_*,currencies_*,languages_*", null, 0);
                ?>


<?php 
                $_smarty_tpl->tpl_vars["has_selected"] = new Smarty_variable(false, null, 0);
                ?>

<ul class="cm-responsive-menu"> 
    <li class="ty-menu__item ty-menu__menu-btn visible-phone">
        <a class="ty-menu__item-link">
            <i class="ty-icon-short-list"></i>
            <span>Filters</span>
        </a>
    </li> 
<?php 
                $_smarty_tpl->tpl_vars["filter"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["filter"]->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['items']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["filter"]->key => $_smarty_tpl->tpl_vars["filter"]->value) {
                    $_smarty_tpl->tpl_vars["filter"]->_loop = true;
                    ?>

//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:b47e5055f5262e399a565cfffd033b55160baa64.tygh.orizontal.tpl.php


示例2: content_55d5c52c0f4b99_17469338

    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">
//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:6b2480dc7381bf467d3b7568ba9f3513e57003bf.tygh.manage.tpl.php


示例3: fn_set_storage_data

            }
        } else {
            // Free or Trial mode
            if (in_array($_REQUEST['store_mode'], array('free', 'trial'))) {
                fn_set_storage_data('store_mode', $_REQUEST['store_mode']);
                if ($_REQUEST['store_mode'] == 'free') {
                    fn_set_notification('I', __('store_mode_changed'), __('text_' . $_REQUEST['store_mode'] . '_mode_activated'));
                    fn_subscribe_admin();
                }
            }
            $_SESSION['mode_recheck'] = true;
        }
        $redirect_url = empty($_REQUEST['redirect_url']) ? fn_url() : $_REQUEST['redirect_url'];
        $has_errors = fn_get_storage_data('store_mode_errors');
        if (strpos($redirect_url, 'welcome') !== false && empty($has_errors)) {
            $redirect_url = fn_query_remove($redirect_url, 'welcome');
            $redirect_url = fn_link_attach($redirect_url, 'welcome=setup_completed');
        }
        unset($_REQUEST['redirect_url']);
        fn_clear_cache();
        return array(CONTROLLER_STATUS_REDIRECT, $redirect_url);
    }
    return array(CONTROLLER_STATUS_OK, 'settings' . $_suffix . '?section_id=' . Settings::instance()->getSectionTextId($section_id));
}
//
// OUPUT routines
//
if ($mode == 'manage') {
    $subsections = Settings::instance()->getSectionTabs($section_id, CART_LANGUAGE);
    $options = Settings::instance()->getList($section_id);
    fn_update_lang_objects('subsections', $subsections);
开发者ID:askzap,项目名称:ultimate,代码行数:31,代码来源:settings.php


示例4: content_55db8f5815d397_15312311


//.........这里部分代码省略.........
                            if ($_COOKIE[$_smarty_tpl->tpl_vars['s_id']->value]) {
                                ?>
hidden<?php 
                            }
                            ?>
"><?php 
                            echo $_smarty_tpl->__("more");
                            ?>
<i class="exicon-collapse"></i></a>
                                <a id="off_<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['s_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" class="cm-combination cm-save-state <?php 
                            if (!$_COOKIE[$_smarty_tpl->tpl_vars['s_id']->value]) {
                                ?>
hidden<?php 
                            }
                            ?>
"><?php 
                            echo $_smarty_tpl->__("more");
                            ?>
<i class="exicon-collapse"></i></a>
                            </span>
                        </li>
                        <li id="<?php 
                            echo htmlspecialchars($_smarty_tpl->tpl_vars['s_id']->value, ENT_QUOTES, 'UTF-8');
                            ?>
" class="<?php 
                            if (!$_COOKIE[$_smarty_tpl->tpl_vars['s_id']->value]) {
                                ?>
hidden<?php 
                            }
                            ?>
">
                            <ul class="nav nav-list">
                        <?php 
                        }
                        ?>
                        <li <?php 
                        if ($_smarty_tpl->tpl_vars['view']->value['view_id'] == $_smarty_tpl->tpl_vars['search']->value['view_id']) {
                            ?>
class="active"<?php 
                        }
                        ?>
>
                            <?php 
                        $_smarty_tpl->tpl_vars["return_current_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "view_id", "new_view"), null, 0);
                        ?>
                            <?php 
                        $_smarty_tpl->tpl_vars["redirect_current_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
                        ?>
                            <a href="<?php 
                        echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['dispatch']->value . ".delete_view?view_id=" . (string) $_smarty_tpl->tpl_vars['view']->value['view_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['redirect_current_url']->value), ENT_QUOTES, 'UTF-8');
                        ?>
" class="cm-confirm cm-tooltip icon-trash" title="<?php 
                        echo $_smarty_tpl->__("delete");
                        ?>
"></a>
                            <a class="cm-view-name" data-ca-view-id="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['view']->value['view_id'], ENT_QUOTES, 'UTF-8');
                        ?>
" href="<?php 
                        echo htmlspecialchars(fn_url((string) $_smarty_tpl->tpl_vars['dispatch']->value . "?view_id=" . (string) $_smarty_tpl->tpl_vars['view']->value['view_id'] . "&" . (string) $_smarty_tpl->tpl_vars['view_suffix']->value), ENT_QUOTES, 'UTF-8');
                        ?>
"><?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['view']->value['name'], ENT_QUOTES, 'UTF-8');
                        ?>
</a>
                        </li>
                    <?php 
                    }
                    ?>
                    <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['views']['total'] > $_smarty_tpl->tpl_vars['max_items']->value) {
                        ?>
                            </ul>
                        </li>
                    <?php 
                    }
                    ?>
                    <?php 
                }
                ?>
                    <li class="last">
                        <?php 
                echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("new_saved_search"), 'but_role' => "text", 'but_meta' => "text-button cm-dialog-opener", 'but_target_id' => "adv_search"), 0);
                ?>

                    </li>
                </ul>
        </div>
        <hr>
    <?php 
            }
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "advanced_search:views"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
    }
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:8bdf1b5d8d4a7de87535d5d53ece75ed90ca7579.tygh.saved_search.tpl.php


示例5: content_55d2f3b104f8b0_98025960

    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");
//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:da4abdcb6c9d0ca689a3b9c248882f715adf2ebe.tygh.manage.tpl.php


示例6: content_55db8f57aa4f74_91096835

    function content_55db8f57aa4f74_91096835($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
        }
        fn_preload_lang_vars(array('previous', 'next', 'total_items'));
        $_smarty_tpl->tpl_vars["id"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['div_id']->value) === null || $tmp === '' ? "pagination_contents" : $tmp, null, 0);
        $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(fn_query_remove(($tmp = @$_smarty_tpl->tpl_vars['current_url']->value) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['config']->value['current_url'] : $tmp, "page"), null, 0);
        $_smarty_tpl->tpl_vars["pagination"] = new Smarty_variable(fn_generate_pagination($_smarty_tpl->tpl_vars['search']->value), null, 0);
        ?>

<?php 
        if (Smarty::$_smarty_vars['capture']['pagination_open'] == "Y") {
            ?>
    <?php 
            $_smarty_tpl->tpl_vars["pagination_meta"] = new Smarty_variable(" paginate-top", null, 0);
        }
        ?>

<?php 
        if (Smarty::$_smarty_vars['capture']['pagination_open'] != "Y") {
            ?>
<div class="cm-pagination-container<?php 
            if ($_smarty_tpl->tpl_vars['pagination_class']->value) {
                ?>
 <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['pagination_class']->value, ENT_QUOTES, 'UTF-8');
            }
            ?>
" id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
<?php 
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['pagination']->value) {
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['save_current_page']->value) {
                ?>
        <input type="hidden" name="page" value="<?php 
                echo htmlspecialchars(($tmp = @(($tmp = @$_smarty_tpl->tpl_vars['search']->value['page']) === null || $tmp === '' ? $_REQUEST['page'] : $tmp)) === null || $tmp === '' ? 1 : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
" />
    <?php 
            }
            ?>

    <?php 
            if ($_smarty_tpl->tpl_vars['save_current_url']->value) {
                ?>
        <input type="hidden" name="redirect_url" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
                ?>
" />
    <?php 
            }
            ?>

    <?php 
            if (!$_smarty_tpl->tpl_vars['disable_history']->value) {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["history_class"] = new Smarty_variable(" cm-history", null, 0);
                ?>
    <?php 
            } else {
                ?>
        <?php 
                $_smarty_tpl->tpl_vars["history_class"] = new Smarty_variable(" cm-ajax-cache", null, 0);
                ?>
    <?php 
            }
            ?>
    <div class="pagination-wrap clearfix">
    <?php 
            if ($_smarty_tpl->tpl_vars['pagination']->value['total_pages'] > 1) {
                ?>
    <div class="pagination pull-left">
        <ul>
        <?php 
                if ($_smarty_tpl->tpl_vars['pagination']->value['current_page'] != "full_list" && $_smarty_tpl->tpl_vars['pagination']->value['total_pages'] > 1) {
                    ?>
            <li class="<?php 
                    if (!$_smarty_tpl->tpl_vars['pagination']->value['prev_page']) {
                        ?>
disabled<?php 
                    }
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                    ?>
"><a data-ca-scroll=".cm-pagination-container" class="cm-ajax<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['history_class']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" <?php 
                    if ($_smarty_tpl->tpl_vars['pagination']->value['prev_page']) {
                        ?>
href="<?php 
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:33570f87cf694de759a498258bffac49f0d24354.tygh.pagination.tpl.php


示例7: content_55db8f57a02b71_27074353

    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> /&nbsp;&nbsp;&nbsp; <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');
            ?>
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:c0ea1450969548284ad3899a8da6a8cfa089b6b7.tygh.manage.tpl.php


示例8: die

}
if ($mode == 'view') {
    if (empty($_REQUEST['display'])) {
        die('Access denied');
    }
    $types = array('pdf', 'xls');
    $price_schema = fn_get_schema('price_list', 'schema', 'php', false);
    $selected_fields = Registry::get('addons.price_list.price_list_fields');
    $modes = fn_price_list_get_pdf_layouts();
    // Check the available libs
    foreach ($types as $type) {
        if (!empty($modes[$type])) {
            foreach ($modes[$type] as $f_mode) {
                if ($_REQUEST['display'] == basename($f_mode, '.php')) {
                    include_once DIR_ADDONS . '/price_list/templates/' . $type . '/' . $f_mode;
                    $meta_redirect_url = urlencode(fn_url('price_list.view?display=' . basename($f_mode, '.php'), 'C', 'http', '&'));
                    if (!empty($_REQUEST['return_url'])) {
                        $base_url = $_REQUEST['return_url'];
                    } else {
                        $base_url = empty($_SERVER['HTTP_REFERER']) ? $index_script . '?' : $_SERVER['HTTP_REFERER'];
                        $base_url = fn_query_remove($base_url, 'cc');
                        if (strpos('?', $base_url) === false) {
                            $base_url .= '?';
                        }
                    }
                    return array(CONTROLLER_STATUS_REDIRECT, $base_url . '&meta_redirect_url=' . $meta_redirect_url);
                }
            }
        }
    }
}
开发者ID:diedsmiling,项目名称:busenika,代码行数:31,代码来源:price_list.php


示例9: content_55ccecabdaef45_28784401

    function content_55ccecabdaef45_28784401($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_truncate')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.truncate.php';
        }
        fn_preload_lang_vars(array('administration_panel', 'email', 'username', 'password', 'forgot_password_question'));
        ?>
<div class="modal signin-modal">
    <form action="<?php 
        echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
        ?>
" method="post" name="main_login_form" class=" cm-skip-check-items cm-check-changes">
        <input type="hidden" name="return_url" value="<?php 
        echo htmlspecialchars(fn_query_remove(fn_url($_REQUEST['return_url'], "A", "rel"), "return_url"), ENT_QUOTES, 'UTF-8');
        ?>
">
        <div class="modal-header">
            <h4><a href="<?php 
        echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
        ?>
"><?php 
        echo htmlspecialchars(smarty_modifier_truncate($_smarty_tpl->tpl_vars['settings']->value['Company']['company_name'], 40, '...', true), ENT_QUOTES, 'UTF-8');
        ?>
</a></h4>
            <span><?php 
        echo $_smarty_tpl->__("administration_panel");
        ?>
</span>
        </div>
        <div class="modal-body">
            <div class="control-group">
                <label for="username" class="cm-required <?php 
        if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] == "Y") {
            ?>
cm-email<?php 
        }
        ?>
"><?php 
        if ($_smarty_tpl->tpl_vars['settings']->value['General']['use_email_as_login'] == "Y") {
            echo $_smarty_tpl->__("email");
        } else {
            echo $_smarty_tpl->__("username");
        }
        ?>
:</label>
                <input id="username" type="text" name="user_login" size="20" value="<?php 
        if ($_smarty_tpl->tpl_vars['stored_user_login']->value) {
            echo htmlspecialchars($_smarty_tpl->tpl_vars['stored_user_login']->value, ENT_QUOTES, 'UTF-8');
        } else {
            echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['demo_username'], ENT_QUOTES, 'UTF-8');
        }
        ?>
" class="cm-focus" tabindex="1">
            </div>
            <div class="control-group">
                <label for="password" class="cm-required"><?php 
        echo $_smarty_tpl->__("password");
        ?>
:</label>
                <input type="password" id="password" name="password" size="20" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['demo_password'], ENT_QUOTES, 'UTF-8');
        ?>
" tabindex="2" maxlength="32">
            </div>
        </div>
        <div class="modal-footer">
            <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/sign_in.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[auth.login]", 'but_role' => "button_main", 'tabindex' => "3"), 0);
        ?>

            <a href="<?php 
        echo htmlspecialchars(fn_url("auth.recover_password"), ENT_QUOTES, 'UTF-8');
        ?>
" class="pull-right"><?php 
        echo $_smarty_tpl->__("forgot_password_question");
        ?>
</a>
        </div>
    </form>
</div><?php 
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:81,代码来源:fe4fbf6fea3c4aafb46f6fb5a03f6f96e20f2bc0.tygh.login_form.tpl.php


示例10: getImageUrl

 protected function getImageUrl($image_pair)
 {
     $url = '';
     if (empty($image_pair)) {
         return '';
     }
     if ($this->options['image_type'] == 'detailed') {
         if (!empty($image_pair['detailed'])) {
             $url = $image_pair['detailed']['image_path'];
         }
     } else {
         $image_data = fn_image_to_display($image_pair, $this->options['thumbnail_width'], $this->options['thumbnail_height']);
         if (!empty($image_data) && strpos($image_data['image_path'], '.php')) {
             $image_data['image_path'] = fn_generate_thumbnail($image_data['detailed_image_path'], $image_data['width'], $image_data['height']);
         }
         if (!empty($image_data['image_path'])) {
             $url = $image_data['image_path'];
         }
     }
     $url = $this->escapeUrl($url);
     $url = fn_query_remove($url, 't');
     return str_replace('–', urlencode('–'), $url);
 }
开发者ID:ambient-lounge,项目名称:site,代码行数:23,代码来源:Base.php


示例11: content_55e61e6bba7860_62197896

    function content_55e61e6bba7860_62197896($_smarty_tpl)
    {
        if (!is_callable('smarty_block_hook')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php';
        }
        fn_preload_lang_vars(array('user_account_information', 'email', 'password', 'confirm_password', 'account_type', 'customer', 'vendor_administrator', 'administrator', 'tax_exempt', 'language'));
        echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("user_account_information")), 0);
        ?>


<?php 
        if ($_smarty_tpl->tpl_vars['uid']->value == 1 || fn_check_user_type_admin_area($_smarty_tpl->tpl_vars['user_data']->value) && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] && defined("RESTRICTED_ADMIN") || $_smarty_tpl->tpl_vars['user_data']->value['is_root'] == "Y" || $_smarty_tpl->tpl_vars['auth']->value['is_root'] == "Y" || $_smarty_tpl->tpl_vars['user_data']->value['user_id'] == $_smarty_tpl->tpl_vars['auth']->value['user_id']) {
            ?>
    <input type="hidden" name="user_data[status]" value="A" />
    <input type="hidden" name="user_data[user_type]" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['user_type'], ENT_QUOTES, 'UTF-8');
            ?>
" />
<?php 
        }
        ?>

<div class="control-group">
    <label for="email" class="control-label cm-required cm-email"><?php 
        echo $_smarty_tpl->__("email");
        ?>
:</label>
    <div class="controls">
        <input type="text" id="email" name="user_data[email]" class="input-large" size="32" maxlength="128" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['user_data']->value['email'], ENT_QUOTES, 'UTF-8');
        ?>
" />
    </div>
</div>

<div class="control-group">
    <label for="password1" class="control-label cm-required"><?php 
        echo $_smarty_tpl->__("password");
        ?>
:</label>
    <div class="controls">
        <input type="password" id="password1" name="user_data[password1]" class="input-large cm-autocomplete-off" size="32" maxlength="32" value="<?php 
        if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "update") {
            ?>
            <?php 
        }
        ?>
" />
    </div>
</div>

<div class="control-group">
    <label for="password2" class="control-label cm-required"><?php 
        echo $_smarty_tpl->__("confirm_password");
        ?>
:</label>
    <div class="controls">
        <input type="password" id="password2" name="user_data[password2]" class="input-large cm-autocomplete-off" size="32" maxlength="32" value="<?php 
        if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "update") {
            ?>
            <?php 
        }
        ?>
" />
    </div>
</div>

<?php 
        if (($_smarty_tpl->tpl_vars['uid']->value != 1 || defined("RESTRICTED_ADMIN")) && $_smarty_tpl->tpl_vars['user_data']->value['user_id'] != $_smarty_tpl->tpl_vars['auth']->value['user_id']) {
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['user_data']->value['is_root'] != "Y" || !fn_check_user_type_admin_area($_smarty_tpl->tpl_vars['user_data']->value) || !$_smarty_tpl->tpl_vars['user_data']->value['user_id'] || $_smarty_tpl->tpl_vars['user_data']->value['company_id'] && !$_smarty_tpl->tpl_vars['auth']->value['company_id']) {
                ?>

        <?php 
                echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "user_data[status]", 'id' => "user_data", 'obj' => $_smarty_tpl->tpl_vars['user_data']->value, 'hidden' => false, 'display' => $_smarty_tpl->tpl_vars['display']->value), 0);
                ?>


        <?php 
                $_smarty_tpl->tpl_vars["_u_type"] = new Smarty_variable(($tmp = @$_REQUEST['user_type']) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['user_data']->value['user_type'] : $tmp, null, 0);
                ?>
        <?php 
                if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "add") {
                    ?>
            <input type="hidden" name="user_data[user_type]" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['_u_type']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" />
        <?php 
                } else {
                    ?>
            <div class="control-group">
                <label for="user_type" class="control-label cm-required"><?php 
                    echo $_smarty_tpl->__("account_type");
                    ?>
:</label>
                <?php 
                    $_smarty_tpl->tpl_vars["r_url"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "user_type"), null, 0);
                    ?>
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:87685b3af0ad048a5d2a7bc1b1a16d9f658b1670.tygh.profiles_account.tpl.php


示例12: content_55ccf2ea3eb161_07733351

    function content_55ccf2ea3eb161_07733351($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_replace')) {
            include '/home/coriolan/public_html/lead/app/lib/other/smarty/plugins/modifier.replace.php';
        }
        $_smarty_tpl->tpl_vars["curl"] = new Smarty_variable(fn_query_remove($_smarty_tpl->tpl_vars['config']->value['current_url'], "sort_by", "sort_order", "result_ids", "layout"), null, 0);
        ?>

<?php 
        $_smarty_tpl->tpl_vars["sorting"] = new Smarty_variable(fn_get_products_sorting(''), null, 0);
        ?>

<?php 
        $_smarty_tpl->tpl_vars["sorting_orders"] = new Smarty_variable(fn_get_products_sorting_orders(''), null, 0);
        ?>

<?php 
        $_smarty_tpl->tpl_vars["layouts"] = new Smarty_variable( 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP fn_rand函数代码示例发布时间:2022-05-15
下一篇:
PHP fn_put_contents函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap