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

PHP fn_check_view_permissions函数代码示例

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

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



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

示例1: fn_get_search_objects

/**
 * Get search objects data
 *
 * @param string $area Area ('A' for admin or 'C' for customer)
 * @return array Search objects data
 */
function fn_get_search_objects($area = AREA)
{
    $schema = fn_get_schema('search', 'schema');
    $search = array('conditions' => array('functions' => array(), 'values' => array()), 'more_data' => array(), 'titles' => array(), 'default' => array(), 'default_params' => array());
    foreach ($schema as $object => $object_data) {
        if (!empty($object_data['action_link']) && $area != 'C') {
            if (fn_check_view_permissions($object_data['action_link'], 'GET') == false) {
                continue;
            }
        }
        $search['conditions']['functions'][$object] = $object_data['condition_function'];
        $search['titles'][$object] = $object_data['title'];
        $search['more_data'][$object] = $object_data['more_data_function'];
        $search['bulk_data'][$object] = $object_data['bulk_data_function'];
        $search['default_params'][$object] = $object_data['default_params'];
        $search['action_links'][$object] = $object_data['action_link'];
        $search['detailed_links'][$object] = $object_data['detailed_link'];
        $search['show_in_search'][$object] = $object_data['show_in_search'];
        if (!empty($object_data['default']) && $object_data['default'] == true) {
            $search['default'][] = $object;
        }
    }
    /**
     * Additionally processes search schema
     *
     * @param array  $schema Search objects schema
     * @param string $area   Area ('A' for admin or 'C' for customer)
     * @param array  $search Search objects data
     */
    fn_set_hook('get_search_objects_post', $schema, $area, $search);
    return $search;
}
开发者ID:arpad9,项目名称:bygmarket,代码行数:38,代码来源:fn.search.php


示例2: addLink

 /**
  * Adds new node the breadcrumbs
  *
  * @param  string  $lang_value name of language variable
  * @param  string  $link       breadcrumb URL
  * @param  boolean $nofollow   Include or not "nofollow" attribute
  * @param  boolean $is_first   Flag that defines if parameter should be added to the beging (default false)
  * @return boolean True if breadcrumbs were added, false otherwise
  */
 public function addLink($title, $link = '', $nofollow = false, $is_first = false)
 {
     if ($this->_area == 'A' && !fn_check_view_permissions($link, 'GET')) {
         return false;
     }
     fn_set_hook('add_breadcrumb', $title, $link);
     $item = array('title' => $title, 'link' => $link, 'nofollow' => $nofollow);
     if ($is_first) {
         array_unshift($this->_links, $item);
     } else {
         $this->_links[] = $item;
     }
     return true;
 }
开发者ID:askzap,项目名称:ultimate,代码行数:23,代码来源:Breadcrumbs.php


