Subversion Repositories SmartDukaan

Rev

Rev 13637 | Rev 14098 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div class="container">
        <div class="row">
                <div class="col-lg-3">
                        <?php echo $this->Element('adminactions');?>
                </div>
                <div class="col-lg-9">
                        <h2><?php echo __('Sku Schemes'); ?></h2>
                        <table cellpadding="0" cellspacing="0">
                        <tr>
                                        <th><?php echo __('sku'); ?></th>
                                        <th><?php echo __('startDate'); ?></th>
                                        <th><?php echo __('endDate'); ?></th>
                                        <th><?php echo __('scheme_amount'); ?></th>
                                        <th class="actions"><?php echo __('Actions'); ?></th>
                        </tr>
                        <?php foreach ($skuschemes as $skuscheme): ?>
                        <?php $skuscheme = json_decode($skuscheme,1);?>
                        <tr>
                                <td><?php echo h($skuscheme['sku']); ?>&nbsp;</td>
                                <td><?php echo date('d-m-Y',$skuscheme['startDate']/1000); ?>&nbsp;</td>
                                <td><?php echo date('d-m-Y',$skuscheme['endDate']/1000); ?>&nbsp;</td>
                                <td><?php echo h($skuscheme['scheme_amount']); ?>&nbsp;</td>
                                <td class="actions">
                                        <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $skuscheme['_id']['$oid'])); ?>
                                        <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $skuscheme['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $skuscheme['_id']['$oid'])); ?>
                                </td>
                        </tr>
                <?php endforeach; ?>
                        </table>                        
                </div>
        </div>
</div>