Subversion Repositories SmartDukaan

Rev

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

<div class="callhistories index">
        <h2><?php echo __('Callhistories'); ?></h2>
        
        <table cellpadding="0" cellspacing="0" class="table table-striped" >
        <tr>
                        <th><?php echo $this->Paginator->sort('id'); ?></th>
                        <th><?php echo $this->Paginator->sort('retailer_id'); ?></th>
                        <th><?php echo $this->Paginator->sort('agent_id'); ?></th>
                        <th><?php echo $this->Paginator->sort('mobile_number'); ?></th>
                        <th><?php echo $this->Paginator->sort('call_type'); ?></th>
                        <th><?php echo $this->Paginator->sort('sms_verified'); ?></th>
                        <th><?php echo $this->Paginator->sort('call_time'); ?></th>
                        <th><?php echo $this->Paginator->sort('duration_sec'); ?></th>
                        <th><?php echo $this->Paginator->sort('call_disposition'); ?></th>
                        <th><?php echo $this->Paginator->sort('disposition_description'); ?></th>
                        <th><?php echo $this->Paginator->sort('created'); ?></th>
                        
        </tr>
        <?php foreach ($callhistories as $callhistory): ?>
        <tr>
                <td><?php echo h($callhistory['Callhistory']['id']); ?>&nbsp;</td>
                <td><?php echo h($callhistory['Callhistory']['retailer_id']); ?>&nbsp;
                        
                </td>
                <td>
                        <?php //echo h($callhistory['Agent']['name']." (". ($callhistory['Callhistory']['agent_id']).") "); ?>
                        <?php echo $this->Html->link($callhistory['Agent']['name']." (". ($callhistory['Callhistory']['agent_id']).") ", array('controller' => 'Callhistories', 'action' => 'index', $callhistory['Callhistory']['agent_id'])); ?>
                </td>
                <td><?php echo h(substr($callhistory['Callhistory']['mobile_number'], 0, 4) . str_repeat("X", strlen($callhistory['Callhistory']['mobile_number']) - 6) . substr($callhistory['Callhistory']['mobile_number'], -2)); ?>&nbsp;</td>
                
                <!-- <td><?php echo h($callhistory['Callhistory']['mobile_number']); ?>&nbsp;</td> -->
                <td><?php echo h($callhistory['Callhistory']['call_type']); ?>&nbsp;</td>
                <td><?php if($callhistory['Callhistory']['sms_verified']==0) {echo h(0);} else {echo h($callhistory['Callhistory']['sms_verified']);} ?>&nbsp;</td>
                
                <td><?php echo h($callhistory['Callhistory']['call_time']); ?>&nbsp;</td>
                <td><?php echo h($callhistory['Callhistory']['duration_sec']); ?>&nbsp;</td>
                <td><?php echo h($callhistory['Callhistory']['call_disposition']); ?>&nbsp;</td>
                <td><?php echo h($callhistory['Callhistory']['disposition_description']); ?>&nbsp;</td>
                <td><?php echo h($callhistory['Callhistory']['created']); ?>&nbsp;</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>