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


PHP smarty_function_cycle函数代码示例

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


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

示例1: smarty_function_list_classes

function smarty_function_list_classes($params, &$smarty)
{
    require_once $smarty->_get_plugin_filepath('function', 'cycle');
    $output = '';
    // get name
    if (!array_key_exists('name', $params) || empty($params['name'])) {
        $smarty->trigger_error("list_classes: missing 'name' parameter in '{$smarty->_smarty_debug_info[0]['filename']}'", E_USER_ERROR);
        return;
    } else {
        $name = $params['name'];
    }
    // get loop type
    if (!array_key_exists('type', $params)) {
        $type = 'foreach';
    } else {
        $type = $params['type'];
    }
    // get offset
    $offset = array_get($params, 'offset', 0);
    $values = $offset % 2 != 0 ? 'even,odd' : 'odd,even';
    // odd/even
    $output .= smarty_function_cycle(array_merge($params, array('values' => $values)), &$smarty);
    // first/last
    $loop = $smarty->_foreach[$name];
    if ($loop['iteration'] == 1) {
        $output .= ' first';
    } elseif ($loop['iteration'] == $loop['total']) {
        $output .= ' last';
    }
    return $output;
}
开发者ID:nemoDreamer,项目名称:endo,代码行数:31,代码来源:function.list_classes.php

示例2: content_55c863d7caf528_80989612

    function content_55c863d7caf528_80989612($_smarty_tpl)
    {
        if (!is_callable('smarty_function_text')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.cycle.php';
        }
        ?>
<div class="ow_wide ow_automargin">
<table class="ow_form ow_table_1 theme_controls">
   <tr class="ow_tr_first">
	   <th colspan="10" style="text-align: left;"><?php 
        echo smarty_function_text(array('key' => 'skadate+admin_license_info_cap'), $_smarty_tpl);
        ?>
</th>
   </tr>
   <?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['item']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['data']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
            $_smarty_tpl->tpl_vars['item']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
            ?>
	<tr class="<?php 
            echo smarty_function_cycle(array('values' => 'ow_alt1,ow_alt2'), $_smarty_tpl);
            ?>
">
      <td class="ow_label"><?php 
            echo $_smarty_tpl->tpl_vars['key']->value;
            ?>
</td>
      <td class="ow_value"><?php 
            echo $_smarty_tpl->tpl_vars['item']->value;
            ?>
</td>
   </tr>
   <?php 
        }
        ?>
   <tr class="<?php 
        echo smarty_function_cycle(array('values' => 'ow_alt1,ow_alt2'), $_smarty_tpl);
        ?>
 ow_tr_last">
       <td colspan="2">    
           <?php 
        echo smarty_function_text(array('key' => 'skadate+admin_bottom_text'), $_smarty_tpl);
        ?>

       </td>
   </tr>
   <tr class="ow_tr_delimiter"><td></td></tr>
</table>
</div><?php 
    }
开发者ID:hardikamutech,项目名称:hammu,代码行数:60,代码来源:536ae59de8c6d3ef59dd950282b217a423b67e27.file.admin_settings.html.php

示例3: content_56619e62af08a5_21631663

    function content_56619e62af08a5_21631663($_smarty_tpl)
    {
        if (!is_callable('smarty_function_cycle')) {
            require_once 'C:\\xampp\\htdocs\\smarty\\libs\\plugins\\function.cycle.php';
        }
        $_smarty_tpl->properties['nocache_hash'] = '954756619e62a9a999_91817464';
        ?>
<table>
    <?php 
        $_from = $_smarty_tpl->tpl_vars['names']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $foreach_name_Sav = $_smarty_tpl->tpl_vars['name'];
            ?>
        <tr bgcolor="<?php 
            echo smarty_function_cycle(array('values' => "#eeeeee,#dddddd"), $_smarty_tpl);
            ?>
"><td><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</td></tr>
    <?php 
            $_smarty_tpl->tpl_vars['name'] = $foreach_name_Sav;
        }
        ?>
</table>

