// -----------------------------------------------------------------------
// 初期設定読込み
// -----------------------------------------------------------------------
@require_once("my_init.php");
// -----------------------------------------------------------------------
// サブメニュー生成
// -----------------------------------------------------------------------
if(count($map_subAry)){
$sp = " ";
for($i=1;$i<=count($map_subAry);$i++){
$h = 0;
$ary = array();
$ary[] = $sp.'';
$ary[] = $sp.'
";
$GLOBALS["sub_menu".$i] = join("\r\n",$ary)."\r\n";
}
}
// -----------------------------------------------------------------------
// 住所
// -----------------------------------------------------------------------
$dfAry = array();
$dfAry = explode(",",DB_field(TABLE_OFF));
$DBARY = array();
$DBARY['table'] = TABLE_OFF;
$DBARY['get_f'] = @join(",",$dfAry);
$DBARY['sort_f'] = "LPAD(SortNum,3,0)";
$dbd = @DB_data_select();
$address = "";
$aAry = array();
if($dbd){
$aAry[] =<<
部署名 |
住 所 |
電話番号 |
FAX番号 |
EOL;
foreach(@explode("<__>",$dbd) as $v){
if($v){
$ary = array();
$ary = @explode("<>",$v);
$mname = @preg_replace("/SPBR/","
",$ary[array_search("Map_name",$dfAry)]);
$addr = @preg_replace("/SPBR/","
",$ary[array_search("Addr",$dfAry)]);
$tel = @preg_replace("/SPBR/","
",$ary[array_search("Tel",$dfAry)]);
$fax = @preg_replace("/SPBR/","
",$ary[array_search("Fax",$dfAry)]);
$tel_str = "電話番号: ";
if(!@preg_match("/^(0/",$tel)){
$tel = @preg_replace("/(0/",''.$tel_str.'(0',$tel);
$tel_str = "";
}
$fax_str = "FAX番号: ";
$aAry[] =<<
$mname |
$addr |
$tel |
$fax |
EOL;
}
}
$aAry[] = '
';
}
if(@count($aAry)){ $address = @join("\r\n",$aAry)."\r\n";}
// -----------------------------------------------------------------------
// 営業拠点(Map1)
// -----------------------------------------------------------------------
$sp = " ";
$data_map1 = "";
$map1_height = 0;
if(@file_exists(DAT_MAP1)){
$map1 = @file_get_contents(DAT_MAP1);
$map1 = @preg_replace("/SPBR/","
\r\n",$map1);
$gif = "i/map1.gif";
$img1 = "";
if(@file_exists($gif)){
list(,$map1_height,) = getimagesize($gif);
$data_map1 = $sp.'';
$data_map1 .= $sp.'
';
$data_map1 .= $sp.'
';
$data_map1 .= $sp.'
';
$data_map1 .= $sp.'
';
$data_map1 .= "
\r\n";
}
$pt1 = ">> 本社・各工場へのアクセスマップ(PDF)";
$pt2 = ">> 本社・工場 美作工場へのアクセスマップ(PDF)";
$pt3 = ">> 岡山工場へのアクセスマップ(PDF)";
$pdfAry = array();
for($i=1;$i<=3;$i++){
$pdf = MAP_PDF."map$i.pdf";
if(@file_exists($pdf)){
$pdfAry[] = ''.$GLOBALS["pt$i"].'';
}
}
$pdf = "";
if(count($pdfAry)){ $pdf = join("
\r\n",$pdfAry);}
$data_map1 .=<<
$sp アクセスマップ PDFダウンロード
$sp
$sp$pdf
$sp
$sp
$sp
EOL;
}
?>
@Meta();?>
モリマシナリー株式会社 企業情報 工場・営業拠点
@require_once("../mov/index.php");?>
Inquiry_menu();?>
@require_once("../php/footer.php");?>