示例#1
0
function out_html($gc) {

	//ラジオボタン設定
	fdiv_set_purpose_radio($gc, $gc->purpose_flg, "purpose_flg");
	fdiv_set_yes_no_radio($gc, $gc->relocation_flg, "relocation_flg");
	fdiv_set_buken_sbt_radio($gc, $gc->buken_sbt, "buken_sbt");
	fdiv_set_input_kbn_radio($gc, $gc->input_kbn, "input_kbn");
	fdiv_set_fudousan_flg_radio($gc, $gc->fudousan_flg, "fudousan_flg");
	fdiv_set_sumai_flg_radio($gc, $gc->sumai_flg, "sumai_flg");

/* HTML開始 *************************************************************** */?>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="format-detection" content="telephone=no" />
<title>無料家賃査定申込みフォーム|マンション貸す.com</title>
<meta name="keywords" content="マンション,一括賃料査定">
<meta name="description" content="マンションを貸すなら、マンション貸す.com。当サイト厳選の最適な優良不動産会社を比較し、無料で一括賃料査定が申し込めます。空室保証・家賃保証(サブリース)、海外赴任・転勤・留守宅管理(リロケーション)、空室対策で賃貸募集中または賃貸管理会社を探している。など、分譲マンションや一戸建て、一棟アパートの所有者様のあらゆるお悩みにお応えいたします。">
<link href="/lp/sp_common/css/reset.css" rel="stylesheet" type="text/css" />
<link href="/lp/sp_common/css/layout.css" rel="stylesheet" type="text/css" />

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

<script type="text/javascript" src="/lp/sp_common/js/fancybox/jquery.fancybox-1.3.4.js"></script>
<link rel="stylesheet" type="text/css" href="/lp/sp_common/js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />

<script language="JavaScript">

function run_submit_prev(fname, ac) {
	document.forms[fname].mode.value = 'prev';
	document.forms[fname].action = ac;
	document.forms[fname].submit();
}

function run_submit_next(pMode) {

	document.forms['form_edit'].mode.value = pMode;

	var succeed = false;
	var data = $('#spform').serialize();
	$.ajax({
		type: "POST",
		url: "ajx_inputcheck.php",
		async: false,
		cache: false,
		timeout: 60000,
		dataType: "json",
		data: data,
		success: function(json)
		{
			if(json.status == 'OK'){
				// サブミット
				succeed = true;
			}else{
				// エラーメッセージを表示
				error_msg(json.msg);
			}
		},
		error: function(data, textStatus, errorThrown)
		{
			var msg = [];
			if(textStatus=='timeout'){
				msg.push('タイムアウトしました。');
			}else{
				msg.push('予期せぬエラーが発生しました。');
			}
			error_msg(msg);
		}
	});

	return succeed;

}

function error_msg(msg){

	$('#err_message').show();

	var html = '';

	html += '<ul>';

	for (var i = 0; i < msg.length; i++){
		html += '<li>' + msg[i] + '</li>';
	}

	html += '</ul>';

	$('#err_message').empty();
	$('#err_message').html(html);

	var p = $('#err_message').offset().top;
	$('html,body').animate({ scrollTop: p }, 'fast');

}
</script>

<?php if($gc->disp_page == 1){ ?>
<script>

$(document).ready(function() {
	$(".fbox a").fancybox({
		'width'         : '90%',
		'margin'        : '0',
		'autoScale'     : false,
		'transitionIn'  : 'none',
		'transitionOut' : 'none',
		'type'          : 'iframe',
		'onComplete' : function() {
			$('#fancybox-frame').load(function() {
				$('#fancybox-content').height($(this).contents().find('body').height()+10);
			});
		}
	});
});

function run_submit_top(p){
	var shikucyouson_no = $('input[name="shikucyouson_no"]').val();
	var buken_sbt = $('input[name="buken_sbt"]').val();
	location.href = p+"?shikucyouson_no="+shikucyouson_no+"&buken_sbt="+buken_sbt+"#form1";
}

function checkOn(No){
	switch(No){
		case 1:
			$("#chintai_flg").prop("checked",true);
			$("#sublease_flg").prop("checked",true);
			$("#relocation_flg").prop("checked",true);
			$("#flg").css("display","none");
			$("#flg1").css("display","block");
			$("#flg7").css("display","none");
			$("#flg8").css("display","none");
			break;
		case 7:
			$("#chintai_flg").prop("checked",false);
			$("#sublease_flg").prop("checked",true);
			$("#relocation_flg").prop("checked",false);
			$("#flg").css("display","none");
			$("#flg1").css("display","none");
			$("#flg7").css("display","block");
			$("#flg8").css("display","none");
			break;
		case 8:
			$("#chintai_flg").prop("checked",false);
			$("#sublease_flg").prop("checked",false);
			$("#relocation_flg").prop("checked",true);
			$("#flg").css("display","none");
			$("#flg1").css("display","none");
			$("#flg7").css("display","none");
			$("#flg8").css("display","block");
			break;
		default:
			$("#chintai_flg").prop("checked",true);
			$("#sublease_flg").prop("checked",true);
			$("#relocation_flg").prop("checked",true);
			$("#flg").css("display","block");
			$("#flg1").css("display","none");
			$("#flg7").css("display","none");
			$("#flg8").css("display","none");
			break;
	}
}
</script>
<?php }elseif($gc->disp_page == 2){ ?>

<?php }elseif($gc->disp_page == 3){ ?>

<script>
$(function(){

	$('#sumai_todoufuken').change( function () {
		todoufuken_change(this);
	} );

	$('input[name="sumai_flg"]:radio').change( function() {
		if($( this ).val()==0){
			$('.sumai_item').hide()
		}else{
			$('.sumai_item').show()
		}
	});

	if($('input[name="sumai_flg"]:checked').val()==0){
		$('.sumai_item').hide()
	}else{
		$('.sumai_item').show()
	}

});

function todoufuken_change(o){

	var selectedItem = o.options[ o.selectedIndex ];

	var date = new Date();
	var timestamp = date.getTime();

	var query = "time=" + timestamp;
	query += "&mode=get_shikucyouson";
	query += "&todoufuken_no=" + selectedItem.value;

	$.ajax({
		type: "POST",
		url: "/ajx_area.php",
		dataType: "text",
		data: query,
		cache: false,
		async: false,
		complete: function(XMLHttpRequest, textStatus){
			if(textStatus=="success"){
				$("#sumai_shikucyouson").html(XMLHttpRequest.responseText);
			}else{
				alert("通信エラーが発生しました。");
			}
		}
	});

}

</script>
<?php } ?>

<script>
$(function(){
	$(".acMenu dt").on("click", function() {
		$(this).next().slideToggle();
	});
});
</script>
</head>
<?php if($gc->disp_page == 1){ ?>
<body id="form1">
<?php }else{ ?>
<body id="form2">
<?php } ?>

<header id="header" class="clearfix">
	<p class="txt"><img src="img/header_txt.png" alt="マンションを一番高く貸す!"></p>
	<p id="logo"><img src="../lp/sp_common/img/logo.png" alt="マンション貸す.com"></p>
</header>

<!--form start-->
<section class="formBlock">
	<p class="kantan"><img src="../lp/sp_common/img/kantan_tit.png" alt="カンタン60秒登録!"></p>

<?php
	if($gc->form_mode=="init_err"){

		if($_SERVER["REQUEST_METHOD"] == "POST"){

			for ($i=0; $i<$gc->msg->count; $i++) {
				echo "<p><strong>".f_hsc($gc->msg->list[$i])."</strong></p>";
			}

			echo "<p style=\"margin-top: 10px\">";
			echo "<button type=\"button\" onClick=\"history.back(); return false;\">前のページにもどる</button>";
			echo "</p>";

		}else{

			// GETによる要求は有効期限切れとして扱いトップへ誘導する

			echo "<p><strong>ページの有効期限切れです。<br />お手数ですが、最初からやり直してください。</strong></p>";
			echo "<p style=\"margin-top: 10px\">";
			echo "<a href=\"".C_NORMAL_URL."lp/rent01/sp/\">トップへ</a>";
			echo "</p>";

		}

	}elseif($gc->form_mode=="notfound"){

		echo "<p><strong>";
		echo "お客様のエリアは対象外となっております。<br />";
		echo "<br />";
		echo "大変申し訳ございません。";
		echo "</strong></p>";

	}elseif($gc->form_mode=="message"){
// ■■■ 開始:送信完了ページ --------------------------------------------------

		if($gc->message_mode == "send_ok"){

			if(count($gc->arr_company) > 0){ /* 開始:if(count($gc->arr_company) > 0) */
?>

<?php if($gc->purpose_flg == 1){?>
	<p style="margin-left: 4px; font-weight: bold;">
		マンション貸す.comが厳選した下記の提携不動産会社に送信されました。<br /><br /></p>
<?php }else{?>
	<p style="margin-left: 4px; font-weight: bold;">
		お客様が選択した下記の提携不動産会社に送信されました。<br /><br /></p>
<?php }?>

<?php
// 開始:業者一覧 ----------------------------------------------------------------

if($gc->purpose_flg == 1){

	echo "<table style=\"width:100%;\">";

	for ($i = 0; $i < count($gc->arr_company); $i++) {

		$company_no = $gc->arr_company[$i];

		$company_nm = "";
		$comment = "";
		$url = "";

		if(!is_numeric($company_no)){
			$company_no = 0;
		}

		$sql = "SELECT";
		$sql.= " company_nm,";
		$sql.= " url, ";
		$sql.= " comment ";
		$sql.= "FROM";
		$sql.= " m_company ";
		$sql.= "WHERE";
		$sql.= " company_no = ".$company_no;

		$rs = $gc->db->query($sql);

		if(!$rs->eof){
			$company_nm = $rs->fields["company_nm"];
			$comment =  $rs->fields["comment"];
			$url = $rs->fields["url"];
		}

		$rs->free_result();

		$tag_s = "";
		$tag_e = "";
		if(strlen($url) > 0) {
			$tag_s = "<a href=\"".$url."\" target=\"_blank\">";
			$tag_e = "</a>";
		}

		$img_src = fimg_img_src($company_no, "logo");

		echo "<tr>";
		echo "<td style=\"padding-top:10px;vertical-align:top;\">";
		echo $tag_s.f_hsc($company_nm).$tag_e."<br />";
		echo "<dl class=\"acMenu\">";
		echo "  <dt><img src=\"".$img_src."\" alt=\"".f_hsc($company_nm)."\"></dt>";
		echo "  <dd style=\"padding: 0 4px;display:none;\">".nl2br(f_hsc($comment))."</dd>";
		echo "</dl>";
		echo "</td>";
		echo "</tr>";

	}

	echo "</table>";

}else{

	$rv_flg = 0;

	// ---------------------------------------------
	// リロケーション
	// ---------------------------------------------

	$sql = "SELECT";
	$sql.= " company_nm,";
	$sql.= " company_no,";
	$sql.= " url, ";
	$sql.= " comment ";
	$sql.= "FROM";
	$sql.= " m_company ";
	$sql.= "WHERE";
	$sql.= " company_no  in ( 0";
	foreach ($_POST["arr_company_kbn"] as $key => $value){
		if($value == "relocation"){
			$sql.= ", ".$key;
		}
	}
	$sql.= " )";

	$rs = $gc->db->query($sql);

	$r_count = $gc->db->get_row_count();

	if($r_count > 0){

		if($rv_flg > 0){
			echo "<table style=\"width:100%;\">";
			$rv_flg = 1;
		}

		while ($rs->eof==false) {

			$company_no = $rs->fields["company_no"];
			$company_nm = $rs->fields["company_nm"];
			$comment = $rs->fields["comment"];
			$url = $rs->fields["url"];

			$tag_s = "";
			$tag_e = "";
			if(strlen($url) > 0) {
				$tag_s = "<a href=\"".$url."\" target=\"_blank\">";
				$tag_e = "</a>";
			}

			$img_src = fimg_img_src($company_no, "logo");

			echo "<tr>";
			echo "<td style=\"padding-top:10px;vertical-align:top;\">";
			echo $tag_s.f_hsc($company_nm).$tag_e."<br />";
			echo "<dl class=\"acMenu\">";
			echo "  <dt><img src=\"".$img_src."\" alt=\"".f_hsc($company_nm)."\"></dt>";
			echo "  <dd style=\"padding: 0 4px;display:none;\">".nl2br(f_hsc($comment))."</dd>";
			echo "</dl>";
			echo "</td>";
			echo "</tr>";

			$rs->move_next();

		}
	}

	$rs->free_result();

	// ---------------------------------------------
	// 賃貸募集・賃貸管理
	// ---------------------------------------------

	$sql = "SELECT";
	$sql.= " company_no,";
	$sql.= " company_nm,";
	$sql.= " url, ";
	$sql.= " comment ";
	$sql.= "FROM";
	$sql.= " m_company ";
	$sql.= "WHERE";
	$sql.= " company_no  in ( 0";
	foreach ($_POST["arr_company_kbn"] as $key => $value){
		if($value == "chintai"){
			$sql.= ", ".$key;
		}
	}
	$sql.= " )";

	$rs = $gc->db->query($sql);

	$r_count = $gc->db->get_row_count();

	if($r_count > 0){

		if($rv_flg > 0){
			echo "<table style=\"width:100%;\">";
			$rv_flg = 1;
		}

		while ($rs->eof==false) {

			$company_no = $rs->fields["company_no"];
			$company_nm = $rs->fields["company_nm"];
			$comment = $rs->fields["comment"];
			$url = $rs->fields["url"];

			$tag_s = "";
			$tag_e = "";
			if(strlen($url) > 0) {
				$tag_s = "<a href=\"".$url."\" target=\"_blank\">";
				$tag_e = "</a>";
			}

			$img_src = fimg_img_src($company_no, "logo");

			echo "<tr>";
			echo "<td style=\"padding-top:10px;vertical-align:top;\">";
			echo $tag_s.f_hsc($company_nm).$tag_e."<br />";
			echo "<dl class=\"acMenu\">";
			echo "  <dt><img src=\"".$img_src."\" alt=\"".f_hsc($company_nm)."\"></dt>";
			echo "  <dd style=\"padding: 0 4px;display:none;\">".nl2br(f_hsc($comment))."</dd>";
			echo "</dl>";
			echo "</td>";
			echo "</tr>";

			$rs->move_next();

		}
	}

	$rs->free_result();

	// ---------------------------------------------
	// サブリース
	// ---------------------------------------------

	$sql = "SELECT";
	$sql.= " company_no,";
	$sql.= " company_nm,";
	$sql.= " url, ";
	$sql.= " comment ";
	$sql.= "FROM";
	$sql.= " m_company ";
	$sql.= "WHERE";
	$sql.= " company_no  in ( 0";
	foreach ($_POST["arr_company_kbn"] as $key => $value){
		if($value == "sublease"){
			$sql.= ", ".$key;
		}
	}
	$sql.= " )";

	$rs = $gc->db->query($sql);

	$r_count = $gc->db->get_row_count();

	if($r_count > 0){

		if($rv_flg > 0){
			echo "<table style=\"width:100%;\">";
			$rv_flg = 1;
		}

		while ($rs->eof==false) {

			$company_no = $rs->fields["company_no"];
			$company_nm = $rs->fields["company_nm"];
			$comment = $rs->fields["comment"];
			$url = $rs->fields["url"];

			$tag_s = "";
			$tag_e = "";
			if(strlen($url) > 0) {
				$tag_s = "<a href=\"".$url."\" target=\"_blank\">";
				$tag_e = "</a>";
			}

			$img_src = fimg_img_src($company_no, "logo");

			echo "<tr>";
			echo "<td style=\"padding-top:10px;vertical-align:top;\">";
			echo $tag_s.f_hsc($company_nm).$tag_e."<br />";
			echo "<dl class=\"acMenu\">";
			echo "  <dt><img src=\"".$img_src."\" alt=\"".f_hsc($company_nm)."\"></dt>";
			echo "  <dd style=\"padding: 0 4px;display:none;\">".nl2br(f_hsc($comment))."</dd>";
			echo "</dl>";
			echo "</td>";
			echo "</tr>";

			$rs->move_next();

		}
	}

	if($rv_flg == 1){
		echo "</table>";
	}

	$rs->free_result();

}
// 終了:業者一覧 ----------------------------------------------------------------
?>
	<p style="margin-left: 4px;">
		<br />
		3営業日以内に直接お客様へお電話またはメールにてご連絡が入ります。<br />
		<br />
		ご利用いただきありがとうございました。
	</p><br />
	<p style="margin-left: 4px;">
		<br />
		<a href="<?php echo C_NORMAL_URL ?>lp/<?php echo f_hsc($gc->st_page)?>/sp/">トップに戻る</a><br />
	</p>
<?php
			} /* 終了:if(count($gc->arr_company) > 0) */

		}else{
			// 送信失敗メッセージ
			echo "<p><strong>".nl2br(f_hsc($gc->message))."</strong></p>";
		}
// ■■■ 終了:送信完了ページ --------------------------------------------------

	}elseif(($gc->form_mode=="next") && ($gc->disp_page==4)){
// ■■■ 開始:確認ページ ------------------------------------------------------

		$sql = "SELECT SQL_CALC_FOUND_ROWS";
		$sql.= " company_no,";
		$sql.= " company_nm,";
		$sql.= " comment ";
		$sql.= "FROM";
		$sql.= " m_company ";
		$sql.= "WHERE";

		if(count($gc->arr_company) > 0){
			$sql.= " company_no IN (";
			for ($i = 0; $i < count($gc->arr_company); $i++) {
				if($i > 0){
					$sql.= " ,";
				}
				$sql.= $gc->arr_company[$i];
			}
			$sql.= " ) ";
		}else{
			$sql.= " 0 = 1 ";
		}

		$rsc = $gc->db->query($sql);

		$gc->row_count = $gc->db->get_row_count();

?>

<?php
		if($gc->msg->count > 0){
			echo "<div id=\"err_message\" style=\"border: 1px solid red; margin: 10px 0 5px; padding: 4px; background-color: pink;\">";
			echo "<ul>";
			for ($i = 0; $i < $gc->msg->count; $i++) {
				echo "<li>".f_hsc($gc->msg->list[$i])."</li>";
			}
			echo "</ul>";
			echo "</div>";
		}else{
?>
	<div id="err_message" style="border: 1px solid red; margin: 10px 0 5px; padding: 4px; background-color: pink; display:none;"></div>
<?php
		}
?>

	<form id="spform" name="form_edit" action="thanks.php" method="post" onsubmit="return run_submit_next('entry');">
		<input name="mode" type="hidden" value="">
		<input name="token" type="hidden" value="<?php echo f_hsc($gc->token)?>">
		<input name="buken_sbt" type="hidden" value="<?php echo f_hsc($gc->buken_sbt)?>">
		<input name="todoufuken_nm" type="hidden" value="<?php echo f_hsc($gc->todoufuken_nm)?>">
		<input name="shikucyouson_no" type="hidden" value="<?php echo f_hsc($gc->shikucyouson_no)?>">
		<input name="shikucyouson_nm" type="hidden" value="<?php echo f_hsc($gc->shikucyouson_nm)?>">
		<input name="buken" type="hidden" value="<?php echo f_hsc($gc->buken)?>">
		<input name="banchi" type="hidden" value="<?php echo f_hsc($gc->banchi)?>">
		<input name="buken_tatemono" type="hidden" value="<?php echo f_hsc($gc->buken_tatemono)?>">
		<input name="buken_heya" type="hidden" value="<?php echo f_hsc($gc->buken_heya)?>">
		<input name="chikunensu" type="hidden" value="<?php echo f_hsc($gc->chikunensu)?>">
		<input name="input_val" type="hidden" value="<?php echo f_hsc($gc->input_val)?>">
		<input name="input_kbn" type="hidden" value="<?php echo f_hsc($gc->input_kbn)?>">
		<input name="madori_no" type="hidden" value="<?php echo f_hsc($gc->madori_no)?>">
		<input name="meigi_no" type="hidden" value="<?php echo f_hsc($gc->meigi_no)?>">
		<input name="genjyou_no" type="hidden" value="<?php echo f_hsc($gc->genjyou_no)?>">
		<input name="fudousan_flg" type="hidden" value="<?php echo f_hsc($gc->fudousan_flg)?>">
		<input name="fudousan_nm" type="hidden" value="<?php echo f_hsc($gc->fudousan_nm)?>">
		<input name="bikou" type="hidden" value="<?php echo f_hsc($gc->bikou)?>">
		<input name="lname" type="hidden" value="<?php echo f_hsc($gc->lname)?>">
		<input name="fname" type="hidden" value="<?php echo f_hsc($gc->fname)?>">
		<input name="lname_kn" type="hidden" value="<?php echo f_hsc($gc->lname_kn)?>">
		<input name="fname_kn" type="hidden" value="<?php echo f_hsc($gc->fname_kn)?>">
		<input name="tel1" type="hidden" value="<?php echo f_hsc($gc->tel1)?>">
		<input name="tel2" type="hidden" value="<?php echo f_hsc($gc->tel2)?>">
		<input name="tel3" type="hidden" value="<?php echo f_hsc($gc->tel3)?>">
		<input name="e_mail" type="hidden" value="<?php echo f_hsc($gc->e_mail)?>">
		<input name="sumai_flg" type="hidden" value="<?php echo f_hsc($gc->sumai_flg)?>">
		<input name="sumai_todoufuken_no" type="hidden" value="<?php echo f_hsc($gc->sumai_todoufuken_no)?>">
		<input name="sumai_shikucyouson_no" type="hidden" value="<?php echo f_hsc($gc->sumai_shikucyouson_no)?>">
		<input name="sumai_banchi" type="hidden" value="<?php echo f_hsc($gc->sumai_banchi)?>">
		<input name="sumai_tatemono" type="hidden" value="<?php echo f_hsc($gc->sumai_tatemono)?>">
		<input name="work_company" type="hidden" value="<?php echo f_hsc($gc->work_company)?>">

		<input name="chintai_flg" type="hidden" value="<?php echo f_hsc($gc->chintai_flg)?>">
		<input name="sublease_flg" type="hidden" value="<?php echo f_hsc($gc->sublease_flg)?>">
		<input name="relocation_flg" type="hidden" value="<?php echo f_hsc($gc->relocation_flg)?>">
		<input name="purpose_flg" type="hidden" value="<?php echo f_hsc($gc->purpose_flg)?>">
		<input name="land_val" type="hidden" value="<?php echo f_hsc($gc->land_val)?>">
		<input name="room_cnt" type="hidden" value="<?php echo f_hsc($gc->room_cnt)?>">

		<input name="light_com_cnt" type="hidden" value="<?php echo f_hsc($gc->row_count)?>">
		<input name="rank" type="hidden" value="<?php echo f_hsc($gc->rank)?>">
		<input name="tesuryou" type="hidden" value="<?php echo f_hsc($gc->tesuryou)?>">

		<input name="r_cnt" type="hidden" value="<?php echo f_hsc($gc->r_cnt)?>">
		<input name="c_cnt" type="hidden" value="<?php echo f_hsc($gc->c_cnt)?>">
		<input name="s_cnt" type="hidden" value="<?php echo f_hsc($gc->s_cnt)?>">

<?php

	if(count($gc->arr_company) > 0){
		for ($i = 0; $i < count($gc->arr_company); $i++) {
			$company_no = $gc->arr_company[$i];
			echo "		<input name=\"arr_company[]\" type=\"hidden\" value=\"".f_hsc($company_no)."\">\n";
		}
	}

	if(count($gc->arr_company_kbn) > 0){
		foreach ($gc->arr_company_kbn as $key => $value){
			echo "		<input name=\"arr_company_kbn[".$key."]\" type=\"hidden\" value=\"".f_hsc($value)."\">\n";
		}
	}

?>

		<div class="inr">
			<p class="leadTxt">査定を依頼される物件の情報をご確認ください<br>
				<span class="ore">※印は必須項目です</span></p>
			<br>
			<dl class="fm2">
				<dt>利用目的<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->purpose_flg_str) ?></dd>
				<dt>希望のサービス<span class="ore">※</span></dt>
				<dd>
<?php
					if($gc->chintai_flg == 1){ echo "賃貸募集・賃貸管理<br/>"; }
					if($gc->sublease_flg == 1) { echo "サブリース<br/>"; }
					if($gc->relocation_flg == 1) { echo "リロケーション"; }
?>
				</dd>
				<dt>物件種別<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->buken_sbt_str) ?></dd>
				<dt>物件所在地<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->todoufuken_nm.$gc->shikucyouson_nm) ?></dd>
				<dt>町名<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->buken) ?></dd>
				<dt>番地<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->banchi) ?></dd>
	<?php if($gc->buken_sbt == 1){?>
				<dt>建物名<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->buken_tatemono) ?></dd>
				<dt>部屋番号<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->buken_heya) ?></dd>
				<dt>築年数<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->chikunensu) ?>年</dd>
				<dt>延床面積<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->input_val) ?><?php echo f_hsc($gc->input_kbn_str) ?></dd>
				<dt>間取り<span class="ore">※</span></dt>
				<dd><?php echo f_hsc(fsel_get_madori($gc, $gc->madori_no, true)) ?></dd>
				<dt>物件名義<span class="ore">※</span></dt>
				<dd><?php echo f_hsc(fsel_get_meigi($gc, $gc->meigi_no, true)) ?></dd>
				<dt>現況<span class="ore">※</span></dt>
				<dd><?php echo f_hsc(fsel_get_genjyou($gc, $gc->genjyou_no, true)) ?></dd>
				<dt>現在依頼している不動産会社</dt>
				<dd><?php echo f_hsc($gc->fudousan_flg_str) ?><?php echo f_hsc($gc->fudousan_flg=="1"?"(".$gc->fudousan_nm.")":"") ?></dd>
				<dt>備考欄</dt>
				<dd><?php echo nl2br(str_replace(" ", "&nbsp;", f_hsc($gc->bikou))) ?></dd>
	<?php }elseif($gc->buken_sbt == 2){?>
				<dt>建物名<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->buken_tatemono) ?></dd>
				<dt>築年数<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->chikunensu) ?>年</dd>
				<dt>延床面積<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->input_val) ?><?php echo f_hsc($gc->input_kbn_str) ?></dd>
				<dt>土地面積<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->land_val) ?>平米</dd>
				<dt>物件名義<span class="ore">※</span></dt>
				<dd><?php echo f_hsc(fsel_get_meigi($gc, $gc->meigi_no, true)) ?></dd>
				<dt>現況<span class="ore">※</span></dt>
				<dd><?php echo f_hsc(fsel_get_genjyou($gc, $gc->genjyou_no, true)) ?><?php echo f_hsc($gc->buken_sbt == 2 ? " 空き部屋数:".$gc->room_cnt : "") ?></dd>
				<dt>現在依頼している不動産会社</dt>
				<dd><?php echo f_hsc($gc->fudousan_flg_str) ?><?php echo f_hsc($gc->fudousan_flg=="1"?"(".$gc->fudousan_nm.")":"") ?></dd>
				<dt>備考欄</dt>
				<dd><?php echo nl2br(str_replace(" ", "&nbsp;", f_hsc($gc->bikou))) ?></dd>
	<?php }elseif($gc->buken_sbt == 3){?>
				<dt>築年数<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->chikunensu) ?>年</dd>
				<dt>延床面積<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->input_val) ?><?php echo f_hsc($gc->input_kbn_str) ?></dd>
				<dt>土地面積<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->land_val) ?>平米</dd>
				<dt>間取り<span class="ore">※</span></dt>
				<dd><?php echo f_hsc(fsel_get_madori($gc, $gc->madori_no, true)) ?></dd>
				<dt>物件名義<span class="ore">※</span></dt>
				<dd><?php echo f_hsc(fsel_get_meigi($gc, $gc->meigi_no, true)) ?></dd>
				<dt>現況<span class="ore">※</span></dt>
				<dd><?php echo f_hsc(fsel_get_genjyou($gc, $gc->genjyou_no, true)) ?></dd>
				<dt>現在依頼している不動産会社</dt>
				<dd><?php echo f_hsc($gc->fudousan_flg_str) ?><?php echo f_hsc($gc->fudousan_flg=="1"?"(".$gc->fudousan_nm.")":"") ?></dd>
				<dt>備考欄</dt>
				<dd><?php echo nl2br(str_replace(" ", "&nbsp;", f_hsc($gc->bikou))) ?></dd>
	<?php }?>
			</dl>
		</div>

		<div class="inr">
			<p class="leadTxt">お申込みされるご本人様の情報</p>
			<br>
			<dl class="fm2">
				<dt>お名前<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->lname) ?> <?php echo f_hsc($gc->fname) ?></dd>
				<dt>フリガナ<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->lname_kn) ?> <?php echo f_hsc($gc->fname_kn) ?></dd>
				<dt>電話番号<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->tel1) ?>-<?php echo f_hsc($gc->tel2) ?>-<?php echo f_hsc($gc->tel3) ?></dd>
				<dt>メールアドレス<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->e_mail) ?></dd>
				<dt>お住まいの住所<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->sumai_flg_str) ?></dd>
				<dt<?php echo ($gc->sumai_flg==0?" style='display: none;'":"") ?>>ご住所(都道府県市区町村)</dt>
				<dd<?php echo ($gc->sumai_flg==0?" style='display: none;'":"") ?>><?php echo f_hsc(fsel_get_todoufuken($gc, $gc->sumai_todoufuken_no, true)) ?><?php echo f_hsc(fsel_get_shikucyouson($gc, $gc->sumai_todoufuken_no, $gc->sumai_shikucyouson_no, true)) ?></dd>
				<dt<?php echo ($gc->sumai_flg==0?" style='display: none;'":"") ?>>ご住所(町名・番地)</dt>
				<dd<?php echo ($gc->sumai_flg==0?" style='display: none;'":"") ?>><?php echo f_hsc($gc->sumai_banchi) ?></dd>
				<dt<?php echo ($gc->sumai_flg==0?" style='display: none;'":"") ?>>建物名・部屋番号</dt>
				<dd<?php echo ($gc->sumai_flg==0?" style='display: none;'":"") ?>><?php echo f_hsc($gc->sumai_tatemono) ?></dd>
			</dl>
		</div>

