load->view('front/includes/header'); ?> session->userdata('primaryid'); $userrole=$this->session->userdata('userrole'); $loggedname=$this->session->userdata('loggedname'); $tables="users"; $wheres=array("id"=>$primaryid); $shows=("*"); $userdet=$this->commonsql_model->selectTable($tables,$wheres,$shows); if($userdet->num_rows()>0) { $u=$userdet->row(); $loggedusername=$u->name; } $CI=&get_instance(); $CI->load->model("frontend_model"); ?> User Profile Hi =ucwords($loggedusername);?> , Welcome to policybot load->view('front/includes/leftmenu'); ?> Response From Agents num_rows()>0){ foreach($user_req->result() as $urq){ $agentname=$urq->agentname; $quote_id=$urq->quote_id; $user_id=$urq->user_id; $agency_id=$urq->agency_id; $mobile=$urq->mobile; $email=$urq->email; $message=$urq->message; $status=$urq->status; $profilepic=$urq->profilepic; $agency_id=$urq->agency_id; $revw=$CI->frontend_model->agent_review_from_user($agency_id); if($revw->num_rows()>0) { $rw=$revw->row(); $rating=$rw->rating; $text=$rw->text; $emptystar=5-$rating; } else {$rating="0";$emptystar=5-$rating;} ?> =ucwords($agentname);?> Message =$message;?> Accept Not Interest Accepted Cancelled No Response..! load->view('front/includes/footer'); ?>
Message