Exemplo n.º 1
0
					<?php 
        $_from = $this->_tpl_vars['lastOrders'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $this->_foreach['lastOrders'] = array('total' => count($_from), 'iteration' => 0);
        if ($this->_foreach['lastOrders']['total'] > 0) {
            foreach ($_from as $this->_tpl_vars['order']) {
                $this->_foreach['lastOrders']['iteration']++;
                ?>
						<tr class="<?php 
                echo smarty_function_zebra(array('loop' => 'lastOrders'), $this);
                ?>
">
							<td><a href="<?php 
                echo smarty_function_backendOrderUrl(array('order' => $this->_tpl_vars['order']), $this);
                ?>
"><?php 
                echo is_array($_tmp = $this->_tpl_vars['order']['invoiceNumber']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
                ?>
</a></td>
							<td title="<?php 
                echo is_array($_tmp = $this->_tpl_vars['order']['formatted_dateCreated']['date_medium']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
                ?>
 <?php 
                echo is_array($_tmp = $this->_tpl_vars['order']['formatted_dateCreated']['time_short']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
                ?>
"><?php 
                echo is_array($_tmp = $this->_tpl_vars['order']['formatted_dateCreated']['date_short']) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp);
                ?>
</td>
Exemplo n.º 2
0
				);
			});
		}
	</script>
	';
?>


<?php 
echo '
<script type="text/javascript">
	Backend.CustomerOrder.GridFormatter.orderUrl = \'';
echo smarty_function_backendOrderUrl(array(), $this);
echo '\';
	Backend.User.OrderGridFormatter.orderUrl = \'';
echo smarty_function_backendOrderUrl(array(), $this);
echo '\';
';
?>


<?php 
if ($this->_tpl_vars['userID']) {
    ?>
	<?php 
    $this->assign('dataFormatter', "Backend.User.OrderGridFormatter");
    ?>
;
<?php 
} else {
    ?>