%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 $viewdata[0] = $viewdata; //print_r($viewdata[0]); //$id = $_GET['id']; //echo "dd==".$viewdata[0]['full_name']; $id = $_GET['id']; ?> <link rel="stylesheet" href="<?=base_url('assets/css/validation.css') ?>"> <div class="row"> <div class="col-md-12"> <div class="content panel panel-default" > <?php if ($this->session->flashdata('error_leads')) { ?> <div class="alert alert-danger"><?= implode('<br>', $this->session->flashdata('error_leads')) ?></div> <?php } if($this->session->flashdata('result_insert')) { ?> <div class="alert alert-success" id='addsuccess'><?php echo $this->session->flashdata('result_insert');?></div> <?php } ?> </html> <form class="form-box" id="call_center_form" method="POST" enctype="multipart/form-data"> <div class="row"> <!---- Add new button ---> <div class="col-md-4" style="text-align:left;" > </div> <div class="col-md-4"> <div class="form-group for-shop"> </div> </div> <div class="col-md-4"> <div class="form-group for-shop"> <button type="button" name="call_history" id='call_history' class="btn btn-primary" data-toggle="modal" data-target="#myModal" >Call Hiostory</button> </div> </div> <!-------END -----> <div class="col-md-4" style="text-align:left;" > <div class="row"> <div class="col-sm-4"> <label>Title<span class="req_red">*</span></label> <select name="title" id="title" class="form-control inputstl" required> <option value="">-Title-</option> <option value="Mr" <?php if($viewdata[0]['title']=='Mr'){ echo 'selected';?> <?php }?>>MR</option> <option value="Mrs" <?php if($viewdata[0]['title']=='Mrs'){ echo 'selected';?> <?php }?>>Mrs</option> <option value="Ms" <?php if($viewdata[0]['title']=='Ms'){ echo 'selected';?> <?php }?>>Ms</option> </select> </div> <input type="hidden" name="calldetail" id="calldetail" value="<?php echo $calldetail;?>"/> <input type="hidden" name="vendorid" id="vendorid" value="<?php echo $this->vendor_id;?>"/> <div class="col-sm-8"> <label>Full Name<span class="req_red">*</span></label> <input type="text" name="full_name" id="full_name" placeholder="Enter Name" class="form-control" required value="<?php if($viewdata[0]['full_name']){ echo $viewdata[0]['full_name']; } else { $_POST['full_name']; }?>"> </div> </div> </div> <div class="col-md-4"> <div class="form-group for-shop"> <label>Contact Number<span class="req_red">*</span></label> <input type="text" name="mobile_number" id="mobile_number" maxlength="10" required onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" placeholder="Enter Contact Number" class="form-control" value="<?php if($viewdata[0]['phone']){ echo $viewdata[0]['phone']; } else if ($caller_details['caller_id_number']){ echo $caller_details['caller_id_number']; }else { echo $_POST['mobile_number']; } ?>"> </div> </div> <div class="col-md-4"> <div class="form-group for-shop"> <label>Alternate Number</label> <input type="text" name="mobile_number2" id="mobile_number2" maxlength="10" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" placeholder="Enter Contact Number" class="form-control" value="<?php if($viewdata[0]['phone2']){ echo $viewdata[0]['phone2']; } else { $_POST['mobile_number2']; } ?>"> </div> </div> <div class="col-md-4"> <div class="form-group for-shop"> <label>Email Id</label> <input type="text" name="email" required placeholder="Enter Email Id" id="email" class="form-control" value="<?php if($viewdata[0]['email']){ echo $viewdata[0]['email']; } ?>"> </div> </div> <div class="col-md-4"> <div class="form-group for-shop"> <label for="Gender">Gender<span class="req_red">*</span></label> <select name="gender" id="gender" class="form-control inputstl" required> <option value="">--Select Gender--</option> <option value="Male" <?php if($viewdata[0]['gender']=='Male'){ echo 'selected';?> <?php }?>>Male</option> <option value="Female" <?php if($viewdata[0]['gender']=='Female'){ echo 'selected';?> <?php }?>>Female</option> <option value="Others" <?php if($viewdata[0]['gender']=='Others'){ echo 'selected';?> <?php }?>>Others</option> </select> </div> </div> <div class="col-sm-4"> <div class="form-group for-shop"> <label for="date_birth">Age</label> <input type="text" name="ages" id="ages" placeholder="Age" value="<?php if($viewdata[0]['Age']){ echo $viewdata[0]['Age'];} ?>" required class="form-control"> </div> </div> <!---- Address --> <div class="col-md-4"> <div class="form-group for-shop"> <label>Address</label> <textarea type="text" name="address" required style="height:34px;" id="address" class="form-control" > <?php if($viewdata[0]['address']){ echo $viewdata[0]['address'];} /*else { echo $_POST['address']; }*/?></textarea> </div> </div> <div class="col-md-4"> <div class="form-group for-shop"> <label for="state">State<span class="req_red">*</span></label> <select name="state" id="state" class="form-control inputstl" required> <option value="">--Select State--</option> <?php print_r($states); foreach($states as $stname){ ?> <option value="<?php echo $stname['state_name'];?>" <?php if($viewdata[0]['state']==$stname['state_name']){ echo 'selected';?> <?php }?>><?php echo $stname['state_name'];?></option> <?php } ?> </select> </div> </div> <div class="col-md-4"> <div class="form-group for-shop"> <label for="city">City<span class="req_red">*</span></label> <select name="city" id="city" class="form-control inputstl" required> <option value="">--Select City--</option> <?php foreach($cities as $cityname){?> <option value="<?php echo $cityname['city_name'];?>" <?php if($viewdata[0]['city']==$cityname['city_name']){ echo 'selected';?> <?php }?>><?php echo $cityname['city_name'];?></option> <?php } ?> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="description">Source of Information</label> <select name="info_source" id="info_source" class="form-control inputstl"> <option value="">--Select Source--</option> <option value="Call Center Appointment" <?php if($viewdata[0]['info_source']=='Call Center Appointment'){ echo 'selected';?> <?php }?>>Call Center Appointment</option> <option value="Electronic Advertisement" <?php if($viewdata[0]['info_source']=='Electronic Advertisement'){ echo 'selected';?> <?php }?>>Electronic Advertisement</option> <option value="Friends/Relatives" <?php if($viewdata[0]['info_source']=='Friends/Relatives'){ echo 'selected';?> <?php }?>>Friends/Relatives</option> <option value="Internate" <?php if($viewdata[0]['info_source']=='Internate'){ echo 'selected';?> <?php }?>>Internate</option> <option value="Magzine" <?php if($viewdata[0]['info_source']=='Magzine'){ echo 'selected';?> <?php }?>>Magzine</option> <option value="Medical Campus" <?php if($viewdata[0]['info_source']=='Medical Campus'){ echo 'selected';?> <?php }?>>Medical Campus</option> <option value="Mobile Sites" <?php if($viewdata[0]['info_source']=='Mobile Sites'){ echo 'selected';?> <?php }?>>Mobile Sites</option> <option value="News Paper" <?php if($viewdata[0]['info_source']=='News Paper'){ echo 'selected';?> <?php }?>>News Paper</option> <option value="Print Advertisement" <?php if($viewdata[0]['info_source']=='Print Advertisement'){ echo 'selected';?> <?php }?>>Print Advertisement</option> <option value="Radio" <?php if($viewdata[0]['info_source']=='Radio'){ echo 'selected';?> <?php }?>>Radio</option> <option value="Refrence" <?php if($viewdata[0]['info_source']=='Refrence'){ echo 'selected';?> <?php }?>>Refrence</option> <option value="Sharda Student" <?php if($viewdata[0]['info_source']=='Sharda Student'){ echo 'selected';?> <?php }?>>Sharda Student</option> <option value="SMS/Email/Outbound call" <?php if($viewdata[0]['info_source']=='SMS/Email/Outbound call'){ echo 'selected';?> <?php }?>>SMS/Email/Outbound call</option> <option value="Tv" <?php if($viewdata[0]['info_source']=='Tv'){ echo 'selected';?> <?php }?>>Tv</option> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="description">Remarks</label> <textarea style="height:34px;" name="Remarks" id="Remarks" class="form-control" required='required' placeholder="Enter Remarks"> <?php if($viewdata[0]['remarks']){ echo $viewdata[0]['remarks'];} else { echo $_POST['remarks']; }?></textarea> </div> </div> <div class="col-md-6"> <button type="submit" name="setLead" id="setLead" class="btn btn-green">Submit</button> <input type="hidden" name="id" id='id' value="<?=$viewdata[0]['id']?>" /> <input type="submit" name="Clear" value="Clear" class="btn btn-gray" /> </div> </form> </div> </div> <!-----------> <div class="col-sm-6"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title" style="font-size:2px;"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne"><span class="glyphicon glyphicon-file"> </span>Book Home Visit</a> </h4> </div> <form name='book_visit' id='book_visit' action='<?php echo base_url();?>vendor/add/bookings?lead=<?php echo $getid;?>' method="post"> <div id="collapseOne" class="panel-collapse collapse <?php if($_GET['msg']=='1001' && $_GET['getid']>0) { echo 'in'; } ?>"> <div class="panel-body"> <div class="row"> <?php if($_GET['msg']=='1001' && $_GET['getid']>0) { ?> <div class="col-md-12" style="color:green;"><p>Thankyou, Your order booked successfully. Our home collection agent will contact you on your registered mobile number.</p></div> <?php } ?> <div class="col-md-12"> <div class="form-group"> <input type="submit" <?php if(empty($getid)){ echo 'disabled'; } ?> title='Please Fill Form' name="submit3" value="Book Now" id="submit21" class="btn btn-success btn-sm" /> <!--<button type="button" name="reset" class="btn btn-default btn-sm reset">Clear</button>--> </div> </div> </div> </div> </form> </div> </div> </div> <div class="col-sm-6"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"><span class="glyphicon glyphicon-file"> </span>Complaint</a> </h4> </div> <div id="collapseTwo" class="panel-collapse collapse" > <div class="panel-body"><p id='res_class_submit' align="center"> </p> <form name='form_complaint' id='form_complaint' method="post"> <div class="row"> <div class="col-sm-12"> <label for="collection_time">Order Number<span class="req_red">*</span></label> <div class="form-group"> <input type="text" name="ORDERID" id="ORDERID" class="form-control" required='required' placeholder="Order Number" style='width: 85%;'/> <input type="submit" name="complain_button" value="Get Details" id="complain_button" class="btn btn-success btn-sm" style="position: absolute;top: 27px; right: 7px;"/> <div id='res_order'> </div> <span id='errmsg'> </span> </div> <div> </div> </div> <div class="col-sm-12"> <div class="form-group"> <select name="collection_type" id='collection_type' required class="form-control"> <option value="0">--Select Type--</option> <option value="REPOERT DELAYED">REPOERT DELAYED</option> <option value="HOME COLLECTION DELAYED">HOME COLLECTION DELAYED</option> <option value="REFUND">REFUND</option> <option value="Others">Others</option> </select> </div> <div id='errmsg_type'> </div> </div> <div class="col-sm-12"> <div class="form-group" > <label for="Remarks">Remarks</label> <textarea name="Remarks_complain" id='Remarks_complain' rows="1" class="form-control"><?php echo $_POST['Remarks_complain'];?></textarea> </div> </div> <div class="col-md-6"> <div class="form-group"> <input type="submit" name="complainsubmit" value="Register Complaint" id="complainsubmit" <?php if(empty($getid)){ echo 'disabled'; } ?> title='First Fill Upper Form' class="btn btn-success btn-sm classsubmit" /> <button type="button" name="reset" class="btn btn-default btn-sm restclear" >Clear</button> </div> </div> </div> </form> </div> </div> </div> </div> <div class="col-sm-6"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree"><span class="glyphicon glyphicon-file"> </span>Report Status</a> <p id='report_status_scs' class='cont' align="center"> </p> </h4> </div> <div id="collapseThree" class="panel-collapse collapse"> <div class="panel-body"> <div class="row"> <form name='form_status' id='form_status' method="post"> <div class="col-sm-12"> <label for="collection_time">Order Number</label> <div class="form-group"> <input type="text" name="Order_status" id="Order_status" class="form-control" placeholder="Order Number" style='width:85%;' required /> <span id='errmsg2'></span> <input type="submit" name="report_submit" id='report_submit' value="Get Status" class="btn btn-success btn-sm" style="position: absolute;top: 27px; right: 7px;" /> </div> <div id='Report_status_success'> </div> </div> <div class="col-sm-12"> <div class="form-group" > <label for="description">Remarks</label> <textarea name="Remarks_status" id="Remarks_status" rows="1" class="form-control"></textarea> </div> </div> <div class="col-md-6"> <div class="form-group"> <input type="submit" name="complaint" <?php if(empty($getid)){ echo 'disabled'; } ?> value="Send Status Report" id="complaint" title='Fill Upper Form' class="btn btn-success btn-sm reports" /> <button type="button" name="reset" class="btn btn-default btn-sm Report_reset">Clear</button> </div> </div> </form> </div> </div> </div> </div> </div> <div class="col-sm-6"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseFour"><span class="glyphicon glyphicon-file"> </span>Send SMS</a> <p id='report_status_scs' class='cont' align="center"> </p> </h4> </div> <div id="collapseFour" class="panel-collapse collapse"> <div class="panel-body"> <div class="row"> <form name='form_status' id='form_status' method="post"> <div class="col-sm-12"> <label for="collection_time">SMS Number</label> <div class="form-group"> <input type="text" name="mobilenumber" id="mobilenumber" class="form-control" placeholder="Enter mobile no" style='width:85%;' required /> <span id='errmsg2'></span> </div> </div> <div class="col-sm-12"> <div class="form-group" > <label for="description">Enter Message</label> <textarea name="mobilemsg" id="mobilemsg" rows="3" class="form-control"></textarea> </div> </div> <div class="col-md-6"> <div class="form-group"> <input type="submit" name="complaint" <?php if(empty($getid)){ echo 'disabled'; } ?> value="Send Status Report" id="complaint" title='Fill Upper Form' class="btn btn-success btn-sm reports" /> <button type="button" name="reset" class="btn btn-default btn-sm Report_reset">Clear</button> </div> </div> </form> </div> </div> </div> </div> </div> <script type="application/javascript"> $(document).ready(function() { $("#form_complaint").validate({ rules: { collection_type: { required: true, }, message: "required" }, messages: { collection_type: { required: "Select Type", }, } }); /************** main enquiry ****/ /************* END ********/ $("#complain_button").click(function() { //event.preventDefault(); var ORDERID = $('#ORDERID').val(); var order_ids = 'ORDERID='+ORDERID; $.ajax({ type: "GET", dataType: 'html', data: order_ids, url: '<?php echo base_url();?>vendor/callcenter/Complain_order', success: function(data) { $('#res_order').fadeIn().html(data); } }); }); $(".classsubmit").click(function(event) { event.preventDefault(); $("#res_class_submit").hide(); var getID = '<?php echo $getid?>'; var ORDERID = $('#ORDERID').val(); if(ORDERID == ''){ $("#errmsg").html("<font color='#900'>Please enter orderid</font>").show().fadeOut("slow"); return false; }; var collection_type = $('#collection_type').val(); if(collection_type == '0'){ $("#errmsg_type").html("<font color='#900'>--Select Type--</font>").show().fadeOut("slow"); return false; }; var Remarks = $('#Remarks_complain').val(); var submitrecord = 'ORDERID='+ORDERID+'&collection_type='+collection_type+'&Remarks='+Remarks+'&getID='+getID; $.ajax({ type: "POST", dataType: 'html', data: submitrecord, url: '<?php echo base_url();?>vendor/callcenter/storecomplain', success: function(data) { $('#res_class_submit').fadeIn().html(data); } }); }); /*********** END ***********/ $("#setLead").click(function() { $("#call_center_form").validate({ rules: { title: { required: true, }, full_name: { required: true, }, email: { required: false, minlength: 5, email: true }, gender:{ required:true, }, message: "required" }, messages: { title: { required: "Select Title", }, full_name: { required: "Enter Full Name", }, } }); var calldetail = ''; var title = $('#title').val(); var full_name = $('#full_name').val(); var mobile_number = $('#mobile_number').val(); var email = $('#email').val(); //var dob = $('#birth_date').val(); var age = $('#ages').val(); var gender = $('#gender').val(); var Remarks = $('#Remarks').val(); var phone2 = $('#mobile_number2').val(); var info_source = $('#info_source').val(); var address = $('#address').val(); var city = $('#city').val(); var state = $('#state').val(); //alert(call_summary); if(title == '' || full_name =='' || mobile_number == '' || email == '' || gender == '' || Remarks ==''){ $("#errmsgenq").html("<font color='#900'>All Field required.</font>").show().fadeOut("slow"); } else { $('.alert-success').hide(); var data_store = 'title='+title+'&full_name='+full_name+'&mobile_number='+mobile_number+'&email='+email+'&age='+age+'&gender='+gender+'&Remarks='+Remarks+'&phone2='+phone2+'&info_source='+info_source+'&address='+address+'&state='+state+'&city='+city+'&calldetail='+calldetail; //alert(data_store); $.ajax({ url: '<?php echo base_url();?>vendor/callcenter', type: "POST", data: data_store, contentType: false, cache: false, processData: false, success: function(data) { if(data){ $('#addsuccess').fadeIn().html("Data Save Successfully"); setTimeout(function(){ $('#addsuccess').fadeOut('slow') },200); $('#addsuccess').hide(); } else { alert("Not wokring"); } } }); } }); $('#something').click(function() { window.location.replace("http://shardadiagnostics.in/vendor/callcenter"); }); /****************** search *****************/ $("#report_submit").click(function(event) { event.preventDefault(); var getID = '<?php echo $getid?>'; var Order_status = $('#Order_status').val(); var orderreport = 'Order_status='+Order_status; $.ajax({ type: "GET", dataType: 'html', data: orderreport, url: '<?php echo base_url();?>vendor/callcenter/Complain_order', success: function(data) { $('#Report_status_success').html(data); } }); }); $(".reports").click(function(event) { event.preventDefault() $("#form_status").validate({ rules: { Order_status: { required: true, }, message: "required" }, messages: { Order_status: { required: "Enter Order id", }, } }); var getID = '<?php echo $getid?>'; var Order_status = $('#Order_status').val(); if(Order_status == ''){ $("#errmsg2").html("<font color='#900'>Please enter orderid</font>").show().fadeOut("slow"); return false; }; var Remarks_status = $('#Remarks_status').val(); var Submit_Record = 'Order_status='+Order_status+'&Remarks_status='+Remarks_status+'&getID='+getID; $.ajax({ type: "POST", dataType: 'html', data: Submit_Record, url: '<?php echo base_url();?>vendor/callcenter/storecomplain', success: function(data) { $('#report_status_scs').fadeIn().html(data); if(data){ $('.cont').html("<font color='#900'><b>Report Update Successfully</b></font>"); } } }); }); /******************** Clear all data *************/ $(".restclear").click(function() { var ORDERID = $(this).val(''); var collection_type = $(this).val(''); var dropDown = document.getElementById("collection_type"); dropDown.selectedIndex = 0; var Remarks_complain = $(this).val(''); $('#form_complaint input[type="text"]').val(''); $('#form_complaint #Remarks_complain').val(''); }); $(".Report_reset").click(function() { var Order_status = $(this).val(''); var Remarks_status = $(this).val(''); $('#form_status input[type="text"]').val(''); $('#form_status #Remarks_status').val(''); }); /**************** get contact no *************/ /*( function($){ var caller_id_no = '<?php //echo '8810686936'?>'; //alert(caller_id_no); if(caller_id_no){ var callerno = 'caller_id_no='+caller_id_no; $.ajax({ cache: false, type: "GET", dataType: 'html', data: callerno, url: '<?php echo base_url();?>vendor/callcenter/getmobileno', success: function(data) { $('#getnumber').fadeIn().html(data); var refreshId = setInterval(function() { window.location.href='http://shardadiagnostics.in/vendor/callcenter'; }, 9000); } }); } else { alert("Caller id not available"); } })(jQuery);*/ }); </script> <div class="modal fade" id="myModal" 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 History</h4> </div> <div class="modal-body"> <h4>Call History Inbound</h4> <table width="556" border="1"> <tr> <td width="40">Call_Number</td> <td width="40">Call_Number</td> <td width="98">Call_Start_time</td> <td width="88">Call_Remark</td> <td width="93">Call_end_type</td> <td width="53">Call_Cli</td> <td width="124">Call_Agent_Name</td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> </div> </div> </div> </div>