29 行
		
	
	
	
		
			646 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			29 行
		
	
	
	
		
			646 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| 
								 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class adif_data extends CI_Model {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    function __construct()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        // Call the Model constructor
							 | 
						||
| 
								 | 
							
								        parent::__construct();
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    function export_all() {
							 | 
						||
| 
								 | 
							
								        //$this->db->limit(5);
							 | 
						||
| 
								 | 
							
								        $this->db->order_by("COL_TIME_ON", "ASC"); 
							 | 
						||
| 
								 | 
							
								        $query = $this->db->get($this->config->item('table_name'));
							 | 
						||
| 
								 | 
							
								        
							 | 
						||
| 
								 | 
							
								        return $query;
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								    
							 | 
						||
| 
								 | 
							
								    function export_custom($from, $to) {
							 | 
						||
| 
								 | 
							
								        $this->db->where("COL_TIME_ON BETWEEN '".$from."' AND '".$to."'");
							 | 
						||
| 
								 | 
							
								        $this->db->order_by("COL_TIME_ON", "ASC"); 
							 | 
						||
| 
								 | 
							
								        $query = $this->db->get($this->config->item('table_name'));
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        return $query;
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								?>
							 |