Subversion Repositories SmartDukaan

Rev

Rev 16755 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<style>
td.cell > div { width: 100%; height: 100%; overflow:scroll; }
td.cell { height: 100px; }
</style>
<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 __('App Offers'); ?></h2>
                        <?php echo $this->element('appsearch');?>
                        <?php echo $this->element('appfilter');?>
                        <table class="table table-striped">
                        <tr>
                                        <th><?php echo $this->Paginator->sort('id'); ?></th>
                                        <th><?php echo $this->Paginator->sort('affiliate_id'); ?></th>
                                        <th><?php echo $this->Paginator->sort('appmaster_id'); ?></th>
                                        <th><?php echo $this->Paginator->sort('affiliate_offer_id'); ?></th>
                                        <th><?php echo $this->Paginator->sort('offer_price'); ?></th>
                                        <th><?php echo $this->Paginator->sort('override_payout'); ?></th>
                                        <th><?php echo $this->Paginator->sort('overriden_payout'); ?></th>
                                        <th><?php echo $this->Paginator->sort('user_payout'); ?></th>
                                        <th><?php echo $this->Paginator->sort('app_name'); ?></th>
                                        <th><?php echo $this->Paginator->sort('promoImage'); ?></th>
                                        <th><?php echo $this->Paginator->sort('description'); ?></th>
                                        <th><?php echo $this->Paginator->sort('shortDescription'); ?></th>
                                        <!-- <th><?php echo $this->Paginator->sort('finalShortDescription'); ?></th> -->
                                        <th><?php echo $this->Paginator->sort('longDescription'); ?></th>
                                        <!-- <th><?php echo $this->Paginator->sort('finalLongDescription'); ?></th> -->
                                        <th><?php echo $this->Paginator->sort('link'); ?></th>
                                        <th><?php echo $this->Paginator->sort('downloads'); ?></th>
                                        <th><?php echo $this->Paginator->sort('ratings'); ?></th>
                                        <!-- <th><?php echo $this->Paginator->sort('retailer_tagline'); ?></th> -->
                                        <!-- <th><?php echo $this->Paginator->sort('customer_tagline'); ?></th> -->
                                        <th><?php echo $this->Paginator->sort('offer_active'); ?></th>
                                        <th><?php echo $this->Paginator->sort('offerCategory'); ?></th>
                                        <!-- <th><?php //echo $this->Paginator->sort('priority'); ?></th> -->
                                        <th><?php echo $this->Paginator->sort('show'); ?></th>
                                        <th><?php echo $this->Paginator->sort('location'); ?></th>
                                        <th><?php echo $this->Paginator->sort('offerCondition','Offer Text'); ?></th>
                                        <th class="actions"><?php echo __('Actions'); ?></th>
                        </tr>
                        <?php foreach ($appOffers as $appOffer): ?>
                        <tr>
                                <td><?php echo h($appOffer['AppOffer']['id']); ?>&nbsp;</td>
                                <td><?php echo h($appOffer['AppOffer']['affiliate_id']); ?>&nbsp;</td>
                                <td><?php echo $this->Html->link(__('Master'), array('controller' => 'appmasters', 'action' => 'edit',$appOffer['AppOffer']['appmaster_id'])); ?>
                                <td><?php echo h($appOffer['AppOffer']['affiliate_offer_id']); ?>&nbsp;</td>
                                <td><?php echo h($appOffer['AppOffer']['offer_price']); ?>&nbsp;</td>
                                <td><?php echo h($appOffer['AppOffer']['override_payout']); ?></td>
                                <td><?php echo h($appOffer['AppOffer']['overriden_payout']); ?></td>
                                <td><?php echo h($appOffer['AppOffer']['user_payout']); ?></td>
                                <td><?php echo h($appOffer['AppOffer']['app_name']); ?>&nbsp;</td>
                                <td><img src="<?php echo ($appOffer['AppOffer']['promoImage']); ?>" width="80"/></td>
                                <td class="cell"><div><?php echo h($appOffer['AppOffer']['description']); ?></div></td>
                                <td><?php echo h($appOffer['AppOffer']['shortDescription']); ?>&nbsp;</td>
                                <!-- <td><?php echo h($appOffer['AppOffer']['finalShortDescription']); ?>&nbsp;</td> -->
                                <td class="cell"><div><?php echo h($appOffer['AppOffer']['longDescription']); ?></div></td>
                                <!-- <td><?php echo h($appOffer['AppOffer']['finalLongDescription']); ?>&nbsp;</td> -->
                                <td><?php echo h($appOffer['AppOffer']['link']); ?>&nbsp;</td>
                                <td><?php echo h($appOffer['AppOffer']['downloads']); ?>&nbsp;</td>
                                <td><?php echo h($appOffer['AppOffer']['ratings']); ?>&nbsp;</td>
                                <!-- <td><?php echo h($appOffer['AppOffer']['retailer_tagline']); ?>&nbsp;</td> -->
                                <!-- <td><?php echo h($appOffer['AppOffer']['customer_tagline']); ?>&nbsp;</td> -->
                                <td><?php echo h($appOffer['AppOffer']['offer_active']); ?>&nbsp;</td>
                                <td><?php echo h($appOffer['AppOffer']['offerCategory']); ?>&nbsp;</td>
                                <!-- <td><?php //echo h($appOffer['AppOffer']['priority']); ?>&nbsp;</td> -->
                                <td><?php echo h($appOffer['AppOffer']['show']); ?>&nbsp;</td>
                                <td><?php echo h($appOffer['AppOffer']['location']); ?>&nbsp;</td>
                                <td><?php echo h($appOffer['AppOffer']['offerCondition']); ?>&nbsp;</td>
                                <td class="actions">
                                        <?php //echo $this->Html->link(__('View'), array('action' => 'view', $appOffer['AppOffer']['id'])); ?>
                                        <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $appOffer['AppOffer']['id'])); ?>
                                        <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $appOffer['AppOffer']['id']), null, __('Are you sure you want to delete # %s?', $appOffer['AppOffer']['id'])); ?>
                                </td>
                        </tr>
                <?php endforeach; ?>
                        </table>
                        <p>
                        <?php
                        echo $this->Paginator->counter(array(
                        'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
                        ));
                        ?>      </p>
                        <div class="paging">
                        <?php
                                echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
                                echo $this->Paginator->numbers(array('separator' => ''));
                                echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
                        ?>
                        </div>
                </div>
        </div>
</div>