Inquiry Follow Up

session->userdata('flag')==1 || $this->session->userdata('flag')==2){ ?>

iid; $inquiryAgentId=$obj->picked_by; $qry=" Select * from agent_comments where inquiry_id='$idInq' And agent_id='$inquiryAgentId' Order by id Desc limit 1 "; $qry3=" Select * from agent_comments where inquiry_id='$idInq' And agent_id!='$inquiryAgentId' Order by id Desc limit 1 "; $qry2=" Select * from agent_comments where inquiry_id='$idInq' Order by id Desc "; $comment=commentGet($qry); $commentAdmin=commentGet($qry3); $commentData=commentAllGet($qry2); $phoneArray= explode(',', $obj->customer_phone); ?>
Sr.# Inquiry Date Inquiry
ID
Inquiry Title Primary
Phone
Secondary
Phone
Picket By Set Reminder Actions
enquiry_date); echo $splitDate[0]; ?> iid; ?> Flight Search : name; ?>-destination); echo $destion[0]; ?> brand_code; ?>:inquiry_regin); ?>, device.' : '.$obj->os; ?> login_name; ?> session->userdata('flag')=='1' || $this->session->userdata('flag')=='2'){ ?>
customer_instr) && $comment==0){ echo $obj->customer_instr; } else{ if($comment!=0){ $flagOfAgenCom=idToName('admin','id',$comment['agent_id'],'flag'); $class=''; if($flagOfAgenCom==1 || $flagOfAgenCom==2){ $class='adminClass'; } else{ $class='agentClass'; } echo "(". idToName('admin','id',$comment['agent_id'],'login_name').") (".date('d-M-y h:m:i A',strtotime($comment['remarks_time'])).") ". $comment['remakts']; } } ?>
(". idToName('admin','id',$commentAdmin['agent_id'],'login_name').") (".date('d-M-y h:m:i A',strtotime($commentAdmin['remarks_time'])).") ". $commentAdmin['remakts']; } ?>