新着情報
if($messages == true){
//中国は座標データは無し
$china_cnt = 0; // 1行目
$china_cnt2 = 0; // 2行目
for($i = 0; $i < count($messages); $i++ ){
$continue_flg = false;
$area_code = $messages[$i]['area'];
for($j = 0; $j < $i; $j ++){
if($area_code == $messages[$j]['area']){
$continue_flg = true;
break;
}
}
if($area_code != ""){
$messages[$i]['title'] = wordwrap($messages[$i]['title'],18,"
",1); // 連続半角文字対応 (T.Nonaka)
$area_name = area_search($con,$area_code);
echo "
".$messages[$i]['title']." (".$area_name['name'].")
\n";
//★マークの表示
//重複地域のデータは表示しない
if($continue_flg == true){
continue;
}
//中国の場合は座標データを作る
if($area_name['x'] == "0"){
//6つ以上は次の行へ
if($china_cnt < 6){
$xpoint = 7;
$ypoint = 156 + (20 * $china_cnt);
}else{
$xpoint = 150;
$ypoint = 156 + (20 * $china_cnt2);
$china_cnt2++;
}
$china_cnt++;
}else{
$xpoint = $area_name['x'];
$ypoint = $area_name['y'];
}
echo "
".$area_name['name']."
\n";
}
}
}
?>