if(@file_exists(DAT_EQ)){
$ary = array();
$ary = unserialize(@file_get_contents(DAT_EQ));
$sp = " ";
$hAry = array();
if(count($ary)){
$hAry[] = $sp.'
';
$hAry[] = $sp.' ';
$hAry[] = $sp.' 区 分 | ';
$hAry[] = $sp.' 設備名称 | ';
$hAry[] = $sp.' 形 式 | ';
$hAry[] = $sp.' メーカー | ';
$hAry[] = $sp.' 台 数 | ';
$hAry[] = $sp.'
';
foreach($ary as $k => $v){
$loop = 1;
foreach($v as $k2 => $v2){
$hAry[] = $sp.' ';
if($loop == 1){
$form = '';
$form .= ''.$v2["kubun"].' | ';
$hAry[] = $form;
}
$hAry[] = ''.$v2["name"].' | ';
$hAry[] = ''.$v2["kata"].' | ';
$hAry[] = ''.$v2["maker"].' | ';
$hAry[] = ''.$v2["num"].' | ';
$hAry[] = '
';
$loop++;
}
}
$hAry[] = $sp.'
';
}
if(count($hAry)){
print join("\r\n",$hAry)."\r\n";
}
}
?>