<table>
    <?php 
        $_from = $_smarty_tpl->tpl_vars['users']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['user']->_loop = false;
        foreach ($_from as $_smarty_tpl->tpl_vars['user']->value) {
            $_smarty_tpl->tpl_vars['user']->_loop = true;
            $foreach_user_Sav = $_smarty_tpl->tpl_vars['user'];
            ?>
        <tr bgcolor="<?php 
            echo smarty_function_cycle(array('values' => "#aaaaaa,#bbbbbb"), $_smarty_tpl);
            ?>
"><td><?php 
            echo $_smarty_tpl->tpl_vars['user']->value['name'];
            ?>
</td><td><?php 
            echo $_smarty_tpl->tpl_vars['user']->value['phone'];
            ?>
</td></tr>
    <?php 
            $_smarty_tpl->tpl_vars['user'] = $foreach_user_Sav;
        }
        ?>
</table><?php 
    }
开发者ID:SUDIP2222,项目名称:Smarty-Crash-Course,代码行数:60,代码来源:7f20e36b33731c1443783c6f9a8fd2bbf3ec7103_0.file.index.tpl.php

示例4: content_5653520ae28ee2_69194943

    function content_5653520ae28ee2_69194943($_smarty_tpl)
    {
        if (!is_callable('smarty_function_cycle')) {
            include 'C:\\xampp\\htdocs\\flowershop\\tools\\smarty\\plugins\\function.cycle.php';
        }
        if (count($_smarty_tpl->tpl_vars['ad_modules']->value['not_installed'])) {
            ?>
<div class="bootstrap panel">
	<h3><i class="icon-certificate"></i> <?php 
            echo smartyTranslate(array('s' => 'You might be interested in'), $_smarty_tpl);
            ?>
</h3>
	<div class="row">
		<table id="tab_modules_list_not_installed" class="table">
			<?php 
            $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['module']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['ad_modules']->value['not_installed'];
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
                $_smarty_tpl->tpl_vars['module']->_loop = true;
                ?>
				<?php 
                ob_start();
                echo smarty_function_cycle(array('values' => ",rowalt"), $_smarty_tpl);
                $_tmp2 = ob_get_clean();
                echo $_smarty_tpl->getSubTemplate('controllers/modules/tab_module_line.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class_row' => $_tmp2), 0);
                ?>

			<?php 
            }
            ?>
		</table>
	</div>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$('.fancybox-quick-view').fancybox({
			type: 'ajax',
			autoDimensions: false,
			autoSize: false,
			width: 600,
			height: 'auto',
			helpers: {
				overlay: {
					locked: false
				}
			}
		});
	});
</script>
<?php 
        }
        ?>

<?php 
    }
开发者ID:nagyarpad,项目名称:flowershop,代码行数:59,代码来源:f3957001326f59a73361a20701daffcf4958df9d.file.ad_bar.tpl.php

示例5: callBlock

        public function callBlock(Smarty_Internal_Template $_smarty_tpl)
        {
            ?>

    <a href="/user/create.html">Create</a>
    <h1>User List</h1>
    <table>
        <tr>
            <th>UserName</th>
            <th>Email</th>
            <th>-</th>
        </tr>
        <?php 
            $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['users']->value, 'user', false, 'key');
            foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['user']->value) {
                $_smarty_tpl->tpl_vars['user']->_loop = true;
                $__foreach_user_0_saved = $_smarty_tpl->tpl_vars['user'];
                ?>
            <tr style="background: <?php 
                echo smarty_function_cycle(array('values' => 'ligthblue,azure'), $_smarty_tpl);
                ?>
">
                <td><?php 
                echo $_smarty_tpl->tpl_vars['user']->value['usr_name'];
                ?>
</td>
                <td><?php 
                echo $_smarty_tpl->tpl_vars['user']->value['usr_email'];
                ?>
</td>
                <td>
                    <a href="edit/<?php 
                echo $_smarty_tpl->tpl_vars['user']->value['usr_id'];
                ?>
.html">Edit</a>
                    <a href="javascript:void(0)" onclick="ajaxDelete('user','default',<?php 
                echo $_smarty_tpl->tpl_vars['user']->value['usr_id'];
                ?>
)" id="<?php 
                echo $_smarty_tpl->tpl_vars['user']->value['usr_id'];
                ?>
