Exemplo n.º 1
0
 function browse($p, $pagesize, $pos)
 {
     #取最上圖片資料
     if ($this->func == "COM") {
         $keys = array("COM_IMG1");
     }
     $d = new Params($this->db_conn);
     $keydata = array();
     foreach ($keys as $k) {
         $d->getData($k);
         $keydata[$k] = clone $d;
     }
     $this->assign('keydata', $keydata);
     $this->assign('func', $this->func);
     #取最列表片資料
     $c = new Comb($this->db_conn);
     $rows = $c->getList($p);
     $total = mysql_num_rows($rows);
     $limit_str = $this->limit($total, $pagesize, $pos);
     $lists = $c->getListArray($p, $limit_str);
     $query_str = "";
     $this->assign('p', $p);
     $this->assign('data', $c);
     $this->assign('lists', $lists);
     $this->assign('content_page', $this->template . $this->list_tpl);
     $this->pager($lists, $query_str);
     $this->output();
 }