'1' ". " AND hiduke >= '".$disp2."' ". " AND hiduke <= '".$now_date."' "; //echo $sql_ken; $result_all = mysql_query( $sql_ken ); $count_all = mysql_num_rows( $result_all ); if ( $count_all > $ken ) { $x = ceil( $count_all / $ken ); } else { $x = 1; } // データ取得 $sql = "SELECT ". " * ". " FROM sya_d_news ". " WHERE del_flg <> '1' ". " AND hiduke >= '".$disp2."' ". " AND hiduke <= '".$now_date."' ". " ORDER BY hiduke DESC, id ASC"; $sql = $sql." LIMIT 0,".$ken; $result = mysql_query( $sql ); $count = mysql_num_rows( $result ); // 表示 $n_list = ""; for ( $i = 0; $i < $count; $i++ ) { $rs = mysql_fetch_array( $result ); $id = $rs['id']; $hiduke = $rs['hiduke']; //$content = j_code6( $rs['content'] ); $content = mb_convert_encoding($rs['content'], "cp932"); $update = $rs['up_date']; $ht_hiduke = "". ( substr( $hiduke, 0, 4 ).".". ( substr( $hiduke, 4, 2 ) + 0 ).".". ( substr( $hiduke, 6, 2 ) + 0 )."" ); // 新着 if ( $i == 0 ) { $str_new = j_code6( "" ); } else { $str_new = ""; } /* $d1 = time(); // $d1 = time_to_unix( $d0 ); $d2 = time_to_unix( $hiduke."000000" ); $dd = 432000; // 5 * ( 24 * 60 * 60 ); // 新着範囲(5日) //echo "( ".$d2." > ( ".$d1." - ".$dd." ) )
\n"; if ( $d2 > ( $d1 - $dd ) ) { $str_new = j_code6( "" ); } else { $str_new = ""; } */ $n_list .= "". "\n". " ".$ht_hiduke." ".$str_new."\n". " \n". " ".$content."\n". " \n". "\n"; } include( 'index_in.html' ); // ## Form1() ## // $p_sel : 選択ページリンクリスト // $p_link : 前次ページリンク // $n_list : リスト本体 ?>