%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php if ($this->session->flashdata('result_publish')) { ?> <div class="alert alert-success"><?= $this->session->flashdata('result_publish') ?></div> <?php } $Called_Source = unserialize(Called_Source); $transaction_status = unserialize(PAYMENT_STATUS); ?> <div class="content"> <div class="well hidden-xs"> <div class="row"> <form method="GET" id="searchProductsForm" action=""> <div class="col-sm-4"> <label>Source:</label> <?php $resp = array("1"=>"Emergency","2"=>"Hospital","3"=>"Diagnostic");?> <select name="source" class="form-control selectpicker change-products-form" onchange="this.form.submit()"> <option value="">None</option> <?php foreach($resp as $school=>$schoolgroup) {?> <option <?= isset($_GET['source']) && $_GET['source'] == $school ? 'selected=""' : '' ?> value="<?= $school;?>"><?php echo $schoolgroup?></option> <?php } ?> </select> </div> <div class="col-sm-2"> <label>From Date:</label> <div class="input-group"> <input class="form-control" autocomplete="off" type="date" value="<?= $_GET['from_date'] ?>" name="from_date" onchange="this.form.submit()"> </div> </div> <div class="col-sm-2"> <label>To Date:</label> <div class="input-group"> <input class="form-control" autocomplete="off" type="date" value="<?= $_GET['to_date'] ?>" name="to_date" onchange="this.form.submit()"> </div> </div> <div class="col-sm-4"> <label>Search For:</label> <div class="input-group"> <input class="form-control" placeholder="Mobile Number" autocomplete="off" type="text" value="<?= isset($_GET['search_title']) ? $_GET['search_title'] : '' ?>" name="search_title"> <span class="input-group-btn"> <button class="btn btn-default" type="submit" value=""> <i class="fa fa-search"></i> </button> </span> </div> </div> </form> </div> </div> <hr> <?php if($products){ ?> <table class="table"> <thead class="blue-grey lighten-4"> <tr> <th>S.No.</th> <th>UID</th> <th>Name</th> <th>Mobile Number</th> <th>Email Id</th> <th>Call Date</th> <th>Details</th> </tr> </thead> <tbody> <?php $i = 1; foreach ($products as $product) { $package_id = unserialize($product->products); if($product->heard_copy_required==1){ $total=$product->offer_price + 50; } ?> <tr> <td><?= $_GET['per_page']+$i ?></td> <td><?= $product->uid ?></td> <td><?= $product->title.' '.$product->full_name?></td> <td><?= $product->phone ?></td> <td><?= $product->email ?></td> <td><?= date('d M Y - h:i:s', strtotime($product->created_on)) ?></td> <td><button type="button" class="btn btn-primay" data-toggle="modal" data-target="#myModal<?=$product->id ?>">View Details</button></td> </tr> <div class="modal fade" id="myModal<?=$product->id ?>" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title" id="myModalLabel">Call Summary</h4> </div> <div class="modal-body"> <h4>Caller Information</h4> <p><b>UID: </b><?= $product->uid ?></p> <p><b>Name: </b><?= $product->title.' '.$product->full_name?></p> <p><b>Mobile Number: </b><?= $product->phone ?></p> <?php if($product->phone2){ ?><p><b>Alternate Contact Number: </b><?= $product->phone2 ?></p><?php } ?> <?php if($product->email){ ?><p><b>Email Id: </b><?= $product->email ?></p> <?php } ?> <?php if($product->age){ ?><p><b>Age: </b><?= $product->age ?></p><?php } ?> <?php if($product->gender){ ?><p><b>Gender: </b><?= $product->gender ?></p> <?php } ?> <?php if($product->info_source){ ?><p><b>Information Source </b><?= $product->info_source ?></p><?php } ?> <?php if($product->city){ ?><p><b>City </b><?= $product->city ?></p><?php } ?> <?php if($product->state){ ?><p><b>State </b><?= $product->state ?></p><?php } ?> <?php if(empty($product->address)){ ?><p><b>Address </b><?= $product->address ?></p><?php } ?> <?php if(empty($product->remarks)){ ?><p><b>Remarks </b><?= $product->remarks ?></p><?php } ?> <h4>Call Summary</h4> <p><b>Call Date: </b><?= $product->created_on ?></p> <p><b>Called To: </b><?= $Called_Source[$product->source] ?></p> <p><b>Call Duration: </b><?= $product->duration ?> seconds</p> <p><b>Call Purpose: </b><?= $product->uid ?></p> <p><b>UID: </b><?= $product->uid ?></p> </div> </div> </div> </div> <?php $i++; } ?> </tbody> </table> <form method="POST"><input type="submit" name="export" value="Export" class="btn btn-default" style="float:right;"></form> <?php echo $links_pagination; } else { echo 'No Calls Added Yet!!';} ?> </div>