">Delete</a>
                </td>
            </tr>
        <?php 
                $_smarty_tpl->tpl_vars['user'] = $__foreach_user_0_saved;
            }
            $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
            ?>
    </table>
<?php 
        }
开发者ID:sochea09,项目名称:pdo-smarty,代码行数:52,代码来源:3db0d8842d4004b66e81460b55e2c09d78772030_0.file.default.tpl.php

示例6: content_4fba91b69f7552_58849611

    function content_4fba91b69f7552_58849611($_smarty_tpl)
    {
        if (!is_callable('smarty_function_cycle')) {
            include '/home/content/94/2585794/html/Modules/DOM/uber_src/server/Smarty-3.1.8/libs/plugins/function.cycle.php';
        }
        ?>
hello

</br>


<table>
<?php 
        $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['p']->_loop = false;
        $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['people']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value) {
            $_smarty_tpl->tpl_vars['p']->_loop = true;
            $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['p']->key;
            ?>
<tr style= "background: <?php 
            echo smarty_function_cycle(array('values' => 'silver, gray'), $_smarty_tpl);
            ?>
">
<td><?php 
            echo $_smarty_tpl->tpl_vars['k']->value;
            ?>
 </td>
<td><?php 
            echo $_smarty_tpl->tpl_vars['p']->value;
            ?>
 </td>

</tr>
<?php 
        }
        ?>
</table><?php 
    }
开发者ID:awwthentic1234,项目名称:hey,代码行数:43,代码来源:0580d4090148eed50d42a0b7012e5a9ff1ec7df5.file.index.tpl.php

示例7: smarty_template_function_displayReason

            function smarty_template_function_displayReason($_smarty_tpl, $params)
            {
                $saved_tpl_vars = $_smarty_tpl->tpl_vars;
                foreach ($_smarty_tpl->smarty->template_functions['displayReason']['parameter'] as $key => $value) {
                    $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);
                }
                foreach ($params as $key => $value) {
                    $_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);
                }
                ?>
	<?php 
                echo smarty_function_cycle(array('values' => 'row0,row1', 'assign' => 'rowCss'), $_smarty_tpl);
                ?>

	<li class="<?php 
                echo $_smarty_tpl->tpl_vars['rowCss']->value;
                ?>
" reasonId="<?php 
                echo $_smarty_tpl->tpl_vars['reason']->value->Id();
                ?>
">
		<span class="reason-description"><?php 
                echo $_smarty_tpl->tpl_vars['reason']->value->Description();
                ?>
</span>
		<div style="float:right">
			<a href="#" class="update edit"><?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Edit'), $_smarty_tpl);
                ?>
</a> | <a href="#" class="update delete"><?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Delete'), $_smarty_tpl);
                ?>
</a>
		</div>
	</li>
<?php 
                $_smarty_tpl->tpl_vars = $saved_tpl_vars;
                foreach (Smarty::$global_tpl_vars as $key => $value) {
                    if (!isset($_smarty_tpl->tpl_vars[$key])) {
                        $_smarty_tpl->tpl_vars[$key] = $value;
                    }
                }
            }
开发者ID:ViraSoftware,项目名称:booked,代码行数:43,代码来源:739ac45e60e72a146979d33eabd7d38fd1b36b70.file.manage_resource_status.tpl.php

示例8: content_55a3c4e5ac6d98_58101968

    function content_55a3c4e5ac6d98_58101968($_smarty_tpl)
    {
        if (!is_callable('smarty_function_cycle')) {
            include '/opt/lampp/htdocs/booked/lib/Common/../../lib/external/Smarty/plugins/function.cycle.php';
        }
        ?>

<h3><?php 
        echo count($_smarty_tpl->tpl_vars['Attributes']->value);
        ?>
 <?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Attributes'), $_smarty_tpl);
        ?>
</h3>
<?php 
        if (count($_smarty_tpl->tpl_vars['Attributes']->value) > 0) {
            ?>
<table class="list">
	<tr>
		<th>ID</th>
		<th><?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'SortOrder'), $_smarty_tpl);
            ?>
