//模板里面方法
function customer_phone_info($limit,$offset){
$this->load->database();
$this->db->limit($limit,$offset);
$query_string="select a.*,b.* from tel_count as a join customer as b on a.cus_id=b.id";
$result=$this->db->query($query_string);
$resu=$result->result();
return $resu;
}
function count_product($condition)
{
$query="SELECT COUNT(*) AS count {$condition}";
//echo $query; exit;
$result=$this->db->query($query);
return $result->result();
}