public static function getVillage_traditionalknowledgeList2($searchtext, $page) { $pagestart = $page == 0 ? 0 : ($page - 1) * 5; $pageEnd = $page * 5; if (strtolower($searchtext) == "search" || $searchtext == "") { $obj_retResult = DAL_manageVillage_traditionalknowledge::getAllVillage_traditionalknowledge($pagestart, $pageEnd); } else { //* $obj_retResult = BL_manageVillage_traditionalknowledge::searchVillage_traditionalknowledgeByTblId($searchtext); } $html = "<div class=\"subheader\" >Village_traditionalknowledge 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>TblId</th>"; $html .= "<th>VillageId</th>"; $html .= "<th>TraditionalKnowledgeCategoryID</th>"; $html .= "<th>Discription</th>"; $html .= "</tr>"; foreach ($arr_Village_traditionalknowledgeList as $obj_Village_traditionalknowledge) { $html .= $obj_Village_traditionalknowledge->drawTableViewVillage_traditionalknowledge(); } $html .= "</table></div>"; } else { $html = "No user found"; } return $html; }