<?php
/* 開始:業者一覧(チェックボックス付) */
	if($gc->purpose_flg == 1){

		$sql = "SELECT SQL_CALC_FOUND_ROWS";
		$sql.= " company_no,";
		$sql.= " company_nm,";
		$sql.= " comment ";
		$sql.= "FROM";
		$sql.= " m_company ";
		$sql.= "WHERE";

		if(count($gc->arr_company) > 0){
			$sql.= " company_no IN (";
			for ($i = 0; $i < count($gc->arr_company); $i++) {
				if($i > 0){
					$sql.= " ,";
				}
				$sql.= $gc->arr_company[$i];
			}
			$sql.= " ) ";
		}else{
			$sql.= " 0 = 1 ";
		}

		$rsc = $gc->db->query($sql);

		echo "<table style=\"width:100%;margin: 20px 0;\">";

		while ($rsc->eof==false) {

			$company_no =  $rsc->fields["company_no"];
			$company_nm =  $rsc->fields["company_nm"];
			$comment =  $rsc->fields["comment"];

			$img_src = fimg_img_src($company_no, "logo");

			echo "<tr>";
			echo "<td style=\"padding-top:10px;vertical-align:top;\">";
			echo "<label><input type=\"checkbox\" name=\"light_company_no[]\" value=\"".$company_no."\" checked />";
			echo f_hsc($company_nm)."</label><br />";
			echo "<dl class=\"acMenu\">";
			echo "  <dt><img src=\"".$img_src."\" alt=\"".f_hsc($company_nm)."\"></dt>";
			echo "  <dd style=\"padding: 0 4px;display:none;\">".nl2br(f_hsc($comment))."</dd>";
			echo "</dl>";
			echo "</td>";
			echo "</tr>";

			$rsc->move_next();

		}

		$rsc->free_result();

		echo "</table>";

	}