</th>
		<th><?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'DisplayLabel'), $_smarty_tpl);
            ?>
</th>
		<th><?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Type'), $_smarty_tpl);
            ?>
</th>
		<th><?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Required'), $_smarty_tpl);
            ?>
</th>
		<th><?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'AppliesTo'), $_smarty_tpl);
            ?>
</th>
		<th><?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'ValidationExpression'), $_smarty_tpl);
            ?>
</th>
		<th><?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'PossibleValues'), $_smarty_tpl);
            ?>
</th>
		<th><?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Delete'), $_smarty_tpl);
            ?>
</th>
	</tr>
	<?php 
            $_smarty_tpl->tpl_vars['attribute'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['attribute']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['Attributes']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['attribute']->key => $_smarty_tpl->tpl_vars['attribute']->value) {
                $_smarty_tpl->tpl_vars['attribute']->_loop = true;
                ?>
		<?php 
                echo smarty_function_cycle(array('values' => 'row0,row1', 'assign' => 'rowCss'), $_smarty_tpl);
                ?>

		<tr class="<?php 
                echo $_smarty_tpl->tpl_vars['rowCss']->value;
                ?>
 editable" attributeId="<?php 
                echo $_smarty_tpl->tpl_vars['attribute']->value->Id();
                ?>
">
			<td><?php 
                echo $_smarty_tpl->tpl_vars['attribute']->value->Id();
                ?>
</td>
			<td><?php 
                echo $_smarty_tpl->tpl_vars['attribute']->value->SortOrder();
                ?>
</td>
			<td><?php 
                echo $_smarty_tpl->tpl_vars['attribute']->value->Label();
                ?>
</td>
			<td><?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => $_smarty_tpl->tpl_vars['Types']->value[$_smarty_tpl->tpl_vars['attribute']->value->Type()]), $_smarty_tpl);
                ?>
</td>
			<td><?php 
                if ($_smarty_tpl->tpl_vars['attribute']->value->Required()) {
                    ?>
				<?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Yes'), $_smarty_tpl);
                    ?>

				<?php 
                } else {
                    ?>
//.........这里部分代码省略.........
开发者ID:eEksperimenti,项目名称:Booked,代码行数:101,代码来源:9d496c3ac1a1bde30fe447ba1c2c4148a81b7c09.file.attribute-list.tpl.php

示例9: smarty_core_load_plugins

/* Smarty version 2.6.28, created on 2015-08-04 04:56:09
   compiled from db:system_block_topusers.html */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'db:system_block_topusers.html', 3, false))), $this);
?>
<table cellspacing="1" class="outer">
  <?php 
$_from = $this->_tpl_vars['block']['users'];
if (!is_array($_from) && !is_object($_from)) {
    settype($_from, 'array');
}
if (count($_from)) {
    foreach ($_from as $this->_tpl_vars['user']) {
        ?>
  <tr class="<?php 
        echo smarty_function_cycle(array('values' => 'even,odd'), $this);
        ?>
 alignmiddle">
    <td><?php 
        echo $this->_tpl_vars['user']['rank'];
        ?>
</td>
    <td class="txtcenter">
      <?php 
        if ($this->_tpl_vars['user']['avatar'] != "") {
            ?>
      <img style="width:32px;" src="<?php 
            echo $this->_tpl_vars['user']['avatar'];
            ?>
" alt="<?php 
            echo $this->_tpl_vars['user']['name'];
开发者ID:RanLee,项目名称:Xoops_demo,代码行数:31,代码来源:57bef4eb-system-default-default^%%80^80F^80F66192%%db%3Asystem_block_topusers.html.php

示例10: content_569a531e198cc4_29171742

    function content_569a531e198cc4_29171742($_smarty_tpl)
    {
        if (!is_callable('smarty_function_counter')) {
            include 'Z:\\domains\\localhost\\prestashop\\tools\\smarty\\plugins\\function.counter.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include 'Z:\\domains\\localhost\\prestashop\\tools\\smarty\\plugins\\function.cycle.php';
        }
        ?>
<div class="panel">
	<h3>
		<i class="icon-list-ul"></i>
		<?php 
        if (isset($_smarty_tpl->tpl_vars['panel_title']->value)) {
            echo htmlspecialchars($_smarty_tpl->tpl_vars['panel_title']->value, ENT_QUOTES, 'UTF-8', true);
        } else {
            echo smartyTranslate(array('s' => 'Modules list'), $_smarty_tpl);
        }
        ?>
	</h3>
	<div class="modules_list_container_tab row">
		<div class="col-lg-12">
			<?php 
        if (count($_smarty_tpl->tpl_vars['modules_list']->value)) {
            ?>
				<table class="table">
					<?php 
            echo smarty_function_counter(array('start' => 1, 'assign' => "count"), $_smarty_tpl);
            ?>

						<?php 
            $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['module']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['modules_list']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
                $_smarty_tpl->tpl_vars['module']->_loop = true;
                ?>
							<?php 
                ob_start();
                echo smarty_function_cycle(array('values' => ",row alt"), $_smarty_tpl);
                $_tmp22 = ob_get_clean();
                echo $_smarty_tpl->getSubTemplate('controllers/modules/tab_module_line.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class_row' => $_tmp22), 0);
                ?>

						<?php 
                echo smarty_function_counter(array(), $_smarty_tpl);
                ?>

					<?php 
            }
            ?>
				</table>
				<?php 
            if ($_smarty_tpl->tpl_vars['controller_name']->value == 'AdminPayment' && isset($_smarty_tpl->tpl_vars['view_all']->value)) {
                ?>
					<div class="panel-footer">
						<div class="col-lg-4 col-lg-offset-4">
							<a class="btn btn-default btn-block" href="index.php?tab=AdminModules&amp;token=<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['getAdminToken'][0][0]->getAdminTokenLiteSmarty(array('tab' => 'AdminModules'), $_smarty_tpl);
                ?>
&amp;filterCategory=payments_gateways">
								<i class="process-icon-payment"></i>
								<?php 
                echo smartyTranslate(array('s' => 'View all available payments solutions'), $_smarty_tpl);
                ?>

							</a>
						</div>
					</div>
				<?php 
            }
            ?>
			<?php 
        } else {
            ?>
				<table class="table">
					<tr>
						<td>
							<div class="alert alert-warning">
							<?php 
            if ($_smarty_tpl->tpl_vars['controller_name']->value == 'AdminPayment') {
                ?>
							<?php 
                echo smartyTranslate(array('s' => 'It seems there are no recommended payment solutions for your country.'), $_smarty_tpl);
                ?>
<br />
							<a class="_blank" href="https://www.prestashop.com/en/contact-us"><?php 
                echo smartyTranslate(array('s' => 'Do you think there should be one? Let us know!'), $_smarty_tpl);
                ?>
</a>
							<?php 
            } else {
                echo smartyTranslate(array('s' => 'No modules available in this section.'), $_smarty_tpl);
            }
            ?>
</div>
						</td>
//.........这里部分代码省略.........
开发者ID:HellbringerOnline,项目名称:prestashop,代码行数:101,代码来源:31f4d55f7b04c15b4afab215677ed6d497dbcc0d.file.list.tpl.php

示例11: smarty_function_cycle

    for ($this->_sections['func']['index'] = $this->_sections['func']['start'], $this->_sections['func']['iteration'] = 1; $this->_sections['func']['iteration'] <= $this->_sections['func']['total']; $this->_sections['func']['index'] += $this->_sections['func']['step'], $this->_sections['func']['iteration']++) {
        $this->_sections['func']['rownum'] = $this->_sections['func']['iteration'];
        $this->_sections['func']['index_prev'] = $this->_sections['func']['index'] - $this->_sections['func']['step'];
        $this->_sections['func']['index_next'] = $this->_sections['func']['index'] + $this->_sections['func']['step'];
        $this->_sections['func']['first'] = $this->_sections['func']['iteration'] == 1;
        $this->_sections['func']['last'] = $this->_sections['func']['iteration'] == $this->_sections['func']['total'];
        ?>
<a name="<?php 
        echo $this->_tpl_vars['functions'][$this->_sections['func']['index']]['function_dest'];
        ?>
" id="<?php 
        echo $this->_tpl_vars['functions'][$this->_sections['func']['index']]['function_dest'];
        ?>
"><!-- --></a>
<div class="<?php 
        echo smarty_function_cycle(array('values' => "evenrow,oddrow"), $this);
        ?>
">
	
	<div>
		<span class="method-title"><?php 
        echo $this->_tpl_vars['functions'][$this->_sections['func']['index']]['function_name'];
        ?>
</span> (line <span class="line-number"><?php 
        if ($this->_tpl_vars['functions'][$this->_sections['func']['index']]['slink']) {
            echo $this->_tpl_vars['functions'][$this->_sections['func']['index']]['slink'];
        } else {
            echo $this->_tpl_vars['functions'][$this->_sections['func']['index']]['line_number'];
        }
        ?>
</span>)
开发者ID:laiello,项目名称:lion-framework,代码行数:31,代码来源:%%146^%%146134639^function.tpl.php

示例12: settype

      <div class="product">
        <div class="productmain">
          <ul class="ui-grid-b">
          <?php 
if ($this->_tpl_vars['channel_focus_contents']) {
    ?>
			<?php 
    $_from = $this->_tpl_vars['channel_focus_contents'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['a']) {
            ?>
          			<li class="ui-block-<?php 
            echo smarty_function_cycle(array('values' => "a,b,c"), $this);
            ?>
"><a href="<?php 
            echo $this->_tpl_vars['a']['link'];
            ?>
"  title="<?php 
            echo $this->_tpl_vars['a']['title'];
            ?>
">
                    <span><img src="<?php 
            echo $this->_tpl_vars['a']['thumb'];
            ?>
" /></span>
            <h2 style="width:130px;"><?php 
            echo $this->_tpl_vars['a']['title'];
            ?>
开发者ID:royalwang,项目名称:saivi,代码行数:31,代码来源:B4FDCF3A%%index.html.php

示例13: content_55bf501bb15b66_16214593

    function content_55bf501bb15b66_16214593($_smarty_tpl)
    {
        if (!is_callable('smarty_function_cycle')) {
            include '/var/www/html/remote/lib/Common/../../lib/external/Smarty/plugins/function.cycle.php';
        }
        echo $_smarty_tpl->getSubTemplate('globalheader.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('cssFiles' => "css/reports.css,scripts/js/jqplot/jquery.jqplot.min.css"), 0);
        ?>


<h1><?php 
        echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'MySavedReports'), $_smarty_tpl);
        ?>
 (<span id="reportCount"><?php 
        echo count($_smarty_tpl->tpl_vars['ReportList']->value);
        ?>
</span>)</h1>
<?php 
        if (count($_smarty_tpl->tpl_vars['ReportList']->value) == 0) {
            ?>
<h2 class="no-data" style="text-align: center;"><?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'NoSavedReports'), $_smarty_tpl);
            ?>
</h2><a
		href="<?php 
            echo $_smarty_tpl->tpl_vars['Path']->value;
            ?>
reports/<?php 
            echo Pages::REPORTS_GENERATE;
            ?>
"><?php 
            echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'GenerateReport'), $_smarty_tpl);
            ?>
</a>
	<?php 
        } else {
            ?>
<div id="report-list">
	<ul>
		<?php 
            $_smarty_tpl->tpl_vars['report'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['report']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['ReportList']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['report']->key => $_smarty_tpl->tpl_vars['report']->value) {
                $_smarty_tpl->tpl_vars['report']->_loop = true;
                ?>
			<?php 
                echo smarty_function_cycle(array('values' => ',alt', 'assign' => 'rowCss'), $_smarty_tpl);
                ?>

			<li reportId="<?php 
                echo $_smarty_tpl->tpl_vars['report']->value->Id();
                ?>
" class="<?php 
                echo $_smarty_tpl->tpl_vars['rowCss']->value;
                ?>
"><span class="report-title"><?php 
                echo ($tmp = @$_smarty_tpl->tpl_vars['report']->value->ReportName()) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['untitled']->value : $tmp;
                ?>
</span>
				<span class="right"><span class="report-created-date"><?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['format_date'][0][0]->FormatDate(array('date' => $_smarty_tpl->tpl_vars['report']->value->DateCreated()), $_smarty_tpl);
                ?>
</span>

				<span class="report-action"><a href="#"
													 class="runNow report"><?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "control.png"), $_smarty_tpl);
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'RunReport'), $_smarty_tpl);
                ?>
