0){ $Rs = mysql_fetch_array($result); $intNewsHilightID = $Rs["INT_NEWS_ID"]; $intCatID = $Rs["INT_NEWS_CATEGORY_ID"]; $strNewsSubject = $Rs["STR_NEWS_SUBJECT"]; $strNewsDetail = genContentMore($Rs["STR_NEWS_DETAIL"],strlen($Rs["STR_NEWS_DETAIL"])); $strNewsDetail = genContentMore($strNewsDetail,250).'...'; $strNewsDate= RLDateFormat($Rs["DTE_NEWS_DATE"] , "md,yyyy", 2); $strNewsThumb = $Rs["STR_NEWS_IMAGE"]; if($strNewsThumb==""){ $strNewsThumb = "img/ad-pic1.jpg"; }else{ $strNewsThumb = "../imgUpload/".$strNewsThumb; } if($intCatID=="1"){ $strUrl = "news-detail.php"; }elseif($intCatID=="2"){ $strUrl = "events-detail.php"; } }*/ ?>
    0) { while($rsLead = mysql_fetch_array($resultLead)) { $l++; $intNewsHilightID = $rsLead["INT_NEWS_ID"]; $intCatID = $rsLead["INT_NEWS_CATEGORY_ID"]; $intUpdate = $rsLead["intDateDiff"]; $strNewsSubject = $rsLead["STR_NEWS_SUBJECT"]; if (strlen($strNewsSubject)>120){ $strNewsSubject = substr($strNewsSubject,0,120).'...'; } /*$strNewsDetail = genContentMore($rsLead["STR_NEWS_DETAIL"],strlen($Rs["STR_NEWS_DETAIL"])); $strNewsDetail = genContentMore($strNewsDetail,250).'...';*/ $strNewsDetail = $rsLead["STR_NEWS_DETAIL"]; $strNewsDetail = removeHtmlTag($strNewsDetail,strlen($strNewsDetail)); if (strlen($strNewsDetail)>250){ //$strNewsDetail = genContentMore($strNewsDetail,strlen($strNewsDetail)); $strNewsDetail = substr($strNewsDetail,0,250).'...'; } $strNewsDate= RLDateFormat($rsLead["DTE_NEWS_DATE"] , "md,yyyy", 2); $strNewsThumb = $rsLead["STR_NEWS_IMAGE"]; if($strNewsThumb==""){ $strNewsThumb = "img/default-big.jpg"; }else{ $strNewsThumb = "../imgUpload/".$strNewsThumb; } if($intCatID=="1"){ $strUrl = "news-detail.php"; }elseif($intCatID=="2"){ $strUrl = "events-detail.php"; }elseif($intCatID=="3"){ $strUrl = "press-release-detail.php"; } ?>
$intNewsHilightID order by dte_news_date desc,int_news_id desc limit 0,3"; $result = mysql_query($sql); $num = mysql_num_rows($result); if($num>0){ $result=mysql_query($sql); while($Rs = mysql_fetch_array($result)) { $intNewsID = $Rs["INT_NEWS_ID"]; $intCatID = $Rs["INT_NEWS_CATEGORY_ID"]; $intUpdate = $Rs["intDateDiff"]; if (strlen($Rs["STR_NEWS_SUBJECT"])>50){ $strNewsSubject = substr($Rs["STR_NEWS_SUBJECT"],0,50).'...'; }else{ $strNewsSubject = $Rs["STR_NEWS_SUBJECT"]; } $strNewsDetail = $Rs["STR_NEWS_DETAIL"]; $strNewsDetail = removeHtmlTag($strNewsDetail,strlen($strNewsDetail)); if (strlen($strNewsDetail)>100){ //$strNewsDetail = genContentMore($strNewsDetail,strlen($strNewsDetail)); $strNewsDetail = substr($strNewsDetail,0,100).'...'; } /*if (strlen($strNewsDetail)>100){ $strNewsDetail = genContentMore($strNewsDetail,strlen($strNewsDetail)); $strNewsDetail = substr($strNewsDetail,0,100).'...'; }*/ //$strNewsDetail = genContentMore($strNewsDetail,250).'...'; $strNewsDate= RLDateFormat($Rs["DTE_NEWS_DATE"] , "md,yyyy", 2); $strNewsThumb = $Rs["STR_NEWS_THUMB"]; if($strNewsThumb==""){ $strNewsThumb = "img/default.jpg"; }else{ $strNewsThumb = "../imgUpload/".$strNewsThumb; } if($intCatID=="1"){ $strUrl = "news-detail.php"; }elseif($intCatID=="2"){ $strUrl = "events-detail.php"; }elseif($intCatID=="3"){ $strUrl = "press-release-detail.php"; } $c++; ?>

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player