/* 終了:業者一覧(チェックボックス付) */
?>
			<input name="f_page" type="hidden" value="4">
			<input id="st_page" name="st_page" type="hidden" value="<?php echo f_hsc($gc->st_page)?>">
<?php
if($gc->purpose_flg != 1){
}
?>

		<div class="formBtn">
			<input name="imageField" type="image" src="../lp/sp_common/img/btn_send.png" alt="入力した内容を送信" class="single2" />
			<p><img src="../lp/sp_common/img/btn_prev.png" border="0" class="single2 prev" onclick="run_submit_prev('form_edit', 'form3.php')"></p>
		</div>

	</form>

<?php
// ■■■ 終了:確認ページ ------------------------------------------------------

	}else{
// ■■■ 開始:ページ1~3 ----------------------------------------------------

		if($gc->msg->count > 0){
			echo "<div id=\"err_message\" style=\"border: 1px solid red; margin: 10px 0 5px; padding: 4px; background-color: pink;\">";
			echo "<ul>";
			for ($i = 0; $i < $gc->msg->count; $i++) {
				echo "<li>".f_hsc($gc->msg->list[$i])."</li>";
			}
			echo "</ul>";
			echo "</div>";
		}else{
?>
	<div id="err_message" style="border: 1px solid red; margin: 10px 0 5px; padding: 4px; background-color: pink; display:none;"></div>
<?php
		}
?>

<?php if($gc->disp_page < 3){ ?>
	<form id="spform" name="form_edit" action="form<?php echo $gc->disp_page+1 ?>.php" method="post" onsubmit="return run_submit_next('next');">
<?php }else{ ?>
	<form id="spform" name="form_edit" action="confirm.php" method="post" onsubmit="return run_submit_next('next');">
<?php } ?>
		<input name="mode" type="hidden" value="">
		<input name="token" type="hidden" value="<?php echo f_hsc($gc->token)?>">
		<input name="buken_sbt" type="hidden" value="<?php echo f_hsc($gc->buken_sbt)?>">
		<input name="todoufuken_nm" type="hidden" value="<?php echo f_hsc($gc->todoufuken_nm)?>">
		<input name="shikucyouson_no" type="hidden" value="<?php echo f_hsc($gc->shikucyouson_no)?>">
		<input name="shikucyouson_nm" type="hidden" value="<?php echo f_hsc($gc->shikucyouson_nm)?>">
		<input name="work_company" type="hidden" value="<?php echo f_hsc($gc->work_company)?>">

<?php
	// 業者が決まるのはページ2から3に遷移するとき
	if($gc->disp_page > 2){

		if(count($gc->arr_company_kbn) > 0){
			foreach ($gc->arr_company_kbn as $key => $value){
				echo "		<input name=\"arr_company_kbn[".$key."]\" type=\"hidden\" value=\"".f_hsc($value)."\">\n";
			}
		}

		if(count($gc->arr_company) > 0){
			for ($i = 0; $i < count($gc->arr_company); $i++) {
				$company_no = $gc->arr_company[$i];
				echo "		<input name=\"arr_company[]\" type=\"hidden\" value=\"".f_hsc($company_no)."\">\n";
			}
		}

	}
?>

<?php
		if($gc->disp_page == 1){
// ■■■ 開始:ページ1 --------------------------------------------------------
?>

		<div class="inr">
			<p class="leadTxt">
				査定を依頼されるご利用目的を選択してください<br>
				<span class="ore">※必ずどれか1つにチェックしてください</span>
			</p>

			<label>
				<input type="radio" name="purpose_flg" onclick="checkOn(1)" value="1"<?php echo $gc->purpose_flg_1_checked ?>>
				<span>いくらで貸せるのか知りたいだけ</span></label>
			<label>
				<input type="radio" name="purpose_flg" onclick="checkOn(2)" value="2"<?php echo $gc->purpose_flg_2_checked ?>>
				<span>空室なので早く貸したい</span></label>
			<label>
				<input type="radio" name="purpose_flg" onclick="checkOn(3)" value="3"<?php echo $gc->purpose_flg_3_checked ?>>
				<span>解約が入ったので次の入居者を探している</span></label>
			<label>
				<input type="radio" name="purpose_flg" onclick="checkOn(4)" value="4"<?php echo $gc->purpose_flg_4_checked ?>>
				<span>賃貸管理会社を探している</span></label>
			<label>
				<input type="radio" name="purpose_flg" onclick="checkOn(5)" value="5"<?php echo $gc->purpose_flg_5_checked ?>>
				<span>引っ越すので貸し出したい</span></label>
			<label>
				<input type="radio" name="purpose_flg" onclick="checkOn(6)" value="6"<?php echo $gc->purpose_flg_6_checked ?>>
				<span>相続した部屋(家)を貸し出したい</span></label>
			<label>
				<input type="radio" name="purpose_flg" onclick="checkOn(7)" value="7"<?php echo $gc->purpose_flg_7_checked ?>>
				<span>空室期間が続いているので賃料を保証して欲しい</span></label>
			<label>
				<input type="radio" name="purpose_flg" onclick="checkOn(8)" value="8"<?php echo $gc->purpose_flg_8_checked ?>>
				<span>転勤期間中の入居者を募集したい</span></label>
		</div>

		<div class="inr">
			<p class="leadTxt">
				ご希望のサービスを選択してください<br>
				<span class="ore">※複数サービスへのお問い合わせが可能です</span>
			</p>

			<div id="flg" <?php if($gc->purpose_flg == 1 || $gc->purpose_flg == 7 || $gc->purpose_flg == 8){echo "style=\"display:none;\"";}else{echo "style=\"display:block;\"";}?>>
				<label>
					<input type="checkbox" id="chintai_flg" name="chintai_flg" value="1" <?php if($gc->chintai_flg == 1)echo "checked"?>>
					<span>賃貸募集・賃貸管理</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about1.html">賃貸募集・管理とは</a></p>
				<label>
					<input type="checkbox" id="sublease_flg" name="sublease_flg" value="1" <?php if($gc->sublease_flg == 1)echo "checked"?>>
					<span>サブリース</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about2.html">サブリースとは</a></p>
				<label>
					<input type="checkbox" id="relocation_flg" name="relocation_flg" value="1" <?php if($gc->relocation_flg == 1)echo "checked"?>>
					<span>リロケーション</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about3.html">リロケーションとは</a></p>
			</div>

			<div id="flg1" <?php if($gc->purpose_flg != 1){echo "style=\"display:none;\"";}else{echo "style=\"display:block;\"";}?>>
				<label>
					<input type="checkbox" id="chintai_flg" name="chintai_flg" value="1" disabled checked>
					<span>賃貸募集・賃貸管理</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about1.html">賃貸募集・管理とは</a></p>
				<label>
					<input type="checkbox" id="sublease_flg" name="sublease_flg" value="1" disabled checked>
					<span>サブリース</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about2.html">サブリースとは</a></p>
				<label>
					<input type="checkbox" id="relocation_flg" name="relocation_flg" value="1" disabled checked>
					<span>リロケーション</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about3.html">リロケーションとは</a></p>
			</div>

			<div id="flg7" <?php if($gc->purpose_flg != 7){echo "style=\"display:none;\"";}else{echo "style=\"display:block;\"";}?>>
				<label>
					<input type="checkbox" id="chintai_flg" name="chintai_flg" value="1" disabled>
					<span>賃貸募集・賃貸管理</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about1.html">賃貸募集・管理とは</a></p>
				<label>
					<input type="checkbox" id="sublease_flg" name="sublease_flg" value="1" disabled checked>
					<span>サブリース</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about2.html">サブリースとは</a></p>
				<label>
					<input type="checkbox" id="relocation_flg" name="relocation_flg" value="1" disabled>
					<span>リロケーション</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about3.html">リロケーションとは</a></p>
			</div>

			<div id="flg8" <?php if($gc->purpose_flg != 8){echo "style=\"display:none;\"";}else{echo "style=\"display:block;\"";}?>>
				<label>
					<input type="checkbox" id="chintai_flg" name="chintai_flg" value="1" disabled>
					<span>賃貸募集・賃貸管理</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about1.html">賃貸募集・管理とは</a></p>
				<label>
					<input type="checkbox" id="sublease_flg" name="sublease_flg" value="1" disabled>
					<span>サブリース</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about2.html">サブリースとは</a></p>
				<label>
					<input type="checkbox" id="relocation_flg" name="relocation_flg" value="1" disabled checked>
					<span>リロケーション</span></label>
				<p class="fbox"><a href="../lp/sp_common/win/about3.html">リロケーションとは</a></p>
			</div>

		</div>

<?php
// ■■■ 終了:ページ1 --------------------------------------------------------

		}elseif($gc->disp_page == 2){
// ■■■ 開始:ページ2 --------------------------------------------------------
?>
		<div class="inr">
			<p class="leadTxt">査定を依頼される物件の情報をご入力ください<br>
				<span class="ore">※印は必須項目です</span></p>

			<dl class="fm2">
				<dt>物件種別<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->buken_sbt_str) ?></dd>
				<dt>物件所在地<span class="ore">※</span></dt>
				<dd><?php echo f_hsc($gc->todoufuken_nm.$gc->shikucyouson_nm) ?></dd>
				<dt>町名<span class="ore">※</span></dt>
				<dd>
					<input name="buken" type="text" value="<?php echo f_hsc($gc->buken) ?>" class="wide"></dd>
				<dt>番地<span class="ore">※</span></dt>
				<dd>
					<input name="banchi" type="text" value="<?php echo f_hsc($gc->banchi) ?>" class="wide"></dd>

	<?php if($gc->buken_sbt == 1){?>
				<dt>建物名<span class="ore">※</span></dt>
				<dd>
					<input name="buken_tatemono" type="text" value="<?php echo f_hsc($gc->buken_tatemono) ?>" class="wide"></dd>
				<dt>部屋番号<span class="ore">※</span></dt>
				<dd>
					<input name="buken_heya" type="tel" value="<?php echo f_hsc($gc->buken_heya) ?>" class="half"></dd>
				<dt>築年数<span class="ore">※</span></dt>
				<dd>
					<input name="chikunensu" type="tel" value="<?php echo f_hsc($gc->chikunensu) ?>" class="half">年</dd>
				<dt>延床面積<span class="ore">※</span></dt>
				<dd>
					<input name="input_val" type="tel" value="<?php echo f_hsc($gc->input_val) ?>" class="half">m&sup2;</dd>
				<dt>間取り<span class="ore">※</span></dt>
				<dd>
					<select name="madori_no" class="def wide">
						<option value="">選択してください</option>
						<?php echo fsel_get_madori($gc, $gc->madori_no) ?>
					</select></dd>
				<dt>物件名義<span class="ore">※</span></dt>
				<dd>
					<select name="meigi_no" class="def wide">
						<option value="">選択してください</option>
			<?php echo fsel_get_meigi($gc, $gc->meigi_no) ?>
					</select></dd>
				<dt>現況<span class="ore">※</span></dt>
				<dd>
					<select name="genjyou_no" class="def wide">
						<option value="">選択してください</option>
						<?php echo fsel_get_genjyou($gc, $gc->genjyou_no) ?>
					</select></dd>
				<dt>現在依頼している不動産会社</dt>
				<dd>
					<div class="halfbox">
						<label>
							<input type="radio" name="fudousan_flg" value="0"<?php echo $gc->fudousan_flg_0_checked ?>>
							<span>なし</span></label>
						<label>
							<input type="radio" name="fudousan_flg" value="1"<?php echo $gc->fudousan_flg_1_checked ?>>
							<span>あり</span></label>
					</div>
					<div>
						<p class="subtit">不動産会社名</p>
						<input type="text" name="fudousan_nm" size="17" value="<?php echo f_hsc($gc->fudousan_nm) ?>" class="wide">
					</div>
				</dd>
				<dt>備考欄</dt>
				<dd>
					<p class="subtit">質問・疑問、細かいご希望等を、ご自由にご入力ください。</p>
					<textarea name="bikou" rows="5" class="wide"><?php echo f_hsc($gc->bikou) ?></textarea></dd>
	<?php }elseif($gc->buken_sbt == 2){?>
				<dt>建物名<span class="ore">※</span></dt>
				<dd>
					<input name="buken_tatemono" type="text" value="<?php echo f_hsc($gc->buken_tatemono) ?>" class="wide"></dd>
				<dt>築年数<span class="ore">※</span></dt>
				<dd>
					<input name="chikunensu" type="tel" value="<?php echo f_hsc($gc->chikunensu) ?>" class="half">年</dd>
				<dt>延床面積<span class="ore">※</span></dt>
				<dd>
					<input name="input_val" type="tel" value="<?php echo f_hsc($gc->input_val) ?>" class="half">m&sup2;</dd>
				<dt>土地面積<span class="ore">※</span></dt>
				<dd>
					<input name="land_val" type="tel" value="<?php echo f_hsc($gc->land_val) ?>" class="half">m&sup2;</dd>
				<dt>物件名義<span class="ore">※</span></dt>
				<dd>
					<select name="meigi_no" class="def wide">
						<option value="">選択してください</option>
						<?php echo fsel_get_meigi($gc, $gc->meigi_no) ?>
					</select></dd>
				<dt>現況<span class="ore">※</span></dt>
				<dd>
					<select name="genjyou_no" class="def harf">
						<option value=""></option>
						<?php echo fsel_get_genjyou($gc, $gc->genjyou_no) ?>
					</select>
					 空き部屋数 <input type="tel" name="room_cnt" value="<?php echo f_hsc($gc->room_cnt) ?>" class="half">
				</dd>
				<dt>現在依頼している不動産会社</dt>
				<dd>
					<div class="halfbox">
						<label>
							<input type="radio" name="fudousan_flg" value="0"<?php echo $gc->fudousan_flg_0_checked ?>>
							<span>なし</span></label>
						<label>
							<input type="radio" name="fudousan_flg" value="1"<?php echo $gc->fudousan_flg_1_checked ?>>
							<span>あり</span></label>
					</div>
					<div>
						<p class="subtit">不動産会社名</p>
						<input type="text" name="fudousan_nm" size="17" value="<?php echo f_hsc($gc->fudousan_nm) ?>" class="wide">
					</div>
				</dd>
				<dt>備考欄</dt>
				<dd>
					<p class="subtit">質問・疑問、細かいご希望等を、ご自由にご入力ください。</p>
					<textarea name="bikou" rows="5" class="wide"><?php echo f_hsc($gc->bikou) ?></textarea>
				</dd>
	<?php }elseif($gc->buken_sbt == 3){?>
				<dt>建物名<span class="ore">※</span></dt>
				<dd>
					<input name="buken_tatemono" type="text" value="<?php echo f_hsc($gc->buken_tatemono) ?>" class="wide"></dd>
				<dt>築年数<span class="ore">※</span></dt>
				<dd>
					<input name="chikunensu" type="tel" value="<?php echo f_hsc($gc->chikunensu) ?>" class="half">年</dd>
				<dt>延床面積<span class="ore">※</span></dt>
				<dd>
					<input name="input_val" type="tel" value="<?php echo f_hsc($gc->input_val) ?>" class="half">m&sup2;</dd>
				<dt>土地面積<span class="ore">※</span></dt>
				<dd>
					<input name="land_val" type="tel" value="<?php echo f_hsc($gc->land_val) ?>" class="half">m&sup2;</dd>
				<dt>間取り<span class="ore">※</span></dt>
				<dd>
					<select name="madori_no" class="def wide">
						<option value="">選択してください</option>
						<?php echo fsel_get_madori($gc, $gc->madori_no) ?>
					</select>
				</dd>
				<dt>物件名義<span class="ore">※</span></dt>
				<dd>
					<select name="meigi_no" class="def wide">
						<option value="">選択してください</option>
						<?php echo fsel_get_meigi($gc, $gc->meigi_no) ?>
					</select>
				</dd>
				<dt>現況<span class="ore">※</span></dt>
				<dd>
					<select name="genjyou_no" class="def wide">
						<option value="">選択してください</option>
						<?php echo fsel_get_genjyou($gc, $gc->genjyou_no) ?>
					</select>
				</dd>
				<dt>現在依頼している不動産会社</dt>
				<dd>
					<div class="halfbox">
						<label>
							<input type="radio" name="fudousan_flg" value="0"<?php echo $gc->fudousan_flg_0_checked ?>>
							<span>なし</span></label>
						<label>
							<input type="radio" name="fudousan_flg" value="1"<?php echo $gc->fudousan_flg_1_checked ?>>
							<span>あり</span></label>
					</div>
					<div>
						<p class="subtit">不動産会社名</p>
						<input type="text" name="fudousan_nm" size="17" value="<?php echo f_hsc($gc->fudousan_nm) ?>" class="wide">
					</div>
				</dd>
				<dt>備考欄</dt>
				<dd>
					<p class="subtit">質問・疑問、細かいご希望等を、ご自由にご入力ください。</p>
					<textarea name="bikou" rows="5" class="wide"><?php echo f_hsc($gc->bikou) ?></textarea>
				</dd>
	<?php }?>
			</dl>
		</div>

<?php
// ■■■ 終了:ページ2 --------------------------------------------------------

		}elseif($gc->disp_page == 3){
// ■■■ 開始:ページ3 --------------------------------------------------------
?>

		<div class="inr">
			<p class="leadTxt">お申込みされるご本人様の情報をご入力ください<br>
				<span class="ore">※印は必須項目です</span></p>

			<dl class="fm2">
				<dt>お名前<span class="ore">※</span></dt>
				<dd class="name">
					<div>姓<input type="text" name="lname" value="<?php echo f_hsc($gc->lname) ?>"></div>
					<div>名<input type="text" name="fname" value="<?php echo f_hsc($gc->fname) ?>"></div>
				</dd>
				<dt>フリガナ<span class="ore">※</span></dt>
				<dd class="name">
					<div>セイ<input type="text" name="lname_kn" value="<?php echo f_hsc($gc->lname_kn) ?>"></div>
					<div>メイ<input type="text" name="fname_kn" value="<?php echo f_hsc($gc->fname_kn) ?>"></div>
				</dd>
				<dt>電話番号<span class="ore">※</span></dt>
				<dd class="tel">
					<input type="tel" name="tel1" value="<?php echo f_hsc($gc->tel1) ?>">-<input type="tel" name="tel2" value="<?php echo f_hsc($gc->tel2) ?>" >-<input type="tel" name="tel3" value="<?php echo f_hsc($gc->tel3) ?>"></dd>
				<dt>メールアドレス<span class="ore">※</span></dt>
				<dd>
					<input type="text" name="e_mail" value="<?php echo f_hsc($gc->e_mail) ?>" class="wide"></dd>
				<dt>お住まいの住所<span class="ore">※</span></dt>
				<dd class="widebox">
					<label>
						<input type="radio" name="sumai_flg" value="0"<?php echo $gc->sumai_flg_0_checked ?>>
						<span>物件住所と同じ</span></label>
					<label>
						<input type="radio" name="sumai_flg" value="1"<?php echo $gc->sumai_flg_1_checked ?>>
						<span>物件住所と異なる</span></label>
				</dd>
				<dt class="sumai_item">ご住所(都道府県市区町村)</dt>
				<dd class="gy sumai_item">
					<div>
						<select id="sumai_todoufuken" name="sumai_todoufuken_no" class="def wide">
							<option value="">選択してください</option>
							<?php echo fsel_get_todoufuken($gc, $gc->sumai_todoufuken_no) ?>
						</select>
					</div>
					<div>
						<select id="sumai_shikucyouson" name="sumai_shikucyouson_no" class="def wide">
						<?php if($gc->sumai_todoufuken_no < 1){ ?>
							<option value="0">選択してください</option>
						<?php }else{ ?>
							<?php echo fsel_get_shikucyouson($gc, $gc->sumai_todoufuken_no, $gc->sumai_shikucyouson_no) ?>
						<?php } ?>
						</select>
					</div>
				</dd>
				<dt class="sumai_item">ご住所(町名・番地)</dt>
				<dd class="sumai_item">
					<input name="sumai_banchi" type="text" value="<?php echo f_hsc($gc->sumai_banchi) ?>" class="wide"></dd>
				<dt class="sumai_item">建物名・部屋番号</dt>
				<dd class="sumai_item">
					<input type="text" name="sumai_tatemono" value="<?php echo f_hsc($gc->sumai_tatemono) ?>" class="wide"></dd>
			</dl>
		</div>

<?php
// ■■■ 終了:ページ3 --------------------------------------------------------
		}
