switch($data->language) { case 'ja': ?>Platz [プラッツ] break; case 'de': ?>Platz break; default: #en ?>Platz } ?>
$que = pg_query($db, 'SELECT category, max(posted) AS latest, count(*) AS number FROM platz GROUP BY category');
while($res = pg_fetch_object($que)) {
$data->number[$res->category] = $res->number;
$data->latest[$res->category] = $res->latest;
}
?>
switch($data->language) { case 'ja': ?>Auskunft.jpのフォーラムです。お気軽に投稿してください。 break; case 'de': ?>Hier ist ein Forum von Auskunft.jp! Schreiben Sie in Freiheit! break; default: #en ?>Here is a forum of Auskunft.jp! Feel free to write here! } ?>
switch($data->language) { case 'ja': ?>地域 break; case 'de': ?>Ort break; default: #en ?>Place } ?>
$data->list_place = array('japan', 'tokyo', 'osaka', 'kyoto'); //, 'nara', 'kobe', 'yokohama', 'nagoya', 'fukuoka', 'hiroshima', 'sapporo', 'naha', 'niigata'); ?>
switch($data->language) { case 'ja': ?>テーマ break; case 'de': ?>Thema break; default: #en ?>Theme } ?> | switch($data->language) { case 'ja': ?>内容説明 break; case 'de': ?>Beschreibung break; default: #en ?>Description } ?> | switch($data->language) { case 'ja': ?>最終更新 break; case 'de': ?>Letzte Update break; default: #en ?>Last Update } ?> |
foreach($data->list_place as $value) { ?>
$path = '/platz/' . $value;
$que = pg_query_params($db, 'SELECT * FROM categories WHERE path = $1 AND language = $2 AND suspended = FALSE', array($path, $data->language));
if($res = pg_fetch_object($que)) {
$name = $res->name;
$description = $res->description;
}
else {
$que = pg_query_params($db, 'SELECT * FROM categories WHERE path = $1 AND language = $2 AND suspended = FALSE', array($path, 'en'));
if($res = pg_fetch_object($que)) {
$name = $res->name;
$description = $res->description;
}
else {
$que = pg_query_params($db, 'SELECT * FROM categories WHERE path = $1 AND suspended = FALSE', array($path));
if($res = pg_fetch_object($que)) {
$name = $res->name;
$description = $res->description;
}
else {
$name = $value;
$description = '';
}
}
}
?>
|