示例3: content_55db8bdb4d0b63_72912352

    function content_55db8bdb4d0b63_72912352($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_replace')) {
            include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/modifier.replace.php';
        }
        fn_preload_lang_vars(array('edit', 'view', 'view', 'edit', 'edit', 'add'));
        $_smarty_tpl->tpl_vars["method"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['method']->value) === null || $tmp === '' ? "POST" : $tmp, null, 0);
        $_smarty_tpl->tpl_vars['popup_params'] = new Smarty_variable(" id=\"opener_" . (string) $_smarty_tpl->tpl_vars['id']->value . "\" data-ca-target-id=\"content_" . (string) $_smarty_tpl->tpl_vars['id']->value . "\"", null, 0);
        if (!$_smarty_tpl->tpl_vars['content']->value) {
            $_smarty_tpl->tpl_vars['popup_params'] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['popup_params']->value . "  data-ca-dialog-title=\"" . (string) smarty_modifier_replace($_smarty_tpl->tpl_vars['text']->value, '"', '') . "\"", null, 0);
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['action'] && fn_check_view_permissions($_smarty_tpl->tpl_vars['runtime']->value['action'], $_smarty_tpl->tpl_vars['method']->value) || !$_smarty_tpl->tpl_vars['runtime']->value['action'] && fn_check_html_view_permissions($_smarty_tpl->tpl_vars['content']->value, $_smarty_tpl->tpl_vars['method']->value)) {
            if ($_smarty_tpl->tpl_vars['act']->value == "edit") {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["_href"] = new Smarty_variable(fn_url($_smarty_tpl->tpl_vars['href']->value), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["default_link_text"] = new Smarty_variable($_smarty_tpl->__("edit"), null, 0);
                ?>
    <?php 
                if (!fn_check_view_permissions($_smarty_tpl->tpl_vars['_href']->value)) {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["_link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0);
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["default_link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0);
                    ?>
    <?php 
                }
                ?>
    <a <?php 
                if ($_smarty_tpl->tpl_vars['edit_onclick']->value) {
                    ?>
onclick="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['edit_onclick']->value, ENT_QUOTES, 'UTF-8');
                    ?>
"<?php 
                }
                ?>
 class="hand <?php 
                if (!$_smarty_tpl->tpl_vars['no_icon_link']->value) {
                    if ($_smarty_tpl->tpl_vars['update_controller']->value == "addons") {
                        ?>
exicon-cog<?php 
                    }
                    if ($_smarty_tpl->tpl_vars['icon']->value) {
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['icon']->value, ENT_QUOTES, 'UTF-8');
                    }
                }
                ?>
 <?php 
                if (!$_smarty_tpl->tpl_vars['is_promo']->value) {
                    ?>
cm-dialog-opener<?php 
                }
                if ($_smarty_tpl->tpl_vars['is_promo']->value) {
                    ?>
cm-promo-popup<?php 
                }
                ?>
 <?php 
                if ($_smarty_tpl->tpl_vars['_href']->value && !$_smarty_tpl->tpl_vars['is_promo']->value) {
                    ?>
 <?php 
                    echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['opener_ajax_class']->value) === null || $tmp === '' ? 'cm-ajax' : $tmp, ENT_QUOTES, 'UTF-8');
                }
                if ($_smarty_tpl->tpl_vars['link_class']->value) {
                    ?>
 <?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link_class']->value, ENT_QUOTES, 'UTF-8');
                }
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['_href']->value && !$_smarty_tpl->tpl_vars['is_promo']->value) {
                    ?>
 href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['_href']->value, ENT_QUOTES, 'UTF-8');
                    ?>
"<?php 
                }
                ?>
 <?php 
                echo $_smarty_tpl->tpl_vars['popup_params']->value;
                ?>
 title="<?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['link_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("edit") : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
" <?php 
                if ($_smarty_tpl->tpl_vars['drop_left']->value) {
                    ?>
data-placement="left"<?php 
                }
                ?>
><?php 
                if ($_smarty_tpl->tpl_vars['icon']->value) {
                    ?>
<i class="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['icon']->value, ENT_QUOTES, 'UTF-8');
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:dff4a211754f86f5fc7b98e5946ca6396281faad.tygh.popupbox.tpl.php


示例4: content_55ccef84663c03_45153615


//.........这里部分代码省略.........
            ?>
                    <?php 
            echo $_smarty_tpl->getSubTemplate("common/select_status.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('input_name' => "tab_data[status]", 'id' => "elm_tab_data_" . (string) $_smarty_tpl->tpl_vars['html_id']->value, 'obj' => $_smarty_tpl->tpl_vars['tab_data']->value), 0);
            ?>

                <?php 
        }
        ?>

                <div class="control-group">
                    <label for="elm_show_in_popup_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" class="control-label"><?php 
        echo $_smarty_tpl->__("show_tab_in_popup");
        ?>
:</label>
                    <div class="controls">
                        <input type="hidden" name="tab_data[show_in_popup]" value="N" />
                        <input type="checkbox" name="tab_data[show_in_popup]" id="elm_show_in_popup_<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
        ?>
" <?php 
        if ($_smarty_tpl->tpl_vars['tab_data']->value['show_in_popup'] == "Y") {
            ?>
checked="checked"<?php 
        }
        ?>
 value="Y">
                    </div>
                </div>

                <?php 
        if ($_smarty_tpl->tpl_vars['tab_data']->value['is_primary'] !== 'Y' && fn_check_view_permissions("block_manager.update_block")) {
            ?>
                    <div class="control-group">
                        <label for="ajax_update_block_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="cm-required control-label"><?php 
            echo $_smarty_tpl->__("block");
            ?>
:</label>
                        <div class="controls clearfix help-inline-wrap">
                            <?php 
            echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('act' => "general", 'id' => "select_block_" . (string) $_smarty_tpl->tpl_vars['html_id']->value, 'text' => __("select_block"), 'link_text' => __("select_block"), 'href' => "block_manager.block_selection?extra_id=" . (string) $_smarty_tpl->tpl_vars['tab_data']->value['tab_id'] . "&on_product_tabs=1", 'action' => "block_manager.block_selection", 'opener_ajax_class' => "cm-ajax cm-ajax-force", 'content' => '', 'meta' => "pull-left"), 0);
            ?>

                            <br><br>
                            <div id="ajax_update_block_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
">
                                <input type="hidden" name="block_data[block_id]" id="ajax_update_block_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['html_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
" value="<?php 
            echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['tab_data']->value['block_id']) === null || $tmp === '' ? '' : $tmp, ENT_QUOTES, 'UTF-8');
            ?>