?>

<?php
if($gc->disp_page != 1){
?>
		<input name="chintai_flg" type="hidden" value="<?php echo f_hsc($gc->chintai_flg)?>">
		<input name="sublease_flg" type="hidden" value="<?php echo f_hsc($gc->sublease_flg)?>">
		<input name="relocation_flg" type="hidden" value="<?php echo f_hsc($gc->relocation_flg)?>">
		<input name="purpose_flg" type="hidden" value="<?php echo f_hsc($gc->purpose_flg)?>">
<?php
}
if($gc->disp_page != 2){
?>
		<input name="buken" type="hidden" value="<?php echo f_hsc($gc->buken)?>">
		<input name="banchi" type="hidden" value="<?php echo f_hsc($gc->banchi)?>">
		<input name="buken_tatemono" type="hidden" value="<?php echo f_hsc($gc->buken_tatemono)?>">
		<input name="buken_heya" type="hidden" value="<?php echo f_hsc($gc->buken_heya)?>">
		<input name="chikunensu" type="hidden" value="<?php echo f_hsc($gc->chikunensu)?>">
		<input name="input_val" type="hidden" value="<?php echo f_hsc($gc->input_val)?>">
		<input name="input_kbn" type="hidden" value="<?php echo f_hsc($gc->input_kbn)?>">
		<input name="madori_no" type="hidden" value="<?php echo f_hsc($gc->madori_no)?>">
		<input name="meigi_no" type="hidden" value="<?php echo f_hsc($gc->meigi_no)?>">
		<input name="genjyou_no" type="hidden" value="<?php echo f_hsc($gc->genjyou_no)?>">
		<input name="fudousan_flg" type="hidden" value="<?php echo f_hsc($gc->fudousan_flg)?>">
		<input name="fudousan_nm" type="hidden" value="<?php echo f_hsc($gc->fudousan_nm)?>">
		<input name="bikou" type="hidden" value="<?php echo f_hsc($gc->bikou)?>">
		<input name="land_val" type="hidden" value="<?php echo f_hsc($gc->land_val)?>">
		<input name="room_cnt" type="hidden" value="<?php echo f_hsc($gc->room_cnt)?>">
		<input name="rank" type="hidden" value="<?php echo f_hsc($gc->rank)?>">
		<input name="tesuryou" type="hidden" value="<?php echo f_hsc($gc->tesuryou)?>">
<?php
}
if($gc->disp_page != 3){
?>
		<input name="lname" type="hidden" value="<?php echo f_hsc($gc->lname)?>">
		<input name="fname" type="hidden" value="<?php echo f_hsc($gc->fname)?>">
		<input name="lname_kn" type="hidden" value="<?php echo f_hsc($gc->lname_kn)?>">
		<input name="fname_kn" type="hidden" value="<?php echo f_hsc($gc->fname_kn)?>">
		<input name="tel1" type="hidden" value="<?php echo f_hsc($gc->tel1)?>">
		<input name="tel2" type="hidden" value="<?php echo f_hsc($gc->tel2)?>">
		<input name="tel3" type="hidden" value="<?php echo f_hsc($gc->tel3)?>">
		<input name="e_mail" type="hidden" value="<?php echo f_hsc($gc->e_mail)?>">
		<input name="sumai_flg" type="hidden" value="<?php echo f_hsc($gc->sumai_flg)?>">
		<input name="sumai_todoufuken_no" type="hidden" value="<?php echo f_hsc($gc->sumai_todoufuken_no)?>">
		<input name="sumai_shikucyouson_no" type="hidden" value="<?php echo f_hsc($gc->sumai_shikucyouson_no)?>">
		<input name="sumai_banchi" type="hidden" value="<?php echo f_hsc($gc->sumai_banchi)?>">
		<input name="sumai_tatemono" type="hidden" value="<?php echo f_hsc($gc->sumai_tatemono)?>">
<?php
}
?>
		<input name="f_page" type="hidden" value="<?php echo f_hsc($gc->disp_page)?>">
		<input id="st_page" name="st_page" type="hidden" value="<?php echo f_hsc($gc->st_page)?>">
<?php
if($gc->disp_page == 1){
?>
		<div class="formBtn">
			<input id="btn_next" name="imageField" type="image" src="../lp/sp_common/img/btn_next.png" alt="次に進む" class="single2" />
			<p><img src="../lp/sp_common/img/btn_prev.png" border="0" class="single2 prev" onclick="run_submit_top('<?php echo C_NORMAL_URL ?>lp/<?php echo f_hsc($gc->st_page)?>/sp/')"></p>
		</div>
<?php
}elseif($gc->disp_page == 2){
?>
		<div class="formBtn">
			<input id="btn_next" name="imageField" type="image" src="../lp/sp_common/img/btn_next.png" alt="次に進む" class="single2" />
			<p><img src="../lp/sp_common/img/btn_prev.png" border="0" class="single2 prev" onclick="run_submit_prev('form_edit', 'form1.php')"></p>
		</div>
<?php
}elseif($gc->disp_page == 3){
?>
		<div class="formBtn">
			<input id="btn_next" name="imageField" type="image" src="../lp/sp_common/img/btn_conf.png" alt="入力した内容を確認" class="single2" />
			<p><img src="../lp/sp_common/img/btn_prev.png" border="0" class="single2 prev" onclick="run_submit_prev('form_edit', 'form2.php')"></p>
		</div>
<?php
}
?>
	</form>
<?php
// ■■■ 終了:ページ1~3 ----------------------------------------------------
	}
?>

</section>
<!--form end-->
<!--footer start-->
<footer id="footer">
	<p class="copy">Copyright (c) マンション貸す.com All Right Reserved. </p>
</footer>
<!--footer end-->
<?php include "../lp/Include/analytics.tpl" ?>

<!-- Yahoo_retargeting-->
<script type="text/javascript" language="javascript"> var yahoo_retargeting_id = '880R3QJO8N'; var yahoo_retargeting_label = ''; </script> <script type="text/javascript" language="javascript" src="//b92.yahoo.co.jp/js/s_retargeting.js"></script>
<!-- Yahoo_retargeting-->

<!-- Google_remarketing-->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 981619677;
var google_custom_params = window.google_tag_params; var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/981619677/?value=0&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
<!-- Google_remarketing-->

<!-- Google Analytics event-->
<script type="text/javascript">jQuery(function() { 
    jQuery("a").click(function(e) {       
        var ahref = jQuery(this).attr('href');
        if (ahref.indexOf("xn--88j8j6dnb6cc5655n.com") != -1 || ahref.indexOf("http") == -1 ) {
            ga('send', 'event', '内部リンク', 'クリック', ahref);} 
        else {
            ga('send', 'event', '外部リンク', 'クリック', ahref);}
        });
    });
