ReadData( '1' );
$db_class = null ;
$_SESSION[KEY01][KEY02][KEY03][KEY04]["news"] = $topics;
$cnt = count( $topics );
$limit = $cnt;
if( array_key_exists( "nw" ,$_GET) ){
$no = $_GET["nw"];
$topics = $_SESSION[KEY01][KEY02][KEY03][KEY04]["news"][ $no ] ;
}
include("./includes/news_disp.php");
?>
$val){
$topics2[ $key ] = html_entity_decode( $topics[ $key ], ENT_QUOTES, "UTF-8" );
}
$data_topics .= "
";
$data_topics .= sprintf ("
%s
\n" ,$topics2["title"]);
/*日付のんくっつけ*/
$yy = mb_substr( $topics["disp_date"], 0, 4, CHAR_CODE );
$mm = mb_substr( $topics["disp_date"], 4, 2, CHAR_CODE );
$dd = mb_substr( $topics["disp_date"], 6, 2, CHAR_CODE );
$topics = sprintf( "%04d.%02d.%02d", $yy, $mm, $dd );
// print_r ($data) ;
$data_topics .= sprintf("
%s
\n", $topics);
$data_topics .= sprintf ("
%s
\n" , $topics2["honbun"]);
if( $topics2["l_image1"] !="" || $topics2["l_image2"] !="" || $topics2["l_image3"] !="" ){
$data_topics .="
\n";
$data_topics .="\n" ;
if( $topics2["l_image1"] !="" ){
$image_path = TOPICS_IMG3.$topics2["l_image1"];
$image_size = image_resize_fnc( TOPICS_IMG_DISP3, TOPICS_IMG_DISP4, $image_path );
$data_topics .= sprintf (" | \n" , $image_path , $topics2["title"], $i, $image_path , $image_size["width"], $image_size["height"] );
}
if( $topics2["l_image2"] !="" ){
$image_path = TOPICS_IMG3.$topics2["l_image2"];
$image_size = image_resize_fnc( TOPICS_IMG_DISP3, TOPICS_IMG_DISP4, $image_path );
$data_topics .= sprintf (" | \n" , $image_path , $topics2["title"], $i, $image_path , $image_size["width"], $image_size["height"] );
}
if( $topics2["l_image3"] !="" ){
$image_path = TOPICS_IMG3.$topics2["l_image3"];
$image_size = image_resize_fnc( TOPICS_IMG_DISP3, TOPICS_IMG_DISP4, $image_path );
$data_topics .= sprintf (" | \n" , $image_path , $topics2["title"], $i, $image_path , $image_size["width"], $image_size["height"] );
}
$data_topics .="
\n";
$data_topics .="
\n";
}
$data_topics .= "
\n";
echo $data_topics;
?>