出展企業一覧
if(empty($id)=="TRUE"){ $id="boy"; } if($id=="boy"){ $tempid="1"; } elseif($id=="girl"){ $tempid="2"; } elseif($id=="baby"){ $tempid="3"; } elseif($id=="plushie"){ $tempid="4"; } elseif($id=="game"){ $tempid="5"; } elseif($id=="hobby"){ $tempid="6"; } elseif($id=="season"){ $tempid="7"; } elseif($id=="zaka"){ $tempid="8"; } elseif($id=="other"){ $tempid="9"; } ?>
$i = 0;
$company = file("../company.log");
$companynum = count ($company);
while ($i < $companynum) {
$datatemp = split("\t", $company[$i]);
$datatemp[21] = chop($datatemp[21]);
if($id=="boy"){ $mainid="$datatemp[10]"; }
elseif($id=="girl"){ $mainid="$datatemp[11]"; }
elseif($id=="baby"){ $mainid="$datatemp[12]"; }
elseif($id=="plushie"){ $mainid="$datatemp[13]"; }
elseif($id=="game"){ $mainid="$datatemp[14]"; }
elseif($id=="hobby"){ $mainid="$datatemp[15]"; }
elseif($id=="season"){ $mainid="$datatemp[16]"; }
elseif($id=="zaka"){ $mainid="$datatemp[17]"; }
elseif($id=="other"){ $mainid="$datatemp[18]"; }
if($mainid == "1"){
$allcount++;
}
$i++;
}
if($allcount > 10){
$viewflg2="on";
}
if($allcount > 20){
$viewflg3="on";
}
if($allcount > 30){
$viewflg4="on";
}
$i = 0;
$count = 0;
while ($i < $companynum) {
$datatemp = split("\t", $company[$i]);
$datatemp[21] = chop($datatemp[21]);
if($id=="boy"){ $mainid="$datatemp[10]"; }
elseif($id=="girl"){ $mainid="$datatemp[11]"; }
elseif($id=="baby"){ $mainid="$datatemp[12]"; }
elseif($id=="plushie"){ $mainid="$datatemp[13]"; }
elseif($id=="game"){ $mainid="$datatemp[14]"; }
elseif($id=="hobby"){ $mainid="$datatemp[15]"; }
elseif($id=="season"){ $mainid="$datatemp[16]"; }
elseif($id=="zaka"){ $mainid="$datatemp[17]"; }
elseif($id=="other"){ $mainid="$datatemp[18]"; }
$catename="";
if($mainid == "1" && $datatemp[20]!="1"){
if($count >= 0 && $count < 35){
if($datatemp[10]=="1"){ $catename .="男の子/"; }
if($datatemp[11]=="1"){ $catename .="女の子/"; }
if($datatemp[12]=="1"){ $catename .="乳幼児・知育/"; }
if($datatemp[13]=="1"){ $catename .="ぬいぐるみ・人形/"; }
if($datatemp[14]=="1"){ $catename .="ゲーム・パズル/"; }
if($datatemp[15]=="1"){ $catename .="ホビー・模型・RC/"; }
if($datatemp[16]=="1"){ $catename .="季節もの/"; }
if($datatemp[17]=="1"){ $catename .="雑貨・生活/"; }
if($datatemp[18]=="1"){ $catename .="その他/"; }
if(empty($catename)==TRUE){
$catename .=" /";
}
$catenum = strlen($catename);
$max = $catenum-1;
$catename = substr($catename, 0, $max);
if(empty($datatemp[7])!=TRUE){
$aname = "";
$bname = "";
}
else{
$aname="";
$bname="";
}
if($datatemp[21]=="1"){
$temp = $datatemp[2];
$temp2 = ereg_replace("-", "_", $temp);
$event = "イベントページへ";
}
else{
$event = "";
}
print <<
EOF;
}
$count++;
}
$i++;
}
?>
{$datatemp[2]} {$aname}{$datatemp[3]}{$bname}{$event}
$catename
if($viewflg2=="on"){
$company = file("../company.log");
$companynum = count ($company);
$i = 0;
$count = 0;
while ($i < $companynum) {
$datatemp = split("\t", $company[$i]);
$datatemp[21] = chop($datatemp[21]);
if($id=="boy"){ $mainid="$datatemp[10]"; }
elseif($id=="girl"){ $mainid="$datatemp[11]"; }
elseif($id=="baby"){ $mainid="$datatemp[12]"; }
elseif($id=="plushie"){ $mainid="$datatemp[13]"; }
elseif($id=="game"){ $mainid="$datatemp[14]"; }
elseif($id=="hobby"){ $mainid="$datatemp[15]"; }
elseif($id=="season"){ $mainid="$datatemp[16]"; }
elseif($id=="zaka"){ $mainid="$datatemp[17]"; }
elseif($id=="other"){ $mainid="$datatemp[18]"; }
$catename="";
if($mainid == "1" && $datatemp[20]!="1"){
if($count >= 35 && $count < 70){
if($datatemp[10]=="1"){ $catename .="男の子/"; }
if($datatemp[11]=="1"){ $catename .="女の子/"; }
if($datatemp[12]=="1"){ $catename .="乳幼児・知育/"; }
if($datatemp[13]=="1"){ $catename .="ぬいぐるみ・人形/"; }
if($datatemp[14]=="1"){ $catename .="ゲーム・パズル/"; }
if($datatemp[15]=="1"){ $catename .="ホビー・模型・RC/"; }
if($datatemp[16]=="1"){ $catename .="季節もの/"; }
if($datatemp[17]=="1"){ $catename .="雑貨・生活/"; }
if($datatemp[18]=="1"){ $catename .="その他/"; }
if(empty($catename)==TRUE){
$catename .=" /";
}
$catenum = strlen($catename);
$max = $catenum-1;
$catename = substr($catename, 0, $max);
if(empty($datatemp[7])!=TRUE){
$aname = "";
$bname = "";
}
else{
$aname="";
$bname="";
}
if($datatemp[21]=="1"){
$temp = $datatemp[2];
$temp2 = ereg_replace("-", "_", $temp);
$event = "イベントページへ";
}
else{
$event = "";
}
print <<
EOF;
}
$count++;
}
$i++;
}
}
?>
{$datatemp[2]} {$aname}{$datatemp[3]}{$bname}{$event}
$catename