Subversion Repositories SmartDukaan

Rev

Rev 17632 | 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">
                        <?php // $this->element('adminsearch');?>
                        <h2><?php echo __('Feature Deal Objects'); ?></h2>
                        <table class="table table-striped">
                        <tr>
                                        
                                        <th><?php echo ('Id'); ?></th>
                                        <th><?php echo ('Offer Id'); ?></th>
                                        <th><?php echo ('Start Date'); ?></th>
                                        <th><?php echo ('End Date'); ?></th>
                                        <th><?php echo ('Mobiles Rank'); ?></th>
                                        <th><?php echo ('Tablets Rank'); ?></th>
                                        <th><?php echo ('Accessories Rank'); ?></th>
                                        <th class="actions"><?php echo __('Actions'); ?></th>
                        </tr>
                        <?php foreach ($dealobjects as $dealobject): ?>
                        <tr>
                                <td><?php echo $dealobject['_id']; ?></td>
                                <?php if(isset($dealobject['offer_id'])){?>
                                        <td><?php echo $dealobject['offer_id']; ?></td>
                                <?php }else{?>                                          
                                <td><?php echo '0'; ?></td>
                                <?php } ?>
                                <td><?php echo date('d-m-Y H:i:s',($dealobject['startDate']/1000)); ?></td>
                                <td><?php echo date('d-m-Y H:i:s',($dealobject['endDate']/1000)); ?></td>
                                <?php if(array_key_exists('3', $dealobject['otherInfo'])){ ?>
                                        <td><?php echo $dealobject['otherInfo']['3']; ?></td> 
                                <?php } else { ?>
                                        <td><?php echo '-'; ?></td>
                                <?php } ?>
                                <?php if(array_key_exists('5', $dealobject['otherInfo'])){ ?>
                                        <td><?php echo $dealobject['otherInfo']['5']; ?></td>
                                <?php } else { ?>
                                        <td><?php echo '-'; ?></td>
                                <?php } ?>
                                <?php if(array_key_exists('6', $dealobject['otherInfo'])){ ?>
                                        <td><?php echo $dealobject['otherInfo']['6']; ?></td>
                                <?php } else { ?>
                                        <td><?php echo '-'; ?></td>
                                <?php } ?>
                                <td class="actions">
                                        <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $dealobject['_id']), null, __('Are you sure you want to delete # %s?', $dealobject['_id'])); ?>
                                </td>
                        </tr>
                <?php endforeach; ?>
                        </table>                        
                </div>
        </div>
        <nav>
          <ul class="pager">
                <?php if($page>1):?>
            <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
                <?php endif;?>
            <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
          </ul>
        </nav>
</div>