#! /usr/local/bin/perl

$file = './new.data';

$cgi = './NEWto.cgi';
require '../web.conf';

$title2 = 'What new';



if ($ENV{'REQUEST_METHOD'} eq "POST") { read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); }
else { $buffer = $ENV{'QUERY_STRING'}; }

if ($buffer eq "") { &error('data','error'); }

@pairs = split(/&/,$buffer);
foreach $pair (@pairs) {
	($name, $value) = split(/=/, $pair);
	$value =~ tr/+/ /;
	$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
	$value =~ s/\n//g;
	$value =~ s/\,//g;

	
	$value =~ s/<!--(.|\n)*-->//g;
	$value =~ s/<([^>]|\n)*>//g;
	$FORM{$name} = $value;

}


if (!open(IN,"$file")) { &error('system','error'); }
@BASE = <IN>;
close(IN);


if ($FORM{'c3'} eq '') { @NEW1 = @BASE; }
else {







	foreach $line (@BASE) {
       
		($c0,$c1,$c2,$c3,$c4,$c5,$c6,$c7,$c8,$c9,$c10,) = split(/\,/,$line);
		if ("$c3" eq $FORM{'c3'}) { $line_date = $line;  last; }
	}
}





print "Content-type: text/html\n\n";



{

		($c0,$c1,$c2,$c3,$c4,$c5,$c6,$c7,$c8,$c9,$c10,) = split(/\,/, $line_date);

$c6_data = $c6 ;
	$c6_data =~ s/&lt;/</g;
	$c6_data =~ s/&gt;/>/g;
$c7_data = $c7 ;
	$c7_data =~ s/&lt;/</g;
	$c7_data =~ s/&gt;/>/g;

print <<HTML;


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="ja-JP"><!-- InstanceBegin template="/Templates/temp.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">

<title>新着情報 ｜ 福岡 プラザ芙蓉ホテル</title>
<META NAME="keywords" CONTENT="福岡,天神,プラザ芙蓉ホテル,マンスリー,ウィークリーマンション,デイリー,アパートメントホテル,ビジネスホテル,長期滞在">
<META NAME="description" CONTENT="福岡・天神のアパートメントホテル「プラザ芙蓉ホテル」は福岡空港まで10分、博多駅まで5分の好立地。1泊から長期滞在まで対応した滞在型ホテルです。">

<meta name="revisit_after" content="7 days">
<META http-equiv="Content-Style-Type" content="text/css">
<META http-equiv="Content-Script-Type" content="text/javascript">
<link href="../css/setting.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="../js/javas.js"></script>
</head>
<body>
<div id="wrapper">
<a name="pageup" id="pageup"></a>
	<div id="header">
		<h1><a href="../index.html">プラザ芙蓉ホテル</a></h1>
		<p class="topLink"><a href="../index.html"><img src="../common/sab_menu03.gif" alt="トップページへ戻る" width="65" height="14"></a></p>
		
		<p class="sub_menu"><span><a href="../form/inquiry.php"><img src="../common/sab_menu01.gif" alt="お問い合わせ" width="73" height="24"></a>
		<a href="../pri/index.html"><img src="../common/sab_menu02.gif" alt="プライバシーポリシー" width="100" height="24"></a></span></p>

		<div class="enBtn"><a href="../en/" target="_blank"><img src="../common/en_btn01.jpg" alt="ENGLISH" width="177" height="46"></a></div>
		
	</div>
	
	<div id="g_navi">
		<ul>
			<li class="concept"><a href="../concept/index.html">コンセプト</a></li>
		
			<li class="info"><a href="../info/index.html">ホテルのご案内</a></li>
		
			<li class="room"><a href="../room/index.html">お部屋のご案内</a></li>
		
			<li class="facilities"><a href="../facilities/index.html">施設のご案内料金表</a></li>
		
			<li class="charge"><a href="../charge/index.html">料金表</a></li>
		
			<li class="access"><a href="../access/index.html">近隣・アクセス情報</a></li>
		
			<li class="qa"><a href="../qa/index.html">Ｑ＆Ａ</a></li>
		</ul>
	</div>
	
	<!-- InstanceBeginEditable name="title" -->
	<h2 class="tit">
	<img src="img/topic_title.jpg" alt="インターネット予約" width="814" height="157">	</h2>
	<!-- InstanceEndEditable -->
	<div id="page_body">
	
		<div id="to_form"><a href="../form/reserv.php">インターネット予約はこちらから</a></div>
	
	<!-- InstanceBeginEditable name="main" -->
	
	<div id="main">
	
	
	
		<h3 class="tit"><img src="img/topic_tit.gif" alt="新着情報" width="732" height="22"></h3>
	
	    <div id="topic01">
	
		<p class="midashi">〔$c0年$c1月$c2日〕$c5</p>
		
		<p class="honbun">$c7_data</p>
	
	</div>
	
	<p id="up"><a href="#pageup"><img src="../common/up.gif" alt="ページの上へ" width="73" height="15" border="0"></a></p>
	
	</div>
	<!-- InstanceEndEditable -->
	
		<div id="to_form_footer">
		<a href="../form/reserv.php"><img src="../common/to_form_footer_b.gif" alt="お電話でのご予約は092-761-9633メールでのご予約はインターネット予約フォームから"></a>
		</div>
		
		<div id="footer">
		　<strong>プラザ芙蓉ホテル</strong> 福岡市中央区渡辺通り2丁目3番28号 TEL：092-761-9633 FAX：092-771-9411
		</div>
		
	</div>	
</div>
</body>
<!-- InstanceEnd --></html>


HTML

}


exit;


sub error {

	

	print "Content-type: text/html\n\n";
        print "<html><head><title>$title2</title></head>\n";
        print "$body\n";
        print "<center>$page_head_com<br><h1>ERROR</h1>\n";
	print "<h5>$_[1]</h5><p>\n";
	print "<form><input type=\"button\" value=\"BACK ボタン\" onClick=\"history.go(-1)\"></form><p><p>\n";
        print "$page_bottom_com</center></body></html>\n";
        exit;
}



