<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class G_list extends CI_Controller {
	public function __construct()
	{
		parent::__construct();
		session_start();
		
		date_default_timezone_set('Asia/Singapore');
		$this->load->model('edm_m');
		$this->load->model('membership_m');
	}
	
	
	
	public function index()
	{
		$listing = $this->membership_m->listing();
		
		foreach($listing as $u)
		{
			if($u['member_type'] != 1)
				continue;
			$v = $this->edm_m->get_strength($u['id']);
		
			foreach($v as $vv)
			{
				$me[$vv['meta_key']] = $vv['meta_value'];
			}
			
			$name = '';
			$email = '';
			$contact = '';
			$size = '';
			
			$size = $me[1];
			$size = floatval($size);
			$name = $me[14];
			$email = $me[16];
			$contact = $me[17];
			
		
			
			print $u['company'].'|<br>';
			
			
		}
		
	}
	 
}
/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */