echo $title; ?>
if($topguide){?>
} ?>
|
$dbname = $r."content";
if($r=="sh"){ $area="shanghai";
}elseif($r=="sh"){ $area="shanghai";
}elseif($r=="bj"){ $area="beijing";
}elseif($r=="tj"){ $area="tianjin";
}elseif($r=="gz"){ $area="guangzhou";
}elseif($r=="sz"){ $area="shenzhen";
}elseif($r=="hk"){ $area="hongkong";
}
include("/home/shanghai/utfdb2con.inc");
if (!$dbcon) { echo "DB Connect Error"; }
if(!isset($script_filename)){ $script_filename = explode("/",$_SERVER['SCRIPT_FILENAME']); }
if($script_filename[4]=="www2"){
$cid = $script_filename[6];
if(!isset($ctgb)){ $ctgb = ereg_replace(".php","",$script_filename[7]); }
}elseif($script_filename[4]=="globe"){
$r = $script_filename[5];
$cid = $script_filename[6];
if(!isset($ctgb)){ $ctgb = ereg_replace(".php","",$script_filename[7]); }
}else{
$r = $script_filename[4];
$cid = $script_filename[5];
if(!isset($ctgb)){ $ctgb = ereg_replace(".php","",$script_filename[6]); }
}
$rtn = pg_exec("SELECT * FROM $dbname WHERE
id=63 OR
id=64 OR
id=65 OR
id=66 OR
id=67 OR
id=68 OR
id=69 OR
id=70 OR
id=71 OR
id=72 OR
id=73 OR
id=74 OR
id=75
ORDER BY title ASC,id ASC");
$n=pg_num_rows($rtn);
$shopname="dummy";
for($i=0; $i<$n;$i++){
$row = pg_fetch_array($rtn,$i);
if($row['sid']){ $sid=$row['sid']; }else{ $sid=$row['id']; }
if($row['shopanchor']){ $shopanchor = $row['shopanchor']; }elseif($row['sid']){ $shopanchor = $ctgb.$sid; }else{ $shopanchor=$sid; }
if(!isset($title_show)){
if(ereg($shopname,$row['title'])){
$branchname=ereg_replace($shopname,"",$row['title']);
}else{
$branchname ="";
}
?>
if(!$row['banner'] && $row['bannerlink']){ ?> } ?> if($branchname!=""){ echo $branchname; }else{ echo "".$row['title'].""; } ?> if(!$row['banner'] && $row['bannerlink']){ ?> } ?>
if($branchname==""){ ?> } ?>
|
if($row['banner']){ ?>
}elseif($row['img']){ ?>
if(file_exists("./images/".$row['img'])){ ?>
if($row['imgl']){ ?> } ?>
if($row['imgl']){ ?> } ?>
} ?>
}elseif(file_exists("/home/shanghai/infiles/".$r."/".$cid."/images/".$row['id'].".jpg")){ ?>
} ?>
if(!isset($description_show)){ echo $row['description']; } ?>
if(!$row['banner'] && $row['bannerlink']){ ?>詳細>>> } ?>
if(trim($row['fee'])){ echo " FEE:".$row['fee']." "; } ?>
if(trim($row['shopopen'])){ echo " OPEN:".$row['shopopen']." "; } ?>
if($row['add']){ echo " ADD:".$row['add']; } ?> if($row['lat'] && $row['lng']){ ?> 【 地図】 } ?>
if(trim($row['tel'])){ echo " TEL:".$row['tel']." "; } ?>
if(trim($row['url'])){ echo ""; } ?>
if(trim($row['email'])){ echo ""; } ?>
|
if(ereg("【",$row['title'])){
$shopname = explode("【",$row['title']);
$shopname = $shopname[0];
}else{
$shopname = $row['title'];
}
$shopname = trim($shopname);
}else{
?>
echo $row['title']; ?>地図
}
}
@pg_close($conn);
?>
|
|
|