22 行
		
	
	
	
		
			421 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			22 行
		
	
	
	
		
			421 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| 
								 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class CQ extends CI_Model{
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    function __construct(){
							 | 
						||
| 
								 | 
							
								        // Call the Model constructor
							 | 
						||
| 
								 | 
							
								        parent::__construct();
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    function get_zones(){
							 | 
						||
| 
								 | 
							
								        $data = $this->db->query(
							 | 
						||
| 
								 | 
							
								            "select COL_CQZ, count(COL_CQZ)
							 | 
						||
| 
								 | 
							
								            from TABLE_HRD_CONTACTS_V01
							 | 
						||
| 
								 | 
							
								            where COL_CQZ is not null
							 | 
						||
| 
								 | 
							
								            group by COL_CQZ order by COL_CQZ"
							 | 
						||
| 
								 | 
							
								        );
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        return $data->result();
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |