</tr> <?php $_from = $this->_tpl_vars['dataList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } if (count($_from)) { foreach ($_from as $this->_tpl_vars['list']) { ?> <tr> <td><?php echo $this->_tpl_vars['list']['Id']; ?> </td> <td><?php echo is_array($_tmp = $this->_tpl_vars['list']['content']) ? $this->_run_mod_handler('truncateutf8', true, $_tmp, 30) : smarty_modifier_truncateutf8($_tmp, 30); ?> </td> <td><?php echo $this->_tpl_vars['list']['create_time']; ?> </td> <td><?php echo $this->_tpl_vars['list']['word_quality_user_id']; ?> </td> <td><?php echo $this->_tpl_vars['list']['word_option_id']; ?> </td> <td><?php
<?php /* Smarty version 2.6.27, created on 2013-09-23 23:59:47 compiled from test1.tpl */ require_once SMARTY_CORE_DIR . 'core.load_plugins.php'; smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncateutf8', 'test1.tpl', 2, false))), $this); ?> <h1>utf8 test</h1> <?php echo is_array($_tmp = $this->_tpl_vars['test1']) ? $this->_run_mod_handler('truncateutf8', true, $_tmp, 10) : smarty_modifier_truncateutf8($_tmp, 10); ?>
<h1>spacify 使用</h1> <?php echo is_array($_tmp = 'abcd') ? $this->_run_mod_handler('spacify', true, $_tmp, "^_^") : smarty_modifier_spacify($_tmp, "^_^"); ?> <h1>strip 使用</h1> <?php echo is_array($_tmp = $this->_tpl_vars['dd']) ? $this->_run_mod_handler('strip', true, $_tmp) : smarty_modifier_strip($_tmp); ?> <h1>truncate 使用</h1> <?php echo is_array($_tmp = $this->_tpl_vars['ee']) ? $this->_run_mod_handler('truncate', true, $_tmp, 10) : smarty_modifier_truncate($_tmp, 10); ?> <h1>truncateutf8 使用</h1> <?php echo is_array($_tmp = $this->_tpl_vars['ff']) ? $this->_run_mod_handler('truncateutf8', true, $_tmp, 10, "...", true) : smarty_modifier_truncateutf8($_tmp, 10, "...", true); ?> <h1>wordwrap 使用</h1><?php echo is_array($_tmp = $this->_tpl_vars['gg']) ? $this->_run_mod_handler('wordwrap', true, $_tmp, 50, "<br/>") : smarty_modifier_wordwrap($_tmp, 50, "<br/>"); ?> <h1>自定义变量调节器 ismail 使用</h1> <?php echo is_array($_tmp = $this->_tpl_vars['hh']) ? $this->_run_mod_handler('ismail', true, $_tmp) : smarty_modifier_ismail($_tmp);