if (isset($_GET['update']) && $_GET['update'] != null && $capnhatDV['donvitien'] == $rs[$i][0]) {
            echo "<option value='" . ($i + 1) . "' selected>" . $rs[$i][1] . "</option>";
        } else {
            if ($rs[$i][0] == 2) {
                echo "<option selected value='" . ($i + 1) . "'>" . $rs[$i][1] . "</option>";
            } else {
                echo "<option value='" . ($i + 1) . "'>" . $rs[$i][1] . "</option>";
            }
        }
    }
    ?>
													</select> / 
													<select id="cbbDonViDichVu" name="cbbDonViDichVu" class="DropDownList" >
													<?php 
    include "../BUS/DonViDichVuBUS.php";
    $rs = DonViDichVuBUS::GetAllDonViDichVu();
    for ($i = 0; $i < count($rs); $i++) {
        if (isset($_GET['update']) && $_GET['update'] != null && $capnhatDV['donvidv'] == $rs[$i][0]) {
            echo "<option value='" . ($i + 1) . "' selected>" . $rs[$i][1] . "</option>";
        } else {
            echo "<option value='" . ($i + 1) . "'>" . $rs[$i][1] . "</option>";
        }
    }
    ?>
												
													</select>
													</div>
													<div id="messGia" name="messGia" style="width:150px;float:left;"></div>
												</td>
											</tr>
										</table>
 public static function display($strLink, $business, $totalItems, $curPage, $maxPages, $maxItems)
 {
     $strResult = "";
     if (count($business) > 0) {
         for ($i = 0; $i < count($business); $i++) {
             $strResult .= "<tr bgcolor='#ffffff'>";
             $strResult .= "<td width='60' valign='middle' align='center' style='border-bottom:solid 1px #CCCCCC;'>";
             $strResult .= "<b>" . $business[$i][0] . "</b></td>";
             //id
             $strResult .= "<td valign='top' align='left' style='border-left: 1px solid rgb(204, 204, 204); border-bottom: 1px solid rgb(204, 204, 204);'>";
             if ($business[$i]['status'] == 0) {
                 $strResult .= "<div style='float:right;'><b style='color:#FF0000;'>Chờ duyệt</b></div><br>";
                 //loai tin
                 $strResult .= "<b>" . $business[$i][1] . "</b><br>";
                 //tên tiêu đề
             } else {
                 if ($business[$i]['status'] == 1) {
                     $strResult .= "<span style='color: rgb(255, 0, 0);'>Tin đã duyệt</span><div style='float:right;'><b style='color:#FF0000;'>Miễn Phí</b></div><br>";
                     //loai tin
                     $strResult .= "<b>" . $business[$i][1] . "</b><br>";
                     //tên tiêu đề
                 } else {
                     if ($business[$i]['status'] == 2) {
                         $strResult .= "<div style='float:right;'><b style='color:#FF0000;'>Tin VIP</b></div><br>";
                         //loai tin
                         $strResult .= "<b>" . $business[$i][1] . "</b><br>";
                         //tên tiêu đề
                     } else {
                         $strResult .= "<div style='float:right;'><b style='color:#FF0000;'>Hết hạn</b></div><br>";
                         //loai tin
                         $strResult .= "<b>" . $business[$i][1] . "</b><br>";
                         //tên tiêu đề
                     }
                 }
             }
             //load data
             $loaidv = LoaiDichVuBUS::getById($business[$i][19]);
             $huongnha = HuongNhaBUS::GetHuongNhaById($business[$i]['huongnha']);
             $donvitien = DonViTienBUS::selectId($business[$i]['donvitien']);
             $donvidv = DonViDichVuBUS::selectId($business[$i]['donvidv']);
             $loainha = LoaiNhaBUS::getById($business[$i]['loainha']);
             if ($business[$i]['ngaydang'] != null) {
                 $date = Utils::convertTimeDMY($business[$i]['ngaydang']);
                 $declinetime = Utils::convertDecline_Time($business[$i]['ngaydang']);
             } else {
                 $date = "00:00:00";
                 $declinetime = "00:00:00";
             }
             //endload
             $strResult .= "- <b style='color: #0D5DA8;font-weight:bold;font-size:11px;text-decoration: none;'\t>Loại nhà:" . $loainha['ten'] . " </b><br> - <a target='_blank' href='#'>" . $loaidv[1] . "</a>";
             //tên loại dv
             $strResult .= "- Hướng nhà:" . $huongnha[1] . "<br>";
             //Hướng nhà
             $strResult .= "- Giá: <b>" . number_format($business[$i]['giaban']) . "</b> " . $donvitien['ten'] . "/" . $donvidv['ten'] . "  - Kích thước: " . $business[$i]['dai'] . "x" . $business[$i]['rong'] . " m<sup>2</sup> </b><br>";
             //giá nhà và kt
             if ($business[$i]['status'] == 1) {
                 $strResult .= "<div style='float:left; padding:3px; font-weight: bold;'><a style='color:red;' href='nangcaptinvip.php?iddv=" . $business[$i]['id'] . "'><img align='left' src='../images/uprade.png'>Nâng cấp lên VIP 275.000 /tháng</a></div></td>";
                 //giá nhà và kt
             }
             $strResult .= "<td width='260' valign='top' style='border-left: 1px solid rgb(204, 204, 204); border-bottom: 1px solid rgb(204, 204, 204);'>";
             //column 3
             $strResult .= "<div style='margin-bottom: 5px; font-weight: normal; color: rgb(51, 51, 51);'>";
             //$strResult.="- 1 lượt xem tin <br>"; //so nguoi xem tin
             $strResult .= "- Ngày đăng: &nbsp;&nbsp;&nbsp;&nbsp;" . $date . "<br>";
             //ngay dang
             $strResult .= "- Ngày hết hạn: " . $declinetime . "<br>";
             //ngay het han
             $strResult .= "</div>";
             $strResult .= "<div style='padding: 3px; background-color: rgb(242, 245, 249); border: 1px solid rgb(204, 204, 204);font-weight: bold;'>";
             $strResult .= "<b title='23-06-2011' style='color: green;'>";
             $strResult .= "<img align='center' style='margin: 0px;position:relative;top:-4px;' src='../images/action_check2.png'>Đã cập nhật</b>&nbsp;&nbsp;";
             //update
             $strResult .= "<a href='dangtindichvu.php?update=" . $business[$i][0] . "&loaidvcandang=" . $business[$i]['loaidv'] . "&step=" . '1' . "' style='color: #0D5DA8;font-weight:bold;font-size:11px;text-decoration: none;'>";
             $strResult .= "<img align='center' style='margin: 0px;position:relative;top:-4px;' src='../images/edit.png'>Sửa tin</a>&nbsp;&nbsp;";
             //repare
             $strResult .= "<a onclick='return xoatindang(" . $business[$i][0] . ");' href='' style='color: #0D5DA8;font-weight:bold;font-size:11px;text-decoration: none;'>";
             $strResult .= "<img align='center' style='margin: 0px;position:relative;top:-4px;' src='../images/action_delete2.png' >Xóa tin</a></div>";
             //delete
             $strResult .= "</td></tr>";
         }
     } else {
         echo "<tr><td align='center' colspan='3'><h3 style='color: #336699; font-size: 14px;margin: 0;padding: 0;'>Chưa có tin đăng !</h3></td></tr>";
         echo "<tr><td></td></tr>";
     }
     $strResult .= "</table>";
     $strPaging = Utils::paging($strLink, $totalItems, $curPage, $maxPages, $maxItems);
     $strResult .= "<center>" . $strPaging;
     return $strResult;
 }