<?php

include( "./common/moduleSet.php" );

if($prefe == ""){$prefe = "13";}
if($age == ""){$age = "2";}
$htmls_datas = file($FormData1)or die("指定されたフィルが見つかりません。");

//置き換えセット
$swtchList = array(
"::dataIn::"	=>"",
"::dataOut::"	=>"",
"{ans}"				=>$ans,
"{name}"			=>$name,
"{furigana}"	=>$furigana,
"{tel}"				=>$tel,
"{zip1}"			=>$zip1,
"{zip2}"			=>$zip2,
"{mess}"			=>$mess,
"{email}"			=>$email,
"{voice}"			=>$voice,
//'value="' .$prefe .'"' => 'value="' .$prefe .'" selected="selected"',
//'value="' .$age .'"' 	=> 'value="' .$age .'" checked="checked"',
"{address}"		=>$address,
//q1
'value="' .$q101 .'">' => 'value="' .$q101 .'" checked="checked" />',
'value="' .$q102 .'">' => 'value="' .$q102 .'" checked="checked" />',
'value="' .$q103 .'">' => 'value="' .$q103 .'" checked="checked" />',
'value="' .$q104 .'">' => 'value="' .$q104 .'" checked="checked" />',
'value="' .$q105 .'">' => 'value="' .$q105 .'" checked="checked" />',
"{q1tx}"			=>$q1tx,
"{q103tx}"		=>$q103tx,
//q2
'value="' .$q201 .'" />' => 'value="' .$q201 .'" checked="checked" />',
"{q201tx}"		=>$q201tx,
//q3
'value="' .$q301 .'" />' => 'value="' .$q301 .'" checked="checked" />',

'value="' .$prefe .'">' .$prefeName[$prefe]	=>'value="' .$prefe .'" selected="selected">' .$prefeName[$prefe],
'value="' .$age .'">' 	.$ageSet[$age]		=>'value="' .$age .'" selected="selected">' .$ageSet[$age],
'value="' .$sex .'" />' =>'value="' .$sex .'" checked="checked" />');

//必要項目のみの
$loop_f = false;
$tgLine = false;
$loop_data = array();
$printable_html = "";
foreach($htmls_datas as $txt_Line){
	
	$dataIn =ereg("::dataIn::",$txt_Line);
	$dataOut =ereg("::dataOut::",$txt_Line);
	if($dataIn){$tgLine = true;}
	if($dataOut){$tgLine = false;}
	
	#::dataIn::〜::dataOut::を対象とする
	if($tgLine){
		#置き換え
		$txt_Line2 = strtr($txt_Line,$swtchList);
		$printable_html .= $txt_Line2;
	}

}


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-jp" />
<title>ロミオ&times;ジュリエット　プレゼントキャンペーン　第一弾</title>
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link rel="stylesheet" href="common/css/import.css" type="text/css" media="all" />
<script type="text/javascript" language="JavaScript" src="common/js/mm_script.js"></script>
</head>

<body>
<div id="MainFrame">
<h1><img src="images/MainImage.jpg" alt="ロミオ&times;ジュリエット　プレゼントキャンペーン　第一弾" width="900" height="301" /></h1>
<div id="MainBox">
	<!--<img src="images/waku_01.jpg" alt="[" />--><br />
<div class="WhiteWind"><?=$printable_html?></div>
<!--<img src="images/waku_02.jpg" alt="]" />--></div>
<br />
<table width="900" height="55" border="0" cellpadding="0" cellspacing="0" align="center" style=" margin-top:20px;">
	<tr>
		<td height="55" align="center" style="font-size:11px;"><img src="images/TOYOMAEU.gif" width="259" height="49" alt="Copyright &copy; 2009 by TOYOMARU Industry co.,ltd. All Rights Reserved." /></td>
	</tr>
</table>
<br />
<br />
</div>
</body>
</html>