</a></span>
				<span class="report-action"><a href="#"
													 class="emailNow report"><?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "mail-send.png"), $_smarty_tpl);
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'EmailReport'), $_smarty_tpl);
                ?>
</a></span>
				<span class="report-action"><a href="#"
													 class="delete report"><?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['html_image'][0][0]->PrintImage(array('src' => "cross-button.png"), $_smarty_tpl);
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0][0]->SmartyTranslate(array('key' => 'Delete'), $_smarty_tpl);
                ?>
</a></span>
				</span>
			


			</li>
		<?php 
            }
            ?>
	</ul>
</div>
<?php 
        }
        ?>


//.........这里部分代码省略.........
开发者ID:eEksperimenti,项目名称:Booked,代码行数:101,代码来源:c4f8597ccc77f78bac605d022bdfab49ba86f760.file.saved-reports.tpl.php

示例14: content_55d575f316fe42_13931440

    function content_55d575f316fe42_13931440($_smarty_tpl)
    {
        if (!is_callable('smarty_block_form')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/block.form.php';
        }
        if (!is_callable('smarty_function_text')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.text.php';
        }
        if (!is_callable('smarty_function_cycle')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_libraries/smarty3/plugins/function.cycle.php';
        }
        if (!is_callable('smarty_function_label')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.label.php';
        }
        if (!is_callable('smarty_function_input')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.input.php';
        }
        if (!is_callable('smarty_function_error')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.error.php';
        }
        if (!is_callable('smarty_function_desc')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.desc.php';
        }
        if (!is_callable('smarty_function_submit')) {
            include '/homepages/11/d222791150/htdocs/Hammulandingpage/hammu/ow_smarty/plugin/function.submit.php';
        }
        echo $_smarty_tpl->tpl_vars['menu']->value;
        ?>

<?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('form', array('name' => 'input_settings'));
        $_block_repeat = true;
        echo smarty_block_form(array('name' => 'input_settings'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            ?>

    <table class="ow_table_1 ow_form">
        <tr class="ow_tr_first">
            <th class="ow_name ow_txtleft" colspan="3">
                <span class="ow_section_icon ow_ic_file"><?php 
            echo smarty_function_text(array('key' => 'admin+user_input_settings_user_content'), $_smarty_tpl);
            ?>
</span>
            </th>
        </tr>
        <tr class="<?php 
            echo smarty_function_cycle(array('name' => "user_input", 'values' => "ow_alt1,ow_alt2"), $_smarty_tpl);
            ?>
">
            <td class="ow_label" style="width: 30%;"><?php 
            echo smarty_function_label(array('name' => 'user_custom_html'), $_smarty_tpl);
            ?>
</td>
            <td class="ow_value"><?php 
            echo smarty_function_input(array('name' => 'user_custom_html'), $_smarty_tpl);
            ?>
 <?php 
            echo smarty_function_error(array('name' => 'user_custom_html'), $_smarty_tpl);
            ?>
</td>
            <td class="ow_desc"><?php 
            echo smarty_function_desc(array('name' => 'user_custom_html'), $_smarty_tpl);
            ?>
</td>
        </tr>
        <tr class="<?php 
            echo smarty_function_cycle(array('name' => "user_input", 'values' => "ow_alt1,ow_alt2"), $_smarty_tpl);
            ?>
 ow_tr_last">
            <td class="ow_label"><?php 
            echo smarty_function_label(array('name' => 'user_rich_media'), $_smarty_tpl);
            ?>
</td>
            <td class="ow_value"><?php 
            echo smarty_function_input(array('name' => 'user_rich_media'), $_smarty_tpl);
            ?>
 <?php 
            echo smarty_function_error(array('name' => 'user_rich_media'), $_smarty_tpl);
            ?>
</td>
            <td class="ow_desc"><?php 
            echo smarty_function_desc(array('name' => 'user_rich_media'), $_smarty_tpl);
            ?>
</td>
        </tr>
        <tr class="ow_tr_delimiter"><td></td></tr>
        <tr class="ow_tr_first">
            <th class="ow_name ow_txtleft" colspan="3">
                <span class="ow_section_icon ow_ic_comment"><?php 
            echo smarty_function_text(array('key' => 'admin+user_input_settings_comments'), $_smarty_tpl);
            ?>
</span>
            </th>
        </tr>
        <tr class="<?php 
            echo smarty_function_cycle(array('name' => "comments", 'values' => "ow_alt1,ow_alt2"), $_smarty_tpl);
            ?>
 ow_tr_last">
            <td class="ow_label"><?php 
//.........这里部分代码省略.........
开发者ID:hardikamutech,项目名称:hammu,代码行数:101,代码来源:df126c90ad113ea2a7b8930a725a08a5ddecc24f.file.settings_user_input.html.php

示例15: content_561f478adbbc49_09171227

    function content_561f478adbbc49_09171227($_smarty_tpl)
    {
        if (!is_callable('smarty_function_cycle')) {
            include 'C:\\xampp\\htdocs\\mangwale\\tools\\smarty\\plugins\\function.cycle.php';
        }
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['tab_modules_list']->value) && !empty($_smarty_tpl->tpl_vars['tab_modules_list']->value)) {
            ?>
	<div class="row row-margin-bottom">
		<div class="col-lg-12">
			<ul class="nav nav-pills">
				<?php 
            if (count($_smarty_tpl->tpl_vars['tab_modules_list']->value['not_installed'])) {
                ?>
					<li class="active">
						<a href="#tab_modules_list_not_installed" data-toggle="tab">
							<?php 
                echo smartyTranslate(array('s' => 'Not Installed'), $_smarty_tpl);
                ?>

						</a>
					</li>
				<?php 
            }
            ?>
				<?php 
            if (count($_smarty_tpl->tpl_vars['tab_modules_list']->value['installed'])) {
                ?>
					<li <?php 
                if (count($_smarty_tpl->tpl_vars['tab_modules_list']->value['not_installed']) == 0) {
                    ?>
class="active"<?php 
                }
                ?>
>
						<a href="#tab_modules_list_installed" data-toggle="tab">
							<?php 
                echo smartyTranslate(array('s' => 'Installed'), $_smarty_tpl);
                ?>

						</a>
					</li>
				<?php 
            }
            ?>
			</ul>
		</div>
	</div>
	<div id="modules_list_container_content" class="tab-content modal-content-overflow">
		<?php 
            if (count($_smarty_tpl->tpl_vars['tab_modules_list']->value['not_installed'])) {
                ?>
		<div class="tab-pane active" id="tab_modules_list_not_installed">
			<table id="tab_modules_list_not_installed" class="table">
				<?php 
                $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['module']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['tab_modules_list']->value['not_installed'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
                    $_smarty_tpl->tpl_vars['module']->_loop = true;
                    ?>
					<?php 
                    ob_start();
                    echo smarty_function_cycle(array('values' => ",rowalt"), $_smarty_tpl);
                    $_tmp4 = ob_get_clean();
                    echo $_smarty_tpl->getSubTemplate('controllers/modules/tab_module_line.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('class_row' => $_tmp4), 0);
                    ?>

				<?php 
                }
                ?>
			</table>
		</div>
		<?php 
            }
            ?>
		<?php 
            if (count($_smarty_tpl->tpl_vars['tab_modules_list']->value['installed'])) {
                ?>
		<div class="tab-pane <?php 
                if (count($_smarty_tpl->tpl_vars['tab_modules_list']->value['not_installed']) == 0) {
                    ?>
active<?php 
                }
                ?>
" id="tab_modules_list_installed">
			<table id="tab_modules_list_installed" class="table">
				<?php 
                $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['module']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['tab_modules_list']->value['installed'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
//.........这里部分代码省略.........
开发者ID:ravigupta9363,项目名称:mangwale,代码行数:101,代码来源:15e6984b1e95bb1ec93d12406e9b74011a56a8fe.file.tab_modules_list.tpl.php


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