pg_open($con); $obj->jp_disp_header("news"); ?> _get_cmsnews_rec($newscd); $infottl = mb_substr($dats{'cms_info_ttl'} ,0 ,30 ,'UTF-8'); $infottl = $dats{'cms_info_ttl'}; $opendate = sprintf("%s.%2d.%2d" ,substr($dats{'cms_open_date'} ,0 ,4) ,substr($dats{'cms_open_date'} ,4 ,2), substr($dats{'cms_open_date'} ,6 ,2)); $ptnbuff = $obj->info_ptn_kbn{$dats{'cate_code'}}; $capbuff = $dats{'cms_info_cap'}; $capmsg = str_replace("\n" ,"
" ,$dats{'cms_info_msg'}); ?>

ゆの里TOP >>

"; $spanbf2 = ""; list($imgw ,$imgh) = getimagesize($newsimgfile); if( $imgw < $imgh ) { $spanbf1 = ""; $spanbf2 = ""; } ?>

.jpg >

"; $val .= "
\n"; for($ii=0 ;$ii<$reccnt ;$ii++) { $dats = @pg_fetch_array($rs ,$ii); $lnkadrs = "index.php?newscd=".$dats{'cms_news_code'}; $infottl = mb_substr($dats{'cms_info_ttl'} ,0 ,30 ,'UTF-8'); $opendate = sprintf("%s.%2d.%2d" ,substr($dats{'cms_open_date'} ,0 ,4) ,substr($dats{'cms_open_date'} ,4 ,2), substr($dats{'cms_open_date'} ,6 ,2)); // printf("

%s

" ,$dats{'cms_news_code'} ,$dats{'cms_info_ttl'}); $val .= sprintf("

%s

" ,$opendate); $val .= sprintf("

%s

" ,$dats{'cate_code'} ,$obj->info_ptn_kbn{$dats{'cate_code'}}); $val .= sprintf("

%s

" ,$lnkadrs ,$infottl); } $val .= "
\n"; print $val; ?>

jp_disp_footer(); exit;