function browse($p, $pagesize, $pos) { $s = new AsProduct($this->db_conn); $rows = $s->getList($p); $total = mysql_num_rows($rows); $limit_str = $this->limit($total, $pagesize, $pos); $lists = $s->getListArray($p, $limit_str); $query_str = ""; $this->assign('p', $p); $this->assign('data', $s); $this->assign('lists', $lists); $this->assign('content_page', $this->template . $this->list_tpl); $this->pager($lists, $query_str); $this->output(); }
$s = new Subclass(); $p = array(); $p['cat_id'] = '37'; $lists = $s->getListArray($p); */ if ($cat_id == "") { $cat_id = 44; } if ($sub_id == "") { $sub_id = 8; } //if($id =="") $id = 8; $c = new AsProduct(); $p['cat_id'] = $cat_id; $p['sub_id'] = $sub_id; $prolists = $c->getListArray($p); //print_r($prolists); //print_r($lists);return ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>木屋專家-工程實績-安信木匠</title> <!--<meta name="viewport" content="width=device-width, initial-scale=1">-->