| 12345678910111213141516171819202122232425 | 
							- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
 
- class Model_customsdeclaration extends Lin_Model 
 
- {
 
- 	function __construct(){
 
- 	parent::__construct();
 
- 	$this->load->database();
 
- 	$this->table = 'customsdeclaration';
 
-     $this->load_table('customsdeclaration');
 
- }
 
- 	/** 通过名称查找 */
 
- 	public function get_ename($ename)
 
- 	{
 
- 		return  $this->find("ename = '$ename'");	
 
- 	}
 
- 	/** 通过名称查找 */
 
- 	public function get_zname($zname)
 
- 	{
 
- 		return  $this->find("zname = '$zname'");	
 
- 	}
 
- 	/** 通过名称查找 */
 
- 	public function get_bname($bname)
 
- 	{
 
- 		return  $this->find("bname = '$bname'");	
 
- 	}
 
- }  //end class
 
 
  |