" />
                                <?php 
            if ($_smarty_tpl->tpl_vars['tab_data']->value['block_id'] > 0) {
                ?>
                                    <?php 
                echo $_smarty_tpl->getSubTemplate("views/block_manager/render/block.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('block_data' => $_smarty_tpl->tpl_vars['block_data']->value, 'external_render' => true, 'external_id' => $_smarty_tpl->tpl_vars['html_id']->value), 0);
                ?>
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:67,代码来源:f167dc8e4baf9d2cacfe7b94d86141f3dbe8f921.tygh.update.tpl.php


示例5: fn_dashboard_get_graphs_data

function fn_dashboard_get_graphs_data($time_from, $time_to, $is_day)
{
    $company_condition = fn_get_company_condition('?:orders.company_id');
    $graphs = array();
    $graph_tabs = array();
    $time_to = mktime(23, 59, 59, date("n", $time_to), date("j", $time_to), date("Y", $time_to));
    if (fn_check_view_permissions("sales_reports.view", "GET")) {
        $graphs['dashboard_statistics_sales_chart'] = array();
        $paid_statuses = array('P', 'C');
        for ($i = $time_from; $i <= $time_to; $i = $i + ($is_day ? 60 * 60 : SECONDS_IN_DAY)) {
            $date = !$is_day ? date("Y, (n-1), j", $i) : date("H", $i);
            if (empty($graphs['dashboard_statistics_sales_chart'][$date])) {
                $graphs['dashboard_statistics_sales_chart'][$date] = array('cur' => 0, 'prev' => 0);
            }
        }
        $sales = db_get_array("SELECT " . "?:orders.timestamp, " . "?:orders.total " . "FROM ?:orders " . "WHERE ?:orders.timestamp BETWEEN ?i AND ?i " . "AND ?:orders.status IN (?a) " . "?p ", $time_from, $time_to, $paid_statuses, $company_condition);
        foreach ($sales as $sale) {
            $date = !$is_day ? date("Y, (n-1), j", $sale['timestamp']) : date("H", $sale['timestamp']);
            $graphs['dashboard_statistics_sales_chart'][$date]['cur'] += $sale['total'];
        }
        $sales_prev = db_get_array("SELECT " . "?:orders.timestamp, " . "?:orders.total " . "FROM ?:orders " . "WHERE ?:orders.timestamp BETWEEN ?i AND ?i " . "AND ?:orders.status IN (?a) " . "?p ", $time_from - ($time_to - $time_from), $time_from, $paid_statuses, $company_condition);
        foreach ($sales_prev as $sale) {
            $date = $sale['timestamp'] + ($time_to - $time_from);
            $date = !$is_day ? date("Y, (n-1), j", $date) : date("H", $date);
            $graphs['dashboard_statistics_sales_chart'][$date]['prev'] += $sale['total'];
        }
        $graph_tabs['sales_chart'] = array('title' => __('sales'), 'js' => true);
    }
    fn_set_hook('dashboard_get_graphs_data', $time_from, $time_to, $graphs, $graph_tabs, $is_day);
    Registry::set('navigation.tabs', $graph_tabs);
    return $graphs;
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:32,代码来源:index.php


示例6: content_55e61f9b7722c4_18014718

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


示例7: fn_check_html_view_permissions

function fn_check_html_view_permissions($data, $request_method = '')
{
    return fn_check_view_permissions($data, $request_method, true);
}
开发者ID:arpad9,项目名称:bygmarket,代码行数:4,代码来源:fn.common.php


示例8: array

$_dispatch = CONTROLLER . '.' . MODE;
$tab_selected = false;
$groups = array();
$is = array();
// Get static section
foreach ($xml as $root => $item) {
    if (!isset($navigation['static'][$root])) {
        $navigation['static'][$root] = array();
    }
    $_cache[] = $root;
    if (!isset($is[$root])) {
        $is[$root] = 0;
    }
    foreach ($item->item as $it) {
        $_cache[] = (string) $it['title'];
        if (fn_check_view_permissions($it['dispatch'], 'GET', !empty($it['extra']) ? (string) $it['extra'] : '') == false) {
            continue;
        }
        if (isset($it['active_option'])) {
            $_op = Registry::get((string) $it['active_option']);
            if (empty($_op) || $_op === 'N') {
                continue;
            }
        }
        $is[$root]++;
        if (isset($it['links_group'])) {
            if (!isset($groups[(string) $it['links_group']])) {
                $groups[(string) $it['links_group']] = $is[$root];
            }
        }
        $navigation['static'][$root][(string) $it['title']] = array('href' => (string) $it['dispatch'] . (!empty($it['extra']) ? '?' . (string) $it['extra'] : ''), 'position' => isset($it['links_group']) ? $groups[(string) $it['links_group']] : $is[$root]);
开发者ID:diedsmiling,项目名称:busenika,代码行数:31,代码来源:init.php


示例9: content_55d80a94078d20_57240326

    function content_55d80a94078d20_57240326($_smarty_tpl)
    {
        fn_preload_lang_vars(array('view', 'edit'));
        if ($_smarty_tpl->tpl_vars['popup']->value) {
            ?>
    <?php 
            if ($_smarty_tpl->tpl_vars['skip_check_permissions']->value || fn_check_view_permissions($_smarty_tpl->tpl_vars['href']->value)) {
                ?>
        <?php 
                echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['id']->value, 'text' => $_smarty_tpl->tpl_vars['text']->value, 'link_text' => $_smarty_tpl->tpl_vars['link_text']->value, 'act' => $_smarty_tpl->tpl_vars['act']->value, 'href' => $_smarty_tpl->tpl_vars['href']->value, 'link_class' => $_smarty_tpl->tpl_vars['link_class']->value), 0);
                ?>

    <?php 
            }
        } elseif ($_smarty_tpl->tpl_vars['href']->value) {
            $_smarty_tpl->tpl_vars["_href"] = new Smarty_variable(fn_url($_smarty_tpl->tpl_vars['href']->value), null, 0);
            if (!fn_check_view_permissions($_smarty_tpl->tpl_vars['_href']->value)) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["link_text"] = new Smarty_variable($_smarty_tpl->__("view"), null, 0);
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['act']->value == "link") {
                ?>
    <a href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['_href']->value, ENT_QUOTES, 'UTF-8');
                ?>
" <?php 
                echo $_smarty_tpl->tpl_vars['link_extra']->value;
                ?>
 class="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['extra_class']->value, ENT_QUOTES, 'UTF-8');
                ?>
 cm-tooltip"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link_text']->value, ENT_QUOTES, 'UTF-8');
                ?>
</a>
<?php 
            } else {
                ?>
    <a href="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['_href']->value, ENT_QUOTES, 'UTF-8');
                ?>
" <?php 
                echo $_smarty_tpl->tpl_vars['link_extra']->value;
                ?>
 class="icon-edit <?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['extra_class']->value, ENT_QUOTES, 'UTF-8');
                ?>
 cm-tooltip" title="<?php 
                echo htmlspecialchars(($tmp = @$_smarty_tpl->tpl_vars['link_text']->value) === null || $tmp === '' ? $_smarty_tpl->__("edit") : $tmp, ENT_QUOTES, 'UTF-8');
                ?>
"></a>
<?php 
            }
            ?>

<?php 
        }
        if ($_smarty_tpl->tpl_vars['skip_check_permissions']->value || fn_check_view_permissions($_smarty_tpl->tpl_vars['tools_list']->value)) {
            ?>
    <?php 
            echo $_smarty_tpl->tpl_vars['tools_list']->value;
            ?>

<?php 
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:70,代码来源:47d74920f665b49caba6006363add4fad3e5fbd4.tygh.table_tools_list.tpl.php


示例10: content_55d5c758cdc0b3_78592989


//.........这里部分代码省略.........
                <th width="5%"><?php 
        echo $_smarty_tpl->__("quantity");
        ?>
</th>
            </tr>
        </thead>

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

        <?php 
        $_smarty_tpl->tpl_vars["product"] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars["product"]->_loop = false;
        $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['order_info']->value['products'];
        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;
            $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["product"]->key;
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['product']->value['shipment_amount'] > 0 && (!isset($_smarty_tpl->tpl_vars['product']->value['extra']['group_key']) || $_smarty_tpl->tpl_vars['product']->value['extra']['group_key'] == $_smarty_tpl->tpl_vars['group_key']->value)) {
                ?>
            <?php 
                $_smarty_tpl->tpl_vars["shipment_products"] = new Smarty_variable(true, null, 0);
                ?>

            <tr>
                <td>
                    <?php 
                $_smarty_tpl->tpl_vars['may_display_product_update_link'] = new Smarty_variable(fn_check_view_permissions("products.update"), null, 0);
                ?>
                    <?php 
                if ($_smarty_tpl->tpl_vars['may_display_product_update_link']->value && !$_smarty_tpl->tpl_vars['product']->value['deleted_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 ($tmp = @$_smarty_tpl->tpl_vars['product']->value['product']) === null || $tmp === '' ? $_smarty_tpl->__("deleted_product") : $tmp;
                if ($_smarty_tpl->tpl_vars['may_display_product_update_link']->value) {
                    ?>
</a><?php 
                }
                ?>
                    <?php 
                if ($_smarty_tpl->tpl_vars['product']->value['product_code']) {
                    ?>
<p><?php 
                    echo $_smarty_tpl->__("sku");
                    ?>
:&nbsp;<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_code'], ENT_QUOTES, 'UTF-8');
                    ?>
</p><?php 
                }
                ?>
                    <?php 
                if ($_smarty_tpl->tpl_vars['product']->value['product_options']) {
                    ?>
<div class="options-info"><?php 
                    echo $_smarty_tpl->getSubTemplate("common/options_info.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product_options' => $_smarty_tpl->tpl_vars['product']->value['product_options']), 0);
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:67,代码来源:c3b66e7101cf53aba5fbfcecb5b9c9e469e1334e.tygh.new_shipment.tpl.php


示例11: content_55d4e48ea38fd8_14328752


//.........这里部分代码省略.........
                ob_start();
                ?>
        <?php 
                $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "companies:list_extra_links"));
                $_block_repeat = true;
                echo smarty_block_hook(array('name' => "companies:list_extra_links"), null, $_smarty_tpl, $_block_repeat);
                while ($_block_repeat) {
                    ob_start();
                    ?>

            <li><?php 
                    smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "products.manage?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'], 'text' => __("view_vendor_products")));
                    ?>
</li>
            <li><?php 
                    smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "profiles.manage?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'], 'text' => __("view_vendor_users")));
                    ?>
</li>
            <li><?php 
                    smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "orders.manage?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'], 'text' => __("view_vendor_orders")));
                    ?>
</li>
            <?php 
                    if (!fn_allowed_for("ULTIMATE") && !$_smarty_tpl->tpl_vars['runtime']->value['company_id']) {
                        ?>
                <li><?php 
                        smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "companies.merge?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'], 'text' => __("merge")));
                        ?>
</li>
            <?php 
                    }
                    ?>
            <?php 
                    if (!$_smarty_tpl->tpl_vars['runtime']->value['company_id'] && fn_check_view_permissions("companies.update", "POST")) {
                        ?>
                <li class="divider"></li>
                <li><?php 
                        smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'href' => "companies.update?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'], 'text' => __("edit")));
                        ?>
</li>
                <li><?php 
                        smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'class' => "cm-confirm", 'href' => "companies.delete?company_id=" . (string) $_smarty_tpl->tpl_vars['company']->value['company_id'] . "&redirect_url=" . (string) $_smarty_tpl->tpl_vars['return_current_url']->value, 'text' => __("delete")));
                        ?>
</li>
            <?php 
                    }
                    ?>
        <?php 
                    $_block_content = ob_get_clean();
                    $_block_repeat = false;
                    echo smarty_block_hook(array('name' => "companies:list_extra_links"), $_block_content, $_smarty_tpl, $_block_repeat);
                }
                array_pop($_smarty_tpl->smarty->_tag_stack);
                ?>

        <?php 
                list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
                if (!empty($_capture_buffer)) {
                    if (isset($_capture_assign)) {
                        $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                    }
                    if (isset($_capture_append)) {
                        $_smarty_tpl->append($_capture_append, ob_get_contents());
                    }
                    Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
                } else {
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:67,代码来源:04772e6c2f51512fda91c0ee37d6ec2385175711.tygh.manage.tpl.php


示例12: content_55db8bdb55d9a2_72459790

    function content_55db8bdb55d9a2_72459790($_smarty_tpl)
    {
        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('editing_quick_menu_section', 'new_section', 'editing_quick_menu_link', 'new_link', 'quick_menu', 'remove_this_item', 'remove_this_item', 'add_link', 'show_menu_on_mouse_over', 'add_section', 'done', 'edit', 'name', 'link', 'position', 'use_current_link'));
        if (fn_check_view_permissions("tools.show_quick_menu")) {
            ?>

<?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';
                ?>
 type="text/javascript">
    Tygh.tr('editing_quick_menu_section', '<?php 
                echo strtr($_smarty_tpl->__("editing_quick_menu_section"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
');
    Tygh.tr('new_section', '<?php 
                echo strtr($_smarty_tpl->__("new_section"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
');
    Tygh.tr('editing_quick_menu_link', '<?php 
                echo strtr($_smarty_tpl->__("editing_quick_menu_link"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
');
    Tygh.tr('new_link', '<?php 
                echo strtr($_smarty_tpl->__("new_link"), array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\\/"));
                ?>
');
<?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 class="quick-menu-container" id="quick_menu">
    <div class="quick-menu <?php 
            if ($_smarty_tpl->tpl_vars['settings']->value['show_menu_mouseover'] == "Y") {
                ?>
 quick-menu-show-on-hover<?php 
            }
            ?>
">
        <a id="sw_quick_menu_content" class="quick-menu-link <?php 
            if ($_smarty_tpl->tpl_vars['edit_quick_menu']->value || $_smarty_tpl->tpl_vars['expand_quick_menu']->value) {
                ?>
open<?php 
            }
            ?>
 cm-combination"><?php 
            echo $_smarty_tpl->__("quick_menu");
            ?>
</a>

        <div id="quick_menu_content" class="quick-menu-content cm-popup-box<?php 
            if (!$_smarty_tpl->tpl_vars['edit_quick_menu']->value && !$_smarty_tpl->tpl_vars['expand_quick_menu']->value) {
                ?>
 hidden<?php 
            }
            ?>
">
        <?php 
            if ($_smarty_tpl->tpl_vars['edit_quick_menu']->value) {
                ?>
            <div class="menu-container">
                <table width="100%">
                    <?php 
                $_smarty_tpl->tpl_vars['sect'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['sect']->_loop = false;
                $_smarty_tpl->tpl_vars['sect_id'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['quick_menu']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['sect']->key => $_smarty_tpl->tpl_vars['sect']->value) {
                    $_smarty_tpl->tpl_vars['sect']->_loop = true;
                    $_smarty_tpl->tpl_vars['sect_id']->value = $_smarty_tpl->tpl_vars['sect']->key;
                    ?>
                        <tr data-ca-qm-item="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['sect_id']->value, ENT_QUOTES, 'UTF-8');
                    ?>
" data-ca-qm-parent-id="0"
                            data-ca-qm-position="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['sect']->value['section']['position'], ENT_QUOTES, 'UTF-8');
                    ?>
">
                            <td class="nowrap section-header">
                                <strong class="cm-qm-name"><?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['sect']->value['section']['name'], ENT_QUOTES, 'UTF-8');
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:7bccbc0c527f5a86e999112ef97d5ac4f369a70a.tygh.quick_menu.tpl.php


示例13: content_55cdb2acc11bd7_65040675

    function content_55cdb2acc11bd7_65040675($_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('approved', 'disapprove', 'not_approved', 'approve', 'approved', 'not_approved', 'delete', 'ip_address'));
        $_smarty_tpl->tpl_vars["current_redirect_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
        if ($_smarty_tpl->tpl_vars['_REQUEST']->value['dispatch'] == 'products.update') {
            ?>
	<?php 
            $_smarty_tpl->tpl_vars["post"] = new Smarty_variable(fn_get_post_attributes(fn_get_post_title($_smarty_tpl->tpl_vars['post']->value), $_smarty_tpl->tpl_vars['_REQUEST']->value['product_id']), null, 0);
            ?>
	<?php 
            $_smarty_tpl->tpl_vars["attributes"] = new Smarty_variable(fn_get_review_attributes_work($_smarty_tpl->tpl_vars['_REQUEST']->value['product_id']), null, 0);
        }
        ?>
<div class="summary">
    <input type="text" name="posts[<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['post_id'], ENT_QUOTES, 'UTF-8');
        ?>
][name]" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['name'], ENT_QUOTES, 'UTF-8');
        ?>
" size="40" class="input-hidden">
	<input type="text" name="posts[<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['post_id'], ENT_QUOTES, 'UTF-8');
        ?>
][message_title]" class="input-hidden" value="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['message_title'], ENT_QUOTES, 'UTF-8');
        ?>
" />
    <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "discussion:update_post"));
        $_block_repeat = true;
        echo smarty_block_hook(array('name' => "discussion:update_post"), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

        <?php 
            if ($_smarty_tpl->tpl_vars['type']->value == "C" || $_smarty_tpl->tpl_vars['type']->value == "B" || $_smarty_tpl->tpl_vars['type']->value == "R") {
                ?>
            <textarea name="posts[<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['post_id'], ENT_QUOTES, 'UTF-8');
                ?>
][message]" cols="80" rows="5" class="input-hidden"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['message'], ENT_QUOTES, 'UTF-8');
                ?>
</textarea>
        <?php 
            }
            ?>
    <?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_hook(array('name' => "discussion:update_post"), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>

</div>
<div class="tools">
    <div class="pull-left">
        <?php 
        if (fn_check_view_permissions("discussion.m_delete")) {
            ?>
            <input type="checkbox" name="delete_posts[<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['post_id'], ENT_QUOTES, 'UTF-8');
            ?>
]" id="delete_checkbox_<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['post_id'], ENT_QUOTES, 'UTF-8');
            ?>
"  class="pull-left cm-item" value="Y">
        <?php 
        }
        ?>
        <div class="hidden-tools pull-left cm-statuses">
            <?php 
        if (fn_check_view_permissions("discussion.update")) {
            ?>
                <span class="cm-status-a <?php 
            if ($_smarty_tpl->tpl_vars['post']->value['status'] == "D") {
                ?>
hidden<?php 
            }
            ?>
">
                    <span class="label label-success"><?php 
            echo $_smarty_tpl->__("approved");
            ?>
</span>
                    <a class="cm-status-switch icon-thumbs-down cm-tooltip" title="<?php 
            echo $_smarty_tpl->__("disapprove");
            ?>
" data-ca-status="D" data-ca-post-id="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['post']->value['post_id'], ENT_QUOTES, 'UTF-8');
            ?>
//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:f75adcad30d915deff13fdf616fb23921b29cbdf.tygh.post.tpl.php

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP fn_clear_cache函数代码示例发布时间:2022-05-15
下一篇:
PHP fn_check_permissions函数代码示例发布时间: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