</td> <td style="padding: 10px;" valign="top"> <?php include "../include/canhonoibat.php"; ?> <div style="width: 686px;float:left"> <div style="margin-left: 10px; margin-top: 10px; font-family: tahoma; font-size: 18px; font-weight: bold; color:#890C29; text-transform:uppercase;"> Địa Ốc Pháp Luật </div> </div> <div> <?php include "../BUS/DiaOcPhapLyBUS.php"; $rs = DiaOcPhapLyBUS::GetAllDiaOcPhapLy(); $curPage = 1; $totalItems = null; $business = null; if (isset($_REQUEST['page'])) { $curPage = $_REQUEST['page']; } $maxItems = 5; $maxPages = 25; $offset = ($curPage - 1) * $maxItems; $strLink = "phapluat.php?"; $strSQL = "select * from diaocphaply"; $strCountSQL = str_replace("*", " count(*) ", $strSQL); $totalItems = DiaOcPhapLyBUS::countAllBySQL($strCountSQL); $strSQL .= " limit {$offset},{$maxItems}"; $business = DiaOcPhapLyBUS::getAllBySQL($strSQL);