</script>
</body>
</html>
<?php /* HTML終了 ******************************************************* */
} ?>
示例#2
0
function out_html($gc)
{
    //ラジオボタン設定
    fdiv_set_purpose_radio($gc, $gc->purpose_flg, "purpose_flg");
    fdiv_set_yes_no_radio($gc, $gc->relocation_flg, "relocation_flg");
    fdiv_set_buken_sbt_radio($gc, $gc->buken_sbt, "buken_sbt");
    fdiv_set_input_kbn_radio($gc, $gc->input_kbn, "input_kbn");
    fdiv_set_fudousan_flg_radio($gc, $gc->fudousan_flg, "fudousan_flg");
    fdiv_set_sumai_flg_radio($gc, $gc->sumai_flg, "sumai_flg");
    /* HTML開始 *************************************************************** */
    ?>
<!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=utf-8" />
<title>無料家賃査定申込みフォーム|マンション貸す.com|リロケーション(転勤)、分譲マンションを貸すなら</title>
<meta name="keywords" content="マンション,貸す,リロケーション,分譲,転勤,家賃査定">
<meta name="description" content="マンション貸す.comが厳選した提携不動産業者に対して3社一括査定が無料で申し込めます。空室対策や急な転勤で分譲マンションを貸す(リロケーション)ことをご検討中でしたら、60秒カンタン査定にお申込みください。あなたの街で1番頼れる不動産会社は?">
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/custom/jquery-ui-1.10.3.custom.min.css">
<!-- *** javascript *** -->
<script src="js/jquery-1.9.1.js"></script>
<script src="js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="js/form.js"></script>
<script language="JavaScript">
<!--
var submit_flg = false;
function run_submit(fname, mode) {
	document.forms[fname].mode.value = mode;
	if(submit_flg==false){
		//ボタン2度押し対応
		submit_flg = true;
		document.forms[fname].submit();
	}
}
function run_submit_ex(fname, mode, ac) {
	document.forms[fname].action = ac;
	run_submit(fname, mode);
}
function unload_page(){
	submit_flg = false;
}
window.onunload = unload_page;
// -->
</script>
<?php 
    if ($gc->form_mode != "init_err" and $gc->form_mode != "notfound" and $gc->form_mode != "message" and $gc->form_mode != "confirm") {
        ?>
<script type="text/javascript" src="js/kanaTextExtension.js"></script>
<script language="JavaScript">
kntxtext.target.push([ 'lname', 'lname_kn', kntxtext.constant.letterType.kana, kntxtext.constant.insertType.auto ]);
kntxtext.target.push([ 'fname', 'fname_kn', kntxtext.constant.letterType.kana, kntxtext.constant.insertType.auto ]);
</script>
<script>
	$(function() {
		$( "#chintai-dialog-message" ).dialog({
			autoOpen: false,
			width: 555,
			draggable: false,
			resizable: false,
			modal: true,
			buttons: {
				Ok: function() {
					$( this ).dialog( "close" );
				}
			}
		});

		$( "#sublease-dialog-message" ).dialog({
			autoOpen: false,
			width: 555,
			draggable: false,
			resizable: false,
			modal: true,
			buttons: {
				Ok: function() {
					$( this ).dialog( "close" );
				}
			}
		});

		$( "#relocation-dialog-message" ).dialog({
			autoOpen: false,
			width: 555,
			draggable: false,
			resizable: false,
			modal: true,
			buttons: {
				Ok: function() {
					$( this ).dialog( "close" );
				}
			}
		});
	});

	function chintai_open_dialog() {
		$( "#chintai-dialog-message" ).dialog( "open" );
	}

	function sublease_open_dialog() {
		$( "#sublease-dialog-message" ).dialog( "open" );
	}
	function relocation_open_dialog() {
		$( "#relocation-dialog-message" ).dialog( "open" );
	}




	$(document).on("click", ".ui-widget-overlay", function(){
		$("#chintai-dialog-message").dialog("close");
		$("#sublease-dialog-message").dialog("close");
		$("#relocation-dialog-message").dialog("close");
	});

	function checkOn(No){

		switch(No){
			case 1:
				$("#chintai_flg").prop("checked",true);
				$("#sublease_flg").prop("checked",true);
				$("#relocation_flg").prop("checked",true);
				$("#flg").css("display","none");
				$("#flg1").css("display","block");
				$("#flg7").css("display","none");
				$("#flg8").css("display","none");
				break;
			case 7:
				$("#chintai_flg").prop("checked",false);
				$("#sublease_flg").prop("checked",true);
				$("#relocation_flg").prop("checked",false);
				$("#flg").css("display","none");
				$("#flg1").css("display","none");
				$("#flg7").css("display","block");
				$("#flg8").css("display","none");
				break;
			case 8:
				$("#chintai_flg").prop("checked",false);
				$("#sublease_flg").prop("checked",false);
				$("#relocation_flg").prop("checked",true);
				$("#flg").css("display","none");
				$("#flg1").css("display","none");
				$("#flg7").css("display","none");
				$("#flg8").css("display","block");
				break;
			default:
				$("#chintai_flg").prop("checked",true);
				$("#sublease_flg").prop("checked",true);
				$("#relocation_flg").prop("checked",true);
				$("#flg").css("display","block");
				$("#flg1").css("display","none");
				$("#flg7").css("display","none");
				$("#flg8").css("display","none");
				break;
		}

	}
</script>
<?php 
    }
    ?>
</head>
<body>

<?php 
    if ($gc->form_mode == "message" and $gc->message_mode == "send_ok") {
        ?>
<img src="https://track.affiliate-b.com/commit/26371V/<?php 
        echo date('YmdHis') . sprintf('%03d', mt_rand(1, 100));
        ?>
" width="1" height="1" />
<img src="https://www.rentracks.jp/secure/e.gifx?sid=834&pid=1393&price=1&quantity=1&reward=-1&cinfo=<?php 
        echo $gc->item_no;
        ?>
" width="1" height="1" />
<img src="http://www.medipartner.jp/lead.php?orderid=<?php 
        echo $gc->item_no;
        ?>
&merID=1028" />
<?php 
    }
    ?>

<div id="fb-root"></div>
	<script>(function(d, s, id) {
	  var js, fjs = d.getElementsByTagName(s)[0];
	  if (d.getElementById(id)) return;
	  js = d.createElement(s); js.id = id;
	  js.src = "//connect.facebook.net/ja_JP/all.js#xfbml=1&appId=329851967137005";
	  fjs.parentNode.insertBefore(js, fjs);
	}(document, 'script', 'facebook-jssdk'));</script>

	<div id="header">
		<?php 
    include "_header.php";
    ?>

	</div>
	<div class="clearfix"></div>
</div>
	</div>
	<div class="clearfix"></div>
	<div class="nav">
		<div class="inner">
			<ul>
				<li>
					<a href="<?php 
    echo C_NORMAL_URL;
    ?>
index.php">トップ</a>|
				</li>

				<li>
					<a href="<?php 
    echo C_NORMAL_URL;
    ?>
relocation.php">リロケーションについて</a>|
				</li>

				<li>
					<a href="<?php 
    echo C_NORMAL_URL;
    ?>
sublease.php">サブリースについて</a>|
				</li>

				<li>
					<a href="<?php 
    echo C_NORMAL_URL;
    ?>
case_study.php">ケーススタディ</a>|
				</li>

				<li>
					<a href="<?php 
    echo C_NORMAL_URL;
    ?>
faq.php">よくある質問</a>|
				</li>

				<li>
					<a href="<?php 
    echo C_NORMAL_URL;
    ?>
post_company.php">提携企業一覧</a>|
				</li>

				<li>
					<a href="<?php 
    echo C_NORMAL_URL;
    ?>
ads.php">広告掲載について</a>
				</li>
			</ul>
		</div>
		<div class="clearfix"></div>
	</div>

	<div class="main">
		<div class="pan"><a href="<?php 
    echo C_NORMAL_URL;
    ?>
index.php">トップ</a> > 無料家賃査定申込みフォーム</div>
<?php 
    if ($gc->form_mode != "init_err" and $gc->form_mode != "notfound" and $gc->form_mode != "message" and $gc->form_mode != "confirm") {
        ?>
		<!--<img src="img/subheader.jpg" alt="">-->
<?php 
    }
    ?>
		<div class="left">
			<div class="form-area">
<?php 
    if ($gc->form_mode == "init_err") {
        for ($i = 0; $i < $gc->msg->count; $i++) {
            echo "<p><strong>" . f_hsc($gc->msg->list[$i]) . "</strong></p>";
        }
        echo "<p style=\"margin-top: 10px\"><button type=\"button\" onClick=\"history.back(); return false;\">前のページにもどる</button></p>";
    } elseif ($gc->form_mode == "notfound") {
        echo "<p><strong>";
        echo "お客様のエリアは対象外となっております。<br />";
        echo "<br />";
        echo "大変申し訳ございません。";
        echo "</strong></p>";
    } elseif ($gc->form_mode == "message") {
        if ($gc->message_mode == "send_ok") {
            if (count($gc->arr_company) > 0) {
                ?>

<!--
				<p style="margin-left: 4px; font-size: 16px; font-weight: bold; color: red;">
					お客様の情報は、マンション貸す.comが厳選した下記の提携不動産会社に送信されました。<br />
-->
<?php 
                if ($gc->purpose_flg == 1) {
                    ?>
				<p><img src="img/form1_comp.jpg" /><br /><br />
				</p>
<?php 
                } else {
                    ?>
				<p><img src="img/form_comp.jpg" /><br /><br />
				</p>
<?php 
                }
                ?>

<!--
					<table class="bnr" style="margin-top: 20px; margin-bottom: 20px;">
-->
<?php 
                if ($gc->purpose_flg == 1) {
                    echo "<table>";
                    for ($i = 0; $i < count($gc->arr_company); $i++) {
                        $company_no = $gc->arr_company[$i];
                        $company_nm = "";
                        $url = "";
                        if (!is_numeric($company_no)) {
                            $company_no = 0;
                        }
                        $sql = "SELECT";
                        $sql .= " company_nm,";
                        $sql .= " url, ";
                        $sql .= " comment ";
                        $sql .= "FROM";
                        $sql .= " m_company ";
                        $sql .= "WHERE";
                        $sql .= " company_no = " . $company_no;
                        $rs = $gc->db->query($sql);
                        if (!$rs->eof) {
                            $company_nm = $rs->fields["company_nm"];
                            $comment = $rs->fields["comment"];
                            $url = $rs->fields["url"];
                        }
                        $rs->free_result();
                        $tag_s = "";
                        $tag_e = "";
                        if (strlen($url) > 0) {
                            $tag_s = "<a href=\"" . $url . "\" target=\"_blank\">";
                            $tag_e = "</a>";
                        }
                        $img_src = fimg_img_src($company_no, "logo");
                        echo "<tr>";
                        echo "<td><img src=\"" . $img_src . "\" alt=\"" . f_hsc($company_nm) . "\"></td>";
                        echo "<td>" . $tag_s . f_hsc($company_nm) . $tag_e . "<br/>" . nl2br(f_hsc($comment)) . "</td>";
                        echo "</tr>";
                    }
                    echo "</table>";
                } else {
                    $sql = "SELECT";
                    $sql .= " company_nm,";
                    $sql .= " company_no,";
                    $sql .= " url, ";
                    $sql .= " comment ";
                    $sql .= "FROM";
                    $sql .= " m_company ";
                    $sql .= "WHERE";
                    $sql .= " company_no  in ( 0";
                    foreach ($_POST["arr_company_kbn"] as $key => $value) {
                        if ($value == "relocation") {
                            $sql .= ", " . $key;
                        }
                    }
                    $sql .= " )";
                    $rs = $gc->db->query($sql);
                    $r_count = $gc->db->get_row_count();
                    if ($r_count > 0) {
                        echo "<img src=\"img/form_comp_relocation.jpg\" />";
                        echo "<table>";
                        while ($rs->eof == false) {
                            $company_no = $rs->fields["company_no"];
                            $company_nm = $rs->fields["company_nm"];
                            $comment = $rs->fields["comment"];
                            $url = $rs->fields["url"];
                            $tag_s = "";
                            $tag_e = "";
                            if (strlen($url) > 0) {
                                $tag_s = "<a href=\"" . $url . "\" target=\"_blank\">";
                                $tag_e = "</a>";
                            }
                            $img_src = fimg_img_src($company_no, "logo");
                            echo "<tr>";
                            echo "<td width=\"300\"><img src=\"" . $img_src . "\" alt=\"" . f_hsc($company_nm) . "\"></td>";
                            echo "<td>" . $tag_s . f_hsc($company_nm) . $tag_e . "<br/>" . nl2br(f_hsc($comment)) . "</td>";
                            echo "</tr>";
                            $rs->move_next();
                        }
                        echo "</table>";
                        echo "<br>";
                    }
                    $rs->free_result();
                    $sql = "SELECT";
                    $sql .= " company_no,";
                    $sql .= " company_nm,";
                    $sql .= " url, ";
                    $sql .= " comment ";
                    $sql .= "FROM";
                    $sql .= " m_company ";
                    $sql .= "WHERE";
                    $sql .= " company_no  in ( 0";
                    foreach ($_POST["arr_company_kbn"] as $key => $value) {
                        if ($value == "chintai") {
                            $sql .= ", " . $key;
                        }
                    }
                    $sql .= " )";
                    $rs = $gc->db->query($sql);
                    $r_count = $gc->db->get_row_count();
                    if ($r_count > 0) {
                        echo "<img src=\"img/form_comp_rent.jpg\" />";
                        echo "<table>";
                        while ($rs->eof == false) {
                            $company_no = $rs->fields["company_no"];
                            $company_nm = $rs->fields["company_nm"];
                            $comment = $rs->fields["comment"];
                            $url = $rs->fields["url"];
                            $tag_s = "";
                            $tag_e = "";
                            if (strlen($url) > 0) {
                                $tag_s = "<a href=\"" . $url . "\" target=\"_blank\">";
                                $tag_e = "</a>";
                            }
                            $img_src = fimg_img_src($company_no, "logo");
                            echo "<tr>";
                            echo "<td width=\"300\"><img src=\"" . $img_src . "\" alt=\"" . f_hsc($company_nm) . "\"></td>";
                            echo "<td>" . $tag_s . f_hsc($company_nm) . $tag_e . "<br/>" . nl2br(f_hsc($comment)) . "</td>";
                            echo "</tr>";
                            $rs->move_next();
                        }
                        echo "</table>";
                        echo "<br>";
                    }
                    $rs->free_result();
                    $sql = "SELECT";
                    $sql .= " company_no,";
                    $sql .= " company_nm,";
                    $sql .= " url, ";
                    $sql .= " comment ";
                    $sql .= "FROM";
                    $sql .= " m_company ";
                    $sql .= "WHERE";
                    $sql .= " company_no  in ( 0";
                    foreach ($_POST["arr_company_kbn"] as $key => $value) {
                        if ($value == "sublease") {
                            $sql .= ", " . $key;
                        }
                    }
                    $sql .= " )";
                    $rs = $gc->db->query($sql);
                    $r_count = $gc->db->get_row_count();
                    if ($r_count > 0) {
                        echo "<img src=\"img/form_comp_lease.jpg\" />";
                        echo "<table>";
                        while ($rs->eof == false) {
                            $company_no = $rs->fields["company_no"];
                            $company_nm = $rs->fields["company_nm"];
                            $comment = $rs->fields["comment"];
                            $url = $rs->fields["url"];
                            $tag_s = "";
                            $tag_e = "";
                            if (strlen($url) > 0) {
                                $tag_s = "<a href=\"" . $url . "\" target=\"_blank\">";
                                $tag_e = "</a>";
                            }
                            $img_src = fimg_img_src($company_no, "logo");
                            echo "<tr>";
                            echo "<td width=\"300\"><img src=\"" . $img_src . "\" alt=\"" . f_hsc($company_nm) . "\"></td>";
                            echo "<td>" . $tag_s . f_hsc($company_nm) . $tag_e . "<br/>" . nl2br(f_hsc($comment)) . "</td>";
                            echo "</tr>";
                            $rs->move_next();
                        }
                        echo "</table>";
                    }
                    $rs->free_result();
                }
                /*
                echo "<table>";
                for ($i = 0; $i < count($gc->arr_company); $i++) {
                
                	$company_no = $gc->arr_company[$i];
                
                	$company_nm = "";
                	$url = "";
                
                	if(!is_numeric($company_no)){
                		$company_no = 0;
                	}
                
                	$sql = "SELECT";
                	$sql.= " company_nm,";
                	$sql.= " url, ";
                	$sql.= " comment ";
                	$sql.= "FROM";
                	$sql.= " m_company ";
                	$sql.= "WHERE";
                	$sql.= " company_no = ".$company_no;
                
                	$rs = $gc->db->query($sql);
                
                	if(!$rs->eof){
                		$company_nm = $rs->fields["company_nm"];
                		$comment =  $rs->fields["comment"];
                		$url = $rs->fields["url"];
                	}
                
                	$rs->free_result();
                
                	$tag_s = "";
                	$tag_e = "";
                	if(strlen($url) > 0) {
                		$tag_s = "<a href=\"".$url."\" target=\"_blank\">";
                		$tag_e = "</a>";
                	}
                
                	$img_src = fimg_img_src($company_no, "logo");
                
                	$last = "";
                	if($i==count($gc->arr_company)-1){
                		$last = " last";
                	}
                
                	if($gc->purpose_flg == 1){
                		echo "<tr>";
                		echo "<td><img src=\"".$img_src."\" alt=\"".f_hsc($company_nm)."\"></td>";
                		echo "<td>".$tag_s.f_hsc($company_nm).$tag_e."<br/>".nl2br(f_hsc($comment))."</td>";
                		echo "</tr>";
                	}else{
                
                		$syubetu = "";
                		if($i < $_POST["r_cnt"]){
                			$syubetu = "リロケーション";
                		}elseif($i < ($_POST["r_cnt"]+$_POST["c_cnt"])){
                
                			$syubetu = "賃貸";
                		}elseif($i < ($_POST["r_cnt"]+$_POST["c_cnt"]+$_POST["s_cnt"])){
                
                			$syubetu = "サブリース";
                		}
                
                		echo "<tr>";
                		echo "<td><img src=\"".$img_src."\" alt=\"".f_hsc($company_nm)."\"></td>";
                		echo "<td>".$tag_s.f_hsc($company_nm).$tag_e."<br/>".nl2br(f_hsc($comment))."</td>";
                		echo "<td>".$syubetu."</td>";
                		echo "</tr>";
                	}
                
                ?>
                <!--
                <tr>
                	<td style="width:200px;"><img src="<?php echo $img_src ?>" alt="<?php echo f_hsc($company_nm) ?>"></td>
                	<td><?php echo $tag_s ?><?php echo f_hsc($company_nm) ?><?php echo $tag_e ?></td>
                </tr>
                
                <dl class="company<?php echo $last ?>">
                <dt class="bnr"><img src="<?php echo $img_src ?>" alt="<?php echo f_hsc($company_nm) ?>"></dt>
                <dd><?php echo $tag_s ?><?php echo f_hsc($company_nm) ?><?php echo $tag_e ?></dd>
                </dl>-->
                <?php
                
                }
                echo "</table>";
                */
                ?>
<!--
					</table>
-->

				<p style="margin-left: 4px; font-weight: bold;">
					<br />
					3営業日以内に直接お客様へお電話またはメールにてご連絡が入ります。<br />
					<br />
					ご利用いただきありがとうございました。
				</p>
				<p style="margin-left: 4px;">
					<br />
<?php 
                if ($gc->st_page) {
                    ?>
					<a href="<?php 
                    echo C_NORMAL_URL;
                    ?>
lp/<?php 
                    echo f_hsc($gc->st_page);
                    ?>
/">トップに戻る</a><br />
<?php 
                } else {
                    ?>
					<a href="<?php 
                    echo C_NORMAL_URL;
                    ?>
">トップに戻る</a><br />
<?php 
                }
                ?>
				</p>

<?php 
            }
        } else {
            echo "<p><strong>" . nl2br(f_hsc($gc->message)) . "</strong></p>";
        }
    } elseif ($gc->form_mode == "confirm") {
        ?>
				<form name="form_data" action="form.php" method="post" onsubmit="return false">
					<input id="st_page" name="st_page" type="hidden" value="<?php 
        echo f_hsc($gc->st_page);
        ?>
">
					<input name="mode" type="hidden" value="">
					<input name="token" type="hidden" value="<?php 
        echo f_hsc($gc->token);
        ?>
">
					<input name="buken_sbt" type="hidden" value="<?php 
        echo f_hsc($gc->buken_sbt);
        ?>
">
					<input name="todoufuken_nm" type="hidden" value="<?php 
        echo f_hsc($gc->todoufuken_nm);
        ?>
">
					<input name="shikucyouson_no" type="hidden" value="<?php 
        echo f_hsc($gc->shikucyouson_no);
        ?>
">
					<input name="shikucyouson_nm" type="hidden" value="<?php 
        echo f_hsc($gc->shikucyouson_nm);
        ?>
">
					<input name="buken" type="hidden" value="<?php 
        echo f_hsc($gc->buken);
        ?>
">
					<input name="banchi" type="hidden" value="<?php 
        echo f_hsc($gc->banchi);
        ?>
">
					<input name="buken_tatemono" type="hidden" value="<?php 
        echo f_hsc($gc->buken_tatemono);
        ?>
">
					<input name="buken_heya" type="hidden" value="<?php 
        echo f_hsc($gc->buken_heya);
        ?>
">
					<input name="chikunensu" type="hidden" value="<?php 
        echo f_hsc($gc->chikunensu);
        ?>
">
					<input name="input_val" type="hidden" value="<?php 
        echo f_hsc($gc->input_val);
        ?>
">
					<input name="input_kbn" type="hidden" value="<?php 
        echo f_hsc($gc->input_kbn);
        ?>
">
					<input name="madori_no" type="hidden" value="<?php 
        echo f_hsc($gc->madori_no);
        ?>
">
					<input name="meigi_no" type="hidden" value="<?php 
        echo f_hsc($gc->meigi_no);
        ?>
">
					<input name="genjyou_no" type="hidden" value="<?php 
        echo f_hsc($gc->genjyou_no);
        ?>
">
					<input name="fudousan_flg" type="hidden" value="<?php 
        echo f_hsc($gc->fudousan_flg);
        ?>
">
					<input name="fudousan_nm" type="hidden" value="<?php 
        echo f_hsc($gc->fudousan_nm);
        ?>
">
					<input name="bikou" type="hidden" value="<?php 
        echo f_hsc($gc->bikou);
        ?>
">
					<input name="lname" type="hidden" value="<?php 
        echo f_hsc($gc->lname);
        ?>
">
					<input name="fname" type="hidden" value="<?php 
        echo f_hsc($gc->fname);
        ?>
">
					<input name="lname_kn" type="hidden" value="<?php 
        echo f_hsc($gc->lname_kn);
        ?>
">
					<input name="fname_kn" type="hidden" value="<?php 
        echo f_hsc($gc->fname_kn);
        ?>
">
					<input name="tel1" type="hidden" value="<?php 
        echo f_hsc($gc->tel1);
        ?>
">
					<input name="tel2" type="hidden" value="<?php 
        echo f_hsc($gc->tel2);
        ?>
">
					<input name="tel3" type="hidden" value="<?php 
        echo f_hsc($gc->tel3);
        ?>
">
					<input name="e_mail" type="hidden" value="<?php 
        echo f_hsc($gc->e_mail);
        ?>
">
					<input name="sumai_flg" type="hidden" value="<?php 
        echo f_hsc($gc->sumai_flg);
        ?>
">
					<input name="sumai_todoufuken_no" type="hidden" value="<?php 
        echo f_hsc($gc->sumai_todoufuken_no);
        ?>
">
					<input name="sumai_shikucyouson_no" type="hidden" value="<?php 
        echo f_hsc($gc->sumai_shikucyouson_no);
        ?>
">
					<input name="sumai_banchi" type="hidden" value="<?php 
        echo f_hsc($gc->sumai_banchi);
        ?>
">
					<input name="sumai_tatemono" type="hidden" value="<?php 
        echo f_hsc($gc->sumai_tatemono);
        ?>
">
					<input name="work_company" type="hidden" value="<?php 
        echo f_hsc($gc->work_company);
        ?>
">

					<input name="chintai_flg" type="hidden" value="<?php 
        echo f_hsc($gc->chintai_flg);
        ?>
">
					<input name="sublease_flg" type="hidden" value="<?php 
        echo f_hsc($gc->sublease_flg);
        ?>
">
					<input name="relocation_flg" type="hidden" value="<?php 
        echo f_hsc($gc->relocation_flg);
        ?>
">
					<input name="purpose_flg" type="hidden" value="<?php 
        echo f_hsc($gc->purpose_flg);
        ?>
">
					<input name="land_val" type="hidden" value="<?php 
        echo f_hsc($gc->land_val);
        ?>
">
					<input name="room_cnt" type="hidden" value="<?php 
        echo f_hsc($gc->room_cnt);
        ?>
">

					<input name="light_com_cnt" type="hidden" value="<?php 
        echo f_hsc($gc->row_count);
        ?>
">
					<input name="rank" type="hidden" value="<?php 
        echo f_hsc($gc->rank);
        ?>
">
					<input name="tesuryou" type="hidden" value="<?php 
        echo f_hsc($gc->tesuryou);
        ?>
">

					<input name="r_cnt" type="hidden" value="<?php 
        echo f_hsc($gc->r_cnt);
        ?>
">
					<input name="c_cnt" type="hidden" value="<?php 
        echo f_hsc($gc->c_cnt);
        ?>
">
					<input name="s_cnt" type="hidden" value="<?php 
        echo f_hsc($gc->s_cnt);
        ?>
">

<?php 
        if (count($gc->arr_company) > 0) {
            for ($i = 0; $i < count($gc->arr_company); $i++) {
                $company_no = $gc->arr_company[$i];
                ?>
					<input name="arr_company[]" type="hidden" value="<?php 
                echo f_hsc($company_no);
                ?>
">
<?php 
            }
        }
        ?>

<?php 
        if (count($gc->arr_company_kbn) > 0) {
            foreach ($gc->arr_company_kbn as $key => $value) {
                echo "<input name=\"arr_company_kbn[" . $key . "]\" type=\"hidden\" value=\"" . f_hsc($value) . "\">";
            }
        }
        ?>


				<h2><img src="img/form_title.jpg" alt="無料家賃査定申込みフォーム"></h2>
<?php 
        if ($gc->msg->count > 0) {
            echo "<div style=\"border: 1px solid red; margin: 30px 0 0; padding: 4px; background-color: pink;\">";
            for ($i = 0; $i < $gc->msg->count; $i++) {
                echo "<p><strong>" . f_hsc($gc->msg->list[$i]) . "</strong></p>";
            }
            echo "</div>";
        }
        ?>
				<p class="title">◆査定を依頼される物件の情報<span>※は必須項目です。</span></p>

				<table>
					<tr>
						<td class="bold">利用目的</td>
						<td class="kome">※</td>
						<td><?php 
        echo f_hsc($gc->purpose_flg_str);
        ?>
</td>
					</tr>

					<tr class="even">
						<td class="bold">希望のサービス</td>
						<td class="kome">※</td>
						<td><?php 
        if ($gc->chintai_flg == 1) {
            echo "賃貸募集・賃貸管理<br/>";
        }
        if ($gc->sublease_flg == 1) {
            echo "サブリース<br/>";
        }
        if ($gc->relocation_flg == 1) {
            echo "リロケーション";
        }
        ?>
						</td>
					</tr>

					<tr>
						<th colspan="3" style="padding-top: 20px;"></th>
					</tr>
					<tr>
						<td class="bold">物件種別</td>
						<td class="kome">※</td>
						<td><?php 
        echo f_hsc($gc->buken_sbt_str);
        ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">物件所在地</td>
						<td class="kome">※</td>
						<td><?php 
        echo f_hsc($gc->todoufuken_nm . $gc->shikucyouson_nm);
        ?>
</td>
					</tr>
					<tr>
						<td class="bold">町名</td>
						<td class="kome">※</td>
						<td><?php 
        echo f_hsc($gc->buken);
        ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">番地</td>
						<td class="kome">※</td>
						<td><?php 
        echo f_hsc($gc->banchi);
        ?>
</td>
					</tr>
			<?php 
        if ($gc->buken_sbt == 1) {
            ?>
					<tr>
						<td class="bold">建物名</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc($gc->buken_tatemono);
            ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">部屋番号</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc($gc->buken_heya);
            ?>
</td>
					</tr>
					<tr>
						<td class="bold">築年数</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc($gc->chikunensu);
            ?>
年</td>
					</tr>
					<tr class="even">
						<td class="bold">延床面積</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc($gc->input_val);
            echo f_hsc($gc->input_kbn_str);
            ?>
</td>
					</tr>
					<tr>
						<td class="bold">間取り</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc(fsel_get_madori($gc, $gc->madori_no, true));
            ?>
</td>
					<tr class="even">
						<td class="bold">物件名義</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc(fsel_get_meigi($gc, $gc->meigi_no, true));
            ?>
</td>
					</tr>
					<tr>
						<td class="bold">現況</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc(fsel_get_genjyou($gc, $gc->genjyou_no, true));
            ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">現在依頼している不動産会社</td>
						<td class="kome"></td>
						<td><?php 
            echo f_hsc($gc->fudousan_flg_str);
            echo f_hsc($gc->fudousan_flg == "1" ? "(" . $gc->fudousan_nm . ")" : "");
            ?>
</td>
					</tr>
					<tr>
						<td class="bold">備考欄<br /><span>質問・疑問、細かいご希望等を、ご自由に<br />ご入力ください。</span></td>
						<td class="kome"></td>
						<td class="warp"><?php 
            echo nl2br(str_replace(" ", "&nbsp;", f_hsc($gc->bikou)));
            ?>
</td>
					</tr>
			<?php 
        } elseif ($gc->buken_sbt == 2) {
            ?>
					<tr>
						<td class="bold">建物名</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc($gc->buken_tatemono);
            ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">築年数</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc($gc->chikunensu);
            ?>
年</td>
					</tr>
					<tr>
						<td class="bold">延床面積</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc($gc->input_val);
            echo f_hsc($gc->input_kbn_str);
            ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">土地面積</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc($gc->land_val);
            ?>
平米</td>
					</tr>
					<tr>
						<td class="bold">物件名義</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc(fsel_get_meigi($gc, $gc->meigi_no, true));
            ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">現況</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc(fsel_get_genjyou($gc, $gc->genjyou_no, true));
            echo f_hsc($gc->buken_sbt == 2 ? " 空き部屋数:" . $gc->room_cnt : "");
            ?>
</td>
					</tr>
					<tr>
						<td class="bold">現在依頼している不動産会社</td>
						<td class="kome"></td>
						<td><?php 
            echo f_hsc($gc->fudousan_flg_str);
            echo f_hsc($gc->fudousan_flg == "1" ? "(" . $gc->fudousan_nm . ")" : "");
            ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">備考欄<br /><span>質問・疑問、細かいご希望等を、ご自由に<br />ご入力ください。</span></td>
						<td class="kome"></td>
						<td class="warp"><?php 
            echo nl2br(str_replace(" ", "&nbsp;", f_hsc($gc->bikou)));
            ?>
</td>
					</tr>
			<?php 
        } elseif ($gc->buken_sbt == 3) {
            ?>
					<tr>
						<td class="bold">築年数</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc($gc->chikunensu);
            ?>
年</td>
					</tr>
					<tr class="even">
						<td class="bold">延床面積</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc($gc->input_val);
            echo f_hsc($gc->input_kbn_str);
            ?>
</td>
					</tr>
					<tr>
						<td class="bold">土地面積</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc($gc->land_val);
            ?>
平米</td>
					</tr>
					<tr class="even">
						<td class="bold">間取り</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc(fsel_get_madori($gc, $gc->madori_no, true));
            ?>
</td>
					</tr>
					<tr>
						<td class="bold">物件名義</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc(fsel_get_meigi($gc, $gc->meigi_no, true));
            ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">現況</td>
						<td class="kome">※</td>
						<td><?php 
            echo f_hsc(fsel_get_genjyou($gc, $gc->genjyou_no, true));
            ?>
</td>
					</tr>
					<tr>
						<td class="bold">現在依頼している不動産会社</td>
						<td class="kome"></td>
						<td><?php 
            echo f_hsc($gc->fudousan_flg_str);
            echo f_hsc($gc->fudousan_flg == "1" ? "(" . $gc->fudousan_nm . ")" : "");
            ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">備考欄<br /><span>質問・疑問、細かいご希望等を、ご自由に<br />ご入力ください。</span></td>
						<td class="kome"></td>
						<td class="warp"><?php 
            echo nl2br(str_replace(" ", "&nbsp;", f_hsc($gc->bikou)));
            ?>
</td>
					</tr>
			<?php 
        }
        ?>

					<tr>
						<th colspan="3">◆お申込みされるご本人様の情報</th>
					</tr>
					<tr class="even">
						<td class="bold">お名前</td>
						<td class="kome">※</td>
						<td><?php 
        echo f_hsc($gc->lname);
        ?>
 <?php 
        echo f_hsc($gc->fname);
        ?>
</td>
					</tr>
					<tr>
						<td class="bold">フリガナ</td>
						<td class="kome">※</td>
						<td><?php 
        echo f_hsc($gc->lname_kn);
        ?>
 <?php 
        echo f_hsc($gc->fname_kn);
        ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">電話番号</td>
						<td class="kome">※</td>
						<td><?php 
        echo f_hsc($gc->tel1);
        ?>
-<?php 
        echo f_hsc($gc->tel2);
        ?>
-<?php 
        echo f_hsc($gc->tel3);
        ?>
</td>
					</tr>
					<tr>
						<td class="bold">メールアドレス</td>
						<td class="kome">※</td>
						<td><?php 
        echo f_hsc($gc->e_mail);
        ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">お住まいの住所</td>
						<td class="kome">※</td>
						<td><?php 
        echo f_hsc($gc->sumai_flg_str);
        ?>
</td>
					</tr>
					<tr>
						<td class="bold">ご住所(都道府県市区町村)</td>
						<td class="kome"></td>
						<td><?php 
        echo f_hsc(fsel_get_todoufuken($gc, $gc->sumai_todoufuken_no, true));
        echo f_hsc(fsel_get_shikucyouson($gc, $gc->sumai_todoufuken_no, $gc->sumai_shikucyouson_no, true));
        ?>
</td>
					</tr>
					<tr class="even">
						<td class="bold">ご住所(町名・番地)</td>
						<td class="kome"></td>
						<td><?php 
        echo f_hsc($gc->sumai_banchi);
        ?>
</td>
					</tr>
					<tr>
						<td class="bold">建物名・部屋番号</td>
						<td class="kome"></td>
						<td><?php 
        echo f_hsc($gc->sumai_tatemono);
        ?>
</td>
					</tr>
				</table>
			<?php 
        if ($gc->purpose_flg == 1) {
            ?>
				<br>
				<p class="title"><img src="img/form2_comp.jpg" /></p>
				<table>
					<tr class="even2">
					  <td align="center">企業ロゴ</td>
					  <td align="center">企業コメント</td>
					  <td width="60" align="center" nowrap="nowrap">選択</td>
					</tr>
					<?php 
            $i = 0;
            $rsc = $gc->rs;
            while ($rsc->eof == false) {
                $company_no = $rsc->fields["company_no"];
                $company_nm = $rsc->fields["company_nm"];
                $comment = $rsc->fields["comment"];
                $img_src = fimg_img_src($company_no, "logo");
                $url = $rsc->fields["url"];
                $tag_s = "";
                $tag_e = "";
                if (strlen($url) > 0) {
                    $tag_s = "<a href=\"" . $url . "\" target=\"_blank\">";
                    $tag_e = "</a>";
                }
                $img_src = fimg_img_src($company_no, "logo");
                echo "<tr>";
                echo "<td><img src=\"" . $img_src . "\" alt=\"" . f_hsc($company_nm) . "\"></td>";
                echo "<td>" . $tag_s . f_hsc($company_nm) . $tag_e . "<br/>" . nl2br(f_hsc($comment)) . "</td>";
                echo "<td align=\"center\"><input type=\"checkbox\" name=\"light_company_no[]\" value=\"" . $company_no . "\" checked /></td>";
                echo "</tr>";
                $rsc->move_next();
                $i++;
            }
            $rsc->free_result();
            ?>
				</table>
			<?php 
        }
        ?>
			</form>
                <!--
				<p style="margin: 25px 4px; font-size: 16px; font-weight: bold; color: blue; line-height: 150%; padding: 10px; border: thin dotted #ff0000;">

					上記の内容でお間違いが無いかご確認ください。<br />
					お客様が入力された情報の地域に強い不動産会社をマンション貸す.comが厳選いたします。
                 -->
            <?php 
        if ($gc->purpose_flg != 1) {
            ?>
                <p>
                    <br /><img src="img/form_alerts.jpg" /><br />
				</p>
			<?php 
        }
        ?>
				<p class="btn">
					<img src="img/form_btn03.jpg" alt="前画面に戻り修正" onclick="run_submit_ex('form_data', 'revision', 'form.php')" style="cursor: pointer">
					<img src="img/form_btn04.jpg" alt="入力した内容で送信" onclick="run_submit_ex('form_data', 'entry', 'thanks.php')" style="cursor: pointer">
				</p>

<?php 
    } else {
        ?>
				<h2><img src="img/form_title.jpg" alt="無料家賃査定申込みフォーム"></h2>
<?php 
        if ($gc->msg->count > 0) {
            echo "<div style=\"border: 1px solid red; margin: 30px 0 0; padding: 4px; background-color: pink;\">";
            for ($i = 0; $i < $gc->msg->count; $i++) {
                echo "<p><strong>" . f_hsc($gc->msg->list[$i]) . "</strong></p>";
            }
            echo "</div>";
        }
        ?>
				<p class="title">◆査定を依頼される物件の情報をご入力ください<span>※は必須項目です。</span></p>
				<form name="form_edit" action="confirm.php" method="post" onsubmit="return false">
					<input id="st_page" name="st_page" type="hidden" value="<?php 
        echo f_hsc($gc->st_page);
        ?>
">
					<input name="mode" type="hidden" value="">
					<input name="token" type="hidden" value="<?php 
        echo f_hsc($gc->token);
        ?>
">
					<input name="buken_sbt" type="hidden" value="<?php 
        echo f_hsc($gc->buken_sbt);
        ?>
">
					<input name="todoufuken_nm" type="hidden" value="<?php 
        echo f_hsc($gc->todoufuken_nm);
        ?>
">
					<input name="shikucyouson_no" type="hidden" value="<?php 
        echo f_hsc($gc->shikucyouson_no);
        ?>
">
					<input name="shikucyouson_nm" type="hidden" value="<?php 
        echo f_hsc($gc->shikucyouson_nm);
        ?>
">
					<input name="work_company" type="hidden" value="<?php 
        echo f_hsc($gc->work_company);
        ?>
">
<?php 
        if (count($gc->arr_company) > 0) {
            for ($i = 0; $i < count($gc->arr_company); $i++) {
                $company_no = $gc->arr_company[$i];
                ?>
					<input name="arr_company[]" type="hidden" value="<?php 
                echo f_hsc($company_no);
                ?>
">
<?php 
            }
        }
        ?>

					<div id="chintai-dialog-message" title="賃貸募集・管理とは" style="display: none;">
						<div style="margin-left: 8px;">
							<p style="margin-top: 8px;">
								<b>◆賃貸募集とは</b>
							</p>
							<p style="margin-top: 4px;">
								所有者様が不動産会社へ入居者の募集を依頼します。<br />
								一般的に、入居者募集、契約書・重要事項説明書作成、契約書調印が<br />
								業務の範囲となり、入居後のトラブル等は所有者様自身での対応が一般的です。<br />
								不動産業者への手数料は契約時に成約賃料の1ヶ月分が目安です。<br />
								複数の不動産会社に募集を依頼する事を一般媒介契約、<br />
								1社の不動産会社に募集を任せることを専任媒介契約と呼びます。<br />
							</p>

							<p style="margin-top: 16px;">
								<b>◆賃貸管理とは</b>
							</p>

							<p style="margin-top: 4px;">
								月額賃料の2%~10%を毎月不動産会社へ支払い<br />
								契約期間中の入居者対応(修理対応、共用部管理、解約処理、滞納督促等)を<br />
								不動産業者へ依頼する事です。賃貸管理契約を不動産会社と締結します。<br />
								料金は会社やサービスによって変わります。<br /><br />
							</p>

						</div>
					</div>

					<div id="sublease-dialog-message" title="サブリースとは" style="display: none;">
						<div style="margin-left: 8px;">
							<p style="margin-top: 8px;">
								<b>◆サブリースとは</b>
							</p>

							<p style="margin-top: 4px;">
								入居者が決まらず、家賃収入がなく住宅ローンが支払えないといった事にならないよう、<br />
								不動産会社がお客様の不動産を直接借りて、第三者に転貸する契約形態の事です。<br />
								不動産会社が借主となる事で空室期間であっても一定の賃料が保証されます。<br /><br />
							</p>

						</div>
					</div>

					<div id="relocation-dialog-message" title="リロケーションとは" style="display: none;">
						<div style="margin-left: 8px;">
							<p style="margin-top: 8px;">
								<b>◆リロケーションとは</b>
							</p>
							<p style="margin-top: 4px;">
								転勤終了後、マイホームに戻りたいが入居中で戻れない等のリスクを回避する為、<br />
								一定期間だけ転居する人の住宅を預かり、賃貸住戸として貸し出し、<br />
								賃料の徴収や日常的な管理点検、明け渡しの保証等を不動産会社が請け負うサービスです。<br /><br />
							</p>
						</div>
					</div>

					<table>
						<tr>
							<td class="bold">ご利用目的を選択してください<br />
								<span>必ずどれか1つにチェックしてください</span>
							</td>
							<td class="kome">※</td>
							<td>
								<input type="radio" name="purpose_flg" onclick="checkOn(1)" value="1"<?php 
        echo $gc->purpose_flg_1_checked;
        ?>
> いくらで貸せるのか知りたいだけ<br/>
								<input type="radio" name="purpose_flg" onclick="checkOn(2)" value="2"<?php 
        echo $gc->purpose_flg_2_checked;
        ?>
> 空室なので早く貸したい<br/>
								<input type="radio" name="purpose_flg" onclick="checkOn(3)" value="3"<?php 
        echo $gc->purpose_flg_3_checked;
        ?>
> 解約が入ったので次の入居者を探している<br/>
								<input type="radio" name="purpose_flg" onclick="checkOn(4)" value="4"<?php 
        echo $gc->purpose_flg_4_checked;
        ?>
> 賃貸管理会社を探している<br/>
								<input type="radio" name="purpose_flg" onclick="checkOn(5)" value="5"<?php 
        echo $gc->purpose_flg_5_checked;
        ?>
> 引っ越すので貸し出したい<br/>
								<input type="radio" name="purpose_flg" onclick="checkOn(6)" value="6"<?php 
        echo $gc->purpose_flg_6_checked;
        ?>
> 相続した部屋(家)を貸し出したい<br/>
								<input type="radio" name="purpose_flg" onclick="checkOn(7)" value="7"<?php 
        echo $gc->purpose_flg_7_checked;
        ?>
> 空室期間が続いているので賃料を保証して欲しい<br/>
								<input type="radio" name="purpose_flg" onclick="checkOn(8)" value="8"<?php 
        echo $gc->purpose_flg_8_checked;
        ?>
> 転勤期間中の入居者を募集したい
							</td>
						</tr>
						<tr class="even">
							<td class="bold">ご希望のサービスを選択してください<br />
								<span>複数サービスへのお問い合わせが可能です</span>
							</td>
							<td class="kome">※</td>
							<td>
								<div id="flg"  <?php 
        if ($gc->purpose_flg == 1 || $gc->purpose_flg == 7 || $gc->purpose_flg == 8) {
            echo "style=\"display:none;\"";
        } else {
            echo "style=\"display:block;\"";
        }
        ?>
>
								<input type="checkbox" name="chintai_flg" id="chintai_flg" value="1" <?php 
        if ($gc->chintai_flg == 1) {
            echo "checked";
        }
        ?>
 > 賃貸募集・賃貸管理  <span class="blue"><a href="#" onclick="chintai_open_dialog(); return false;">賃貸募集・管理とは</a></span><br/>
								<input type="checkbox" name="sublease_flg" id="sublease_flg" value="1" <?php 
        if ($gc->sublease_flg == 1) {
            echo "checked";
        }
        ?>
 > サブリース      <span class="blue"><a href="#" onclick="sublease_open_dialog(); return false;">サブリースとは</a></span><br/>
								<input type="checkbox" name="relocation_flg" id="relocation_flg" value="1" <?php 
        if ($gc->relocation_flg == 1) {
            echo "checked";
        }
        ?>
 > リロケーション    <span class="blue"><a href="#" onclick="relocation_open_dialog(); return false;">リロケーションとは</a></span>
								</div>

								<div id="flg1" <?php 
        if ($gc->purpose_flg != 1) {
            echo "style=\"display:none;\"";
        } else {
            echo "style=\"display:block;\"";
        }
        ?>
>
								<input type="checkbox" name="1"  disabled checked> <span style="color:#C0C0C0;">賃貸募集・賃貸管理</span>  <span class="blue"><a href="#" onclick="chintai_open_dialog(); return false;">賃貸募集・管理とは</a></span><br/>
								<input type="checkbox" name="2"  disabled checked> <span style="color:#C0C0C0;">サブリース</span>      <span class="blue"><a href="#" onclick="sublease_open_dialog(); return false;">サブリースとは</a></span><br/>
								<input type="checkbox" name="3"  disabled checked> <span style="color:#C0C0C0;">リロケーション</span>    <span class="blue"><a href="#" onclick="relocation_open_dialog(); return false;">リロケーションとは</a></span>
								</div>

								<div id="flg7"<?php 
        if ($gc->purpose_flg != 7) {
            echo "style=\"display:none;\"";
        } else {
            echo "style=\"display:block;\"";
        }
        ?>
>
								<input type="checkbox" name="4" disabled > <span style="color:#C0C0C0;">賃貸募集・賃貸管理</span>  <span class="blue"><a href="#" onclick="chintai_open_dialog(); return false;">賃貸募集・管理とは</a></span><br/>
								<input type="checkbox" name="5" disabled checked > サブリース      <span class="blue"><a href="#" onclick="sublease_open_dialog(); return false;">サブリースとは</a></span><br/>
								<input type="checkbox" name="6" disabled > <span style="color:#C0C0C0;">リロケーション</span>    <span class="blue"><a href="#" onclick="relocation_open_dialog(); return false;">リロケーションとは</a></span>
								</div>

								<div id="flg8" <?php 
        if ($gc->purpose_flg != 8) {
            echo "style=\"display:none;\"";
        } else {
            echo "style=\"display:block;\"";
        }
        ?>
>
								<input type="checkbox" name="7" disabled > <span style="color:#C0C0C0;">賃貸募集・賃貸管理</span>  <span class="blue"><a href="#" onclick="chintai_open_dialog(); return false;">賃貸募集・管理とは</a></span><br/>
								<input type="checkbox" name="8" disabled > <span style="color:#C0C0C0;">サブリース</span>      <span class="blue"><a href="#" onclick="sublease_open_dialog(); return false;">サブリースとは</a></span><br/>
								<input type="checkbox" name="9" disabled checked > リロケーション    <span class="blue"><a href="#" onclick="relocation_open_dialog(); return false;">リロケーションとは</a></span>
								</div>

							</td>
						</tr>
						<tr>
							<th colspan="3" style="padding-top: 20px;"></th>
						</tr>
						<tr>
							<td class="bold">物件種別</td>
							<td class="kome">※</td>
							<td><?php 
        echo f_hsc($gc->buken_sbt_str);
        ?>
</td>
						</tr>
						<tr class="even">
							<td class="bold">物件所在地</td>
							<td class="kome">※</td>
							<td><?php 
        echo f_hsc($gc->todoufuken_nm . $gc->shikucyouson_nm);
        ?>
</td>
						</tr>
						<tr>
							<td class="bold">町名</td>
							<td class="kome">※</td>
							<td><input type="text" name="buken" size="45" value="<?php 
        echo f_hsc($gc->buken);
        ?>
" class="text"></td>
						</tr>
						<tr class="even">
							<td class="bold">番地</td>
							<td class="kome">※</td>
							<td><input type="text" name="banchi" size="45" value="<?php 
        echo f_hsc($gc->banchi);
        ?>
" class="text"></td>
						</tr>
				<?php 
        if ($gc->buken_sbt == 1) {
            ?>
						<tr>
							<td class="bold">建物名</td>
							<td class="kome">※</td>
							<td><input type="text" name="buken_tatemono" size="45" value="<?php 
            echo f_hsc($gc->buken_tatemono);
            ?>
" class="text"></td>
						</tr>
						<tr class="even">
							<td class="bold">部屋番号</td>
							<td class="kome">※</td>
							<td><input type="text" name="buken_heya" size="5" value="<?php 
            echo f_hsc($gc->buken_heya);
            ?>
" class="text"></td>
						</tr>
						<tr>
							<td class="bold">築年数</td>
							<td class="kome">※</td>
							<td><input type="text" name="chikunensu" size="5" maxlength="3" value="<?php 
            echo f_hsc($gc->chikunensu);
            ?>
" class="text" style="ime-mode: disabled;"> 年</td>
						</tr>
						<tr class="even">
							<td class="bold">延床面積</td>
							<td class="kome">※</td>
							<td><input type="text" name="input_val" size="5" maxlength="9" value="<?php 
            echo f_hsc($gc->input_val);
            ?>
" class="text" style="ime-mode: disabled;"> ㎡</td>
						</tr>
						<tr>
							<td class="bold">間取り</td>
							<td class="kome">※</td>
							<td>
								<select name="madori_no" class="dropdown">
									<option value=""></option>
									<?php 
            echo fsel_get_madori($gc, $gc->madori_no);
            ?>
								</select>
							</td>
						</tr>
						<tr class="even">
							<td class="bold">物件名義</td>
							<td class="kome">※</td>
							<td>
								<select name="meigi_no" class="dropdown">
									<option value=""></option>
									<?php 
            echo fsel_get_meigi($gc, $gc->meigi_no);
            ?>
								</select>
							</td>
						</tr>
						<tr>
							<td class="bold">現況</td>
							<td class="kome">※</td>
							<td>
								<select name="genjyou_no" class="dropdown">
									<option value=""></option>
									<?php 
            echo fsel_get_genjyou($gc, $gc->genjyou_no);
            ?>
								</select>
							</td>
						</tr>
						<tr class="even">
							<td class="bold">現在依頼している不動産会社</td>
							<td class="kome"></td>
							<td>
								<input type="radio" name="fudousan_flg" value="0"<?php 
            echo $gc->fudousan_flg_0_checked;
            ?>
> なし<input type="radio" name="fudousan_flg" value="1"<?php 
            echo $gc->fudousan_flg_1_checked;
            ?>
> あり 不動産会社名<input type="text" name="fudousan_nm" size="17" value="<?php 
            echo f_hsc($gc->fudousan_nm);
            ?>
" class="text">
							</td>
						</tr>
						<tr>
							<td class="bold">備考欄<br /><span>質問・疑問、細かいご希望等を、ご自由に<br />ご入力ください。</span></td>
							<td class="kome"></td>
							<td>
								<textarea name="bikou" cols="37" rows="10" style="width:333px;"><?php 
            echo f_hsc($gc->bikou);
            ?>
</textarea>
							</td>
						</tr>
				<?php 
        } elseif ($gc->buken_sbt == 2) {
            ?>
						<tr>
							<td class="bold">建物名</td>
							<td class="kome">※</td>
							<td><input type="text" name="buken_tatemono" size="45" value="<?php 
            echo f_hsc($gc->buken_tatemono);
            ?>
" class="text"></td>
						</tr>
						<tr class="even">
							<td class="bold">築年数</td>
							<td class="kome">※</td>
							<td><input type="text" name="chikunensu" size="5" maxlength="3" value="<?php 
            echo f_hsc($gc->chikunensu);
            ?>
" class="text" style="ime-mode: disabled;"> 年</td>
						</tr>
						<tr>
							<td class="bold">延床面積</td>
							<td class="kome">※</td>
							<td><input type="text" name="input_val" size="5" maxlength="9" value="<?php 
            echo f_hsc($gc->input_val);
            ?>
" class="text" style="ime-mode: disabled;"> ㎡</td>
						</tr>
						<tr class="even">
							<td class="bold">土地面積</td>
							<td class="kome">※</td>
							<td><input type="text" name="land_val" size="5" maxlength="9" value="<?php 
            echo f_hsc($gc->land_val);
            ?>
" class="text"  style="ime-mode: disabled;"> ㎡</td>
						</tr>
						<tr>
							<td class="bold">物件名義</td>
							<td class="kome">※</td>
							<td>
								<select name="meigi_no" class="dropdown">
									<option value=""></option>
									<?php 
            echo fsel_get_meigi($gc, $gc->meigi_no);
            ?>
								</select>
							</td>
						</tr>
						<tr class="even">
							<td class="bold">現況</td>
							<td class="kome">※</td>
							<td>
								<select name="genjyou_no" class="dropdown">
									<option value=""></option>
									<?php 
            echo fsel_get_genjyou($gc, $gc->genjyou_no);
            ?>
								</select>
								 空き部屋数 <input type="text" name="room_cnt" size="5" value="<?php 
            echo f_hsc($gc->room_cnt);
            ?>
" class="text" style="ime-mode: disabled;">
							</td>
						</tr>
						<tr>
							<td class="bold">現在依頼している不動産会社</td>
							<td class="kome"></td>
							<td>
								<input type="radio" name="fudousan_flg" value="0"<?php 
            echo $gc->fudousan_flg_0_checked;
            ?>
> なし<input type="radio" name="fudousan_flg" value="1"<?php 
            echo $gc->fudousan_flg_1_checked;
            ?>
> あり 不動産会社名<input type="text" name="fudousan_nm" size="17" value="<?php 
            echo f_hsc($gc->fudousan_nm);
            ?>
" class="text">
							</td>
						</tr>
						<tr class="even">
							<td class="bold">備考欄<br /><span>質問・疑問、細かいご希望等を、ご自由に<br />ご入力ください。</span></td>
							<td class="kome"></td>
							<td>
								<textarea name="bikou" cols="37" rows="10" style="width:333px;"><?php 
            echo f_hsc($gc->bikou);
            ?>
</textarea>
							</td>
						</tr>
				<?php 
        } elseif ($gc->buken_sbt == 3) {
            ?>
						<tr>
							<td class="bold">築年数</td>
							<td class="kome">※</td>
							<td><input type="text" name="chikunensu" size="5" maxlength="3" value="<?php 
            echo f_hsc($gc->chikunensu);
            ?>
" class="text" style="ime-mode: disabled;"> 年</td>
						</tr>
						<tr class="even">
							<td class="bold">延床面積</td>
							<td class="kome">※</td>
							<td><input type="text" name="input_val" size="5" maxlength="9" value="<?php 
            echo f_hsc($gc->input_val);
            ?>
" class="text" style="ime-mode: disabled;"> ㎡</td>
						</tr>
						<tr>
							<td class="bold">土地面積</td>
							<td class="kome">※</td>
							<td><input type="text" name="land_val" size="5" maxlength="9" value="<?php 
            echo f_hsc($gc->land_val);
            ?>
" class="text"  style="ime-mode: disabled;"> ㎡</td>
						</tr>
						<tr class="even">
							<td class="bold">間取り</td>
							<td class="kome">※</td>
							<td>
								<select name="madori_no" class="dropdown">
									<option value=""></option>
									<?php 
            echo fsel_get_madori($gc, $gc->madori_no);
            ?>
								</select>
							</td>
						</tr>
						<tr>
							<td class="bold">物件名義</td>
							<td class="kome">※</td>
							<td>
								<select name="meigi_no" class="dropdown">
									<option value=""></option>
									<?php 
            echo fsel_get_meigi($gc, $gc->meigi_no);
            ?>
								</select>
							</td>
						</tr>
						<tr class="even">
							<td class="bold">現況</td>
							<td class="kome">※</td>
							<td>
								<select name="genjyou_no" class="dropdown">
									<option value=""></option>
									<?php 
            echo fsel_get_genjyou($gc, $gc->genjyou_no);
            ?>
								</select>
							</td>
						</tr>
						<tr>
							<td class="bold">現在依頼している不動産会社</td>
							<td class="kome"></td>
							<td>
								<input type="radio" name="fudousan_flg" value="0"<?php 
            echo $gc->fudousan_flg_0_checked;
            ?>
> なし<input type="radio" name="fudousan_flg" value="1"<?php 
            echo $gc->fudousan_flg_1_checked;
            ?>
> あり 不動産会社名<input type="text" name="fudousan_nm" size="17" value="<?php 
            echo f_hsc($gc->fudousan_nm);
            ?>
" class="text">
							</td>
						</tr>
						<tr class="even">
							<td class="bold">備考欄<br /><span>質問・疑問、細かいご希望等を、ご自由に<br />ご入力ください。</span></td>
							<td class="kome"></td>
							<td>
								<textarea name="bikou" cols="37" rows="10" style="width:333px;"><?php 
            echo f_hsc($gc->bikou);
            ?>
</textarea>
							</td>
						</tr>
				<?php 
        }
        ?>

						<tr>
							<th colspan="3">◆お申込みされるご本人様の情報をご入力ください</th>
						</tr>
						<tr class="even">
							<td class="bold">お名前</td>
							<td class="kome">※</td>
							<td>姓<input type="text" name="lname" size="10" value="<?php 
        echo f_hsc($gc->lname);
        ?>
" class="text"> 名<input type="text" name="fname" size="10" value="<?php 
        echo f_hsc($gc->fname);
        ?>
" class="text"></td>
						</tr>
						<tr>
							<td class="bold">フリガナ</td>
							<td class="kome">※</td>
							<td>セイ<input type="text" name="lname_kn" size="10" value="<?php 
        echo f_hsc($gc->lname_kn);
        ?>
" class="text"> メイ<input type="text" name="fname_kn" size="10" value="<?php 
        echo f_hsc($gc->fname_kn);
        ?>
" class="text"></td>
						</tr>
						<tr class="even">
							<td class="bold">電話番号</td>
							<td class="kome">※</td>
							<td><input type="text" name="tel1" size="5" value="<?php 
        echo f_hsc($gc->tel1);
        ?>
" class="text">-<input type="text" name="tel2" size="5" value="<?php 
        echo f_hsc($gc->tel2);
        ?>
" class="text">-<input type="text" name="tel3" size="5" value="<?php 
        echo f_hsc($gc->tel3);
        ?>
" class="text"></td>
						</tr>
						<tr>
							<td class="bold">メールアドレス</td>
							<td class="kome">※</td>
							<td><input type="text" name="e_mail" size="40" value="<?php 
        echo f_hsc($gc->e_mail);
        ?>
" class="text"></td>
						</tr>
						<tr class="even">
							<td class="bold">お住まいの住所</td>
							<td class="kome">※</td>
							<td><input type="radio" name="sumai_flg" value="0"<?php 
        echo $gc->sumai_flg_0_checked;
        ?>
>物件住所と同じ <input type="radio" name="sumai_flg" value="1"<?php 
        echo $gc->sumai_flg_1_checked;
        ?>
> 物件住所と異なる</td>
						</tr>
						<tr>
							<td class="bold">ご住所(都道府県市区町村)</td>
							<td class="kome"></td>
							<td>
								<select id="sumai_todoufuken" name="sumai_todoufuken_no" class="dropdown">
									<option value="">選択してください</option>
									<?php 
        echo fsel_get_todoufuken($gc, $gc->sumai_todoufuken_no);
        ?>
								</select>
								<select id="sumai_shikucyouson" name="sumai_shikucyouson_no" class="dropdown">
									<option value="">選択してください</option>
									<?php 
        echo fsel_get_shikucyouson($gc, $gc->sumai_todoufuken_no, $gc->sumai_shikucyouson_no);
        ?>
								</select>
							</td>
						</tr>
						<tr class="even">
							<td class="bold">ご住所(町名・番地)</td>
							<td class="kome"></td>
							<td><input type="text" name="sumai_banchi" size="45" value="<?php 
        echo f_hsc($gc->sumai_banchi);
        ?>
" class="text"></td>
						</tr>
						<tr>
							<td class="bold">建物名・部屋番号</td>
							<td class="kome"></td>
							<td><input type="text" name="sumai_tatemono" size="45" value="<?php 
        echo f_hsc($gc->sumai_tatemono);
        ?>
" class="text"></td>
						</tr>
					</table>
					<p class="btn">
						<img src="img/form_btn2.jpg" alt="送信する" onclick="run_submit('form_edit', 'confirm')" style="cursor: pointer">
					</p>
				</form>
<?php 
    }
    ?>
			</div>
		</div>

<?php 
    if ($gc->form_mode != "init_err" and $gc->form_mode != "notfound" and $gc->form_mode != "message") {
        if ($gc->form_mode == "confirm") {
            $form_confirm_flg = true;
        }
        include "_side.php";
    }
    ?>

		<div class="clearfix"></div>

<?php 
    if ($gc->message_mode == "send_ok") {
        ?>
		<img src="img/subheader.jpg" alt="" style="margin-top: 30px;">
<?php 
    }
    ?>

	</div>

	<?php 
    include "_footer.php";
    ?>





</body>
</html>
<?php 
    /* HTML終了 ******************************************************* */
}