123456789101112131415161718 |
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_systembox extends Lin_Model
- {
- function __construct(){
- parent::__construct();
- $this->load->database();
- $this->table = 'systembox';
- $this->load_table('systembox');
- }
- public function get_number($number)
- {
- return $this->find("number = '$number'");
- }
- public function get_data($number,$systemboxclassid)
- {
- return $this->find("number = '$number' and systemboxclassid = '$systemboxclassid' and shtime = '0'");
- }
- } //end class
|