DbGetRow($sql); }else{ if(isset($_SESSION['product_ty'])){ $ty = $_SESSION['product_ty']; $sql = "select * from e_producttype where Num=".$ty; $rs_ty = $gDbManager->DbGetRow($sql); }else{ $sql = "select * from e_producttype Order by Seq, Num Limit 0, 1"; $rs_ty = $gDbManager->DbGetRow($sql); $ty = $rs_ty['Num']; $_SESSION['product_ty'] = $ty; } } if(isset($_GET['page'])){ $page = $_GET['page']; // $_SESSION['product_page'] = $page; }else{ // if(isset($_SESSION['product_page'])){ // $page = $_SESSION['product_page']; // }else{ $page = 0; // } } $sql = "select count(*) as NumCnt from e_product where TypeNum=".$ty; $rec_cnt = $gDbManager->DbGetAll($sql); $rsCnt = $rec_cnt[0]['NumCnt']; $limit = 10; $tmppage = $page * $limit; $sql = "select * from e_product where TypeNum=".$ty." Order By Seq, Num Limit ".$tmppage.", ".$limit; $rec_product = $gDbManager->DbGetAll($sql); if(count($rec_product) == 1 && 0){ echo ''; exit; } include 'head.html'; ?>