public static function getBusiness_productList2($searchtext, $page) { $pagestart = $page == 0 ? 0 : ($page - 1) * 5; $pageEnd = $page * 5; if (strtolower($searchtext) == "search" || $searchtext == "") { $obj_retResult = DAL_manageBusiness_product::getAllBusiness_product($pagestart, $pageEnd); } else { //* $obj_retResult = BL_manageBusiness_product::searchBusiness_productByProductId($searchtext); } $html = "<div class=\"subheader\" >Business_product List</div>"; if ($obj_retResult->type == 1) { $arr_userList = $obj_retResult->data; $html .= "<div ><table cellpadding=\"0\" cellspacing=\"0\"><tr>"; $html .= "<th></th>"; $html .= "<th>BusinessId</th>"; $html .= "<th>ProductId</th>"; $html .= "</tr>"; foreach ($arr_Business_productList as $obj_Business_product) { $html .= $obj_Business_product->drawTableViewBusiness_product(); } $html .= "</table></div>"; } else { $html = "No user found"; } return $html; }