JINMETA NEWS
$query1 = "select * from kti_board where bo_com = 'C3' and bo_gubun = 'N' order by bo_wdate desc limit 0,3";
$re1 = $conn->GetArray($query1);
$cnt = 0;
foreach($re1 as $r1){
$cnt++;
$txtmon = substr($r1[bo_wdate],4,2)."월";
$txtday = substr($r1[bo_wdate],6,2);
?>
}?>
=$txtmon?>
=$txtday?>
=iconv("euc-kr","utf-8",$r1[bo_subject])?>
=iconv("euc-kr","utf-8",strip_tags($r1[bo_content]))?>
등록된 자료가 없습니다
}?>
Recruit
$cnt = 0;
$query3 = "select * from kti_recruit where hr_com = 'C3' and hr_del = 'N' and ( hr_gubun = 'B' or (hr_gubun='A' and date_format(hr_edate,'%Y%m%d') >= '".date("Ymd")."')) order by hr_gubun desc, hr_end desc, idx desc";
$re3 = $conn->GetArray($query3);
foreach($re3 as $r3){
$cnt ++;
$hrsdate = substr($r3[hr_sdate],0,4)."/".substr($r3[hr_sdate],4,2)."/".substr($r3[hr_sdate],6,2);
$hredate = substr($r3[hr_edate],0,4)."/".substr($r3[hr_edate],4,2)."/".substr($r3[hr_edate],6,2);
if($r3[hr_gubun] == "A") {
$hrgubun = "수시채용";
$hrgubun_col = "info";
$hrdate = $hrsdate." ~ ".$hredate;
} else if($r3[hr_gubun] == "B"){
$hrgubun = "상시채용";
$hrgubun_col = "success";
$hrdate = "상시모집";
}
?>
if(($cnt % 2) == 1) echo "
";?>
";?>
if(($cnt % 2) == 0) echo "
";?>
}?>
if(($cnt % 2) == 1) echo "=$hrgubun?>=$hrdate?>
=iconv("euc-kr","utf8",$r3[hr_title])?>
if(($cnt % 2) == 0) echo "
등록된 자료가 없습니다
}?>