get_living_type(); $behavior = $frog_db->getBehavior(); $environment = $frog_db->getHabitat(); $action = $db->get_action(); $frog_name = $frog_db->getFrog(); $frog_db = $frog_db->getFrog(); if(isset($_REQUEST["main_url"])) { $have_url = 1; //未登入以前只能進入首頁 //if(!$access->is_login()) // $have_url = 0; } else $have_url = 0; $most_hit_data = produce_hotimage($db); $sql = "select * from gallery_photos where file_type=0 order by upload_date desc limit 10 "; $newest_photo_data = $db->query($sql); $yesterday = date("Y-m-d", mktime(0, 0, 0, date("m") , date("d"), date("Y"))); $past_day = 1; //make sure there are data in the today_focus_data array do { $sql = "select * from gallery_photos where file_type=0 and upload_date between '".$yesterday." 00:00:00 ' and '".$yesterday." 23:59:59' order by upload_date desc limit 5 "; $today_focus_data = $db->query($sql); $yesterday = date("Y-m-d", mktime(0, 0, 0, date("m") , date("d")-$past_day, date("Y"))); $past_day++; }while(count($today_focus_data) <= 3); //========================================== //require_once("gallery_abstract.php"); //$ga = new gallery_abstract(); // //$d = $ga->get_all_team_name(); //print_r($d); ?> 台灣兩棲類影像庫
搜尋 關鍵字搜尋: 更多條件查詢
最新影像
今日焦點
人氣影像