Subversion Repositories SmartDukaan

Rev

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

<div class="callhistories index">
<h3><?php if(sizeof($result)==0) {echo h("No result");} else{?></h3>
<table cellpadding="0" cellspacing="0" class="table table-striped" >
        <tr>
                        <th><?php echo h('Id'); ?></th>
                        <th><?php echo h('Retailer Id'); ?></th>
                        <th><?php echo h('Agent_Id'); ?></th> 
                        <th><?php echo h('Mobile Number'); ?></th>
                        <th><?php echo h('Call Type'); ?></th>
                        <th><?php echo h('Sms Verified'); ?></th>
                        <th><?php echo h('Call Time'); ?></th>
                        <th><?php echo h('Duration sec'); ?></th>
                        <th><?php echo h('Call Disposition'); ?></th>
                        <th><?php echo h('Disposition Description'); ?></th>
                        <th><?php echo h('Created'); ?></th>
                        
        </tr>   
        <?php foreach ($result as $callhistory): ?>
        <tr>
                <td><?php echo h($callhistory['c']['id']); ?>&nbsp;</td>
                <td><?php echo h($callhistory['c']['retailer_id']); ?>&nbsp;</td>
                <td>
                        <?php echo h($callhistory['a']['name']." (". ($callhistory['c']['agent_id']).") "); ?>

                </td>
                <!-- <td><?php echo h($callhistory['c']['mobile_number']); ?>&nbsp;</td> -->
                <td><?php echo h(substr($callhistory['c']['mobile_number'], 0, 4) . str_repeat("X", strlen($callhistory['c']['mobile_number']) - 6) . substr($callhistory['c']['mobile_number'], -2)); ?>&nbsp;</td>

                <td><?php echo h($callhistory['c']['call_type']); ?>&nbsp;</td>
                <td><?php if($callhistory['c']['sms_verified']==0) {echo h(0);} else {echo h($callhistory['c']['sms_verified']);} ?>&nbsp;</td>
                <td><?php echo h($callhistory['c']['call_time']); ?>&nbsp;</td>
                <td><?php echo h($callhistory['c']['duration_sec']); ?>&nbsp;</td>
                <td><?php echo h($callhistory['c']['call_disposition']); ?>&nbsp;</td>
                <td><?php echo h($callhistory['c']['disposition_description']); ?>&nbsp;</td>
                <td><?php echo h($callhistory['c']['created']); ?>&nbsp;</td>
        </tr>
<?php endforeach; ?>
        </table>
<?php }?>       
</div>