Subversion Repositories SmartDukaan

Rev

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

<div class="callhistories index">
        <h2><?php echo __('Callhistories'); ?></h2>
        <form class="navbar-form" role="search" method="GET" name="search" action="<?php echo $base_url;?>admin/callhistories/search">
<!--    <div >
        <input type="radio" id="radio1" name="type" value="date" checked="checked" onchange="check();" />Date
        <input type="radio" id="radio2" name="type" value="agent" checked="checked" onchange="check();"/>Agent
        </div> -->
                        <div class="input-group col-xs-6 text-left">
                                Date From<input type="date" name="date_from" value="Date"/>
                                Date To<input type="date" name="date_to" value="Date"/>
                                <!-- Agent Code
                                <select name="">
                                          <option value="volvo">Volvo</option>
                                          <option value="saab">Saab</option>
                                          <option value="mercedes">Mercedes</option>
                                          <option value="audi">Audi</option>
                                        </select> -->
                        </div>
                <!-- <div class="input-group col-xs-6 text-right" id="remote">
                    <div class="input-group-btn w25px">
                        <input type="submit" value="Submit">
                        
                    </div>
                </div> -->
                <div class="input-group col-xs-6 text-left">
                                Search By:                              
                                <input type="radio" name="type" value="agent_name" checked="checked"/>Agent Name
                    <input type="radio" name="type" value="agent_id"/>Agent Id
                    <input type="radio" name="type" value="agent_role"/>Agent Role
 
                        </div>
                <div class="input-group col-xs-6 text-right" id="remote">
                    <input autocomplete="off" type="text" class="form-control" placeholder="Search for users" name="search" id="srch-term">
                    <div class="input-group-btn w25px">
                        <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
                    </div>
                </div>
            </form>
        
        <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']).") "); ?>

                </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>