include_once "../BUS/HinhAnhBUS.php"; include_once "../BUS/DonviDichVuBUS.php"; include_once "../BUS/DonViTienBUS.php"; include_once "../BUS/TinhBUS.php"; include_once "../BUS/QuanBUS.php"; include_once "../BUS/PhuongBUS.php"; include_once "Utils/Utils.php"; include_once "../BUS/LoaiDVBUS.php"; include_once "../BUS/LoaiNhaBUS.php"; include_once "../BUS/PhapLyBUS.php"; include_once "../BUS/HuongNhaBUS.php"; $business = DichVuBUS::select($_REQUEST['iddichvu']); $quan = QuanBUS::getQuanById($business['quan']); $phuong = PhuongBUS::getPhuongById($business['phuong']); $tinh = TinhBUS::getTinhById($business['tinh']); $loaidichvu = LoaiDVBUS::GetLoaiDVByID($business['loaidv']); $loainha = LoaiNhaBUS::getById($business['loainha']); $phaply = PhapLyBUS::GetPhapLyById($business['phaply']); $huongnha = HuongNhaBUS::GetHuongNhaById($business['huongnha']); $donvitien = DonViTienBUS::selectId($business['donvitien']); $hinhanh = HinhAnhBUS::getAllHinhAnhByDichVuID($business['id']); // echo count($hinhanh); // echo "<br>aaaaaaaaa=".$hinhanh[0]['path']; } ?> <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;"> <?php echo $business['tieude']; ?>
<div class="bm"></div> </div> <?php include_once "../BUS/DichVuBUS.php"; include_once "../BUS/LoaiDVBUS.php"; include_once "../BUS/TinhBUS.php"; include_once "../BUS/QuanBUS.php"; include_once "../BUS/PhuongBUS.php"; include_once "../BUS/DonViTienBUS.php"; include_once "../BUS/LoaiNhaBUS.php"; include_once "../module/Utils/Utils.php"; include_once "../BUS/HuongNhaBUS.php"; include_once "../BUS/PhapLyBUS.php"; include_once "../BUS/HinhAnhBUS.php"; $objCanHo = DichVuBUS::select($_REQUEST["aid"]); $loaidv = LoaiDVBUS::GetLoaiDVByID($objCanHo["loaidv"]); $tinh = TinhBUS::getTinhById($objCanHo["tinh"]); $quan = QuanBUS::getQuanById($objCanHo["quan"]); $phuong = PhuongBUS::getPhuongById($objCanHo["phuong"]); $donvitien = DonViTienBUS::selectId($objCanHo["donvitien"]); $loainha = LoaiNhaBUS::getById($objCanHo["loainha"]); $huongnha = HuongNhaBUS::GetHuongNhaById($objCanHo["huongnha"]); $phaply = PhapLyBUS::GetPhapLyById($objCanHo["phaply"]); $hinhanh = HinhAnhBUS::getAllHinhAnhByDichVuID($objCanHo['id']); ?> <div style="margin:10px"> <div class="tl"></div> <div class="tr"></div> <div class="tm"></div> <div class="mid"> <script src="js/common.js" language="javascript"></script>
?> ;"> <td align="center"><?php echo $i + 1; ?> </td> <td align="center"><input type="checkbox" name="cbTinDang" id="cbTinDang" value="<?php echo $listTinDang[$i]["id"]; ?> " onclick="Check_Click(this)"></td> <td class="m_name"><?php echo "<a href='index.php?view=article&do=edit&aid=" . $listTinDang[$i]["id"] . "'>" . $listTinDang[$i]["tieude"] . "</a>"; ?> </td> <?php $loaidv = LoaiDVBUS::GetLoaiDVByID($listTinDang[$i]["loaidv"]); echo "<td align='center'>" . $loaidv[1] . "</td>"; $loainha = LoaiNhaBUS::getById($listTinDang[$i]["loainha"]); echo "<td align='center'>" . $loainha[1]; if ($listTinDang[$i]["rank"] == 1) { echo " <img src='images/hot.gif' />"; } echo "</td>"; $phuong = PhuongBUS::getPhuongById($listTinDang[$i]["phuong"]); $quan = QuanBUS::getQuanById($listTinDang[$i]["quan"]); echo "<td>" . $listTinDang[$i]["sonha"] . " " . $listTinDang[$i]["duong"] . ", " . $phuong[1] . ", " . $quan[1] . ", "; $tinh = TinhBUS::getTinhById($listTinDang[$i]["tinh"]); echo $tinh[1] . "</td>"; $donviTien = DonViTienBUS::selectId($listTinDang[$i]["donvitien"]); echo "<td align='right'>" . number_format($listTinDang[$i]["giaban"]) . " {$donviTien['1']}</td>"; if ($listTinDang[$i]["ngaydang"] != null) {