出展企業一覧
$i = 0;
$company = file("company.log");
$companynum = count ($company);
while ($i < $companynum) {
$datatemp = split("\t", $company[$i]);
$datatemp[20] = chop($datatemp[20]);
if($datatemp[19] == "$ja"){
$allcount++;
}
$i++;
}
if($allcount > 10){
$viewflg2="on";
}
if($allcount > 20){
$viewflg3="on";
}
if($allcount > 30){
$viewflg4="on";
}
if($ja=="kaigai"){
$start1 = "0";
$end1 = "20";
$start2 = "20";
$end2 = "40";
}
else{
$start1 = "0";
$end1 = "10";
$start2 = "10";
$end2 = "20";
}
$i = 0;
$count = 0;
while ($i < $companynum) {
$datatemp = split("\t", $company[$i]);
$datatemp[21] = chop($datatemp[21]);
if($datatemp[19] == "$ja" && $datatemp[20]!="1"){
$catename="";
if($count >= $start1 && $count < $end1){
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]);
$catename="";
if($datatemp[19] == "$ja" && $datatemp[20]!="1"){
if($count >= $start2 && $count < $end2){
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