当前位置: 首页>>代码示例>>PHP>>正文


PHP smarty_template_function_btn函数代码示例

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


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

示例1: content_55ddef880a9bc1_22239504

    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 
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:14,代码来源:550aebdc38d4203f0207dc39d287b6d995edb99f.tygh.tools.post.tpl.php

示例2: content_55cdec34aa3fd8_65143827


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

示例3: content_55e61f9bd91919_70061537

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

示例4: content_55dc78e2952329_40439016


//.........这里部分代码省略.........
            ?>
                <?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 
开发者ID:AlanIsrael0,项目名称:market,代码行数:67,代码来源:ce643fce2dedd35764393a99f2fef7c853053823.tygh.object_group.tpl.php

示例5: content_55ccecb50542d2_46842350


//.........这里部分代码省略.........
                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');
            ?>
">&nbsp;<span>#<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_id']->value, ENT_QUOTES, 'UTF-8');
            ?>
</span>&nbsp;</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 
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:0551dd5af3f5f3e1f27d9309bb9caae107e46ae1.tygh.js.tpl.php

示例6: content_55db8f57a02b71_27074353


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

示例7: 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

示例8: content_55d2ecf6a248d2_80709672


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

示例9: content_55cdb2a772c4b0_94646970


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

示例10: content_55e32f3b991356_25240200


//.........这里部分代码省略.........
            ?>
</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());
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:67,代码来源:919328289b67bfd84dd18ae357e809386101de9a.tygh.view.tpl.php

示例11: content_55dc81ac7ddd16_50130614


//.........这里部分代码省略.........
 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") {
                        ?>
&nbsp;<span class="small-note">-&nbsp;[<?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();
开发者ID:AlanIsrael0,项目名称:market,代码行数:67,代码来源:4c238bffc06bad125f1597d203d95af2c49ec93b.tygh.categories_tree.tpl.php

示例12: content_55ccf5f2d76602_89796964


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

示例13: content_55d2ed05346cd0_99774659

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

示例14: content_55ccdf866478f4_26867985


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

示例15: content_55dde9283c2102_55284293


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


注:本文中的smarty_template_function_btn函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。