=$start_date "; } if( !empty($_POST[end_date] ) ) { $end_date =strtotime( $_POST[end_date] ); $where .= " and news_art_post_time <=$end_date "; } $sql = "select * from $NEWS_ARTICLES_TABLE where news_art_status=4 $where order by news_art_id desc limit 100"; $news_list = get_query_list($conn, $sql); for($i=0; $i 42 ) $news_list[$i][news_art_title] = substr($news_list[$i][news_art_title], 0, 40) . "..."; */ $sql = "select * from news_website_categories where news_center_id=0 and status=1 order by news_cat_order"; $news_center_column_list = get_query_list($conn, $sql); for($i=0; $i 38 ) $top_fixed_1_news_pic_list[$i][news_art_title] = substr($top_fixed_1_news_pic_list[$i][news_art_title], 0, 38); $pic_path = "../../news_pictures/" . $top_fixed_1_news_pic_list[0][news_art_id]%100 . "/" . $top_fixed_1_news_pic_list[0][news_art_id]; if ( $handle = @opendir($pic_path) ) { while( false !== ( $file = readdir($handle) ) ) if(substr($file, 0, 1) == "1") break; closedir($handle); } $top_fixed_1_news_pic_list[0][pic] = $pic_path . "/" . $file; if( !is_file($top_fixed_1_news_pic_list[0][pic]) ) $top_fixed_1_news_pic_list[0][pic] = "../images/no_pic.gif"; if( strlen($top_fixed_1_news_pic_list[0][news_art_text]) > 150 ) $top_fixed_1_news_pic_list[0][news_art_text] = substr($top_fixed_1_news_pic_list[0][news_art_text], 0, 148) . "..."; */ //置顶文章 /* $sql = "select * from $NEWS_ARTICLES_TABLE where news_art_status=4 and top_fixed_1>0 and news_art_type_id=1 order by news_art_post_time desc limit 1"; $top_fixed_1_news_list = get_query_list($conn, $sql); for($i=0; $i 38 ) $top_fixed_1_news_list[$i][news_art_title] = substr($top_fixed_1_news_list[$i][news_art_title], 0, 38); */ //置顶图片 $sql = "select * from $NEWS_ARTICLES_TABLE where news_art_status=4 and top_fixed_1>0 and news_art_type_id=2 order by news_art_post_time desc limit 1"; $top_fixed_1_news_pic_list = get_query_list($conn, $sql); for($i=0; $i 38 ) $top_fixed_1_news_pic_list[$i][news_art_title] = substr($top_fixed_1_news_pic_list[$i][news_art_title], 0, 38); $pic_path = "../../news_pictures/" . $top_fixed_1_news_pic_list[0][news_art_id]%100 . "/" . $top_fixed_1_news_pic_list[0][news_art_id]; if ( $handle = @opendir($pic_path) ) { while( false !== ( $file = readdir($handle) ) ) if(substr($file, 0, 1) == "1") break; closedir($handle); } $top_fixed_1_news_pic_list[0][pic] = $pic_path . "/" . $file; if( !is_file($top_fixed_1_news_pic_list[0][pic]) ) $top_fixed_1_news_pic_list[0][pic] = "../images/no_pic.gif"; if( strlen($top_fixed_1_news_pic_list[0][news_art_text]) > 150 ) $top_fixed_1_news_pic_list[0][news_art_text] = substr($top_fixed_1_news_pic_list[0][news_art_text], 0, 148) . "..."; //图片短讯 $sql = "select * from $NEWS_ARTICLES_TABLE where news_art_status=4 and news_art_type_id=2 order by news_art_post_time desc limit 10"; $news_picture_short_list = get_query_list($conn, $sql); for($i=0; $i 38 ) $news_picture_short_list[$i][news_art_title] = substr($news_picture_short_list[$i][news_art_title], 0, 38); $pic_path = "../../news_pictures/" . $news_picture_short_list[$i][news_art_id]%100 . "/" . $news_picture_short_list[$i][news_art_id]; if ( $handle = @opendir($pic_path) ) { while( false !== ( $file = readdir($handle) ) ) if(substr($file, 0, 7) == "thumb_1") break; closedir($handle); } if ( (substr($file, 0, 7) != "thumb_1") && ($handle = @opendir($pic_path)) ) { while( false !== ( $file = readdir($handle) ) ) if(substr($file, 0, 1) == "1") break; closedir($handle); } $news_picture_short_list[$i][pic] = $pic_path . "/" . $file; if( !is_file($news_picture_short_list[$i][pic]) ) $news_picture_short_list[$i][pic] = "../images/no_pic.gif"; if( strlen($news_picture_short_list[$i][news_art_text]) > 120 ) $news_picture_short_list[$i][news_art_text] = substr($news_picture_short_list[$i][news_art_text], 0, 118) . "..."; } //视频新闻 $sql = "select * from $NEWS_ARTICLES_TABLE where news_art_status=4 and news_art_type_id=3 order by news_art_post_time desc limit 10"; $news_video_list = get_query_list($conn, $sql); for($i=0; $i 38 ) $news_video_list[$i][news_art_title] = substr($news_video_list[$i][news_art_title], 0, 38); } //置顶文章 /*************************** * top_fixed text news * ***************************/ $sql = "select * from $NEWS_ARTICLES_TABLE where news_art_status=4 and top_fixed_1>0 and news_art_type_id=1 order by news_art_post_time desc limit 1"; $top_fixed_1_news_text_list = get_query_list($conn, $sql); if( strlen($top_fixed_1_news_text_list[0][news_art_text]) > 600 ) $top_fixed_1_news_text_list[0][news_art_text] = substr($top_fixed_1_news_text_list[0][news_art_text], 0, 598) . "..."; $orig_word = array(); $replacement_word = array(); $bbcode_uid = $news[bbcode_uid]; $preview_message = stripslashes(prepare_message($top_fixed_1_news_text_list[0][news_art_text], 1, 1, 1, $bbcode_uid)); $preview_message = bbencode_second_pass($preview_message, $bbcode_uid); if( !empty($orig_word) ) { $preview_username = ( !empty($username) ) ? preg_replace($orig_word, $replacement_word, $preview_username) : ""; $preview_subject = ( !empty($preview_subject) ) ? preg_replace($orig_word, $replacement_word, $preview_subject) : ""; $preview_subhead = ( !empty($preview_subhead) ) ? preg_replace($orig_word, $replacement_word, $preview_subhead) : ""; $preview_author = ( !empty($preview_author) ) ? preg_replace($orig_word, $replacement_word, $preview_author) : ""; $preview_source = ( !empty($preview_source) ) ? preg_replace($orig_word, $replacement_word, $preview_source) : ""; $preview_message = ( !empty($preview_message) ) ? preg_replace($orig_word, $replacement_word, $preview_message) : ""; $preview_note = ( !empty($preview_note) ) ? preg_replace($orig_word, $replacement_word, $preview_note) : ""; } $top_fixed_1_news_text_list[0][news_art_text] = make_clickable($preview_message); ?>

详细内容>>

"; for($j=0; $j
" . $news_center_column_list[$i][news_cat_title] . "
[]
 :: 按分类浏览 :: GO>>

 :: 按关键字搜索新闻 ::
 关键字词:

 :: 视频新闻 ::

 :: 图片短讯 ::