0){ if($num == trim($tmp[0])){ $pickup_url = trim($tmp[1]); } } } fclose($fp); } } } // ニュース情報の取得 $tmp_sort = array(); $news_file = ADMIN_PATH."ini/news_sort.ini"; $table = "news"; $field = array("id","title","type","url","start_date","end_date","approval_flg"); $where = "(`approval_flg` = '1' AND `start_date` <= '".mktime()."') AND (`end_date` = '0' || `end_date` IS NULL || `end_date` > '".mktime()."')"; $order = "`id` DESC"; $limit = ""; $sql = SET_SELECT_SQL($table,$field,$where,$order,$limit); $db_data = SELECT_DB_DATA($sql); for($i=0; $i mktime() || $tmp_sort[trim($tmp[0])]['end_date'] == "0"){ $news_data[$cnt]['id'] = $tmp_sort[trim($tmp[0])]['id']; $news_data[$cnt]['title'] = $tmp_sort[trim($tmp[0])]['title']; $news_data[$cnt]['type'] = $tmp_sort[trim($tmp[0])]['type']; $news_data[$cnt]['url'] = $tmp_sort[trim($tmp[0])]['url']; $cnt++; } } } } } fclose($fp); } // イベントキャンペーン情報の取得 $tmp_sort = array(); $info_file = ADMIN_PATH."ini/information_sort.ini"; $table = "information"; $field = array("id","title","start_date","end_date","approval_flg"); $where = "(`approval_flg` = '1' AND `start_date` <= '".mktime()."') AND (`end_date` = '0' || `end_date` IS NULL || `end_date` > '".mktime()."')"; $order = "`id` DESC"; $limit = ""; $sql = SET_SELECT_SQL($table,$field,$where,$order,$limit); $db_data = SELECT_DB_DATA($sql); for($i=0; $i mktime() || $tmp_sort[trim($tmp[0])]['end_date'] == "0"){ $info_data[$cnt]['id'] = $tmp_sort[trim($tmp[0])]['id']; $info_data[$cnt]['title'] = $tmp_sort[trim($tmp[0])]['title']; $cnt++; } } } } } fclose($fp); } // 製品情報の取得 $product_data = array(); $table = "contents"; $field = array("id"); $where = "`start_date` <= '".mktime()."'"; $order = "`start_date` DESC"; $limit = "1"; $sql = SET_SELECT_SQL($table,$field,$where,$order,$limit); $contents_data = SELECT_DB_DATA($sql); if(isset($contents_data[0]['id']) && $contents_data[0]['id'] != ""){ $tmp_sort = array(); $product_file = ADMIN_PATH."ini/product_sort.ini"; $table = "product"; $field = array("id","title","approval_flg"); $where = "`contents` = '".$contents_data[0]['id']."'"; $order = "`id` DESC"; $limit = ""; $sql = SET_SELECT_SQL($table,$field,$where,$order,$limit); $db_data = SELECT_DB_DATA($sql); for($i=0; $i\n"); ?> タカラトミー タカラトミー公式モバイルサイトは、2013年3月31日もちまして、サービスの提供を終了させていただきました。
株式会社タカラトミー
お問合せ:
タカラトミーお客様相談室
03-5650-1031