function getNews($tablename,$per_nums,$start_position)
{
if($start_position=='')
{
$start_position=0;
}
$query=$this->db->query("select * from cb_newsclass as a,$tablename as b where a.id=b.newsclassid order by b.newsid desc limit $start_position,$per_nums");
$data=$query->result();
$data2[]=$data;
return $data2;
}