returnResponse::make($searchresult."<script>kstychCall['crmid']=0;kSetDData('C','previewcrmid','');simpleNotification('error','topRight','Multiple Records Found!');createSearchRecordDiv('dialersearchbox');</script>");
returnResponse::make("<script>kstychCall['crmid']=0;kSetDData('C','previewcrmid','');simpleNotification('error','topRight','No Lines Free to Dial!');</script>");
...
...
@@ -404,7 +444,10 @@ class DialerController extends Controller
}else{
returnResponse::make($searchresult."<script>kstychCall['crmid']=0;kSetDData('C','previewcrmid','');simpleNotification('error','topRight','Multiple Records Found!');createSearchRecordDiv('dialersearchbox');</script>");
@@ -956,65 +1025,111 @@ class DialerController extends Controller
$currentstatus=Input::get("currentstatus");
$legalstatus=Input::get("legalstatus");
$page=intval(Input::get('page'));
if($page<1)$page=1;
if($page<1){
$page=1;
}
$skey=Input::get('skey');
$stxt=Input::get('stxt');
$skey='';
if($stxt!='')$skey=" and (id like '$stxt%' or lan like '$stxt%' or firstname like '$stxt%' or lastname like '$stxt%' or client like '$stxt%' or mobile like '$stxt%' or alternateMobile like '$stxt%' or officeNumber like '$stxt%' or referenceName like '$stxt%' or referenceMobile like '$stxt%' or referenceName2 like '$stxt%' or referenceMobile2 like '$stxt%' or altphone1 like '$stxt%' or altphone2 like '$stxt%' or altphone3 like '$stxt%' or altphone4 like '$stxt%' or altphone5 like '$stxt%' or altphone6 like '$stxt%' or altphone7 like '$stxt%' or altphone8 like '$stxt%' or altphone9 like '$stxt%' or altphone10 like '$stxt%' or emailid like '$stxt%' or passportno like '$stxt%' or ibannumber like '$stxt%' or currentstatus like '$stxt%' or laborcardpersonalid like '$stxt%' or clientinternalid like '$stxt%' or clientcode like '$stxt%')";
else$skey="";
if($stxt!=''){
$skey=" and (id like '$stxt%' or lan like '$stxt%' or firstname like '$stxt%' or lastname like '$stxt%' or client like '$stxt%' or mobile like '$stxt%' or alternateMobile like '$stxt%' or officeNumber like '$stxt%' or referenceName like '$stxt%' or referenceMobile like '$stxt%' or referenceName2 like '$stxt%' or referenceMobile2 like '$stxt%' or altphone1 like '$stxt%' or altphone2 like '$stxt%' or altphone3 like '$stxt%' or altphone4 like '$stxt%' or altphone5 like '$stxt%' or altphone6 like '$stxt%' or altphone7 like '$stxt%' or altphone8 like '$stxt%' or altphone9 like '$stxt%' or altphone10 like '$stxt%' or emailid like '$stxt%' or passportno like '$stxt%' or ibannumber like '$stxt%' or currentstatus like '$stxt%' or laborcardpersonalid like '$stxt%' or clientinternalid like '$stxt%' or clientcode like '$stxt%')";
$tusers=$wakka->getPersons("dialer_callback<'".$callbackDate."' and usr_id='".Auth::user()->id."' and dialer_callback!='0000-00-00 00:00:00' and dialer_substatus='CB' and dialer_substatus='PTP' and $roclientstr limit $limit");