pg_open($con); $obj->jp_disp_header("column"); disp_body_column(); $obj->jp_disp_footer(); exit; function disp_body_column() { global $obj ,$pg ,$con; global $clmncd; list($ccnt ,$dats) = $pg->_get_cmsclmn_rec($clmncd); $head_ttl = $dats{'cms_head_ttl'}; $back_ptn = sprintf("column-back%02d" ,$dats{'back_no'}); $title_img = "column/img/column-title-".$dats{'cms_clmn_code'}.".jpg"; $title_imgf = HOME_DIR.$title_img; $head_img = "column/img/column-top-".$dats{'cms_clmn_code'}.".jpg"; $head_imgf = HOME_DIR.$head_img; $head_img_cap = $dats{'cms_head_cap'}; $ptnbuff = $obj->info_ptn_kbn{$dats{'cate_code'}}; $capbuff = $dats{'cms_info_cap'}; $capmsg = $dats{'cms_info_msg'}; ?>

ゆの里TOP >> コラム「

>

" ,$dats{'cms_head_msg'}); ?>

" ,$dats{$datkey}); if( $cms_ttl == "" && $cms_msg == "" ) continue; $datkey = "cms_cap_".$pos; $cms_cap = $dats{$datkey}; $cmsimg = $dats{'cms_clmn_code'}."-".$pos.".jpg"; print "

".$cms_ttl."

\n"; $midasi_img = "column/img/column-midasi-".$cmsimg; $midasi_imgf = HOME_DIR.$midasi_img; if( file_exists($midasi_imgf) ) { $datkey = "cms_img_".$pos; print "
"; print "\n"; print "

".$cms_cap."

\n"; print "
\n"; } print "

"; print $cms_msg."

\n"; } $profile_name = mb_convert_encoding($dats{'profile_name'} ,"EUC-JP" ,"UTF-8"); $profile_name = $dats{'profile_name'}; if( $profile_name != "" ) { $prtxts = array(); $prtxts = explode("\r\n" ,$dats{'profile_txt'}); $val .= "
\n"; $val .= "
\n"; $val .= "

".$profile_name."

\n"; $val .= "
\n"; foreach($prtxts as $vv) { list($prdate ,$prinfo) = split("\|" ,$vv); if( $prinfo == "" ) { $val .= "
".$prdate."
"; } else { $val .= "
".$prdate."
"; $val .= "
".$prinfo."
\n"; } } $val .= "
\n"; // $val .= "
\n"; } print $val; ?>

TEMPLATE_FOOTER_FILE; $recs = file($tempfile); foreach($recs as $val) print $val; }