Example #1
0
 function layDanhSachNhaMoiGioi($returnField, $page, $limit)
 {
     $result = array();
     $context = 'com_jea.projects';
     $mainframe =& JFactory::getApplication();
     $published = $mainframe->getUserStateFromRequest($context . 'published', 'published', -1, 'int');
     $language = ilandCommonUtils::getLanguage();
     $offsetLimitArr = ilandCommonUtils::getOffsetLimit($page, $limit);
     $DBConfig = ilandCommonUtils::getSiteDBConfig();
     $conditionParams = ' 1 ';
     //gan tam
     if ($published != -1) {
         $conditionParams .= ' AND hien_thi_ra_ngoai = ' . $published;
     }
     //	print_r( $returnField );
     //	$result['rows'] = iland4_layDanhSachNhaMoiGioi($DBConfig, 'id, ten' , $conditionParams , $page, $limit, $language);
     $result['rows'] = iland4_layDanhSachNhaMoiGioi($DBConfig, $returnField, $conditionParams, $page, $limit, $language);
     //	print_r( $published );
     //exit;
     $result['published'] = $published;
     return $result;
 }
Example #2
0
 function laynhamoigioi($language)
 {
     $DBConfig = ilandCommonUtils::getSiteDBConfig();
     return iland4_layDanhSachNhaMoiGioi($DBConfig, 'id, ten', '1', 1, 10, $language);
 }