foreach(array('cd') as $k){
if(isset($_GET[$k])){
${$k} = $_GET[$k];
}
}
# i18n_http_output("SJIS");
include "./dbcon.inc";
if($cd ==""){
print("表示できません。");
exit;
}
/************************************************************/
$query="select syurui,count(*) from t_shop where topics <> '03' group by syurui";
$rtn = pg_exec($con,$query);
$cnt = pg_numrows($rtn);
for($i=0;$i<$cnt;$i++){
$syurui[$i]=pg_result($rtn,$i,0);
$suu[$i]=pg_result($rtn,$i,1);
}
/**************************************************************/
$wquery="select * ";
$wquery=$wquery." from t_shop,t_content,t_sendtype where syurui='".$cd."'";
$wquery=$wquery." and t_shop.content_type=t_content.contentcd";
$wquery=$wquery." and t_shop.send_type=t_sendtype.sendcd";
$wquery=$wquery." order by t_shop.goodscd";
$rtn1 = pg_exec($con,$wquery);
$cnt1 = pg_numrows($rtn1);
/**************************************************************/
print("
NATTY WEB SHOP
 |
 |
");
if($cd=="01"){print(" | \n");
}else{print(" | \n");}
if($cd=="02"){print(" | \n");
}else{print(" | \n");}
if($cd=="03"){print(" | \n");
}else{print(" | \n");}
if($cd=="04"){print(" | \n");
}else{print(" | \n");}
if($cd=="05"){print(" | \n");
}else{print(" | \n");}
if($cd=="06"){print(" | \n");
}else{print(" | \n");}
print("
");
/***************************1***************************/
$ok=0;
for($i=0;$i<$cnt;$i++){
if($syurui[$i] =="01"){
print("商品数 $suu[$i] | \n");
$ok=1;
}
}
if($ok==0){
print("商品数 0 | \n");
}
/***************************2***************************/
$ok=0;
for($i=0;$i<$cnt;$i++){
if($syurui[$i] =="02"){
print("商品数 $suu[$i] | \n");
$ok=1;
}
}
if($ok==0){
print("商品数 0 | \n");
}
/***************************3***************************/
$ok=0;
for($i=0;$i<$cnt;$i++){
if($syurui[$i] =="03"){
print("商品数 $suu[$i] | \n");
$ok=1;
}
}
if($ok==0){
print("商品数 0 | \n");
}
/****************************4**************************/
$ok=0;
for($i=0;$i<$cnt;$i++){
if($syurui[$i] =="04"){
print("商品数 $suu[$i] | \n");
$ok=1;
}
}
if($ok==0){
print("商品数 0 | \n");
}
/*****************************5*************************/
$ok=0;
for($i=0;$i<$cnt;$i++){
if($syurui[$i] =="05"){
print("商品数 $suu[$i] | \n");
$ok=1;
}
}
if($ok==0){
print("商品数 0 | \n");
}
/*****************************6*************************/
$ok=0;
for($i=0;$i<$cnt;$i++){
if($syurui[$i] =="06"){
print("商品数 $suu[$i] | \n");
$ok=1;
}
}
if($ok==0){
print("商品数 0 | \n");
}
print("
");
/************************************************************/
for($j=0;$j<$cnt1;$j++){
$goodscd=pg_result($rtn1,$j,0);
$goodsname=pg_result($rtn1,$j,1);
$price=pg_result($rtn1,$j,2);
$s_price=pg_result($rtn1,$j,3);
$zei=pg_result($rtn1,$j,4);
$goodsinfo=pg_result($rtn1,$j,6);
$limit_number=pg_result($rtn1,$j,8);
$limit_day=pg_result($rtn1,$j,9);
$size=pg_result($rtn1,$j,10);
$photo_1=pg_result($rtn1,$j,18);
$contentname=pg_result($rtn1,$j,23);
print("
");
}
/****************************************************************/
if($cnt1 ==0){
print("
只今、商品準備中です。しばらくお待ちください。
\n");
}
print("

(C) CopyRight POWER ZONE CO.,LTD. 1999-2000
All Rights Reserved.
");
?>