?> <!--end search--> <?php include "../include/box_left.php"; ?> </td> <td style="padding: 10px;" valign="top"> <?php include "../include/canhonoibat.php"; ?> <?php $business = null; if (isset($_REQUEST['idphongthuy']) && $_REQUEST['idphongthuy'] != null) { include_once "../BUS/phongthuyBUS.php"; $phongthuy = phongthuyBUS::selectID($_REQUEST['idphongthuy']); } ?> <div style="width: 686px; padding-top:20px;float:left;"> <div style="margin-left: 10px; margin-top: 10px; font-family: tahoma; font-size: 18px; font-weight: bold; color:#890C29;"> Chi Tiết Căn Hộ <hr style="color: rgb(211, 232, 248);" width="680" size="1"/> <div class="mid_content"> <b style="font-size:14px;font-weight:bold;color: #006DB9;"><?php echo $phongthuy[1]; ?> </b> </div> <table style="font-weight:normal; text-align:justify; padding:0 20px;"> <tr>
$curPage = 1; $totalItems = null; $business = null; if (isset($_REQUEST['page'])) { $curPage = $_REQUEST['page']; } $maxItems = 5; $maxPages = 25; $offset = ($curPage - 1) * $maxItems; $strLink = "phongthuy.php?"; $strSQL = "select * from phongthuy"; //$strSQL1="select * from hinhanh where idconnect=1"; $strCountSQL = str_replace("*", " count(*) ", $strSQL); //$strCountSQL1=str_replace("*"," count(*) ",$strSQL1); $totalItems = phongthuyBUS::countAllBySQL($strCountSQL); //$totalItems1=phongthuyBUS::countAllBySQL($strCountSQL1); $strSQL .= " limit {$offset},{$maxItems}"; //$strSQL1.=" limit $offset,$maxItems"; $business = phongthuyBUS::getAllBySQL($strSQL); echo phongthuyBUS::display($strLink, $business, $totalItems, $curPage, $maxPages, $maxItems); ?> </div> </td> </tr> </table> </td> </tr> </table> <?php include "../include/footer.php";