Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<div class="agents view">
<h2><?php echo __('Agent'); ?></h2>
        <dl>
                <dt><?php echo __('Id'); ?></dt>
                <dd>
                        <?php echo h($agent['Agent']['id']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Name'); ?></dt>
                <dd>
                        <?php echo h($agent['Agent']['name']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Email'); ?></dt>
                <dd>
                        <?php echo h($agent['Agent']['email']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Password'); ?></dt>
                <dd>
                        <?php echo h($agent['Agent']['password']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Created'); ?></dt>
                <dd>
                        <?php echo h($agent['Agent']['created']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Modified'); ?></dt>
                <dd>
                        <?php echo h($agent['Agent']['modified']); ?>
                        &nbsp;
                </dd>
        </dl>
</div>
<div class="actions">
        <h3><?php echo __('Actions'); ?></h3>
        <ul>
                <li><?php echo $this->Html->link(__('Edit Agent'), array('action' => 'edit', $agent['Agent']['id'])); ?> </li>
                <li><?php echo $this->Form->postLink(__('Delete Agent'), array('action' => 'delete', $agent['Agent']['id']), null, __('Are you sure you want to delete # %s?', $agent['Agent']['id'])); ?> </li>
                <li><?php echo $this->Html->link(__('List Agents'), array('action' => 'index')); ?> </li>
                <li><?php echo $this->Html->link(__('New Agent'), array('action' => 'add')); ?> </li>
                <li><?php echo $this->Html->link(__('List Calls'), array('controller' => 'calls', 'action' => 'index')); ?> </li>
                <li><?php echo $this->Html->link(__('New Call'), array('controller' => 'calls', 'action' => 'add')); ?> </li>
                <li><?php echo $this->Html->link(__('List Play Store Links'), array('controller' => 'play_store_links', 'action' => 'index')); ?> </li>
                <li><?php echo $this->Html->link(__('New Play Store Link'), array('controller' => 'play_store_links', 'action' => 'add')); ?> </li>
        </ul>
</div>
<div class="related">
        <h3><?php echo __('Related Calls'); ?></h3>
        <?php if (!empty($agent['Call'])): ?>
        <table cellpadding = "0" cellspacing = "0">
        <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('Retailer Id'); ?></th>
                <th><?php echo __('Agent Id'); ?></th>
                <th><?php echo __('Status'); ?></th>
                <th><?php echo __('Callduration'); ?></th>
                <th><?php echo __('Created'); ?></th>
                <th><?php echo __('Modified'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($agent['Call'] as $call): ?>
                <tr>
                        <td><?php echo $call['id']; ?></td>
                        <td><?php echo $call['retailer_id']; ?></td>
                        <td><?php echo $call['agent_id']; ?></td>
                        <td><?php echo $call['status']; ?></td>
                        <td><?php echo $call['callduration']; ?></td>
                        <td><?php echo $call['created']; ?></td>
                        <td><?php echo $call['modified']; ?></td>
                        <td class="actions">
                                <?php echo $this->Html->link(__('View'), array('controller' => 'calls', 'action' => 'view', $call['id'])); ?>
                                <?php echo $this->Html->link(__('Edit'), array('controller' => 'calls', 'action' => 'edit', $call['id'])); ?>
                                <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'calls', 'action' => 'delete', $call['id']), null, __('Are you sure you want to delete # %s?', $call['id'])); ?>
                        </td>
                </tr>
        <?php endforeach; ?>
        </table>
<?php endif; ?>

        <div class="actions">
                <ul>
                        <li><?php echo $this->Html->link(__('New Call'), array('controller' => 'calls', 'action' => 'add')); ?> </li>
                </ul>
        </div>
</div>
<div class="related">
        <h3><?php echo __('Related Play Store Links'); ?></h3>
        <?php if (!empty($agent['PlayStoreLink'])): ?>
        <table cellpadding = "0" cellspacing = "0">
        <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('Agent Id'); ?></th>
                <th><?php echo __('Retailer Id'); ?></th>
                <th><?php echo __('Referralcode'); ?></th>
                <th><?php echo __('Url'); ?></th>
                <th><?php echo __('Call Id'); ?></th>
                <th><?php echo __('Created'); ?></th>
                <th><?php echo __('Modified'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($agent['PlayStoreLink'] as $playStoreLink): ?>
                <tr>
                        <td><?php echo $playStoreLink['id']; ?></td>
                        <td><?php echo $playStoreLink['agent_id']; ?></td>
                        <td><?php echo $playStoreLink['retailer_id']; ?></td>
                        <td><?php echo $playStoreLink['referralcode']; ?></td>
                        <td><?php echo $playStoreLink['url']; ?></td>
                        <td><?php echo $playStoreLink['call_id']; ?></td>
                        <td><?php echo $playStoreLink['created']; ?></td>
                        <td><?php echo $playStoreLink['modified']; ?></td>
                        <td class="actions">
                                <?php echo $this->Html->link(__('View'), array('controller' => 'play_store_links', 'action' => 'view', $playStoreLink['id'])); ?>
                                <?php echo $this->Html->link(__('Edit'), array('controller' => 'play_store_links', 'action' => 'edit', $playStoreLink['id'])); ?>
                                <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'play_store_links', 'action' => 'delete', $playStoreLink['id']), null, __('Are you sure you want to delete # %s?', $playStoreLink['id'])); ?>
                        </td>
                </tr>
        <?php endforeach; ?>
        </table>
<?php endif; ?>

        <div class="actions">
                <ul>
                        <li><?php echo $this->Html->link(__('New Play Store Link'), array('controller' => 'play_store_links', 'action' => 'add')); ?> </li>
                </ul>
        </div>
</div>