Exemplo n.º 1
0
function fsel_get_company($gc, $select, $name_flg = false)
{
    $idx = 0;
    $sql = "SELECT";
    $sql .= " company_no,";
    $sql .= " company_nm ";
    $sql .= "FROM";
    $sql .= " m_company ";
    $sql .= "ORDER BY company_kn";
    $rs = $gc->db->query($sql);
    while ($rs->eof == false) {
        $list[$idx]["cd"] = $rs->fields["company_no"];
        $list[$idx]["nm"] = $rs->fields["company_nm"];
        $idx++;
        $rs->move_next();
    }
    $rs->free_result();
    $optons = "";
    $wk_name = "";
    for ($i = 0; $i < count($list); $i++) {
        $selected = "";
        if ($list[$i]["cd"] == $select) {
            $selected = " selected";
            $wk_name = $list[$i]["nm"];
        }
        $optons .= "<option value=\"" . $list[$i]["cd"] . "\"" . $selected . ">" . f_hsc($list[$i]["nm"]) . "</option>";
    }
    if ($name_flg) {
        return $wk_name;
    } else {
        return $optons;
    }
}
Exemplo n.º 2
0
function fdiv_get_select($gc, $select, $name_flg = false, $array)
{
    //-------------------------------------------------
    // プルダウンメニュー
    //-------------------------------------------------
    $idx = 0;
    foreach ($array as $key => $value) {
        $list[$idx]["cd"] = $key;
        $list[$idx]["nm"] = $value;
        $idx++;
    }
    $optons = "";
    $wk_name = "";
    for ($i = 0; $i < count($list); $i++) {
        $selected = "";
        if ($list[$i]["cd"] == $select) {
            $selected = " selected";
            $wk_name = $list[$i]["nm"];
        }
        $optons .= "<option value=\"" . $list[$i]["cd"] . "\"" . $selected . ">" . f_hsc($list[$i]["nm"]) . "</option>";
    }
    if ($name_flg) {
        return $wk_name;
    } else {
        return $optons;
    }
}
Exemplo n.º 3
0
function out_html_shikucyouson($gc) {

	$sql = "SELECT";
	$sql.= " shikucyouson_no,";
	$sql.= " shikucyouson_nm,";
	$sql.= " rank_no ";
	$sql.= "FROM";
	$sql.= " m_shikucyouson ";
	$sql.= "WHERE";
	$sql.= " todoufuken_no = ".$gc->todoufuken_no." ";
	$sql.= "ORDER BY";
	$sql.= " shikucyouson_no";//JISの並び順

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

	$optons = "<option value=\"0\">選択してください</option>";

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

		$shikucyouson_no = $rs->fields["shikucyouson_no"];
		$shikucyouson_nm = $rs->fields["shikucyouson_nm"];

		$optons.= "<option value=\"".$shikucyouson_no."\">".f_hsc($shikucyouson_nm)."</option>";

		$rs->move_next();

	}

	$rs->free_result();

	echo $optons;

}
Exemplo n.º 4
0
function get_todoufuken($gc)
{
    $sql = "SELECT";
    $sql .= " todoufuken_no,";
    $sql .= " todoufuken_nm ";
    $sql .= "FROM";
    $sql .= " m_todoufuken ";
    $sql .= "ORDER BY";
    $sql .= " todoufuken_no";
    $rs = $gc->db->query($sql);
    $optons = "<option value=\"0\">選択してください</option>";
    while ($rs->eof == false) {
        $todoufuken_no = $rs->fields["todoufuken_no"];
        $todoufuken_nm = $rs->fields["todoufuken_nm"];
        $optons .= "<option value=\"" . $todoufuken_no . "\">" . f_hsc($todoufuken_nm) . "</option>";
        $rs->move_next();
    }
    $rs->free_result();
    return $optons;
}
Exemplo n.º 5
0
function tcom_header_logo_nav($gc)
{
    ?>
		<div id="top">
			<h1><a href="./">マンション貸す.com</a></h1>
			<div id="top-navigation">
<?php 
    if ($gc->login_user_no > 0) {
        ?>
				Welcome <strong><?php 
        echo f_hsc($gc->login_user_nm);
        ?>
</strong>
				<span>|</span>
				<a href="logout.php">ログアウト</a>
<?php 
    }
    ?>
			</div>
		</div>
<?php 
}
Exemplo n.º 6
0
function fsel_get_date_d($gc, $select, $name_flg = false)
{
    $idx = 0;
    for ($i = 1; $i <= 31; $i++) {
        $list[$idx]["cd"] = sprintf('%02d', $i);
        $list[$idx]["nm"] = sprintf('%02d', $i);
        $idx++;
    }
    $optons = "";
    $wk_name = "";
    for ($i = 0; $i < count($list); $i++) {
        $selected = "";
        if ($list[$i]["cd"] == $select) {
            $selected = " selected";
            $wk_name = $list[$i]["nm"];
        }
        $optons .= "<option value=\"" . $list[$i]["cd"] . "\"" . $selected . ">" . f_hsc($list[$i]["nm"]) . "</option>";
    }
    if ($name_flg) {
        return $wk_name;
    } else {
        return $optons;
    }
}
Exemplo n.º 7
0
function out_html($gc) {
?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>対応エリア編集</title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/custom/jquery-ui-1.9.2.custom.css" rel="stylesheet">
<style>
/* IEでソートするときの対応 */
.group { zoom: 1 }
</style>
<!-- *** javascript *** -->
<script src="js/jquery-1.8.3.js"></script>
<script src="js/jquery-ui-1.9.2.custom.min.js"></script>
<script>
$(function() {

	$('.group h3').click(function(){

		if( $(this).attr("panelmode") == "open" ){

			//閉じる処理

			$(this).attr("panelmode", "close");

			$(this).removeClass("ui-accordion-header-active");
			$(this).removeClass("ui-state-active");
			$(this).removeClass("ui-corner-top");
			$(this).addClass("ui-corner-all");

			$('span', this).removeClass("ui-icon-triangle-1-s");
			$('span', this).addClass("ui-icon-triangle-1-e");

			$('+div', this).removeClass("ui-accordion-content-active");

			$('+div:not(:animated)',this).slideUp('normal');

		}else{

			//開く処理

			get_area($('+div', this), $(this).attr("todoufuken_no"));

			$(this).attr("panelmode", "open");

			$(this).removeClass("ui-corner-all");
			$(this).addClass("ui-accordion-header-active");
			$(this).addClass("ui-state-active");
			$(this).addClass("ui-corner-top");

			$('span', this).removeClass("ui-icon-triangle-1-e");
			$('span', this).addClass("ui-icon-triangle-1-s");

			$('+div', this).addClass("ui-accordion-content-active");

			var d = {height:'toggle', opacity:'toggle'};
			$('+div',this).animate(d);

		}

	});

});

//ランクの変更
function rank_change(o){

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

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

	var query = "time=" + timestamp;
	query += "&mode=rank";
	query += "&shikucyouson_no=" + $(o).attr("shikucyouson_no");
	query += "&rank_no=" + selectedItem.value;

	$.ajax({
		type: "POST",
		url: "set_area.php",
		dataType: "text",
		data: query,
		cache: false,
		async: false,
		complete: function(XMLHttpRequest, textStatus){
			if(textStatus=="success"){
				if(XMLHttpRequest.responseText != "OK"){
					alert("更新処理に失敗しました。");
				}
			}else{
				alert("通信エラーが発生しました。");
			}
		}
	});

}

function get_area(pnl, todoufuken_no){

	var company_no = <?php echo $gc->company_no ?>;

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

	var query = "time=" + timestamp;
	query += "&mode=company_area_e";
	query += "&company_no=" + company_no;
	query += "&todoufuken_no=" + todoufuken_no;

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

}
function set_area_all(todoufuken_no, act){
	todoufuken_chk(todoufuken_no, act);
	if(act == 1){
		$(".chk_todoufuken_no" + todoufuken_no).attr("checked", true );
		$(".txt_todoufuken_no" + todoufuken_no).val("0");
		$(".txt_todoufuken_no" + todoufuken_no).text("0");
	}else{
		$(".chk_todoufuken_no" + todoufuken_no).attr("checked", false);
		$(".txt_todoufuken_no" + todoufuken_no).val("");
		$(".txt_todoufuken_no" + todoufuken_no).text("");
	}
}
function set_area(o){
	var act = 0;
	if($(o).attr("checked") == "checked"){
		act = 1;
	}
	shikucyouson_chk($(o).val(), act);
}
//すべてにチェック関連の登録
function todoufuken_chk(todoufuken_no, act){

	var company_no = <?php echo $gc->company_no ?>;

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

	var query = "time=" + timestamp;
	query += "&mode=todoufuken_chk";
	query += "&company_no=" + company_no;
	query += "&todoufuken_no=" + todoufuken_no;
	query += "&act=" + act;

	$.ajax({
		type: "POST",
		url: "set_area.php",
		dataType: "text",
		data: query,
		cache: false,
		async: false,
		complete: function(XMLHttpRequest, textStatus){
			if(textStatus=="success"){
				if(XMLHttpRequest.responseText != "OK"){
					alert("更新処理に失敗しました。");
				}
			}else{
				alert("通信エラーが発生しました。");
			}
		}
	});

}
//市区町村チェック関連の登録
function shikucyouson_chk(shikucyouson_no, act){

	var company_no = <?php echo $gc->company_no ?>;

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

	var query = "time=" + timestamp;
	query += "&mode=shikucyouson_chk";
	query += "&company_no=" + company_no;
	query += "&shikucyouson_no=" + shikucyouson_no;
	query += "&act=" + act;

	$.ajax({
		type: "POST",
		url: "set_area.php",
		dataType: "text",
		data: query,
		cache: false,
		async: false,
		complete: function(XMLHttpRequest, textStatus){
			if(textStatus=="success"){
				if(XMLHttpRequest.responseText != "OK"){
					alert("更新処理に失敗しました。");
				}
			}else{
				alert("通信エラーが発生しました。");
			}
		}
	});

	if(act == 1){
		$("#shikucyouson_kingaku" + shikucyouson_no).val("0");
		$("#shikucyouson_kingaku" + shikucyouson_no).text("0");
	}else{
		$("#shikucyouson_kingaku" + shikucyouson_no).val("");
		$("#shikucyouson_kingaku" + shikucyouson_no).text("");
	}

}

//市区町村金額の登録
function shikucyouson_kingaku_upd(shikucyouson_no){

	var company_no = <?php echo $gc->company_no ?>;

	var date = new Date();
	var timestamp = date.getTime();
	var shikucyouson_kingaku = $("#shikucyouson_kingaku" + shikucyouson_no).val();

	var query = "time=" + timestamp;
	query += "&mode=shikucyouson_kingaku_upd";
	query += "&company_no=" + company_no;
	query += "&shikucyouson_no=" + shikucyouson_no;
	query += "&shikucyouson_kingaku=" + shikucyouson_kingaku;

	$.ajax({
		type: "POST",
		url: "set_area.php",
		dataType: "text",
		data: query,
		cache: false,
		async: false,
		complete: function(XMLHttpRequest, textStatus){
			if(textStatus=="success"){
				if(XMLHttpRequest.responseText != "OK"){
					alert("更新処理に失敗しました。");
				}
			}else{
				alert("通信エラーが発生しました。");
			}
		}
	});

}

<!--
//市区町村確率の登録
function shikucyouson_ritu_upd(shikucyouson_no){

	var company_no = <?php echo $gc->company_no ?>;

	var date = new Date();
	var timestamp = date.getTime();
	var shikucyouson_ritu = $("#shikucyouson_ritu" + shikucyouson_no).val();

	var query = "time=" + timestamp;
	query += "&mode=shikucyouson_ritu_upd";
	query += "&company_no=" + company_no;
	query += "&shikucyouson_no=" + shikucyouson_no;
	query += "&shikucyouson_ritu=" + shikucyouson_ritu;

	$.ajax({
		type: "POST",
		url: "set_area.php",
		dataType: "text",
		data: query,
		cache: false,
		async: false,
		complete: function(XMLHttpRequest, textStatus){
			if(textStatus=="success"){
				if(XMLHttpRequest.responseText != "OK"){
					alert("更新処理に失敗しました。");
				}
			}else{
				alert("通信エラーが発生しました。");
			}
		}
	});

}
-->
</script>
</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav($gc, 2) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="company_l.php">提携会社管理</a>
			<span>&gt;</span>
			<a href="company_l.php">提携会社一覧</a>
			<span>&gt;</span>
			<a href="company_r.php?company_no=<?php echo $gc->company_no ?>">詳細</a>
			<span>&gt;</span>
			対応エリア編集
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->

					<div class="box-head">

						<div class="left">
						<h2 class="left"><b>対応エリア編集 <?php echo $gc->company_nm ?></b></h2>
							<div class="cl">&nbsp;</div>
						</div>

						<div class="right">
							<a href="company_area_csv.php?company_no=<?php echo $gc->company_no ?>" class="custom-button" style="margin-right:10px;"><span>データエクスポート</span></a>
							<a href="company_area_insert.php?company_no=<?php echo $gc->company_no ?>" class="add-button"><span>データインポート</span></a>
							<div class="cl">&nbsp;</div>
						</div>
					</div>

					<!-- End Box Head -->

					<!-- Accordion -->
					<div class="Accordion" style="padding:15px 10px;">

						<!-- Accordion -->
						<div class="ui-accordion ui-widget ui-helper-reset">

<?php

	$sql = "SELECT";
	$sql.= " t.todoufuken_no,";
	$sql.= " t.todoufuken_nm ";
	$sql.= "FROM";
	$sql.= " m_todoufuken t ";
	$sql.= "INNER JOIN";
	$sql.= " (";
	$sql.= " SELECT";
	$sql.= "  todoufuken_no";
	$sql.= " FROM";
	$sql.= "  m_shikucyouson";
	$sql.= " WHERE";
	$sql.= "  rank_no > 0";
	$sql.= " GROUP BY";
	$sql.= "  todoufuken_no";
	$sql.= " ) s ";
	$sql.= "ON";
	$sql.= " s.todoufuken_no = t.todoufuken_no ";
	$sql.= "ORDER BY";
	$sql.= " t.sort_no";

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

	$i = 0;

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

		$todoufuken_no = $rs->fields["todoufuken_no"];
		$todoufuken_nm = $rs->fields["todoufuken_nm"];

?>
		<div class="group">
			<h3 panelmode="close" todoufuken_no="<?php echo f_hsc($todoufuken_no) ?>" class="ui-accordion-header ui-helper-reset ui-state-default ui-accordion-icons ui-corner-all">
				<span class="ui-accordion-header-icon ui-icon ui-icon-triangle-1-e"></span>
				<?php echo f_hsc($todoufuken_nm) ?></h3>
			<div style="display: none;" class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom">
				&nbsp;
			</div>
		</div>
<?php

		$rs->move_next();

		$i++;

	}

	$rs->free_result();

?>

						</div>

					</div>
					<!-- Accordion -->

				</div>
				<!-- End Box -->
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
function out_html($gc) {

?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title><?php echo $gc->title_text ?></title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- *** javascript *** -->
<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 unload_page(){
	submit_flg = false;
}
window.onunload = unload_page;
// -->
</script>

</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav($gc, 6) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="company_l.php">提携会社管理</a>
			<span>&gt;</span>
			<a href="company_l.php">提携会社一覧</a>
			<span>&gt;</span>

<?php
	if($gc->company_no > 0){
?>
			<a href="company_r.php?company_no=<?php echo $gc->company_no ?>">詳細</a>
			<span>&gt;</span>
			<a href="company_area_e.php?mode=edit&company_no=<?php echo $gc->company_no ?>">対応エリア編集</a>
			<span>&gt;</span>
<?php
	}
?>
<?php echo $gc->title_text ?>

		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

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

				<!-- Message OK -->
				<div class="msg msg-ok">
					<p><strong>&nbsp;<?php echo f_hsc($gc->message) ?></strong></p>
				</div>
				<!-- End Message OK -->

<?php

	if($gc->company_no > 0){
			echo "<div class=\"ac\"><a href=\"company_area_e.php?mode=edit&company_no=".$gc->company_no."\">対応エリア編集へ</a></div>";
	}else{
			echo "<div class=\"ac\"><a href=\"company_l.php\">提携会社一覧へ</a></div>";
	}


	}else{

		for ($i=0; $i<$gc->msg->count; $i++) {
?>
				<!-- Message Error -->
				<div class="msg msg-error">
					<p><strong>&nbsp;<?php echo f_hsc($gc->msg->list[$i]) ?></strong></p>
				</div>
				<!-- End Message Error -->
<?php
		}
?>

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2><?php echo $gc->title_text ?></h2>
					</div>
					<!-- End Box Head -->

					<form name="form_edit" action="company_area_insert.php" method="POST" onsubmit="return false" enctype="multipart/form-data">
						<input name="mode" type="hidden" value="insert" />
						<input name="act" type="hidden" value="<?php echo $gc->act?>" />
						<input name="token" type="hidden" value="<?php echo f_hsc($gc->token)?>" />

						<!-- Form -->
						<div class="form">

							<div class="box-field">
								<label style="display:inline;"><?php echo $gc->title_text ?></label>
								<input type="file" name="company_area_file" class="field size4" />
								<input type="hidden" name="company_no" value="<?php echo $gc->company_no ?>" />
							</div>

						</div>
						<!-- End Form -->

						<!-- Form Buttons -->
						<div class="buttons">
							<div class="alignleft">
								<button type="button" class="button color green" onclick="submit()">インポートへ</button>
							</div>
							<div class="alignright">
								<span><?php echo "アップロード時のファイル最大サイズは合計で".ini_get('upload_max_filesize')."バイトです。"?></span>
							</div>
						</div>
						<!-- End Form Buttons -->

					</form>

				</div>
				<!-- End Box -->

<?php
	}
?>
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- Main -->

	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
Exemplo n.º 9
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終了 ******************************************************* */
} ?>
Exemplo n.º 10
0
function out_html($gc) {
?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>メニュー</title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav2($gc, 0) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left">メニュー</h2>
						<div class="right">
							<div class="cl">&nbsp;</div>
						</div>
					</div>
					<!-- End Box Head -->

					<!-- Table -->
					<div class="table">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php

	$wk["name"] = "案件管理";
	$wk["href"] = "item_l.php";
	$items[] = $wk;

	$wk["name"] = "手数料管理";
	$wk["href"] = "tesuryo_d.php";
	$items[] = $wk;

	$wk["name"] = "ユーザー管理";
	$wk["href"] = "user_l.php";
	$items[] = $wk;

	$i = 0;

	foreach ($items as $item) {

		$name = $item["name"];
		$href = $item["href"];

		$odd = "";
		if(($i % 2)==1){
			$odd = " class=\"odd\"";
		}

		echo "<tr".$odd.">";
		echo "<td><h3><a href=\"".$href."\">".f_hsc($name)."</a></h3></td>";
		echo "<td width=\"70\" class=\"ac\"><button type=\"button\" class=\"list-button\" onclick=\"location.href='".$href."';\">Go</button></td>";
		echo "</tr>";

		$i++;

	}

?>
						</table>
					</div>
					<!-- Table -->

				</div>
				<!-- End Box -->
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- End Main -->

	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
Exemplo n.º 11
0
function out_html($gc) {

	$sql = "SELECT SQL_CALC_FOUND_ROWS";
	$sql.= " user_no,";
	$sql.= " user_nm,";
	$sql.= " user_kn,";
	$sql.= " user_id,";
	$sql.= " e_mail,";
	$sql.= " last_login_time,";
	$sql.= " ltime ";
	$sql.= "FROM";
	$sql.= " m_user ";
	$sql.= "WHERE 0 = 0 ";

	$sql.= "ORDER BY";

	switch($_GET["si"]) {
	case "user_no":
		$sql.= " user_no".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "user_nm":
		$sql.= " user_nm".(($_GET["sa"]=="desc") ? " DESC" : "").", user_no ";
		break;
	case "user_kn":
		$sql.= " user_kn".(($_GET["sa"]=="desc") ? " DESC" : "").", user_no ";
		break;
	case "user_id":
		$sql.= " user_id".(($_GET["sa"]=="desc") ? " DESC" : "").", user_no ";
		break;
	case "e_mail":
		$sql.= " e_mail".(($_GET["sa"]=="desc") ? " DESC" : "").", user_no ";
		break;
	case "last_login_time":
		$sql.= " last_login_time".(($_GET["sa"]=="desc") ? " DESC" : "").", user_no ";
		break;
	default:
		$sql.= " user_no ";
	}

	$sql.= f_get_limit($gc->pn, $gc->pl, C_ORDER_LIST_COL_CNT);

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

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

	//ページャーの設定
	if($row_count > 0){
		$page_arr = f_page_arr("user_l.php", $row_count, $gc->pl, C_ORDER_LIST_COL_CNT, C_ORDER_PAGE_TAG_CNT);
	}

	//ソート関連
	$sort_mode["user_no"] = "";
	$sort_mode["user_nm"] = "";
	$sort_mode["user_kn"] = "";
	$sort_mode["user_id"] = "";
	$sort_mode["e_mail"] = "";
	$sort_mode["last_login_time"] = "";

	foreach ($sort_mode as $key => &$value) {
		if($key == $_GET["si"]){
			if($_GET["sa"] == "desc"){
				$value = " ▼";
			}else{
				$value = " ▲";
			}
		}
	}

?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>管理者一覧</title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- *** javascript *** -->
<script type="text/javascript" src="js/listpage.js" charset="utf-8"></script> 
</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav($gc, 4) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="user_l.php">管理者</a>
			<span>&gt;</span>
			管理者一覧
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left"><b>管理者一覧</b></h2>
						<div class="right">
							<a href="user_e.php?mode=add" class="add-button"><span>新規追加</span></a>
						</div>
					</div>
					<!-- End Box Head -->

					<!-- Table -->
					<div class="table">

<?php if($row_count > 0){ ?>
						<!-- Pagging -->
						<div class="pagging">
							<div class="box-l">
								<?php echo $page_arr["cmes_str"].$page_arr["par1_str"].$page_arr["par2_str"]; ?>
							</div>
							<div class="box-c">
								<div class="margin-center">
									<?php echo $page_arr["back_str"].$page_arr["list_str"].$page_arr["deno_str"].$page_arr["next_str"]; ?>
								</div>
							</div>
							<div class="box-r">
								<label>表示件数:</label>
								<?php echo $page_arr["plst_str"] ?>
							</div>
						</div>
						<!-- End Pagging -->
<?php } ?>

						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr style="border-top:solid 1px #e0e0e0;">
								<th width="60" class="ac"><a href="user_l.php<?php echo f_sq("user_no") ?>">No.</a><?php echo $sort_mode["user_no"] ?></th>
								<th width="150"><a href="user_l.php<?php echo f_sq("user_nm") ?>">管理者名</a><?php echo $sort_mode["user_nm"] ?></th>
								<th width="150"><a href="user_l.php<?php echo f_sq("user_kn") ?>">フリガナ</a><?php echo $sort_mode["user_kn"] ?></th>
								<th><a href="user_l.php<?php echo f_sq("e_mail") ?>">E-mail</a><?php echo $sort_mode["e_mail"] ?></th>
								<th width="120" class="ac"><a href="user_l.php<?php echo f_sq("user_id") ?>">ログインID</a><?php echo $sort_mode["user_id"] ?></th>
								<th width="120" class="ac"><a href="user_l.php<?php echo f_sq("last_login_time") ?>">最終ログイン日時</a><?php echo $sort_mode["last_login_time"] ?></th>
								<th width="70" class="ac">詳細</th>
							</tr>

<?php

	$i = 0;

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

		$user_no = $rs->fields["user_no"];
		$user_nm = $rs->fields["user_nm"];
		$user_kn = $rs->fields["user_kn"];
		$user_id = $rs->fields["user_id"];
		$e_mail = $rs->fields["e_mail"];
		$last_login_time = $rs->fields["last_login_time"];

		if($last_login_time != ""){
			$last_login_time_d = substr($last_login_time, 0, 4)."/".substr($last_login_time, 5, 2)."/".substr($last_login_time, 8, 2);
			$last_login_time_t = substr($last_login_time, 11);
		}else{
			$last_login_time_d = "";
			$last_login_time_t = "";
		}

		$odd = "";
		if(($i % 2)==1){
			$odd = " class=\"odd\"";
		}

		echo "<tr".$odd.">";
		echo "<td class=\"ac\">".f_hsc($user_no)."</td>";
		echo "<td>".f_hsc($user_nm)."</td>";
		echo "<td>".f_hsc($user_kn)."</td>";
		echo "<td>".f_hsc($e_mail)."</td>";
		echo "<td class=\"ac\">".f_hsc($user_id)."</td>";
		echo "<td class=\"ac\">".f_hsc($last_login_time_d)."<br />".f_hsc($last_login_time_t)."</td>";
		echo "<td class=\"ac\"><button type=\"button\" class=\"list-button\" onclick=\"location.href='user_e.php?mode=edit&user_no=".$user_no."';\">詳細</button></td>";
		echo "</tr>";

		$rs->move_next();

		$i++;

	}

	$rs->free_result();

	if($row_count==0){
		echo "<tr>";
		echo "<td colspan=\"6\" align=\"center\">データはありません。</td>";
		echo "</tr>";
	}

?>
						</table>

<?php if($row_count > 0){ ?>
						<!-- Pagging -->
						<div class="pagging">
							<div class="box-l">
								&nbsp;
							</div>
							<div class="box-c">
								<div class="margin-center">
									<?php echo $page_arr["back_str"].$page_arr["list_str"].$page_arr["deno_str"].$page_arr["next_str"]; ?>
								</div>
							</div>
							<div class="box-r">
								<label>表示件数:</label>
								<?php echo $page_arr["plst_str"] ?>
							</div>
						</div>
						<!-- End Pagging -->
<?php } ?>

					</div>
					<!-- Table -->

				</div>
				<!-- End Box -->
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
Exemplo n.º 12
0
function out_html($gc) {

//	$gc->sum_tesuryou = get_sum_tesuryou($gc);
	$gc->sum_tesuryou = get_sum_tesuryou_d($gc);

	$gc->company_nm = fdb_get_name($gc, "m_company", "company_nm", "company_no", $gc->login_company_no);

	$arr_todoufuken = fsel_get_arr_todoufuken($gc);

	$arr_buken_sbt = fdiv_set_buken_sbt_array();

	$sql = sql_text_create_d($gc);

	switch($_GET["si"]) {
	case "ank":
		$sql.= " p.anken_no".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "mbi":
		$sql.= " p.moushikomibi".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "sbt":
		$sql.= " p.buken_sbt".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "men":
		$sql.= " p.menseki".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "ran":
		$sql.= " p.rank_no".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "tod":
		$sql.= " s.todoufuken_no".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "shi":
		$sql.= " p.buken_shikucyouson_no".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "muk":
		$sql.= " c3.c_mukou_flg".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "tes":
		$sql.= " p.tesuryou".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	default:
		$sql.= " p.moushikomibi desc ";
	}

	$sql.= f_get_limit($gc->pn, $gc->pl, C_ORDER_LIST_COL_CNT);

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

	//ページャーの設定
	if($row_count > 0){
		$page_arr = f_page_arr("tesuryo_d.php", $row_count, $gc->pl, C_ORDER_LIST_COL_CNT, C_ORDER_PAGE_TAG_CNT);
	}

	//ソート関連
	$sort_mode["ank"] = "";
	$sort_mode["mbi"] = "";
	$sort_mode["sbt"] = "";
	$sort_mode["men"] = "";
	$sort_mode["ran"] = "";
	$sort_mode["tod"] = "";
	$sort_mode["shi"] = "";
	$sort_mode["muk"] = "";
	$sort_mode["tes"] = "";

	foreach ($sort_mode as $key => &$value) {
		if($key == $_GET["si"]){
			if($_GET["sa"] == "desc"){
				$value = " ▼";
			}else{
				$value = " ▲";
			}
		}
	}

?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>手数料一覧</title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- *** javascript *** -->
<script type="text/javascript" src="js/listpage.js" charset="utf-8"></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 unload_page(){
	submit_flg = false;
}
window.onunload = unload_page;
function search_run(){
	var o;
	o = document.getElementById('mbif_y');
	var mbif_y = o.options[ o.selectedIndex ].value;
	o = document.getElementById('mbif_m');
	var mbif_m = o.options[ o.selectedIndex ].value;
	o = document.getElementById('mbif_d');
	var mbif_d = o.options[ o.selectedIndex ].value;
	o = document.getElementById('mbit_y');
	var mbit_y = o.options[ o.selectedIndex ].value;
	o = document.getElementById('mbit_m');
	var mbit_m = o.options[ o.selectedIndex ].value;
	o = document.getElementById('mbit_d');
	var mbit_d = o.options[ o.selectedIndex ].value;
	document.forms['form_search'].mbif.value = mbif_y + mbif_m + mbif_d;
	document.forms['form_search'].mbit.value = mbit_y + mbit_m + mbit_d;
	run_submit('form_search', 'search');
}

// -->
</script>
</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav2($gc, 2) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="tesuryo_l.php">手数料管理</a>
			<span>&gt;</span>
			手数料一覧
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">

					<!-- Form -->
					<div class="form">

						<form name="form_search" action="tesuryo_d.php" method="get" onsubmit="return false">
							<input name="mode" type="hidden" value="">
							<input name="mbif" type="hidden" value="">
							<input name="mbit" type="hidden" value="">

							<div class="box-size4 left">
								<p class="inline-field">
									<label style="display:inline;">集計期間:</label>
									<select id="mbif_y" class="field">
										<?php echo fsel_get_date_y($gc, $gc->mbif_y) ?>
									</select><span class="ml05">年</span>
									<select id="mbif_m" class="field">
										<?php echo fsel_get_date_m($gc, $gc->mbif_m) ?>
									</select><span class="ml05">月</span>
									<select id="mbif_d" class="field">
										<?php echo fsel_get_date_d($gc, $gc->mbif_d) ?>
									</select><span class="ml05">日</span>
									~
									<select id="mbit_y" class="field">
										<?php echo fsel_get_date_y($gc, $gc->mbit_y) ?>
									</select><span class="ml05">年</span>
									<select id="mbit_m" class="field">
										<?php echo fsel_get_date_m($gc, $gc->mbit_m) ?>
									</select><span class="ml05">月</span>
									<select id="mbit_d" class="field">
										<?php echo fsel_get_date_d($gc, $gc->mbit_d) ?>
									</select><span class="ml05">日</span>
									<button type="button" class="button color silver ml30" onclick="search_run();">検索</button>

								</p>
							</div>

							<div class="cl">&nbsp;</div>

						</form>

					</div>
					<!-- End Form -->

					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left">抽出条件・手数料合計</h2>
						<div class="right">
							<div class="cl">&nbsp;</div>
						</div>
					</div>
					<!-- End Box Head -->

					<!-- Form -->
					<div class="form">

						<div class="box-size4 left">
							<p class="inline-field">
								<label style="display:inline;">集計期間:</label>
								<?php echo substr($gc->mbif, 0, 4) ?>年<?php echo substr($gc->mbif, 4, 2) ?>月<?php echo substr($gc->mbif, 6, 2) ?>日
								~
								<?php echo substr($gc->mbit, 0, 4) ?>年<?php echo substr($gc->mbit, 4, 2) ?>月<?php echo substr($gc->mbit, 6, 2) ?>日
							</p>
						</div>
						<div style="float:right;">
							<label class="ml40" style="display:inline;">手数料合計:</label>
							<?php echo number_format($gc->sum_tesuryou) ?>円
						</div>

						<div class="cl">&nbsp;</div>

					</div>
					<!-- End Form -->

					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left">手数料一覧</h2>
						<div class="right">
							<a href="tesuryo_csv.php?mode=2&mbif=<?php echo f_hsc($gc->mbif) ?>&mbit=<?php echo f_hsc($gc->mbit) ?>&company_no=<?php echo f_hsc($gc->login_company_no) ?>" class="custom-button"><span>CSV出力</span></a>
						</div>
					</div>
					<!-- End Box Head -->

					<!-- Table -->
					<div class="table">

<?php if($row_count > 0){ ?>
						<!-- Pagging -->
						<div class="pagging">
							<div class="box-l">
								<?php echo $page_arr["cmes_str"].$page_arr["par1_str"].$page_arr["par2_str"]; ?>
							</div>
							<div class="box-c">
								<div class="margin-center">
									<?php echo $page_arr["back_str"].$page_arr["list_str"].$page_arr["deno_str"].$page_arr["next_str"]; ?>
								</div>
							</div>
							<div class="box-r">
								<label>表示件数:</label>
								<?php echo $page_arr["plst_str"] ?>
							</div>
						</div>
						<!-- End Pagging -->
<?php } ?>

						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr style="border-top:solid 1px #e0e0e0;">
								<th width="80" class="ac"><a href="tesuryo_d.php<?php echo f_sq("ank") ?>">案件番号</a><?php echo $sort_mode["ank"] ?></th>
								<th width="80" class="ac"><a href="tesuryo_d.php<?php echo f_sq("mbi") ?>">申込日</a><?php echo $sort_mode["mbi"] ?></th>
								<th width="80" class="ac"><a href="tesuryo_d.php<?php echo f_sq("sbt") ?>">種別</a><?php echo $sort_mode["sbt"] ?></th>
								<th width="80" class="ac"><a href="tesuryo_d.php<?php echo f_sq("men") ?>">延床面積</a><?php echo $sort_mode["men"] ?><br />(平米)</th>
								<th width="50" class="ac"><a href="tesuryo_d.php<?php echo f_sq("ran") ?>">ランク</a><?php echo $sort_mode["ran"] ?></th>
								<th width="70"><a href="tesuryo_d.php<?php echo f_sq("tod") ?>">都道府県</a><?php echo $sort_mode["tod"] ?></th>
								<th><a href="tesuryo_d.php<?php echo f_sq("shi") ?>">市区町村</a><?php echo $sort_mode["shi"] ?></th>
								<th width="40" class="ac"><a href="tesuryo_d.php<?php echo f_sq("muk") ?>">状態</a><?php echo $sort_mode["muk"] ?></th>
								<th width="70" class="ac"><a href="tesuryo_d.php<?php echo f_sq("tes") ?>">手数料</a><?php echo $sort_mode["tes"] ?></th>
								<th width="60" class="ac">詳細</th>
							</tr>

<?php

	$i = 0;

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

		$item_no = $rs->fields["item_no"];
		$anken_no = $rs->fields["anken_no"];
		$buken_sbt = $rs->fields["buken_sbt"];
		$purpose_flg = $rs->fields["purpose_flg"];
		$menseki = $rs->fields["menseki"];
		$rank_no = get_rank_d($rs);
//		$rank_no = $rs->fields["rank_no"];
		$todoufuken_no = $rs->fields["todoufuken_no"];
		$buken_shikucyouson_no = $rs->fields["buken_shikucyouson_no"];
		$shikucyouson_nm = $rs->fields["shikucyouson_nm"];
		$mukou_flg = $rs->fields["mukou_flg"];
		$c_mukou_flg = $rs->fields["c_mukou_flg"];
		$m_cnt = $rs->fields["m_cnt"];
		$y_cnt = $rs->fields["y_cnt"];
		$tesuryou = get_tesuryo_d($rs);
//		$tesuryou = $rs->fields["tesuryou"];
		$moushikomibi = $rs->fields["moushikomibi"];

		$menseki = (float)$menseki;

		$moushikomi_d = substr($moushikomibi, 0, 4)."/".substr($moushikomibi, 5, 2)."/".substr($moushikomibi, 8, 2);
		$moushikomi_t = substr($moushikomibi, 11);

		$todoufuken_nm = $arr_todoufuken[$todoufuken_no];

		$buken_sbt_nm = $arr_buken_sbt[$buken_sbt];

		$arr = fdiv_set_rank_array();

		if($rank_no != "L"){
			$rank_nm = $arr[$rank_no];
		}else{
			$rank_nm = "L";
		}
/*
		if($purpose_flg == 1){
			$rank_nm = "L";
		}
*/
		$odd = "";
		if(($i % 2)==1){
			$odd = " class=\"odd\"";
		}

		echo "<tr".$odd.">";
		echo "<td class=\"ac\">".$anken_no."</td>";
		echo "<td class=\"ac\">".$moushikomi_d."<br />".$moushikomi_t."</td>";
		echo "<td class=\"ac\">".f_hsc($buken_sbt_nm)."</td>";
		echo "<td class=\"ac\">".f_hsc($menseki)."</td>";
		echo "<td class=\"ac\">".f_hsc($rank_nm)."</td>";
		echo "<td>".f_hsc($todoufuken_nm)."</td>";
		echo "<td>".f_hsc($shikucyouson_nm)."</td>";
		echo "<td class=\"ac\" style=\"color: ".($c_mukou_flg==1?"red":"blue").";\">".f_hsc($c_mukou_flg==1?"無効":"有効")."</td>";
		echo "<td class=\"ar\">".f_hsc($mukou_flg==1?"0":$tesuryou)."</td>";
//		echo "<td class=\"ar\">".f_hsc($mukou_flg==1?"0":number_format($tesuryou))."</td>";
		echo "<td class=\"ac\"><button type=\"button\" class=\"list-button\" onclick=\"location.href='item_e.php?item_no=".$item_no."&referrer=tesuryo_d&company_no=".$gc->login_company_no."&mbif=".$gc->mbif."&mbit=".$gc->mbit."';\">詳細</button></td>";
		echo "</tr>";

		$rs->move_next();

		$i++;

	}

	$rs->free_result();

	if($row_count==0){
		echo "<tr>";
		echo "<td colspan=\"10\" align=\"center\">データはありません。</td>";
		echo "</tr>";
	}

?>

						</table>

<?php if($row_count > 0){ ?>
						<!-- Pagging -->
						<div class="pagging">
							<div class="box-l">
								&nbsp;
							</div>
							<div class="box-c">
								<div class="margin-center">
									<?php echo $page_arr["back_str"].$page_arr["list_str"].$page_arr["deno_str"].$page_arr["next_str"]; ?>
								</div>
							</div>
							<div class="box-r">
								<label>表示件数:</label>
								<?php echo $page_arr["plst_str"] ?>
							</div>
						</div>
						<!-- End Pagging -->
<?php } ?>

					</div>
					<!-- Table -->

				</div>
				<!-- End Box -->
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
Exemplo n.º 13
0
function out_html($gc) {

	$gc->company_sh = $_GET["company_sh"];
	$gc->todoufuken_no = $_GET["todoufuken_no"];
	$gc->company_no = $_GET["company_no"];
	$gc->company_kbn = $_GET["company_kbn"];
	$gc->relocation_flg = $_GET["relocation_flg"];

	$arr_todoufuken = fsel_get_arr_todoufuken($gc);

	$arr_company_kbn = fdiv_set_company_kbn_array();

	//ラジオボタン設定
	fdiv_set_company_kbn_radio($gc, $gc->company_kbn, "company_kbn");

	//チェックボックス設定
	fdiv_set_checkbox($gc, "リロケーション", ($gc->relocation_flg=="1"), "relocation_flg");

	if(is_numeric($gc->company_no)){
		$gc->joken_company_nm = fdb_get_name($gc, "m_company", "company_nm", "company_no", $gc->company_no);
	}
	if($gc->joken_company_nm==""){
		$gc->joken_company_nm = "指定なし";
	}

	if($gc->company_sh==""){
		$gc->joken_company_sh = "指定なし";
	}else{
		$gc->joken_company_sh = $gc->company_sh;
	}

	if(is_numeric($gc->todoufuken_no)){
		$gc->joken_todoufuken_nm = $arr_todoufuken[$gc->todoufuken_no];
	}
	if($gc->joken_todoufuken_nm==""){
		$gc->joken_todoufuken_nm = "指定なし";
	}

	if($gc->relocation_flg=="1"){
		$gc->joken_relocation_flg_nm = "あり";
	}else{
		$gc->joken_relocation_flg_nm = "指定なし";
	}

	if(is_numeric($gc->company_kbn)){
		if($gc->company_kbn > 0){
			$gc->joken_company_kbn_nm = $arr_company_kbn[$gc->company_kbn];
		}else{
			$gc->joken_company_kbn_nm = "全て";
		}
	}else{
		$gc->joken_company_kbn_nm = "指定なし";
	}

	//ベースSQLの作成
	$base_sql = sql_text_create_l($gc);

	//手数料合計の取得
/*
	$sql = "SELECT";
	$sql.= " COALESCE(rl.sum_tesuryou, 0) AS sum_tesuryou_l,";
	$sql.= " COALESCE(rs.sum_tesuryou, 0) AS sum_tesuryou_s,";
	$sql.= " COALESCE(ra.sum_tesuryou, 0) AS sum_tesuryou_a,";
	$sql.= " COALESCE(rb.sum_tesuryou, 0) AS sum_tesuryou_b,";
	$sql.= " COALESCE(rc.sum_tesuryou, 0) AS sum_tesuryou_c ";
	$sql.= $base_sql;

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

	$gc->sum_tesuryou = 0;

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

		$sum_tesuryou_l = $rs->fields["sum_tesuryou_l"];
		$sum_tesuryou_s = $rs->fields["sum_tesuryou_s"];
		$sum_tesuryou_a = $rs->fields["sum_tesuryou_a"];
		$sum_tesuryou_b = $rs->fields["sum_tesuryou_b"];
		$sum_tesuryou_c = $rs->fields["sum_tesuryou_c"];

		$gc->sum_tesuryou += $sum_tesuryou_l + $sum_tesuryou_s + $sum_tesuryou_a + $sum_tesuryou_b + $sum_tesuryou_c;

		$rs->move_next();

	}
	$rs->free_result();
	$sql = "SELECT SQL_CALC_FOUND_ROWS";
	$sql.= " mc.company_no,";
	$sql.= " mc.company_nm,";
	$sql.= " mc.company_kn,";
	$sql.= " mc.company_sh,";
	$sql.= " mc.company_kbn,";
	$sql.= " mc.todoufuken_no,";
	$sql.= " mc.add1,";
	$sql.= " mc.jyougen,";
	$sql.= " COALESCE(rl.cnt_rank, 0) AS cnt_rank_l,";
	$sql.= " COALESCE(rl.sum_tesuryou, 0) AS sum_tesuryou_l,";
	$sql.= " COALESCE(rs.cnt_rank, 0) AS cnt_rank_s,";
	$sql.= " COALESCE(rs.sum_tesuryou, 0) AS sum_tesuryou_s,";
	$sql.= " COALESCE(ra.cnt_rank, 0) AS cnt_rank_a,";
	$sql.= " COALESCE(ra.sum_tesuryou, 0) AS sum_tesuryou_a,";
	$sql.= " COALESCE(rb.cnt_rank, 0) AS cnt_rank_b,";
	$sql.= " COALESCE(rb.sum_tesuryou, 0) AS sum_tesuryou_b,";
	$sql.= " COALESCE(rc.cnt_rank, 0) AS cnt_rank_c,";
	$sql.= " COALESCE(rc.sum_tesuryou, 0) AS sum_tesuryou_c ";
	$sql.= $base_sql;
*/
	$sql= $base_sql;

	$sql.= " ORDER BY";

	switch($_GET["si"]) {
	case "ckn":
		$sql.= " c.company_kn".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "kbn":
		$sql.= " c.company_kbn".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "tod":
		$sql.= " c.todoufuken_no".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "crl":
		$sql.= " sr_l".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "crs":
		$sql.= " sr_1".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "cra":
		$sql.= " sr_2".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "crb":
		$sql.= " sr_3".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "crc":
		$sql.= " sr_4".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "tes":
		$sql.= " s_t".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "jog":
		$sql.= " c.jyougen".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	default:
		$sql.= " c.company_no ";
	}

	$sql.= f_get_limit($gc->pn, $gc->pl, C_ORDER_LIST_COL_CNT);

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

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

	//ページャーの設定
	if($row_count > 0){
		$page_arr = f_page_arr("tesuryo_l.php", $row_count, $gc->pl, C_ORDER_LIST_COL_CNT, C_ORDER_PAGE_TAG_CNT);
	}

	//ソート関連
	$sort_mode["ckn"] = "";
	$sort_mode["kbn"] = "";
	$sort_mode["tod"] = "";
	$sort_mode["crl"] = "";
	$sort_mode["crs"] = "";
	$sort_mode["cra"] = "";
	$sort_mode["crb"] = "";
	$sort_mode["crc"] = "";
	$sort_mode["tes"] = "";
	$sort_mode["jog"] = "";

	foreach ($sort_mode as $key => &$value) {
		if($key == $_GET["si"]){
			if($_GET["sa"] == "desc"){
				$value = " ▼";
			}else{
				$value = " ▲";
			}
		}
	}

?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>手数料一覧</title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- *** javascript *** -->
<script type="text/javascript" src="js/listpage.js" charset="utf-8"></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 unload_page(){
	submit_flg = false;
}
window.onunload = unload_page;
function search_run(){
	var o;
	o = document.getElementById('mbif_y');
	var mbif_y = o.options[ o.selectedIndex ].value;
	o = document.getElementById('mbif_m');
	var mbif_m = o.options[ o.selectedIndex ].value;
	o = document.getElementById('mbif_d');
	var mbif_d = o.options[ o.selectedIndex ].value;
	o = document.getElementById('mbit_y');
	var mbit_y = o.options[ o.selectedIndex ].value;
	o = document.getElementById('mbit_m');
	var mbit_m = o.options[ o.selectedIndex ].value;
	o = document.getElementById('mbit_d');
	var mbit_d = o.options[ o.selectedIndex ].value;
	document.forms['form_search'].mbif.value = mbif_y + mbif_m + mbif_d;
	document.forms['form_search'].mbit.value = mbit_y + mbit_m + mbit_d;
	run_submit('form_search', 'search');
}
// -->
</script>
</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav2($gc, 2) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="tesuryo_l.php">手数料管理</a>
			<span>&gt;</span>
			手数料一覧
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">

					<!-- Form -->
					<div class="form">

						<form name="form_search" action="tesuryo_l.php" method="get" onsubmit="return false">
							<input name="mode" type="hidden" value="">
							<input name="mbif" type="hidden" value="">
							<input name="mbit" type="hidden" value="">

							<div class="box-size4 left">
								<p class="inline-field">
									<label style="display:inline;">集計期間:</label>
									<select id="mbif_y" class="field">
										<?php echo fsel_get_date_y($gc, $gc->mbif_y) ?>
									</select><span class="ml05">年</span>
									<select id="mbif_m" class="field">
										<?php echo fsel_get_date_m($gc, $gc->mbif_m) ?>
									</select><span class="ml05">月</span>
									<select id="mbif_d" class="field">
										<?php echo fsel_get_date_d($gc, $gc->mbif_d) ?>
									</select><span class="ml05">日</span>
									~
									<select id="mbit_y" class="field">
										<?php echo fsel_get_date_y($gc, $gc->mbit_y) ?>
									</select><span class="ml05">年</span>
									<select id="mbit_m" class="field">
										<?php echo fsel_get_date_m($gc, $gc->mbit_m) ?>
									</select><span class="ml05">月</span>
									<select id="mbit_d" class="field">
										<?php echo fsel_get_date_d($gc, $gc->mbit_d) ?>
									</select><span class="ml05">日</span>

									<label class="ml20" style="display:inline;">区分:</label>
									<input id="company_kbn_0" type="radio" name="company_kbn" value="0"<?php echo $gc->company_kbn_0_checked ?> />
									<label class="mr10" for="company_kbn_0" style="display:inline;font-weight: normal;">全て</label>
									<input id="company_kbn_1" type="radio" name="company_kbn" value="1"<?php echo $gc->company_kbn_1_checked ?> />
									<label class="mr10" for="company_kbn_1" style="display:inline;font-weight: normal;">大手</label>
									<input id="company_kbn_2" type="radio" name="company_kbn" value="2"<?php echo $gc->company_kbn_2_checked ?> />
									<label class="mr10" for="company_kbn_2" style="display:inline;font-weight: normal;">地場</label>

								</p>
							</div>

							<div class="box-size4 left">
								<p class="inline-field">
									<label style="display:inline;">提携会社:</label>
									<select name="company_no" class="field">
										<option value=""></option>
										<?php echo fsel_get_company($gc, $gc->company_no) ?>
									</select>

									<label class="ml05" style="display:inline;">支店名:</label>
									<input name="company_sh" type="text" class="field size2" value="<?php echo f_hsc($gc->company_sh)?>" />

									<label class="ml05" style="display:inline;">所在地:</label>
									<select name="todoufuken_no" class="field">
										<option value=""></option>
										<?php echo fsel_get_todoufuken($gc, $gc->todoufuken_no) ?>
									</select>

									<label class="ml15" style="display:inline;">
										<input type="checkbox" name="relocation_flg" id="relocation_flg" value="1"<?php echo $gc->relocation_flg_checked?>>
										<span style="color:#000;">リロケーション</span>
									</label>

									<button type="button" class="button color silver ml30" onclick="search_run();">検索</button>
								</p>
							</div>

							<div class="cl">&nbsp;</div>

						</form>

					</div>
					<!-- End Form -->

					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left">抽出条件・手数料合計</h2>
						<div class="right">
							<div class="cl">&nbsp;</div>
						</div>
					</div>
					<!-- End Box Head -->

					<!-- Form -->
					<div class="form">

						<div class="box-size4 left">
							<p class="inline-field">
								<label style="display:inline;">集計期間:</label>
								<?php echo substr($gc->mbif, 0, 4) ?>年<?php echo substr($gc->mbif, 4, 2) ?>月<?php echo substr($gc->mbif, 6, 2) ?>日
								~
								<?php echo substr($gc->mbit, 0, 4) ?>年<?php echo substr($gc->mbit, 4, 2) ?>月<?php echo substr($gc->mbit, 6, 2) ?>日
								<label class="ml20" style="display:inline;">区分:</label>
								<?php echo f_hsc($gc->joken_company_kbn_nm) ?>
							</p>
						</div>
						<div class="box-size4 left">
							<p class="inline-field">
								<label style="display:inline;">提携会社:</label>
								<?php echo f_hsc($gc->joken_company_nm) ?>
								<label class="ml20" style="display:inline;">支店名:</label>
								<?php echo f_hsc($gc->joken_company_sh) ?>
								<label class="ml20" style="display:inline;">所在地:</label>
								<?php echo f_hsc($gc->joken_todoufuken_nm) ?>
								<label class="ml20" style="display:inline;">リロケーション:</label>
								<?php echo f_hsc($gc->joken_relocation_flg_nm) ?>
							</p>
						</div>

						<div style="float:right;">
							<label class="ml40" style="display:inline;">手数料合計:</label>
							<?php echo number_format($gc->sum_tesuryou) ?>円
						</div>

						<div class="cl">&nbsp;</div>

					</div>
					<!-- End Form -->

					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left">手数料一覧</h2>
						<div class="right">
							<a href="tesuryo_csv.php?mode=1&mbif=<?php echo f_hsc($gc->mbif) ?>&mbit=<?php echo f_hsc($gc->mbit) ?>&todoufuken_no=<?php echo f_hsc($gc->todoufuken_no) ?>&company_no=<?php echo f_hsc($gc->company_no) ?>&company_kbn=<?php echo f_hsc($gc->company_kbn) ?>&relocation_flg=<?php echo f_hsc($gc->relocation_flg) ?>&company_sh=<?php echo urlencode($gc->company_sh) ?>" class="custom-button"><span>CSV出力</span></a>
						</div>
					</div>
					<!-- End Box Head -->

					<!-- Table -->
					<div class="table">

<?php if($row_count > 0){ ?>
						<!-- Pagging -->
						<div class="pagging">
							<div class="box-l">
								<?php echo $page_arr["cmes_str"].$page_arr["par1_str"].$page_arr["par2_str"]; ?>
							</div>
							<div class="box-c">
								<div class="margin-center">
									<?php echo $page_arr["back_str"].$page_arr["list_str"].$page_arr["deno_str"].$page_arr["next_str"]; ?>
								</div>
							</div>
							<div class="box-r">
								<label>表示件数:</label>
								<?php echo $page_arr["plst_str"] ?>
							</div>
						</div>
						<!-- End Pagging -->
<?php } ?>

						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr style="border-top:solid 1px #e0e0e0;">

								<th width="200" class="ac"><a href="tesuryo_l.php<?php echo f_sq("ckn") ?>">提携会社名</a><?php echo $sort_mode["ckn"] ?></th>
								<th width="40" class="ac"><a href="tesuryo_l.php<?php echo f_sq("kbn") ?>">区分</a><?php echo $sort_mode["kbn"] ?></th>
								<th class="ac"><a href="tesuryo_l.php<?php echo f_sq("tod") ?>">所在地</a><?php echo $sort_mode["tod"] ?></th>
								<th width="44" class="ac"><a href="tesuryo_l.php<?php echo f_sq("crl") ?>">Lプラン</a><?php echo $sort_mode["crl"] ?><br />(件数)</th>
								<th width="44" class="ac"><a href="tesuryo_l.php<?php echo f_sq("crs") ?>">Sランク</a><?php echo $sort_mode["crs"] ?><br />(件数)</th>
								<th width="44" class="ac"><a href="tesuryo_l.php<?php echo f_sq("cra") ?>">Aランク</a><?php echo $sort_mode["cra"] ?><br />(件数)</th>
								<th width="44" class="ac"><a href="tesuryo_l.php<?php echo f_sq("crb") ?>">Bランク</a><?php echo $sort_mode["crb"] ?><br />(件数)</th>
								<th width="44" class="ac"><a href="tesuryo_l.php<?php echo f_sq("crc") ?>">Cランク</a><?php echo $sort_mode["crc"] ?><br />(件数)</th>
								<th width="70" class="ac"><a href="tesuryo_l.php<?php echo f_sq("tes") ?>">手数料</a><?php echo $sort_mode["tes"] ?></th>
								<th width="70" class="ac"><a href="tesuryo_l.php<?php echo f_sq("jog") ?>">上限</a><?php echo $sort_mode["jog"] ?></th>
								<th width="60" class="ac">詳細</th>
							</tr>

<?php

	$i = 0;

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

		$company_no = $rs->fields["company_no"];
		$company_nm = $rs->fields["company_nm"];
		$company_sh = $rs->fields["company_sh"];
		$company_kbn = $rs->fields["company_kbn"];
		$todoufuken_no = $rs->fields["todoufuken_no"];
		$add1 = $rs->fields["add1"];
		$rank_l = $rs->fields["sr_l"];
		$rank_no1 = $rs->fields["sr_1"];
		$rank_no2 = $rs->fields["sr_2"];
		$rank_no3 = $rs->fields["sr_3"];
		$rank_no4 = $rs->fields["sr_4"];
		$sum_tesuryou_l = $rs->fields["sum_tesuryou_l"];
		$sum_tesuryou_s = $rs->fields["sum_tesuryou_s"];
		$sum_tesuryou_a = $rs->fields["sum_tesuryou_a"];
		$sum_tesuryou_b = $rs->fields["sum_tesuryou_b"];
		$sum_tesuryou_c = $rs->fields["sum_tesuryou_c"];
		$jyougen = $rs->fields["jyougen"];

		$todoufuken_nm = $arr_todoufuken[$todoufuken_no];

		$company_kbn_nm = $arr_company_kbn[$company_kbn];


		$tesuryou =$rs->fields["s_t"];
//		$tesuryou =$sum_tesuryou_l + $sum_tesuryou_s + $sum_tesuryou_a + $sum_tesuryou_b + $sum_tesuryou_c;

		$odd = "";
		if(($i % 2)==1){
			$odd = " class=\"odd\"";
		}

		echo "<tr".$odd.">";
		echo "<td>".f_hsc($company_nm)."<br />".f_hsc($company_sh)."</td>";
		echo "<td class=\"ac\">".f_hsc($company_kbn_nm)."</td>";
		echo "<td>".f_hsc($todoufuken_nm.$add1)."</td>";
		echo "<td class=\"ac\">".f_hsc($rank_l)."</td>";
		echo "<td class=\"ac\">".f_hsc($rank_no1)."</td>";
		echo "<td class=\"ac\">".f_hsc($rank_no2)."</td>";
		echo "<td class=\"ac\">".f_hsc($rank_no3)."</td>";
		echo "<td class=\"ac\">".f_hsc($rank_no4)."</td>";
		echo "<td class=\"ar\">".f_hsc(number_format($tesuryou))."</td>";
		echo "<td class=\"ar\">".f_hsc(number_format($jyougen))."</td>";
		echo "<td class=\"ac\"><button type=\"button\" class=\"list-button\" onclick=\"location.href='tesuryo_d.php?company_no=".$company_no."&mbif=".$gc->mbif."&mbit=".$gc->mbit."';\">詳細</button></td>";
		echo "</tr>";

		$rs->move_next();

		$i++;

	}

	$rs->free_result();

	if($row_count==0){
		echo "<tr>";
		echo "<td colspan=\"10\" align=\"center\">データはありません。</td>";
		echo "</tr>";
	}

?>

						</table>

<?php if($row_count > 0){ ?>
						<!-- Pagging -->
						<div class="pagging">
							<div class="box-l">
								&nbsp;
							</div>
							<div class="box-c">
								<div class="margin-center">
									<?php echo $page_arr["back_str"].$page_arr["list_str"].$page_arr["deno_str"].$page_arr["next_str"]; ?>
								</div>
							</div>
							<div class="box-r">
								<label>表示件数:</label>
								<?php echo $page_arr["plst_str"] ?>
							</div>
						</div>
						<!-- End Pagging -->
<?php } ?>

					</div>
					<!-- Table -->

				</div>
				<!-- End Box -->
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
Exemplo n.º 14
0
function out_html($gc)
{
    /* 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。当サイトが厳選した最適な不動産会社に査定依頼が無料で申し込めます。空室保障(サブリース)、転勤・留守宅管理(リロケーション)、賃貸募集・賃貸管理、空室対策など、分譲マンションや一戸建て、一棟アパートの所有者様のあらゆるお悩みにお応えいたします。">
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/jquery-1.9.1.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 unload_page(){
	submit_flg = false;
}
window.onunload = unload_page;
// -->
</script>
<?php 
    if ($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>
<?php 
    }
    ?>
</head>
<body>

<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="./index.php">トップ</a>|
				</li>

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

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

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

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

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

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

	<div class="main ads">
		<div class="pan"><a href="index.php">トップ</a> > 広告掲載について</div>
		<div class="left">
			<div class="form-area">
				<h2><img src="img/title_ads.jpg" alt="広告掲載について"></h2>
<?php 
    if ($gc->form_mode == "message") {
        echo "<p style=\"margin-top: 10px;\"><strong>" . nl2br(f_hsc($gc->message)) . "</strong></p>";
    } elseif ($gc->form_mode == "confirm") {
        ?>
					<form name="form_data" action="ads.php" method="post" onsubmit="return false">
						<input name="mode" type="hidden" value="">
						<input name="token" type="hidden" value="<?php 
        echo f_hsc($gc->token);
        ?>
">
						<input name="company_nm" type="hidden" value="<?php 
        echo f_hsc($gc->company_nm);
        ?>
">
						<input name="busyo_nm" type="hidden" value="<?php 
        echo f_hsc($gc->busyo_nm);
        ?>
">
						<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="e_mail" type="hidden" value="<?php 
        echo f_hsc($gc->e_mail);
        ?>
">
						<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="naiyou" type="hidden" value="<?php 
        echo f_hsc($gc->naiyou);
        ?>
">
					</form>

					<table style="margin-top:15px;">
						<tr class="even">
							<td class="bold">御社名</td>
							<td class="kome">※</td>
							<td><?php 
        echo $gc->company_nm;
        ?>
</td>
						</tr>
						<tr>
							<td class="bold">部署名</td>
							<td class="kome"></td>
							<td><?php 
        echo $gc->busyo_nm;
        ?>
</td>
						</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 $gc->e_mail;
        ?>
</td>
						</tr>
						<tr>
							<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 class="even">
							<td class="bold">お問い合わせ内容</td>
							<td class="kome"></td>
							<td class="warp"><?php 
        echo nl2br(str_replace(" ", "&nbsp;", f_hsc($gc->naiyou)));
        ?>
</td>
						</tr>
					</table>
					<p class="btn">
						<img src="img/form_btn03.jpg" alt="前画面に戻り修正" onclick="run_submit('form_data', 'revision')" style="cursor: pointer">
						<img src="img/form_btn04.jpg" alt="入力した内容で送信" onclick="run_submit('form_data', 'entry')" style="cursor: pointer">
					</p>
<?php 
    } else {
        ?>
				<p class="title" style="margin-top:15px;">◆広告掲載をご希望の方は下記フォームにご入力ください<span>※は必須項目です。</span></p>
<?php 
        if ($gc->msg->count > 0) {
            echo "<div style=\"border: 1px solid red; margin: 10px 0 10px; 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>";
        }
        ?>
				<form name="form_edit" action="ads.php" method="post" onsubmit="return false">
					<input name="mode" type="hidden" value="">
					<input name="token" type="hidden" value="<?php 
        echo f_hsc($gc->token);
        ?>
">
					<table>
						<tr class="even">
							<td class="bold">御社名</td>
							<td class="kome">※</td>
							<td><input type="text" name="company_nm" size="30" value="<?php 
        echo f_hsc($gc->company_nm);
        ?>
" class="text"></td>
						</tr>
						<tr>
							<td class="bold">部署名</td>
							<td class="kome"></td>
							<td><input type="text" name="busyo_nm" size="30" value="<?php 
        echo f_hsc($gc->busyo_nm);
        ?>
" class="text"></td>
						</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="e_mail" size="30" value="<?php 
        echo f_hsc($gc->e_mail);
        ?>
" class="text"></td>
						</tr>
						<tr>
							<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 class="even">
							<td class="bold">お問い合わせ内容</td>
							<td class="kome"></td>
							<td>
								<textarea name="naiyou" cols="45" rows="10"><?php 
        echo f_hsc($gc->naiyou);
        ?>
</textarea>
							</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 != "message" and $gc->form_mode != "confirm") {
        include "_side.php";
    }
    ?>
		
		<div class="clearfix"></div>
	</div>

	<?php 
    include "_footer.php";
    ?>
    
    <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>
    
    
    <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>


</body>
</html>
<?php 
    /* HTML終了 ******************************************************* */
}
Exemplo n.º 15
0
function out_html($gc) {

	$gc->company_nm = $_GET["company_nm"];

	$sql = "SELECT SQL_CALC_FOUND_ROWS";
	$sql.= " u.user_no,";
	$sql.= " u.user_nm,";
	$sql.= " u.user_kn,";
	$sql.= " u.user_id,";
	$sql.= " u.e_mail,";
	$sql.= " u.last_login_time,";
	$sql.= " u.ltime,";
	$sql.= " u.auth,";
	$sql.= " c.company_no,";
	$sql.= " c.company_nm,";
	$sql.= " c.ddir ";
	$sql.= "FROM";
	$sql.= " m_company_user u ";
	$sql.= "LEFT JOIN";
	$sql.= " m_company c ";
	$sql.= "ON";
	$sql.= " u.company_no = c.company_no ";
	$sql.= "WHERE 0 = 0 ";
	if($gc->company_nm != ""){
		$sql.= "and c.company_nm like '%".$gc->company_nm."%' ";
	}

	$sql.= "ORDER BY";

	switch($_GET["si"]) {
	case "user_no":
		$sql.= " u.user_no".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "user_nm":
		$sql.= " u.user_nm".(($_GET["sa"]=="desc") ? " DESC" : "").", user_no ";
		break;
	case "user_kn":
		$sql.= " u.user_kn".(($_GET["sa"]=="desc") ? " DESC" : "").", user_no ";
		break;
	case "user_id":
		$sql.= " u.user_id".(($_GET["sa"]=="desc") ? " DESC" : "").", user_no ";
		break;
	case "e_mail":
		$sql.= " u.e_mail".(($_GET["sa"]=="desc") ? " DESC" : "").", user_no ";
		break;
	case "last_login_time":
		$sql.= " u.last_login_time".(($_GET["sa"]=="desc") ? " DESC" : "").", user_no ";
		break;
	case "company_nm":
		$sql.= " c.company_nm".(($_GET["sa"]=="desc") ? " DESC" : "").", user_no ";
		break;
	case "auth":
		$sql.= " u.auth".(($_GET["sa"]=="desc") ? " DESC" : "").", auth ";
		break;
	case "ddir":
		$sql.= " c.ddir".(($_GET["sa"]=="desc") ? " DESC" : "").", ddir ";
		break;
	default:
		$sql.= " u.user_no desc ";
	}

	$sql.= f_get_limit($gc->pn, $gc->pl, C_ORDER_LIST_COL_CNT);

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

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

	//ページャーの設定
	if($row_count > 0){
		$page_arr = f_page_arr("c_user_l.php", $row_count, $gc->pl, C_ORDER_LIST_COL_CNT, C_ORDER_PAGE_TAG_CNT);
	}

	//ソート関連
	$sort_mode["user_no"] = "";
	$sort_mode["user_nm"] = "";
	$sort_mode["user_kn"] = "";
	$sort_mode["user_id"] = "";
	$sort_mode["e_mail"] = "";
	$sort_mode["company_nm"] = "";
	$sort_mode["last_login_time"] = "";
	$sort_mode["auth"] = "";
	$sort_mode["ddir"] = "";

	foreach ($sort_mode as $key => &$value) {
		if($key == $_GET["si"]){
			if($_GET["sa"] == "desc"){
				$value = " ▼";
			}else{
				$value = " ▲";
			}
		}
	}

?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>提携会社ユーザー一覧</title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- *** javascript *** -->
<script type="text/javascript" src="js/listpage.js" charset="utf-8"></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 unload_page(){
	submit_flg = false;
}
window.onunload = unload_page;
// -->
</script>
</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav($gc, 7) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">
		<!-- Small Nav -->
		<div class="small-nav">
			<a href="c_user_l.php">提携会社ユーザー</a>
			<span>&gt;</span>
			提携会社ユーザー一覧
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left"><b>提携会社ユーザー一覧</b></h2>
						<div class="right">
							<a href="c_user_e.php?mode=add" class="add-button"><span>新規追加</span></a>
						</div>
					</div>
					<!-- End Box Head -->

					<!-- Form -->
					<div class="form">

						<form name="form_search" action="c_user_l.php" method="get" onsubmit="return false">
							<input name="mode" type="hidden" value="">

							<div class="box-size2 left">
								<p class="inline-field">
									<label style="display:inline;">提携会社名:</label>
									<input name="company_nm" type="text" class="field size3" value="<?php echo f_hsc($gc->company_nm) ?>" />
									<button type="button" class="button color silver ml05" onclick="run_submit('form_search', 'search');">検索</button>
								</p>
							</div>

							<div class="cl">&nbsp;</div>

						</form>

					</div>
					<!-- End Form -->

					<!-- Table -->
					<div class="table">

<?php if($row_count > 0){ ?>
						<!-- Pagging -->
						<div class="pagging">
							<div class="box-l">
								<?php echo $page_arr["cmes_str"].$page_arr["par1_str"].$page_arr["par2_str"]; ?>
							</div>
							<div class="box-c">
								<div class="margin-center">
									<?php echo $page_arr["back_str"].$page_arr["list_str"].$page_arr["deno_str"].$page_arr["next_str"]; ?>
								</div>
							</div>
							<div class="box-r">
								<label>表示件数:</label>
								<?php echo $page_arr["plst_str"] ?>
							</div>
						</div>
						<!-- End Pagging -->
<?php } ?>

						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr style="border-top:solid 1px #e0e0e0;">
								<th width="60" class="ac"><a href="c_user_l.php<?php echo f_sq("user_no") ?>">No.</a><?php echo $sort_mode["user_no"] ?></th>
								<th width="150"><a href="c_user_l.php<?php echo f_sq("company_nm") ?>">提携会社名</a><?php echo $sort_mode["company_nm"] ?></th>
								<th width="150"><a href="c_user_l.php<?php echo f_sq("ddir") ?>">固有ID</a><?php echo $sort_mode["ddir"] ?></th>
								<th width="150"><a href="c_user_l.php<?php echo f_sq("user_nm") ?>">ユーザー名</a><?php echo $sort_mode["user_nm"] ?></th>
								<th width="120" class="ac"><a href="c_user_l.php<?php echo f_sq("user_id") ?>">ログインID</a><?php echo $sort_mode["user_id"] ?></th>
								<th width="120" class="ac"><a href="c_user_l.php<?php echo f_sq("auth") ?>">管理者</a><?php echo $sort_mode["auth"] ?></th>
								<th width="120" class="ac"><a href="c_user_l.php<?php echo f_sq("last_login_time") ?>">最終ログイン日時</a><?php echo $sort_mode["last_login_time"] ?></th>
								<th width="70" class="ac">詳細</th>
							</tr>

<?php

	$i = 0;

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

		$company_nm = $rs->fields["company_nm"];
		$user_no = $rs->fields["user_no"];
		$user_nm = $rs->fields["user_nm"];
		$user_kn = $rs->fields["user_kn"];
		$user_id = $rs->fields["user_id"];
		$e_mail = $rs->fields["e_mail"];
		$last_login_time = $rs->fields["last_login_time"];
		$auth = $rs->fields["auth"];
		$ddir = $rs->fields["ddir"];

		if($last_login_time != ""){
			$last_login_time_d = substr($last_login_time, 0, 4)."/".substr($last_login_time, 5, 2)."/".substr($last_login_time, 8, 2);
			$last_login_time_t = substr($last_login_time, 11);
		}else{
			$last_login_time_d = "";
			$last_login_time_t = "";
		}

		$odd = "";
		if(($i % 2)==1){
			$odd = " class=\"odd\"";
		}

		echo "<tr".$odd.">";
		echo "<td class=\"ac\">".f_hsc($user_no)."</td>";
		echo "<td>".f_hsc($company_nm)."</td>";
		echo "<td>".f_hsc($ddir)."</td>";
		echo "<td>".f_hsc($user_nm)."</td>";
		echo "<td class=\"ac\">".f_hsc($user_id)."</td>";
		echo "<td class=\"ac\">".f_hsc($auth==1?"○":"")."</td>";
		echo "<td class=\"ac\">".f_hsc($last_login_time_d)."<br />".f_hsc($last_login_time_t)."</td>";
		echo "<td class=\"ac\"><button type=\"button\" class=\"list-button\" onclick=\"location.href='c_user_e.php?mode=edit&user_no=".$user_no."';\">詳細</button></td>";
		echo "</tr>";

		$rs->move_next();

		$i++;

	}

	$rs->free_result();

	if($row_count==0){
		echo "<tr>";
		echo "<td colspan=\"6\" align=\"center\">データはありません。</td>";
		echo "</tr>";
	}

?>
						</table>

<?php if($row_count > 0){ ?>
						<!-- Pagging -->
						<div class="pagging">
							<div class="box-l">
								&nbsp;
							</div>
							<div class="box-c">
								<div class="margin-center">
									<?php echo $page_arr["back_str"].$page_arr["list_str"].$page_arr["deno_str"].$page_arr["next_str"]; ?>
								</div>
							</div>
							<div class="box-r">
								<label>表示件数:</label>
								<?php echo $page_arr["plst_str"] ?>
							</div>
						</div>
						<!-- End Pagging -->
<?php } ?>

					</div>
					<!-- Table -->

				</div>
				<!-- End Box -->
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
Exemplo n.º 16
0
function fsel_get_town($gc, $shikucyouson_no, $select, $name_flg = false)
{
    if (!is_numeric($shikucyouson_no)) {
        $shikucyouson_no = 0;
    }
    $idx = 0;
    $list[$idx]["cd"] = "";
    $list[$idx]["nm"] = "町名を選択";
    $idx++;
    $sql = "SELECT";
    $sql .= " town_nm ";
    $sql .= "FROM";
    $sql .= " propertylist ";
    $sql .= "WHERE";
    $sql .= " shikucyouson_no = " . $shikucyouson_no . " ";
    $sql .= "GROUP BY town_nm ";
    $sql .= "ORDER BY";
    $sql .= " town_nm";
    //JISの並び順
    $rs = $gc->db->query($sql);
    while ($rs->eof == false) {
        $list[$idx]["cd"] = $rs->fields["town_nm"];
        $list[$idx]["nm"] = $rs->fields["town_nm"];
        $idx++;
        $rs->move_next();
    }
    $rs->free_result();
    $optons = "";
    $wk_name = "";
    for ($i = 0; $i < count($list); $i++) {
        $selected = "";
        if ($list[$i]["cd"] == $select) {
            $selected = " selected";
            $wk_name = $list[$i]["nm"];
        }
        $optons .= "<option value=\"" . $list[$i]["cd"] . "\"" . $selected . ">" . f_hsc($list[$i]["nm"]) . "</option>";
    }
    if ($name_flg) {
        return $wk_name;
    } else {
        return $optons;
    }
}
Exemplo n.º 17
0
function out_html_shikucyouson($gc, $todoufuken_no, $rank_no) {

	$sql = "SELECT";
	$sql.= " shikucyouson_nm ";
	$sql.= "FROM";
	$sql.= " m_shikucyouson ";
	$sql.= "WHERE";
	$sql.= " todoufuken_no = ".$todoufuken_no." AND";
	$sql.= " rank_no = ".$rank_no." ";
	$sql.= "ORDER BY";
	$sql.= " sort_no";

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

?>

<div class="" style="width:800px;">

<?php

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

		$shikucyouson_nm = $rs->fields["shikucyouson_nm"];

		echo "<div style=\"white-space:nowrap; margin: 2px 7px 5px; float:left;\">";
		echo f_hsc("・".$shikucyouson_nm);
		echo "</div>";

		$rs->move_next();

	}

	$rs->free_result();

?>

</div>

<?php
}
Exemplo n.º 18
0
function out_html($gc) {

	if($gc->form_mode == "confirm"){
		if($gc->act == "i"){
			$gc->mode_title = "[追加・確認]";
		}else{
			$gc->mode_title = "[編集・確認]";
		}
	}elseif($gc->form_mode == "message"){
		$gc->mode_title = "[完了]";
	}else{
		if($gc->act == "i"){
			$gc->mode_title = "[追加]";
		}else{
			$gc->mode_title = "[編集]";
		}
	}
	//表示方法
	fdiv_set_display_radio($gc, $gc->display_flg, "display_flg");

	//ラジオボタン設定
	fdiv_set_company_kbn_radio($gc, $gc->company_kbn, "company_kbn");

	//チェックボックス設定
	fdiv_set_checkbox($gc, "賃貸仲介", ($gc->chintai_flg=="1"), "chintai_flg");
	fdiv_set_checkbox($gc, "サブリース", ($gc->sublease_flg=="1"), "sublease_flg");
	fdiv_set_checkbox($gc, "リロケーション", ($gc->relocation_flg=="1"), "relocation_flg");
	fdiv_set_checkbox($gc, "掲載する", ($gc->keisai_flg=="1"), "keisai_flg");
	fdiv_set_checkbox($gc, "企業ロゴをTOP画面に表示しない", ($gc->keisai_logo_flg=="1"), "keisai_logo_flg");
	fdiv_set_checkbox($gc, "掲載会社一覧に表示しない", ($gc->keisai_comment_flg=="1"), "keisai_comment_flg");
	fdiv_set_checkbox($gc, "分譲マンション", ($gc->buken_mansion_flg=="1"), "buken_mansion_flg");
	fdiv_set_checkbox($gc, "一戸建て", ($gc->buken_kodate_flg=="1"), "buken_kodate_flg");
	fdiv_set_checkbox($gc, "一棟アパート・マンション", ($gc->buken_ittou_flg=="1"), "buken_ittou_flg");
	fdiv_set_checkbox($gc, "", ($gc->light_flg=="1"), "light_flg");

	//郵便番号
	$gc->zip = $gc->zip1."-".$gc->zip2;
	if (!preg_match("/^\d{3}\-\d{4}$/", $gc->zip)) {
		$gc->zip = "";
	}

	//郵便番号
	$gc->sk_zip = $gc->sk_zip1."-".$gc->sk_zip2;
	if (!preg_match("/^\d{3}\-\d{4}$/", $gc->sk_zip)) {
		$gc->sk_zip = "";
	}

	//ロゴ画像
	if (strlen($gc->img_nm.$gc->img_tmp_nm) > 0) {
		$gc->img_show = true;
	}else{
		$gc->img_show = false;
	}

	if (strlen($gc->img_tmp_nm) > 0) {
		$gc->img_src = fimg_img_src_ssl($gc->img_tmp_nm, "tmp");
	}else{
		$gc->img_src = fimg_img_src_ssl($gc->img_nm, "logo");
	}

	if($gc->img_del=="y"){
		$gc->img_del_checked = " checked";
	}

?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>基本情報<?php echo f_hsc($gc->mode_title)?></title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<script src="../js/jquery-1.9.1.js"></script>
<script src="../js/jquery-ui-1.10.3.custom.min.js"></script>
<!-- *** javascript *** -->
<script language="JavaScript">
<!--
$(function() {

	if($('#plan_flg').val() == 0 || $('#plan_flg').val() == 2){
		$('#light_ritu').attr('disabled', 'disabled');
		$("#light_ritu").css('backgroundColor', '#F2F2F2');
	}else{
		$('#light_ritu').attr('disabled', false);
		$("#light_ritu").css('backgroundColor', '');
	}

	light_check();
});

function plan(){
	if($('#plan_flg').val() == 0 || $('#plan_flg').val() == 2){
		$('#light_ritu').attr('disabled', 'disabled');
		$("#light_ritu").css('backgroundColor', '#F2F2F2');
		$("#light_ritu").val("");
	}else{
		$('#light_ritu').attr('disabled', false);
		$("#light_ritu").css('backgroundColor', '');

	}
}

function editnm(){
	$(".company_nm2").html($("#company_nm").val());
}

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 unload_page(){
	submit_flg = false;
}

function light_check(){
	if($('#light_flg').prop('checked')){
		$('#kingaku_light').attr('disabled', false);
		$("#kingaku_light").css('backgroundColor', '');
	}else{
		$('#kingaku_light').attr('disabled', 'disabled');
		$("#kingaku_light").css('backgroundColor', '#F2F2F2');
	}
}

function copy_add(){
	$("#sk_zip1").val($("#zip1").val());
	$("#sk_zip2").val($("#zip2").val());
	$("#sk_todoufuken_no").val($("#todoufuken_no").val());
	$("#sk_add1").val($("#add1").val());
	$("#sk_add2").val($("#add2").val());
}


window.onunload = unload_page;
// -->
</script>

</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav($gc, 2) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="company_l.php">提携会社管理</a>
			<span>&gt;</span>
			<a href="company_l.php">提携会社一覧</a>
			<span>&gt;</span>
			<a href="company_r.php?company_no=<?php echo $gc->company_no ?>">詳細</a>
			<span>&gt;</span>
			基本情報<?php echo f_hsc($gc->mode_title)?>
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

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

				<form name="form_data" action="company_e.php" method="POST" onsubmit="return false">
					<input name="mode" type="hidden" value="">
					<input name="act" type="hidden" value="<?php echo $gc->act?>">
					<input name="token" type="hidden" value="<?php echo f_hsc($gc->token)?>">
					<input name="company_no" type="hidden" value="<?php echo f_hsc($gc->company_no)?>">
					<input name="company_nm" type="hidden" value="<?php echo f_hsc($gc->company_nm)?>">
					<input name="company_sh" type="hidden" value="<?php echo f_hsc($gc->company_sh)?>">
					<input name="company_kn" type="hidden" value="<?php echo f_hsc($gc->company_kn)?>">
					<input name="company_kbn" type="hidden" value="<?php echo f_hsc($gc->company_kbn)?>">
					<input name="tantou" type="hidden" value="<?php echo f_hsc($gc->tantou)?>">
					<input name="tel" type="hidden" value="<?php echo f_hsc($gc->tel)?>">
					<input name="fax" type="hidden" value="<?php echo f_hsc($gc->fax)?>">
					<input name="e_mail" type="hidden" value="<?php echo f_hsc($gc->e_mail)?>">
					<input name="e_mail_2" type="hidden" value="<?php echo f_hsc($gc->e_mail_2)?>">
					<input name="e_mail_3" type="hidden" value="<?php echo f_hsc($gc->e_mail_3)?>">
					<input name="e_mail_4" type="hidden" value="<?php echo f_hsc($gc->e_mail_4)?>">
					<input name="e_mail_5" type="hidden" value="<?php echo f_hsc($gc->e_mail_5)?>">
					<input name="e_mail_6" type="hidden" value="<?php echo f_hsc($gc->e_mail_6)?>">
					<input name="e_mail_7" type="hidden" value="<?php echo f_hsc($gc->e_mail_7)?>">
					<input name="e_mail_8" type="hidden" value="<?php echo f_hsc($gc->e_mail_8)?>">
					<input name="e_mail_9" type="hidden" value="<?php echo f_hsc($gc->e_mail_9)?>">
					<input name="e_mail_10" type="hidden" value="<?php echo f_hsc($gc->e_mail_10)?>">
					<input name="url" type="hidden" value="<?php echo f_hsc($gc->url)?>">
					<input name="zip1" type="hidden" value="<?php echo f_hsc($gc->zip1)?>">
					<input name="zip2" type="hidden" value="<?php echo f_hsc($gc->zip2)?>">
					<input name="todoufuken_no" type="hidden" value="<?php echo f_hsc($gc->todoufuken_no)?>">
					<input name="add1" type="hidden" value="<?php echo f_hsc($gc->add1)?>">
					<input name="add2" type="hidden" value="<?php echo f_hsc($gc->add2)?>">
					<input name="sk_zip1" type="hidden" value="<?php echo f_hsc($gc->sk_zip1)?>">
					<input name="sk_zip2" type="hidden" value="<?php echo f_hsc($gc->sk_zip2)?>">
					<input name="sk_todoufuken_no" type="hidden" value="<?php echo f_hsc($gc->sk_todoufuken_no)?>">
					<input name="sk_add1" type="hidden" value="<?php echo f_hsc($gc->sk_add1)?>">
					<input name="sk_add2" type="hidden" value="<?php echo f_hsc($gc->sk_add2)?>">
					<input name="sk_jigyoubu" type="hidden" value="<?php echo f_hsc($gc->sk_jigyoubu)?>">
					<input name="sk_tantou" type="hidden" value="<?php echo f_hsc($gc->sk_tantou)?>">
					<input name="jyougen" type="hidden" value="<?php echo f_hsc($gc->jyougen)?>">
					<input name="light_flg" type="hidden" value="<?php echo f_hsc($gc->light_flg)?>">
					<input name="kingaku_light" type="hidden" value="<?php echo f_hsc($gc->kingaku_light)?>">
					<input name="kingaku_kotei" type="hidden" value="<?php echo f_hsc($gc->kingaku_kotei)?>">
					<input name="kakuritsu" type="hidden" value="<?php echo f_hsc($gc->kakuritsu)?>">
					<input name="chintai_flg" type="hidden" value="<?php echo f_hsc($gc->chintai_flg)?>">
					<input name="relocation_flg" type="hidden" value="<?php echo f_hsc($gc->relocation_flg)?>">
					<input name="keisai_flg" type="hidden" value="<?php echo f_hsc($gc->keisai_flg)?>">
					<input name="keisai_logo_flg" type="hidden" value="<?php echo f_hsc($gc->keisai_logo_flg)?>">
					<input name="keisai_comment_flg" type="hidden" value="<?php echo f_hsc($gc->keisai_comment_flg)?>">
					<input name="img_nm" type="hidden" value="<?php echo f_hsc($gc->img_nm)?>">
					<input name="img_tmp_nm" type="hidden" value="<?php echo f_hsc($gc->img_tmp_nm)?>">
					<input name="img_del" type="hidden" value="<?php echo f_hsc($gc->img_del)?>">

					<input name="sublease_flg" type="hidden" value="<?php echo f_hsc($gc->sublease_flg)?>">
					<input name="chintai_ritu" type="hidden" value="<?php echo f_hsc($gc->chintai_ritu)?>">
					<input name="sublease_ritu" type="hidden" value="<?php echo f_hsc($gc->sublease_ritu)?>">
					<input name="relocation_ritu" type="hidden" value="<?php echo f_hsc($gc->relocation_ritu)?>">
					<input name="comment" type="hidden" value="<?php echo f_hsc($gc->comment)?>">
					<input name="plan_flg" type="hidden" value="<?php echo f_hsc($gc->plan_flg)?>">
					<input name="light_ritu" type="hidden" value="<?php echo f_hsc($gc->light_ritu)?>">
					<input name="display_flg" type="hidden" value="<?php echo f_hsc($gc->display_flg)?>">
					<input name="buken_mansion_flg" type="hidden" value="<?php echo f_hsc($gc->buken_mansion_flg)?>">
					<input name="buken_kodate_flg" type="hidden" value="<?php echo f_hsc($gc->buken_kodate_flg)?>">
					<input name="buken_ittou_flg" type="hidden" value="<?php echo f_hsc($gc->buken_ittou_flg)?>">
				</form>

				<!-- Message OK -->
				<div class="msg msg-ok">
					<p><strong>&nbsp;次の内容でよろしいですか?</strong></p>
				</div>
				<!-- End Message OK -->

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2>基本情報</h2>
					</div>
					<!-- End Box Head -->

					<!-- Form -->
					<div class="form">

						<div class="box-field">
							<label>会社名</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->company_nm)?>
							</div>
						</div>

						<div class="box-field">
							<label>支店名</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->company_sh)?>
							</div>
						</div>

						<div class="box-field">
							<label>フリガナ</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->company_kn)?>
							</div>
						</div>
<!--
						<div class="box-field">
							<label>区分</label>
							<div class="box-confirm">
								<?php //echo f_hsc($gc->company_kbn_str)?>
							</div>
						</div>
 -->
						<div class="box-field">
							<label>物件種別選択</label>
							<div class="box-confirm">
								<?php if($gc->buken_mansion_flg == 1){ ?><span class="mr10"><?php echo f_hsc($gc->buken_mansion_flg_str)?></span><?php } ?>
								<?php if($gc->buken_kodate_flg == 1){ ?><span class="mr10"><?php echo f_hsc($gc->buken_kodate_flg_str)?></span><?php } ?>
								<?php if($gc->buken_ittou_flg == 1){ ?><span class="mr10"><?php echo f_hsc($gc->buken_ittou_flg_str)?></span><?php } ?>
							</div>
						</div>

 						<div class="box-field">
							<label>表示方法</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->display_flg_str)?>
							</div>
						</div>

						<div class="box-field">
							<label>サービス選択</label>
							<div class="box-confirm">
								<span class="mr10"><?php if($gc->chintai_flg == 1){ echo f_hsc($gc->chintai_flg_str).":".f_hsc($gc->chintai_ritu);}?></span>
								<span class="mr10"><?php if($gc->sublease_flg == 1){ echo f_hsc($gc->sublease_flg_str).":".f_hsc($gc->sublease_ritu);}?></span>
								<span class="mr10"><?php if($gc->relocation_flg == 1){ echo f_hsc($gc->relocation_flg_str).":".f_hsc($gc->relocation_ritu);}?></span>
							</div>
						</div>

						<div class="box-field">
								<label>プラン</label>
								<div class="box-confirm">
									<?php echo fsel_get_plan($gc,$gc->plan_flg,true)?>
								</div>
							</div>

						<div class="box-field">
							<label>ライトプラン出現率</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->light_ritu)?>
							</div>
						</div>

						<div class="box-field">
							<label>担当者</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->tantou)?>
							</div>
						</div>

						<div class="box-field">
							<label>TEL</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->tel)?>
							</div>
						</div>

						<div class="box-field">
							<label>FAX</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->fax)?>
							</div>
						</div>

						<div class="box-field">
							<label>E-mail</label>
							<div class="box-confirm">
								01: <?php echo f_hsc($gc->e_mail)?><br />
								02: <?php echo f_hsc($gc->e_mail_2)?><br />
								03: <?php echo f_hsc($gc->e_mail_3)?><br />
								04: <?php echo f_hsc($gc->e_mail_4)?><br />
								05: <?php echo f_hsc($gc->e_mail_5)?><br />
								06: <?php echo f_hsc($gc->e_mail_6)?><br />
								07: <?php echo f_hsc($gc->e_mail_7)?><br />
								08: <?php echo f_hsc($gc->e_mail_8)?><br />
								09: <?php echo f_hsc($gc->e_mail_9)?><br />
								10: <?php echo f_hsc($gc->e_mail_10)?><br />
							</div>
						</div>

						<div class="box-field">
							<label>URL</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->url)?>
							</div>
						</div>

						<div class="box-field">
							<label>所在地</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->zip)?><br />
								<?php echo fsel_get_todoufuken($gc, $gc->todoufuken_no, true) ?><br />
								<?php echo f_hsc($gc->add1)?><br />
								<?php echo f_hsc($gc->add2)?>
							</div>
						</div>

						<div class="box-field">
							<label>請求先住所</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->sk_zip)?><br />
								<?php echo fsel_get_todoufuken($gc, $gc->sk_todoufuken_no, true) ?><br />
								<?php echo f_hsc($gc->sk_add1)?><br />
								<?php echo f_hsc($gc->sk_add2)?>
							</div>
						</div>

						<div class="box-field">
							<label>請求事業所名</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->sk_jigyoubu)?>
							</div>
						</div>

						<div class="box-field">
							<label>請求担当者名</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->sk_tantou)?>
							</div>
						</div>

						<div class="box-field">
							<label>固定金額</label>
							<div class="box-confirm">
<?php if($gc->kingaku_kotei > 0){ ?>
								<?php echo f_hsc(number_format($gc->kingaku_kotei))?>
<?php } ?>
							</div>
							<label>ライトプラン金額</label>
							<div class="box-confirm">
<?php if($gc->light_flg == "1"){ ?>
								<?php echo f_hsc(number_format($gc->kingaku_light))?>
<?php }else{ ?>
								- (エリア毎に設定した金額を適用する)
<?php } ?>
							</div>
							<label>月の利用限度額</label>
							<div class="box-confirm">
<?php if($gc->jyougen > 0){ ?>
								<?php echo f_hsc(number_format($gc->jyougen))?>
<?php } ?>
							</div>
						</div>
<!--
						<div class="box-field">
							<label>出現率</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->kakuritsu)?>
							</div>
						</div>
 -->
						<div class="box-field">
							<label>ロゴ画像</label>
							<div class="box-confirm">
<?php if($gc->img_show){ ?>
							<?php echo ($gc->img_del_checked?"削除<br />":"") ?>
							<img src="<?php echo $gc->img_src ?>" alt="" width="200">
<?php } ?>
							<label><?php echo f_hsc($gc->company_nm)?></label>
							<label>コメント欄</label>
							<textarea name="comment" class="field" cols=50 rows= 4  readonly><?php echo $gc->comment?></textarea><br>
							<div class="box-confirm">
								<?php echo f_hsc($gc->keisai_logo_flg_str)?>
							</div>
							<div class="box-confirm">
								<?php echo f_hsc($gc->keisai_comment_flg_str)?>
							</div>
							</div>
						</div>

						<div class="box-field">
							<label>掲載</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->keisai_flg_str)?>
							</div>
						</div>

					</div>
					<!-- End Form -->

					<!-- Form Buttons -->
					<div class="buttons">
						<div class="alignleft">
							<button type="button" class="button color green" onclick="run_submit('form_data', 'entry')">はい</button>
							<button type="button" class="button color blue" onclick="run_submit('form_data', 'revision')">修正</button>
						</div>
						<div class="alignright">
						</div>
					</div>
					<!-- End Form Buttons -->

				</div>
				<!-- End Box -->

<?php
	}elseif($gc->form_mode=="message"){
?>

				<!-- Message OK -->
				<div class="msg msg-ok">
					<p><strong>&nbsp;<?php echo f_hsc($gc->message) ?></strong></p>
				</div>
				<!-- End Message OK -->

<?php

		switch ($gc->db_act) {
		case "i":
			echo "<div class=\"ac\">";
			echo "<a href=\"company_e.php?mode=add\">続けて新規登録</a>";
			echo "&nbsp;&nbsp;&nbsp;&nbsp;";
			echo "<a href=\"company_l.php\" class=\"ml10\">提携会社一覧へ</a>";
			echo "</div>";
			break;
		case "u":
		case "d":
			echo "<div class=\"ac\"><a href=\"company_l.php\">提携会社一覧へ</a></div>";
			break;
		}

	}else{

		for ($i=0; $i<$gc->msg->count; $i++) {
?>
				<!-- Message Error -->
				<div class="msg msg-error">
					<p><strong>&nbsp;<?php echo f_hsc($gc->msg->list[$i]) ?></strong></p>
				</div>
				<!-- End Message Error -->
<?php
		}
?>

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2>基本情報</h2>
					</div>
					<!-- End Box Head -->

					<form name="form_edit" action="company_e.php" method="POST" onsubmit="return false" enctype="multipart/form-data">
						<input name="mode" type="hidden" value="" />
						<input name="act" type="hidden" value="<?php echo $gc->act?>" />
						<input name="token" type="hidden" value="<?php echo f_hsc($gc->token)?>" />
						<input name="company_no" type="hidden" value="<?php echo f_hsc($gc->company_no)?>" />
						<input name="img_nm" type="hidden" value="<?php echo f_hsc($gc->img_nm)?>">
						<input name="img_tmp_nm" type="hidden" value="<?php echo f_hsc($gc->img_tmp_nm)?>">

						<!-- Form -->
						<div class="form">

							<div class="box-field">
								<label>会社名<span>(必須)</span></label>
								<input type="text" name="company_nm" id="company_nm" class="field size4" onchange="editnm()" value="<?php echo f_hsc($gc->company_nm)?>" />
							</div>

							<div class="box-field">
								<label>支店名</label>
								<input type="text" name="company_sh" class="field size4" value="<?php echo f_hsc($gc->company_sh)?>" />
							</div>

							<div class="box-field">
								<label>フリガナ<span>(必須)</span></label>
								<input type="text" name="company_kn" class="field size4" value="<?php echo f_hsc($gc->company_kn)?>" />
							</div>
<!--
							<div class="box-field inline-field">
								<label>区分<span>(必須)</span></label>
								<div class="ml10 mt05">
									<input id="company_kbn_1" type="radio" name="company_kbn" value="1"<?php //echo $gc->company_kbn_1_checked ?> />
									<label class="mr10" for="company_kbn_1" style="display:inline;font-weight: normal;">大手</label>
									<input id="company_kbn_2" type="radio" name="company_kbn" value="2"<?php //echo $gc->company_kbn_2_checked ?> />
									<label class="mr10" for="company_kbn_2" style="display:inline;font-weight: normal;">地場</label>
								</div>
							</div>
 -->

							<div class="box-field">
								<label>物件種別選択<span>(どれか必須)</span></label>
								<div class="ml10 mt05">
									<input type="checkbox" name="buken_mansion_flg" id="buken_mansion_flg" value="1"<?php echo $gc->buken_mansion_flg_checked?>>
									<label for="buken_mansion_flg" class="check" style="display:inline;font-weight: normal; margin-right: 8px;">分譲マンション</label>
									<input type="checkbox" name="buken_kodate_flg" id="buken_kodate_flg" value="1"<?php echo $gc->buken_kodate_flg_checked?>>
									<label for="buken_kodate_flg" class="check" style="display:inline;font-weight: normal; margin-right: 8px;">一戸建て</label>
									<input type="checkbox" name="buken_ittou_flg" id="buken_ittou_flg" value="1"<?php echo $gc->buken_ittou_flg_checked?>>
									<label for="buken_ittou_flg" class="check" style="display:inline;font-weight: normal; margin-right: 8px;">一棟アパート・マンション</label>
								</div>
							</div>

 							<div class="box-field inline-field">
								<label>表示方法<span>(必須)</span></label>
								<div class="ml10 mt05">
									<p><input type="radio" name="display_flg" id="display_flg_0" value="0"<?php echo $gc->display_flg_0_checked?>>
									<label for="display_flg_0" class="check mr10" style="display:inline;font-weight: normal;">通常表示</label></p>
									<p><input type="radio" name="display_flg" id="display_flg_1" value="1"<?php echo $gc->display_flg_1_checked?>>
									<label for="display_flg_1" class="check mr10" style="display:inline;font-weight: normal;">ご希望サービスの賃貸募集・賃貸管理を選択した場合のみ表示</label></p>
									<p><input type="radio" name="display_flg" id="display_flg_2" value="2"<?php echo $gc->display_flg_2_checked?>>
									<label for="display_flg_2" class="check mr10" style="display:inline;font-weight: normal;">築年数が15年以下で延床面積が35㎡以上の場合のみ表示</label></p>
									<p><input type="radio" name="display_flg" id="display_flg_3" value="3"<?php echo $gc->display_flg_3_checked?>>
									<label for="display_flg_3" class="check mr10" style="display:inline;font-weight: normal;">延床面積が40平米以上のみ表示</label></p>
									<p><input type="radio" name="display_flg" id="display_flg_4" value="4"<?php echo $gc->display_flg_4_checked?>>
									<label for="display_flg_4" class="check mr10" style="display:inline;font-weight: normal;">ご希望のサービスのサブリースを選択した場合のみ表示</label></p>
									<p><input type="radio" name="display_flg" id="display_flg_5" value="5"<?php echo $gc->display_flg_5_checked?>>
									<label for="display_flg_5" class="check mr10" style="display:inline;font-weight: normal;">延床面積10平米以上25平米以下の物件の場合のみ表示</label></p>
									<p><input type="radio" name="display_flg" id="display_flg_6" value="6"<?php echo $gc->display_flg_6_checked?>>
									<label for="display_flg_6" class="check mr10" style="display:inline;font-weight: normal;">賃貸管理会社を探しているにチェックが入った場合のみ表示</label></p>
									<p><input type="radio" name="display_flg" id="display_flg_7" value="7"<?php echo $gc->display_flg_7_checked?>>
									<label for="display_flg_7" class="check mr10" style="display:inline;font-weight: normal;">築年数が20年以下の物件の場合のみ表示</label></p>
								</div>
							</div>

							<div class="box-field inline-field">
								<label>サービス選択<span>(どれか必須)</span></label>
								<div class="ml10 mt05">
									<input type="checkbox" name="chintai_flg" id="chintai_flg" value="1"<?php echo $gc->chintai_flg_checked?>>
									<label for="chintai_flg" class="check mr10" style="display:inline;font-weight: normal;">賃貸仲介</label>
									<input type="checkbox" name="sublease_flg" id="sublease_flg" value="1"<?php echo $gc->sublease_flg_checked?>>
									<label for="sublease_flg" class="check mr10" style="display:inline;font-weight: normal;">サブリース</label>
									<input type="checkbox" name="relocation_flg" id="relocation_flg" value="1"<?php echo $gc->relocation_flg_checked?>>
									<label for="relocation_flg" class="check mr10" style="display:inline;font-weight: normal;">リロケーション</label>
									<br/>
									<input type="text" name="chintai_ritu" class="field inlineR" style="ime-mode: disabled;width:50px;" value="<?php echo f_hsc($gc->chintai_ritu)?>" />
									<input type="text" name="sublease_ritu" class="field inlineR" style="ime-mode: disabled;width:50px;margin-left:20px;" value="<?php echo f_hsc($gc->sublease_ritu)?>" />
									<input type="text" name="relocation_ritu" class="field inlineR" style="ime-mode: disabled;width:50px;margin-left:29px;" value="<?php echo f_hsc($gc->relocation_ritu)?>" />
								</div>
							</div>

							<div class="box-field">
								<label>プラン<span>(必須)</span></label>
								<div class="inline-field">
									<select id="plan_flg" name="plan_flg" onchange="plan()" class="field">
										<?php echo fsel_get_plan($gc,$gc->plan_flg)?>
									</select>
								</div>
							</div>

							<div class="box-field">
								<label>ライトプラン出現率<span>(数値)</span></label>
								<input type="text" name="light_ritu" id="light_ritu" style="ime-mode: disabled;" class="field size2 inlineR" value="<?php echo f_hsc($gc->light_ritu)?>" />							</div>

							<div class="box-field">
								<label>担当者</label>
								<input type="text" name="tantou" class="field size4" value="<?php echo f_hsc($gc->tantou)?>" />
							</div>

							<div class="box-field">
								<label>TEL</label>
								<input type="text" name="tel" class="field size4" value="<?php echo f_hsc($gc->tel)?>" />
							</div>

							<div class="box-field">
								<label>FAX</label>
								<input type="text" name="fax" class="field size4" value="<?php echo f_hsc($gc->fax)?>" />
							</div>

							<div class="box-field">
								<label>E-mail<span>(1つ目は必須)</span></label>
								<div class="inline-field">
									01:<input style="margin-bottom:4px;" type="text" name="e_mail" class="field size4" value="<?php echo f_hsc($gc->e_mail)?>" /><br />
									02:<input style="margin-bottom:4px;" type="text" name="e_mail_2" class="field size4" value="<?php echo f_hsc($gc->e_mail_2)?>" /><br />
									03:<input style="margin-bottom:4px;" type="text" name="e_mail_3" class="field size4" value="<?php echo f_hsc($gc->e_mail_3)?>" /><br />
									04:<input style="margin-bottom:4px;" type="text" name="e_mail_4" class="field size4" value="<?php echo f_hsc($gc->e_mail_4)?>" /><br />
									05:<input style="margin-bottom:4px;" type="text" name="e_mail_5" class="field size4" value="<?php echo f_hsc($gc->e_mail_5)?>" /><br />
									06:<input style="margin-bottom:4px;" type="text" name="e_mail_6" class="field size4" value="<?php echo f_hsc($gc->e_mail_6)?>" /><br />
									07:<input style="margin-bottom:4px;" type="text" name="e_mail_7" class="field size4" value="<?php echo f_hsc($gc->e_mail_7)?>" /><br />
									08:<input style="margin-bottom:4px;" type="text" name="e_mail_8" class="field size4" value="<?php echo f_hsc($gc->e_mail_8)?>" /><br />
									09:<input style="margin-bottom:4px;" type="text" name="e_mail_9" class="field size4" value="<?php echo f_hsc($gc->e_mail_9)?>" /><br />
									10:<input style="margin-bottom:4px;" type="text" name="e_mail_10" class="field size4" value="<?php echo f_hsc($gc->e_mail_10)?>" /><br />
								</div>
							</div>

							<div class="box-field">
								<label>URL</label>
								<input type="text" name="url" class="field size4" value="<?php echo f_hsc($gc->url)?>" />
							</div>

							<div class="box-field">
									<label style="width: 200px; display:inline;">所在地</label> 
									<button type="button" class="button" style="margin: 3px;" onclick="copy_add()">請求先住所にコピーする</button>

								<div class="inline-field">
									<input type="text" name="zip1" id="zip1" class="field size2" value="<?php echo f_hsc($gc->zip1)?>" />
									-
									<input type="text" name="zip2" id="zip2" class="field size2" value="<?php echo f_hsc($gc->zip2)?>" />
								</div>
								<select name="todoufuken_no" id="todoufuken_no" class="field size3 mt05">
									<option value=""></option>
									<?php echo fsel_get_todoufuken($gc, $gc->todoufuken_no) ?>
								</select>
								<input type="text" name="add1" id="add1" class="field size4 mt05" value="<?php echo f_hsc($gc->add1)?>" />
								<input type="text" name="add2" id="add2" class="field size4 mt05" value="<?php echo f_hsc($gc->add2)?>" />
							</div>


							<div class="box-field">
								<label>請求先住所<span>必須</span></label>
								<div class="inline-field">
									<input type="text" name="sk_zip1" id="sk_zip1" class="field size2" value="<?php echo f_hsc($gc->sk_zip1)?>" />
									-
									<input type="text" name="sk_zip2" id="sk_zip2" class="field size2" value="<?php echo f_hsc($gc->sk_zip2)?>" />
								</div>
								<select name="sk_todoufuken_no" id="sk_todoufuken_no" class="field size3 mt05">
									<option value=""></option>
									<?php echo fsel_get_todoufuken($gc, $gc->sk_todoufuken_no) ?>
								</select>
								<input type="text" name="sk_add1" id="sk_add1" class="field size4 mt05" value="<?php echo f_hsc($gc->sk_add1)?>" />
								<input type="text" name="sk_add2" id="sk_add2" class="field size4 mt05" value="<?php echo f_hsc($gc->sk_add2)?>" />
							</div>

							<div class="box-field">
								<label>請求事業部名</label>
								<input type="text" name="sk_jigyoubu" class="field size4 mt05" value="<?php echo f_hsc($gc->sk_jigyoubu)?>" />
							</div>

							<div class="box-field">
								<label>請求担当者名<span>必須</span></label>
								<input type="text" name="sk_tantou" class="field size4 mt05" value="<?php echo f_hsc($gc->sk_tantou)?>" />
							</div>

							<div class="box-field">
								<div>
									<label>固定金額<span>(優先されます)</span></label>
									<input type="text" name="kingaku_kotei" class="field size2 inlineR" value="<?php echo f_hsc($gc->kingaku_kotei)?>" />
								</div>
							</div>
							<div class="box-field inline-field">
								<div>
									<label>ライトプラン金額<span>(1件あたり)</span></label>
									<input type="checkbox" name="light_flg" id="light_flg" value="1"<?php echo $gc->light_flg_checked?>  onclick="light_check()"> 
									<input type="text" name="kingaku_light" id="kingaku_light" class="field size2 inlineR" value="<?php echo f_hsc($gc->kingaku_light)?>" />
									<br>チェックが入っていない場合はエリア毎に設定した金額が適用されます。
								</div>
							</div>
							<div class="box-field">
								<div>
									<label>月の利用限度額<span>(数値)</span></label>
									<input type="text" name="jyougen" class="field size2 inlineR" value="<?php echo f_hsc($gc->jyougen)?>" />
								</div>
								<div style="clear:both;">
								</div>
							</div>
<!--
							<div class="box-field">
								<label>出現率<span>(数値)</span></label>
								<input type="text" name="kakuritsu" class="field size2 inlineR" value="<?php echo f_hsc($gc->kakuritsu)?>" />
								<?php //out_html_kakuritsu_list($gc); ?>
							</div>
 -->
							<div class="box-field">
								<label>ロゴ画像<span>(横200ピクセル・縦60ピクセル)</span></label>
<?php if($gc->img_show){ ?>
								<input type=checkbox name="img_del" id="img_del" value="y"<?php echo $gc->img_del_checked?>><label for="img_del" style="margin-left: 4px;display:inline;font-weight: normal;">削除</label>&nbsp;
<?php } ?>
								<input type=file name="img_file" style="width:300;"><br />
<?php if($gc->img_show){ ?>
								<img src="<?php echo $gc->img_src?>" alt="" width="200">
<?php } ?>
								<label class="company_nm2"><?php echo f_hsc($gc->company_nm)?></label>
								<label>コメント欄<span>最大3行毎行24文字以内入力してください</span></label>
								<textarea name="comment" class="field" cols=50 rows= 4 ><?php echo $gc->comment?></textarea><br>
								<div class="ml10 mt05">
									<input type="checkbox" name="keisai_logo_flg" id="keisai_logo_flg" value="1"<?php echo $gc->keisai_logo_flg_checked?>>
									<label for="keisai_logo_flg" class="check" style="display:inline;font-weight: normal;">企業ロゴをTOP画面に表示しない</label>
								</div>
								<div class="ml10 mt05">
									<input type="checkbox" name="keisai_comment_flg" id="keisai_comment_flg" value="1"<?php echo $gc->keisai_comment_flg_checked?>>
									<label for="keisai_comment_flg" class="check" style="display:inline;font-weight: normal;">掲載会社一覧に表示しない</label>
								</div>
							</div>

							<div class="box-field">
								<label>掲載</label>
								<div class="ml10 mt05">
									<input type="checkbox" name="keisai_flg" id="keisai_flg" value="1"<?php echo $gc->keisai_flg_checked?>>
									<label for="keisai_flg" class="check" style="display:inline;font-weight: normal;">掲載する</label>
								</div>
							</div>

						</div>
						<!-- End Form -->

						<!-- Form Buttons -->
						<div class="buttons">
							<div class="alignleft">
								<button type="button" class="button color green" onclick="run_submit('form_edit', 'confirm')">入力確認へ</button>
							</div>
<?php
		if($gc->act=="u"){
?>
							<div class="alignright">
								<button type="button" class="button color red" onclick="run_submit('form_edit', 'delete')">削除</button>
							</div>
							<div class="alignright pos-top2">
								<input id="del" name="delete_check" type="checkbox" value="1" class="pos-top2" /><label for="del">削除する</label>
							</div>
<?php
		}
?>
						</div>
						<!-- End Form Buttons -->

					</form>

				</div>
				<!-- End Box -->

<?php
	}
?>
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- Main -->

	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
Exemplo n.º 19
0
function out_html($gc) {

	if($gc->form_mode == "confirm"){
		if($gc->act == "i"){
			$gc->mode_title = "[追加・確認]";
		}else{
			$gc->mode_title = "[編集・確認]";
		}
	}elseif($gc->form_mode == "message"){
		$gc->mode_title = "[完了]";
	}else{
		if($gc->act == "i"){
			$gc->mode_title = "[追加]";
		}else{
			$gc->mode_title = "[編集]";
		}
	}

?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>詳細<?php echo f_hsc($gc->mode_title)?></title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/custom/jquery-ui-1.9.2.custom.css" rel="stylesheet">


	<!-- スマートフォン向けviewportの指定 -->
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<!-- Google Maps APIの読み込み -->
	<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>

<!-- *** javascript *** -->
<script type="text/javascript" src="js/listpage.js" charset="utf-8"></script>
<script src="js/jquery-1.8.3.js"></script>
<script src="js/jquery-ui-1.9.2.custom.min.js"></script>
<script language="JavaScript">
<!--
/* 地図オブジェクト */
var map;
/* ストリートビューパノラマオブジェクト */
var svp;
/* 初期設定 */
function initialize() {
	var x = $("#lat").val();
	var y = $("#lon").val();
	var d = parseFloat($('#direction').val());
	var p = parseFloat($('#pitch').val());
	var z = parseFloat($('#zoom').val());

	var obj=document.getElementById("map");
	/* 緯度・経度:日本, 表参道駅(東京)*/
	var latlng=new google.maps.LatLng(x, y);
		/* 地図のオプション設定 */
	var myOptions = {
		/*初期のズーム レベル */
		zoom: 16,
		/* 地図の中心点 */
		center:latlng,
		/* 地図タイプ */
		mapTypeId: google.maps.MapTypeId.ROADMAP
	};

	map=new google.maps.Map(obj, myOptions);
	svp=new google.maps.StreetViewPanorama(
		obj,{
			position : map.getCenter(),
            addressControl:false
		});
	svp.setPov({heading:d, pitch:p, zoom:z});
	map.setStreetView(svp);
	google.maps.event.addListener(svp, 'tilesloaded', review);
	google.maps.event.addListener(svp, 'position_changed', review);
	google.maps.event.addListener(svp, 'pov_changed', review);
}

function review(){
	var pov=svp.getPov();
    var _heading=pov["heading"];
    var _pitch=pov["pitch"];
	var _zoom=pov["zoom"];
	$("#lat").val(svp.getPosition().lat());
	$("#lon").val(svp.getPosition().lng());
	$("#direction").val(pov["heading"]);
	$("#pitch").val(pov["pitch"]);
	$("#zoom").val(pov["zoom"]);
    document.getElementById("res").innerHTML=svp.getPosition();
    document.getElementById("res2").innerHTML=_heading;
    document.getElementById("res3").innerHTML=_pitch;
    document.getElementById("res4").innerHTML=_zoom;
}
/* ロード時に初期化 */
google.maps.event.addDomListener(window, 'load', initialize);

</script>

<script>
$(function(){

	// メッセージDialog
	$('#dialog_message').dialog({
		autoOpen: false,
		resizable: false,
		modal: true,
		width: 350,
		height: 150,
		buttons: {
			"OK": function() {
				run_submit('form_edit','itemdel')
			},
			"キャンセル": function() {
				$(this).dialog("close");
			}
		}
	});


});

function itemdel(no){

	$("#no").val(no);
	$('#dlg_msg_str').text( "削除よろしいですか?" );
	$('#dialog_message').dialog('open');
}

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 unload_page(){
	submit_flg = false;
}
window.onunload = unload_page;
// -->
</script>

</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav($gc, 6) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="#">簡易査定</a>
			<span>&gt;</span>
			<a href="./buken_area_list.php">登録エリア一覧</a>
			<span>&gt;</span>
			<a href="./buken_list.php?shikucyouson_no=<?php echo $gc->shikucyouson_no?>"><?php echo f_hsc($gc->todoufuken_nm." ".$gc->shikucyouson_nm)?></a>
			<span>&gt;</span>
			<?php echo f_hsc($gc->property_nm)?> 詳細<?php echo f_hsc($gc->mode_title)?>
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

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

				<form name="form_data" action="bukendetail.php" method="POST" onsubmit="return false">
					<input name="mode" type="hidden" value="">
					<input name="act" type="hidden" value="<?php echo $gc->act?>">
					<input name="token" type="hidden" value="<?php echo f_hsc($gc->token)?>">
					<input name="property_no" type="hidden" value="<?php echo f_hsc($gc->property_no)?>" />
					<input name="todoufuken_nm" type="hidden" value="<?php echo f_hsc($gc->todoufuken_nm)?>" />
					<input name="shikucyouson_nm" type="hidden" value="<?php echo f_hsc($gc->shikucyouson_nm)?>" />
					<input name="shikucyouson_no" type="hidden" value="<?php echo f_hsc($gc->shikucyouson_no)?>" />
					<input name="property_nm" type="hidden" value="<?php echo f_hsc($gc->property_nm)?>" />
					<input name="comment" type="hidden" value="<?php echo f_hsc($gc->comment)?>" />
					<input name="lat" id="lat" type="hidden" value="<?php echo f_hsc($gc->lat)?>" />
					<input name="lon" id="lon" type="hidden" value="<?php echo f_hsc($gc->lon)?>" />
					<input name="direction" id="direction" type="hidden" value="<?php echo f_hsc($gc->direction)?>" />
					<input name="pitch" id="pitch" type="hidden" value="<?php echo f_hsc($gc->pitch)?>" />
					<input name="zoom" id="zoom" type="hidden" value="<?php echo f_hsc($gc->zoom)?>" />
				</form>

				<!-- Message OK -->
				<div class="msg msg-ok">
					<p><strong>&nbsp;次の内容でよろしいですか?</strong></p>
				</div>
				<!-- End Message OK -->

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2><?php echo f_hsc($gc->property_nm)."詳細"?></h2>
					</div>
					<!-- End Box Head -->

					<div class="table">

							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<th class="al">住所</th>
									<th width="100" class="al">沿線</th>
									<th width="90" class="al">駅名</th>
									<th width="100" class="al">建物構造</th>
									<th width="80" class="ac">地上階層</th>
									<th width="80" class="ac">地下階層</th>
									<th width="70" class="ac">賃料</th>
									<th width="70" class="ac">㎡単価</th>
								</tr>
							<?php

							$sql =" SELECT";
							$sql.=" d.no";
							$sql.=" , property_no";
							$sql.=" , property_nm";
							$sql.=" , todoufuken_no";
							$sql.=" , todoufuken_nm";
							$sql.=" , shikucyouson_no";
							$sql.=" , shikucyouson_nm";
							$sql.=" , town_nm";
							$sql.=" , address";
							$sql.=" , railroad";
							$sql.=" , station";
							$sql.=" , kouzou";
							$sql.=" , k.name";
							$sql.=" , tijyokaisu";
							$sql.=" , tikakaisu";
							$sql.=" , rent";
							$sql.=" , unit_price";
							$sql.=" FROM";
							$sql.=" propertydetail d";
							$sql.=" LEFT JOIN";
							$sql.=" m_kouzou k";
							$sql.=" ON k.no = d.kouzou ";
							$sql.=" WHERE property_no =".$gc->property_no;
							$sql.=" ORDER BY";
							$sql.=" no";

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

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

							$i = 0;

							while ($rs->eof==false) {
								$no = $rs->fields["no"];
								$todoufuken_nm = $rs->fields["todoufuken_nm"];
								$shikucyouson_nm = $rs->fields["shikucyouson_nm"];
								$town_nm = $rs->fields["town_nm"];
								$address = $rs->fields["address"];
								$railroad = $rs->fields["railroad"];
								$station = $rs->fields["station"];
								$name = $rs->fields["name"];
								$tijyokaisu = $rs->fields["tijyokaisu"];
								$tikakaisu = $rs->fields["tikakaisu"];

								$rent = $rs->fields["rent"];
								$unit_price = $rs->fields["unit_price"];

								$odd = "";
								if(($i % 2)==1){
									$odd = " class=\"odd\"";
								}

								echo "<tr".$odd.">";
								echo "<td class=\"al\">".f_hsc($todoufuken_nm.$shikucyouson_nm.$town_nm.$address)."</td>";
								echo "<td class=\"al\">".f_hsc($railroad)."</td>";
								echo "<td class=\"al\">".f_hsc($station)."</td>";
								echo "<td class=\"al\">".f_hsc($name)."</td>";
								echo "<td class=\"ac\">".f_hsc($tijyokaisu)."</td>";
								echo "<td class=\"ac\">".f_hsc($tikakaisu)."</td>";
								echo "<td class=\"ac\">".number_format($rent)."</td>";
								echo "<td class=\"ac\">".number_format($unit_price)."</td>";
								echo "</tr>";

								$rs->move_next();

								$i++;

							}

							$rs->free_result();

							if($row_count==0){
								echo "<tr>";
								echo "<td colspan=\"9\" align=\"center\">データはありません。</td>";
								echo "</tr>";
							}

							?>
							</table>
						</div>
						<!-- Form -->
						<div class="form">
							<div class="box-field">
								<label>コメント</label>
								<textarea  name="comment" style="width:600px;height:90px;" readonly><?php echo $gc->comment?></textarea>
							</div>

							<p>現在の緯度・経度:<?php echo "(".f_hsc($gc->lat).",".f_hsc($gc->lon).") 方角:".f_hsc($gc->direction)?>
								<?php echo " 角度:".f_hsc($gc->pitch)." ズーム:".f_hsc($gc->zoom)?>
							</p>
						</div>
						<!-- End Form -->


					<!-- Form Buttons -->
					<div class="buttons">
						<div class="alignleft">
							<button type="button" class="button color green" onclick="run_submit('form_data', 'entry')">はい</button>
							<button type="button" class="button color blue" onclick="run_submit('form_data', 'revision')">修正</button>
						</div>
						<div class="alignright">
						</div>
					</div>
					<!-- End Form Buttons -->

				</div>
				<!-- End Box -->

<?php
	}elseif($gc->form_mode=="message"){
?>

				<!-- Message OK -->
				<div class="msg msg-ok">
					<p><strong>&nbsp;<?php echo f_hsc($gc->message) ?></strong></p>
				</div>
				<!-- End Message OK -->

<?php
		echo "<div class=\"ac\"><a href=\"buken_area_list.php\">登録エリア一覧 へ</a>";
		echo "&nbsp;&nbsp;&nbsp;&nbsp;";
		echo "<a href=\"./buken_list.php?shikucyouson_no=".$gc->shikucyouson_no."\">".f_hsc($gc->todoufuken_nm." ".$gc->shikucyouson_nm)."</a>";
		echo "&nbsp;&nbsp;&nbsp;&nbsp;";
		echo "<a href=\"../".$gc->property_no."/detail.php\" target=\"_blank\">プレビューへ</a></div>";
	}else{

		for ($i=0; $i<$gc->msg->count; $i++) {
?>
				<!-- Message Error -->
				<div class="msg msg-error">
					<p><strong>&nbsp;<?php echo f_hsc($gc->msg->list[$i]) ?></strong></p>
				</div>
				<!-- End Message Error -->
<?php
		}
?>

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2><?php echo f_hsc($gc->property_nm)."詳細"?></h2>
					</div>
					<!-- End Box Head -->

					<form name="form_edit" action="bukendetail.php" method="POST" onsubmit="return false" enctype="multipart/form-data">
						<input name="mode" type="hidden" value="" />
						<input name="act" type="hidden" value="<?php echo $gc->act?>" />
						<input name="token" type="hidden" value="<?php echo f_hsc($gc->token)?>" />
						<input name="property_no" type="hidden" value="<?php echo f_hsc($gc->property_no)?>" />
						<input name="todoufuken_nm" type="hidden" value="<?php echo f_hsc($gc->todoufuken_nm)?>" />
						<input name="shikucyouson_nm" type="hidden" value="<?php echo f_hsc($gc->shikucyouson_nm)?>" />
						<input name="shikucyouson_no" type="hidden" value="<?php echo f_hsc($gc->shikucyouson_no)?>" />
						<input name="property_nm" type="hidden" value="<?php echo f_hsc($gc->property_nm)?>" />
						<input name="no" id="no" type="hidden" value="" />
						<input name="lat" id="lat" type="hidden" value="<?php echo f_hsc($gc->lat)?>" />
						<input name="lon" id="lon" type="hidden" value="<?php echo f_hsc($gc->lon)?>" />
						<input name="direction" id="direction" type="hidden" value="<?php echo f_hsc($gc->direction)?>" />
						<input name="pitch" id="pitch" type="hidden" value="<?php echo f_hsc($gc->pitch)?>" />
						<input name="zoom" id="zoom" type="hidden" value="<?php echo f_hsc($gc->zoom)?>" />
						<div class="table">

							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<th class="al">住所</th>
									<th width="90" class="al">沿線</th>
									<th width="70" class="al">駅名</th>
									<th width="100" class="al">建物構造</th>
									<th width="70" class="ac">地上階層</th>
									<th width="70" class="ac">地下階層</th>
									<th width="60" class="ac">賃料</th>
									<th width="60" class="ac">㎡単価</th>
									<th width="50" class="ac">削除</th>
								</tr>
							<?php

							$sql =" SELECT";
							$sql.=" d.no";
							$sql.=" , property_no";
							$sql.=" , property_nm";
							$sql.=" , todoufuken_no";
							$sql.=" , todoufuken_nm";
							$sql.=" , shikucyouson_no";
							$sql.=" , shikucyouson_nm";
							$sql.=" , town_nm";
							$sql.=" , address";
							$sql.=" , railroad";
							$sql.=" , station";
							$sql.=" , kouzou";
							$sql.=" , k.name";
							$sql.=" , tijyokaisu";
							$sql.=" , tikakaisu";
							$sql.=" , rent";
							$sql.=" , unit_price";
							$sql.=" FROM";
							$sql.=" propertydetail d";
							$sql.=" LEFT JOIN";
							$sql.=" m_kouzou k";
							$sql.=" ON k.no = d.kouzou ";
							$sql.=" WHERE property_no =".$gc->property_no;
							$sql.=" ORDER BY";
							$sql.=" no";

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

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

							$i = 0;

							while ($rs->eof==false) {
								$no = $rs->fields["no"];
								$todoufuken_nm = $rs->fields["todoufuken_nm"];
								$shikucyouson_nm = $rs->fields["shikucyouson_nm"];
								$town_nm = $rs->fields["town_nm"];
								$address = $rs->fields["address"];
								$railroad = $rs->fields["railroad"];
								$station = $rs->fields["station"];
								$management_company = $rs->fields["management_company"];
								$name = $rs->fields["name"];
								$tijyokaisu = $rs->fields["tijyokaisu"];
								$tikakaisu = $rs->fields["tikakaisu"];
								$soukosu = $rs->fields["soukosu"];
								$rent = $rs->fields["rent"];


								$unit_price = $rs->fields["unit_price"];

								$odd = "";
								if(($i % 2)==1){
									$odd = " class=\"odd\"";
								}

								echo "<tr".$odd.">";
								echo "<td class=\"al\">".f_hsc($todoufuken_nm.$shikucyouson_nm.$town_nm.$address)."</td>";
								echo "<td class=\"al\">".f_hsc($railroad)."</td>";
								echo "<td class=\"al\">".f_hsc($station)."</td>";
								echo "<td class=\"al\">".f_hsc($name)."</td>";
								echo "<td class=\"ac\">".f_hsc($tijyokaisu)."</td>";
								echo "<td class=\"ac\">".f_hsc($tikakaisu)."</td>";
								echo "<td class=\"ac\">".number_format($rent)."</td>";
								echo "<td class=\"ac\">".number_format($unit_price)."</td>";
								echo "<td class=\"ac\"><button type=\"button\" class=\"button\" onclick=\"itemdel(".f_hsc($no).")\">削除</button></td>";
								echo "</tr>";

								$rs->move_next();

								$i++;

							}

							$rs->free_result();

							if($row_count==0){
								echo "<tr>";
								echo "<td colspan=\"9\" align=\"center\">データはありません。</td>";
								echo "</tr>";
							}

							?>
							</table>
						</div>
						<!-- Form -->
						<div class="form">

							<div class="box-field">
								<label>コメント<span style="margin-left:20px;color:red">1行40文字で改行してください。行数に制限はありません。</span></label>
								<textarea  name="comment" style="width:600px;height:90px;" ><?php echo $gc->comment?></textarea>
							</div>

							<p>現在の緯度・経度:<span id="res"></span>  方角<span id="res2"></span>
							  角度<span id="res3"></span>  ズーム<span id="res4"></span>
							</p>
							 <div id="map" style="width:300px; height:300px;"></div>
						</div>
						<!-- End Form -->

						<!-- Form Buttons -->
						<div class="buttons">
							<div class="alignleft">
								<button type="button" class="button color green" onclick="run_submit('form_edit', 'confirm')">入力確認へ</button>
							</div>
<?php
		if($gc->act=="u"){
?>
							<div class="alignright">
								<button type="button" class="button color red" onclick="run_submit('form_edit', 'delete')">削除</button>
							</div>
							<div class="alignright pos-top2">
								<input id="del" name="delete_check" type="checkbox" value="1" class="pos-top2" /><label for="del">削除する</label>
							</div>
<?php
		}
?>
						</div>
						<!-- End Form Buttons -->

					</form>

				</div>
				<!-- End Box -->

<?php
	}
?>
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- Main -->

	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

<div id="dialog_message" title="メッセージ">
	<p id="dlg_msg_str" class="mt10 ml10"></p>
</div>


</body>
</html>
<?php
}
Exemplo n.º 20
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終了 ******************************************************* */
}
Exemplo n.º 21
0
function out_html($gc) {


	$sql = "SELECT SQL_CALC_FOUND_ROWS";
	$sql.=" todoufuken_no";
	$sql.=" , todoufuken_nm";
	$sql.=" FROM";
	$sql.=" m_todoufuken ";
	$sql.= " ORDER BY sort_no ";

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

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

?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>簡易査定一覧</title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/custom/jquery-ui-1.9.2.custom.css" rel="stylesheet">
<!-- *** javascript *** -->
<script type="text/javascript" src="js/listpage.js" charset="utf-8"></script>
<script src="js/jquery-1.8.3.js"></script>
<script src="js/jquery-ui-1.9.2.custom.min.js"></script>
<script language="JavaScript">
var submit_flg = false;
function search(fname) {
	if(submit_flg==false){
		//ボタン2度押し対応
		submit_flg = true;
		document.forms[fname].submit();
	}
}
function unload_page(){
	submit_flg = false;
}
window.onunload = unload_page;

$(function() {

	$('.group h3').click(function(){

		if( $(this).attr("panelmode") == "open" ){

			//閉じる処理

			$(this).attr("panelmode", "close");

			$(this).removeClass("ui-accordion-header-active");
			$(this).removeClass("ui-state-active");
			$(this).removeClass("ui-corner-top");
			$(this).addClass("ui-corner-all");

			$('span', this).removeClass("ui-icon-triangle-1-s");
			$('span', this).addClass("ui-icon-triangle-1-e");

			$('+div', this).removeClass("ui-accordion-content-active");

			$('+div:not(:animated)',this).slideUp('normal');

		}else{

			//開く処理

			get_area($('+div', this), $(this).attr("todoufuken_no"));

			$(this).attr("panelmode", "open");

			$(this).removeClass("ui-corner-all");
			$(this).addClass("ui-accordion-header-active");
			$(this).addClass("ui-state-active");
			$(this).addClass("ui-corner-top");

			$('span', this).removeClass("ui-icon-triangle-1-e");
			$('span', this).addClass("ui-icon-triangle-1-s");

			$('+div', this).addClass("ui-accordion-content-active");

			var d = {height:'toggle', opacity:'toggle'};
			$('+div',this).animate(d);

		}

	});

});

function get_area(pnl, todoufuken_no){

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

	var query = "time=" + timestamp;
	query += "&todoufuken_no=" + todoufuken_no;
	query += "&pnl=" + pnl;

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

}


</script>
</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav($gc, 6) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
		<a href="#">簡易査定</a>
		<span>&gt;</span>
			登録エリア一覧
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">
					<!-- Box Head -->
					<div class="box-head">
						<div class="left">
						<h2 class="left">登録エリア一覧</h2>
							<div class="cl">&nbsp;</div>
						</div>

						<div class="right">
							<a href="buken_csv.php" class="custom-button" style="margin-right:10px;"><span>CSV出力</span></a>
							<a href="bukeninsert.php" class="add-button"><span>データインポート</span></a>
							<div class="cl">&nbsp;</div>
						</div>
					</div>
					<!-- End Box Head -->
					<!-- Accordion -->
					<div class="Accordion" style="padding:15px 10px;">

						<!-- Accordion -->
						<div class="ui-accordion ui-widget ui-helper-reset">

			<?php
			$i = 0;

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

				$todoufuken_no = $rs->fields["todoufuken_no"];
				$todoufuken_nm = $rs->fields["todoufuken_nm"];
?>
				<div class="group" >
					<h3 panelmode="close"  id="<?php echo "pnl".f_hsc($todoufuken_no)?>" todoufuken_no="<?php echo f_hsc($todoufuken_no) ?>" class="ui-accordion-header ui-helper-reset ui-state-default ui-accordion-icons ui-corner-all">
						<span class="ui-accordion-header-icon ui-icon ui-icon-triangle-1-e"></span>
						<?php echo f_hsc($todoufuken_nm) ?></h3>
					<div style="display: none;" class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom">
						&nbsp;
					</div>
				</div>
<?php
				$rs->move_next();

				$i++;

			}

			$rs->free_result();

			?>
</div>

					</div>
					<!-- Accordion -->
				</div>
				<!-- End Box -->

				<div class="cl">&nbsp;</div>
			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>
		</div>
		<!-- Main -->

	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
Exemplo n.º 22
0
    $row_count = $gc->db->get_row_count();
    if ($row_count > 0) {
        ?>
			<p class="title">
				<img src="../img/side_title.jpg" alt="提携不動産会社">
			</p>
			<ul>
<?php 
        while ($rs->eof == false) {
            $company_no = $rs->fields["company_no"];
            $company_nm = $rs->fields["company_nm"];
            $src = "";
            if (file_exists(C_IMG_PATH . "logo/" . $company_no)) {
                $src = C_IMG_ROOT_URL . "logo/" . $company_no;
            }
            $shuffle[] = "<li><img src=\"" . $src . "\" alt=\"" . f_hsc($company_nm) . "\"></li>";
            $rs->move_next();
        }
        if (count($shuffle) > 0) {
            $shuffle2 = array_rand($shuffle, 38);
            $ret_shuffle = array_shuffle($shuffle2);
            foreach ($ret_shuffle as $key) {
                echo $shuffle[$key];
            }
        }
        ?>
			</ul>
<?php 
    }
    $rs->free_result();
}
Exemplo n.º 23
0
function out_html($gc)
{
    /* 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。当サイトが厳選した最適な不動産会社に査定依頼が無料で申し込めます。空室保障(サブリース)、転勤・留守宅管理(リロケーション)、賃貸募集・賃貸管理、空室対策など、分譲マンションや一戸建て、一棟アパートの所有者様のあらゆるお悩みにお応えいたします。">
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/jquery-1.9.1.js"></script>
</head>
<body>

<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 class="nav">
		<div class="inner">
			<ul>
				<li>
					<a href="./index.php">トップ</a>|
				</li>

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

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

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

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

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

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

	<div class="main">
		<div class="pan"><a href="index.php">トップ</a> > 掲載企業一覧</div>
		<div class="left">
			<h2 class="title_block"><img src="img/title_company.jpg" alt="掲載企業一覧"></h2>
			<div class="form-area">
<?php 
    $sql = "SELECT SQL_CALC_FOUND_ROWS";
    $sql .= " company_no,";
    $sql .= " company_nm,";
    $sql .= " comment, ";
    $sql .= " url ";
    $sql .= "FROM";
    $sql .= " m_company ";
    $sql .= "WHERE";
    $sql .= " keisai_flg = 1";
    $sql .= " and keisai_comment_flg = 0";
    $rs = $gc->db->query($sql);
    $row_count = $gc->db->get_row_count();
    $i = 0;
    while ($rs->eof == false) {
        $company_no = $rs->fields["company_no"];
        $company_nm = $rs->fields["company_nm"];
        $url = $rs->fields["url"];
        $comment = $rs->fields["comment"];
        $src = "";
        if (file_exists(C_IMG_PATH . "logo/" . $company_no)) {
            $src = C_IMG_ROOT_URL . "logo/" . $company_no;
        }
        $tag_s = "";
        $tag_e = "";
        if (strlen($url) > 0) {
            $tag_s = "<a href=\"" . $url . "\">";
            $tag_e = "</a>";
        }
        $last = "";
        if ($i == $row_count - 1) {
            $last = " last";
        }
        $wks = "<tr>";
        $wks .= "<td>" . $tag_s . "<img src=\"" . $src . "\" alt=\"" . f_hsc($company_nm) . "\">" . $tag_e . "</td>";
        $wks .= "<td>" . $tag_s . f_hsc($company_nm) . $tag_e . "<br/>" . nl2br(f_hsc($comment)) . "</td>";
        $wks .= "</tr>";
        //$wks = "<dl class=\"company".$last."\">";
        //$wks.= "<dt class=\"bnr\">".$tag_s."<img src=\"".$src."\" alt=\"".f_hsc($company_nm)."\">".$tag_e."</dt>";
        //$wks.= "<dd>".$tag_s.f_hsc($company_nm).$tag_e."</dd>";
        //$wks.= "</dl>";
        $shuffle1[] = $wks;
        $rs->move_next();
        $i++;
    }
    $rs->free_result();
    if (count($shuffle1) > 0) {
        $ret_shuffle = f_array_shuffle($shuffle1);
        echo "<table>";
        foreach ($ret_shuffle as $key => $value) {
            echo $value;
        }
        echo "</table>";
    }
    ?>
		</div>
		</div>
		<?php 
    include "_side.php";
    ?>
		<div class="clearfix"></div>
	</div>

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

    <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>


<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>


</body>
</html>
<?php 
    /* HTML終了 ******************************************************* */
}
Exemplo n.º 24
0
function out_html($gc) {
?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>地域ランク編集</title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<link href="css/custom/jquery-ui-1.9.2.custom.css" rel="stylesheet">
<style>
/* IEでソートするときの対応 */
.group { zoom: 1 }
</style>
<!-- *** javascript *** -->
<script src="js/jquery-1.8.3.js"></script>
<script src="js/jquery-ui-1.9.2.custom.min.js"></script>
<script>
$(function() {

	$('.group h3').click(function(){

		if( $(this).attr("panelmode") == "open" ){

			//閉じる処理

			$(this).attr("panelmode", "close");

			$(this).removeClass("ui-accordion-header-active");
			$(this).removeClass("ui-state-active");
			$(this).removeClass("ui-corner-top");
			$(this).addClass("ui-corner-all");

			$('span', this).removeClass("ui-icon-triangle-1-s");
			$('span', this).addClass("ui-icon-triangle-1-e");

			$('+div', this).removeClass("ui-accordion-content-active");

			$('+div:not(:animated)',this).slideUp('normal');

		}else{

			//開く処理

			get_area($('+div', this), $(this).attr("todoufuken_no"));

			$(this).attr("panelmode", "open");

			$(this).removeClass("ui-corner-all");
			$(this).addClass("ui-accordion-header-active");
			$(this).addClass("ui-state-active");
			$(this).addClass("ui-corner-top");

			$('span', this).removeClass("ui-icon-triangle-1-e");
			$('span', this).addClass("ui-icon-triangle-1-s");

			$('+div', this).addClass("ui-accordion-content-active");

			var d = {height:'toggle', opacity:'toggle'};
			$('+div',this).animate(d);

		}

	});

});

//ランクの変更
function rank_change(o){

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

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

	var query = "time=" + timestamp;
	query += "&mode=rank";
	query += "&shikucyouson_no=" + $(o).attr("shikucyouson_no");
	query += "&rank_no=" + selectedItem.value;

	$.ajax({
		type: "POST",
		url: "set_area.php",
		dataType: "text",
		data: query,
		cache: false,
		async: false,
		complete: function(XMLHttpRequest, textStatus){
			if(textStatus=="success"){
				if(XMLHttpRequest.responseText != "OK"){
					alert("更新処理に失敗しました。");
				}
			}else{
				alert("通信エラーが発生しました。");
			}
		}
	});

}

function get_area(pnl, todoufuken_no){

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

	var query = "time=" + timestamp;
	query += "&mode=area_l";
	query += "&todoufuken_no=" + todoufuken_no;

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

}

function set_area(order){

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

	var query = "time=" + timestamp;
	query += "&mode=shikucyouson";
	query += "&" + order;

	$.ajax({
		type: "POST",
		url: "set_area.php",
		dataType: "text",
		data: query,
		cache: false,
		async: false,
		complete: function(XMLHttpRequest, textStatus){
			if(textStatus=="success"){
				if(XMLHttpRequest.responseText != "OK"){
					alert("ソート処理に失敗しました。");
				}
			}else{
				alert("通信エラーが発生しました。");
			}
		}
	});

}

</script>
</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav($gc, 3) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="area_r.php">エリア管理</a>
			<span>&gt;</span>
			<a href="area_r.php">対応エリア</a>
			<span>&gt;</span>
			地域ランク編集
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left"><b>地域ランク編集</b></h2>
						<div class="right">
							<a href="area_sort.php?mode=add" class="custom-button"><span>都道府県ソートモード</span></a>
						</div>
					</div>
					<!-- End Box Head -->

					<!-- Accordion -->
					<div class="Accordion" style="padding:15px 10px;">

						<!-- Accordion -->
						<div class="ui-accordion ui-widget ui-helper-reset">

<?php

	$sql = "SELECT";
	$sql.= " todoufuken_no,";
	$sql.= " todoufuken_nm,";
	$sql.= " ltime ";
	$sql.= "FROM";
	$sql.= " m_todoufuken ";
	$sql.= "ORDER BY";
	$sql.= " sort_no";

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

	$i = 0;

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

		$todoufuken_no = $rs->fields["todoufuken_no"];
		$todoufuken_nm = $rs->fields["todoufuken_nm"];

?>
		<div class="group">
			<h3 panelmode="close" todoufuken_no="<?php echo f_hsc($todoufuken_no) ?>" class="ui-accordion-header ui-helper-reset ui-state-default ui-accordion-icons ui-corner-all">
				<span class="ui-accordion-header-icon ui-icon ui-icon-triangle-1-e"></span>
				<?php echo f_hsc($todoufuken_nm) ?></h3>
			<div style="display: none;" class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom">
				&nbsp;
			</div>
		</div>
<?php

		$rs->move_next();

		$i++;

	}

	$rs->free_result();

?>

						</div>

					</div>
					<!-- Accordion -->

				</div>
				<!-- End Box -->
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
Exemplo n.º 25
0
function out_html($gc) {

	if($gc->form_mode == "confirm"){
		if($gc->act == "i"){
			$gc->mode_title = "[追加・確認]";
		}else{
			$gc->mode_title = "[編集・確認]";
		}
	}elseif($gc->form_mode == "message"){
		if($gc->acerr == 1){		$gc->mode_title = "[エラー]";}
		else{		$gc->mode_title = "[完了]";}

	}else{
		if($gc->act == "i"){
			$gc->mode_title = "[追加]";
		}else{
			$gc->mode_title = "[編集]";
		}
	}

?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>ユーザー<?php echo f_hsc($gc->mode_title)?></title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- *** javascript *** -->
<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 unload_page(){
	submit_flg = false;
}
window.onunload = unload_page;
// -->
</script>

</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav2($gc, 3) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="user_l.php">ユーザー管理</a>
			<span>&gt;</span>
			<a href="user_l.php">ユーザー一覧</a>
			<span>&gt;</span>
			ユーザー<?php echo f_hsc($gc->mode_title)?>
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

<?php
	if($gc->mode2=="p"){
		if($gc->form_mode=="confirm"){
?>

				<form name="form_data" action="user_e.php" method="POST" onsubmit="return false">
					<input name="mode2" type="hidden" value="p">
					<input name="mode" type="hidden" value="">
					<input name="user_no" type="hidden" value="<?php echo f_hsc($gc->user_no)?>">
					<input name="act" type="hidden" value="<?php echo $gc->act?>">
					<input name="token" type="hidden" value="<?php echo f_hsc($gc->token)?>">
					<input name="password" type="hidden" value="<?php echo f_hsc($gc->password)?>">
				</form>

				<!-- Message OK -->
				<div class="msg msg-ok">
					<p><strong>&nbsp;次の内容でよろしいですか?</strong></p>
				</div>
				<!-- End Message OK -->

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2>ユーザー</h2>
					</div>
					<!-- End Box Head -->

					<!-- Form -->
					<div class="form">

						<div class="box-field">
							<label>パスワード</label>
							<div class="box-confirm">
								セキュリティ保護のため、パスワードは表示されません
							</div>
						</div>

					</div>
					<!-- End Form -->

					<!-- Form Buttons -->
					<div class="buttons">
						<div class="alignleft">
							<button type="button" class="button color green" onclick="run_submit('form_data', 'entry')">はい</button>
							<button type="button" class="button color blue" onclick="run_submit('form_data', 'revision')">修正</button>
						</div>
						<div class="alignright">
						</div>
					</div>
					<!-- End Form Buttons -->

				</div>
				<!-- End Box -->

<?php
		}elseif($gc->form_mode=="message"){
?>

				<!-- Message OK -->
				<div class="msg msg-ok">
					<p><strong>&nbsp;<?php echo f_hsc($gc->message) ?></strong></p>
				</div>
				<!-- End Message OK -->

<?php

			switch ($gc->db_act) {
			case "i":
				echo "<div class=\"ac\">";
				echo "<a href=\"user_e.php?mode=add\">続けて新規登録</a>";
				echo "&nbsp;&nbsp;&nbsp;&nbsp;";
				echo "<a href=\"user_l.php\" class=\"ml10\">ユーザー一覧へ</a>";
				echo "</div>";
				break;
			case "u":
			case "d":
				echo "<div class=\"ac\"><a href=\"user_l.php\">ユーザー一覧へ</a></div>";
				break;
			}

		}else{

			for ($i=0; $i<$gc->msg->count; $i++) {
?>
				<!-- Message Error -->
				<div class="msg msg-error">
					<p><strong>&nbsp;<?php echo f_hsc($gc->msg->list[$i]) ?></strong></p>
				</div>
				<!-- End Message Error -->
<?php
			}
?>

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2>ユーザー</h2>
					</div>
					<!-- End Box Head -->

					<form name="form_edit" action="user_e.php" method="POST" onsubmit="return false" enctype="multipart/form-data">
						<input name="mode2" type="hidden" value="p" />
						<input name="mode" type="hidden" value="" />
						<input name="user_no" type="hidden" value="<?php echo f_hsc($gc->user_no)?>">
						<input name="act" type="hidden" value="<?php echo $gc->act?>" />
						<input name="token" type="hidden" value="<?php echo f_hsc($gc->token)?>" />
						<input name="user_no" type="hidden" value="<?php echo f_hsc($gc->user_no)?>" />

						<!-- Form -->
						<div class="form">
							パスワードを更新します。新しいパスワードを入力してください。<br><br>
							<div class="box-field">
								<label>パスワード<span>(必須)</span></label>
								<input type="password" name="password" class="field size4" value="<?php echo f_hsc($gc->password)?>" />
							</div>

						</div>
						<!-- End Form -->

						<!-- Form Buttons -->
						<div class="buttons">
							<div class="alignleft">
								<button type="button" class="button color green" onclick="run_submit('form_edit', 'confirm')">入力確認へ</button>
							</div>
						</div>
						<!-- End Form Buttons -->

					</form>

				</div>
				<!-- End Box -->

<?php
		}
	}else{
		if($gc->form_mode=="confirm"){
?>

				<form name="form_data" action="user_e.php" method="POST" onsubmit="return false">
					<input name="mode2" type="hidden" value="u">
					<input name="mode" type="hidden" value="">
					<input name="act" type="hidden" value="<?php echo $gc->act?>">
					<input name="token" type="hidden" value="<?php echo f_hsc($gc->token)?>">
					<input name="user_no" type="hidden" value="<?php echo f_hsc($gc->user_no)?>">
					<input name="user_nm" type="hidden" value="<?php echo f_hsc($gc->user_nm)?>">
					<input name="user_kn" type="hidden" value="<?php echo f_hsc($gc->user_kn)?>">
					<input name="user_id" type="hidden" value="<?php echo f_hsc($gc->user_id)?>">
<?php
		if($gc->act=="i"){
?>
					<input name="password" type="hidden" value="<?php echo f_hsc($gc->password)?>">
<?php
		}
?>
					<input name="e_mail" type="hidden" value="<?php echo f_hsc($gc->e_mail)?>">
				</form>

				<!-- Message OK -->
				<div class="msg msg-ok">
					<p><strong>&nbsp;次の内容でよろしいですか?</strong></p>
				</div>
				<!-- End Message OK -->

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2>ユーザー</h2>
					</div>
					<!-- End Box Head -->

					<!-- Form -->
					<div class="form">

						<div class="box-field">
							<label>ユーザー名称</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->user_nm)?>
							</div>
						</div>
						<div class="box-field">
							<label>フリガナ</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->user_kn)?>
							</div>
						</div>
						<div class="box-field">
							<label>ユーザーID</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->user_id)?>
							</div>
						</div>
<?php
		if($gc->act=="i"){
?>
						<div class="box-field">
							<label>パスワード</label>
							<div class="box-confirm">
								セキュリティ保護のため、パスワードは表示されません
							</div>
						</div>
<?php
		}
?>
						<div class="box-field">
							<label>E-mail</label>
							<div class="box-confirm">
								<?php echo f_hsc($gc->e_mail)?>
							</div>
						</div>

					</div>
					<!-- End Form -->

					<!-- Form Buttons -->
					<div class="buttons">
						<div class="alignleft">
							<button type="button" class="button color green" onclick="run_submit('form_data', 'entry')">はい</button>
							<button type="button" class="button color blue" onclick="run_submit('form_data', 'revision')">修正</button>
						</div>
						<div class="alignright">
						</div>
					</div>
					<!-- End Form Buttons -->

				</div>
				<!-- End Box -->

<?php
		}elseif($gc->form_mode=="message"){
?>

				<!-- Message OK -->
				<div class="msg msg-ok">
					<p><strong>&nbsp;<?php echo f_hsc($gc->message) ?></strong></p>
				</div>
				<!-- End Message OK -->

<?php

			switch ($gc->db_act) {
			case "i":
				echo "<div class=\"ac\">";
				echo "<a href=\"user_e.php?mode=add\">続けて新規登録</a>";
				echo "&nbsp;&nbsp;&nbsp;&nbsp;";
				echo "<a href=\"user_l.php\" class=\"ml10\">ユーザー一覧へ</a>";
				echo "</div>";
				break;
			case "u":
			case "d":
				echo "<div class=\"ac\"><a href=\"user_l.php\">ユーザー一覧へ</a></div>";
				break;
			}

		}else{

			for ($i=0; $i<$gc->msg->count; $i++) {
?>
				<!-- Message Error -->
				<div class="msg msg-error">
					<p><strong>&nbsp;<?php echo f_hsc($gc->msg->list[$i]) ?></strong></p>
				</div>
				<!-- End Message Error -->
<?php
			}
?>

				<!-- Box -->
				<div class="box">

					<!-- Box Head -->
					<div class="box-head">
						<h2>ユーザー</h2>
					</div>
					<!-- End Box Head -->

					<form name="form_edit" action="user_e.php" method="POST" onsubmit="return false" enctype="multipart/form-data">
						<input name="mode2" type="hidden" value="u">
						<input name="mode" type="hidden" value="" />
						<input name="act" type="hidden" value="<?php echo $gc->act?>" />
						<input name="token" type="hidden" value="<?php echo f_hsc($gc->token)?>" />
						<input name="user_no" type="hidden" value="<?php echo f_hsc($gc->user_no)?>" />

						<!-- Form -->
						<div class="form">

							<div class="box-field">
								<label>ユーザー名称<span>(必須)</span></label>
								<input type="text" name="user_nm" class="field size4" value="<?php echo f_hsc($gc->user_nm)?>" />
							</div>

							<div class="box-field">
								<label>フリガナ<span>(必須)</span></label>
								<input type="text" name="user_kn" class="field size4" value="<?php echo f_hsc($gc->user_kn)?>" />
							</div>

							<div class="box-field">
								<label>ユーザーID<span>(必須)</span></label>
								<input type="text" name="user_id" class="field size4" value="<?php echo f_hsc($gc->user_id)?>" />
							</div>

<?php
		if($gc->act=="i"){
?>
							<div class="box-field">
								<label>パスワード<span>(必須)</span></label>
								<input type="password" name="password" class="field size4" value="<?php echo f_hsc($gc->password)?>" />
							</div>
<?php
		}
?>

							<div class="box-field">
								<label>E-mail</label>
								<input type="text" name="e_mail" class="field size4" value="<?php echo f_hsc($gc->e_mail)?>" />
							</div>

						</div>
						<!-- End Form -->

						<!-- Form Buttons -->
						<div class="buttons">
							<div class="alignleft">
								<button type="button" class="button color green" onclick="run_submit('form_edit', 'confirm')">入力確認へ</button>
							</div>
<?php
			if($gc->act=="u"){
?>
							<div class="alignright">
								<button type="button" class="button color red" onclick="run_submit('form_edit', 'delete')">削除</button>
							</div>
							<div class="alignright pos-top2">
								<input id="del" name="delete_check" type="checkbox" value="1" class="pos-top2" /><label for="del">削除する</label>
							</div>
<?php
			}
?>
						</div>
						<!-- End Form Buttons -->

					</form>

				</div>
				<!-- End Box -->

<?php
		}
	}
?>
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- Main -->

	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
Exemplo n.º 26
0
function out_login($gc) {
?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>ログイン</title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>

<!-- Container -->
<div id="container">
	<div class="shell">
		<!-- Main -->
		<div id="main" class="mt40">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

<?php for ($i=0; $i<$gc->msg->count; $i++) { ?>
				<!-- Message Error -->
				<div class="msg msg-error width-s">
					<p><strong><?php echo f_hsc($gc->msg->list[$i]) ?></strong></p>
				</div>
				<!-- End Message Error -->
<?php } ?>

				<!-- Box -->
				<div class="box width-s">

					<!-- Box Head -->
					<div class="box-head crimson">
						<h2>管理者IDとパスワードを入力してログインしてください。</h2>
					</div>
					<!-- End Box Head -->

					<form method="POST" action="login.php">
						<input type=hidden name="mode" value="login_check" />

						<!-- Form -->
						<div class="form">
							<p>
								<label>管理者ID</label>
								<input type="text" name="user_id" class="field size4" value="<?php echo f_hsc($gc->user_id)?>" />
							</p>
							<p>
								<label>パスワード</label>
								<input type="password" name="password" class="field size4" />
							</p>
						</div>
						<!-- End Form -->

						<!-- Form Buttons -->
						<div class="buttons">
							<input type="submit" class="color silver button" value="ログイン">
						</div>
						<!-- End Form Buttons -->

					</form>

				</div>
				<!-- End Box -->
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- End Main -->

	</div>
</div>
<!-- End Container -->

</body>
</html>
<?php
}
Exemplo n.º 27
0
function out_html($gc) {

	$sql =" SELECT";
	$sql.=" s.shikucyouson_no";
	$sql.=" , s.shikucyouson_nm";
	$sql.=" , p.cnt";
	$sql.=" FROM";
	$sql.=" m_shikucyouson s";
	$sql.=" INNER JOIN ";
	$sql.=" (SELECT";
	$sql.=" count(property_no) as cnt";
	$sql.=" , shikucyouson_no";
	$sql.=" FROM";
	$sql.=" propertylist ";
	$sql.=" WHERE";
	$sql.=" todoufuken_no = ".$gc->todoufuken_no;
	$sql.=" GROUP BY shikucyouson_no";
	$sql.=" ORDER BY";
	$sql.=" shikucyouson_no) p";
	$sql.=" ON p.shikucyouson_no = s.shikucyouson_no";
	$sql.=" ORDER BY";
	$sql.=" sort_no";
	$rs = $gc->db->query($sql);
	$row_count = $gc->db->get_row_count();

	/*$sql =" SELECT";
	$sql.=" l.property_no";
	$sql.=" , l.property_nm";
	$sql.=" , l.todoufuken_no";
	$sql.=" , l.todoufuken_nm";
	$sql.=" , l.shikucyouson_no";
	$sql.=" , l.shikucyouson_nm";
	$sql.=" , l.town_nm";
	$sql.=" , d.address";
	$sql.=" , d.railroad";
	$sql.=" , d.station";
	$sql.=" , d.rent";
	$sql.=" , d.unit_price";
	$sql.=" FROM";
	$sql.=" propertylist l";
	$sql.=" LEFT JOIN";
	$sql.=" (SELECT";
	$sql.=" property_no";
	$sql.=" , min(address) as address";
	$sql.=" , min(railroad) as railroad";
	$sql.=" , min(station) as station";
	$sql.=" , avg(rent) as rent";
	$sql.=" , avg(unit_price) as unit_price";
	$sql.=" FROM";
	$sql.=" propertydetail ";
	$sql.=" GROUP BY property_no";
	$sql.=" ) d";
	$sql.=" ON d.property_no = l.property_no";
	$sql.=" LEFT JOIN ";
	$sql.=" m_shikucyouson s";
	$sql.=" On s.shikucyouson_no = l.shikucyouson_no";
	$sql.=" WHERE";
	$sql.=" l.todoufuken_no = ".$gc->todoufuken_no;
	if($gc->keyword != ""){
		$sql.=" AND (s.shikucyouson_nm like '%".$gc->keyword."%' ";
		$sql.=" OR l.property_nm like '%".$gc->keyword."%') ";
	}

	$sql.=" ORDER BY";
	$sql.=" l.shikucyouson_no";

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


	$row_count = $gc->db->get_row_count();
*/
	$i = 0;

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

		$shikucyouson_no = $rs->fields["shikucyouson_no"];
		$shikucyouson_nm = $rs->fields["shikucyouson_nm"];
		$cnt = $rs->fields["cnt"];
		echo "<div style=\"white-space:nowrap; margin: 2px 7px 5px; float:left;\">";
		echo "<a href=\"./buken_list.php?shikucyouson_no=".$shikucyouson_no."\">".f_hsc("・".$shikucyouson_nm." (".$cnt.")")."</a>";
		echo "</div>";

		$rs->move_next();

	}

	$rs->free_result();


}
Exemplo n.º 28
0
function out_html($gc) {

	$gc->anken_no = $_GET["anken_no"];

	$sql = "SELECT SQL_CALC_FOUND_ROWS";
	$sql.= " i.item_no,";
	$sql.= " i.anken_no,";
	$sql.= " i.buken_sbt,";
	$sql.= " i.menseki,";
	$sql.= " i.rank_no,";
	$sql.= " i.buken_shikucyouson_no,";
	$sql.= " i.mukou_flg,";
	$sql.= " i.moushikomibi, ";
	$sql.= " c.c_mukou_flg ";
	$sql.= "FROM";
	$sql.= " t_item i ";
	$sql.= "INNER JOIN";
	$sql.= " m_shikucyouson s ";
	$sql.= "ON";
	$sql.= " i.buken_shikucyouson_no = s.shikucyouson_no ";
	$sql.= "LEFT JOIN";
	$sql.= " (select item_no,company_no,c_mukou_flg from t_item_company where company_no=".$gc->login_company_no.") as c ";
	$sql.= "ON";
	$sql.= " i.item_no = c.item_no ";
	$sql.= "WHERE 0 = 0 and c.company_no=".$gc->login_company_no." ";
	if($gc->anken_no != ""){
		$sql.= "and i.anken_no like '%".$gc->anken_no."%' ";
	}


	$sql.= "ORDER BY";

	switch($_GET["si"]) {
	case "ank":
		$sql.= " i.anken_no".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "mbi":
		$sql.= " i.moushikomibi".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "sbt":
		$sql.= " i.buken_sbt".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "men":
		$sql.= " i.menseki".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "tod":
		$sql.= " s.todoufuken_no".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "shi":
		$sql.= " s.shikucyouson_no".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	case "muk":
		$sql.= " c.c_mukou_flg".(($_GET["sa"]=="desc") ? " DESC" : "")." ";
		break;
	default:
		$sql.= " i.item_no DESC ";
	}

	$sql.= f_get_limit($gc->pn, $gc->pl, C_ORDER_LIST_COL_CNT);

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

	$row_count = $gc->db->get_row_count();
	//ページャーの設定
	if($row_count > 0){
		$page_arr = f_page_arr("item_l.php", $row_count, $gc->pl, C_ORDER_LIST_COL_CNT, C_ORDER_PAGE_TAG_CNT);
	}

	//ソート関連
	$sort_mode["ank"] = "";
	$sort_mode["mbi"] = "";
	$sort_mode["sbt"] = "";
	$sort_mode["men"] = "";
	$sort_mode["tod"] = "";
	$sort_mode["shi"] = "";
	$sort_mode["muk"] = "";

	foreach ($sort_mode as $key => &$value) {
		if($key == $_GET["si"]){
			if($_GET["sa"] == "desc"){
				$value = " ▼";
			}else{
				$value = " ▲";
			}
		}
	}

?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<title>申込/対応状況</title>
<!-- *** stylesheet *** -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- *** javascript *** -->
<script type="text/javascript" src="js/listpage.js" charset="utf-8"></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 unload_page(){
	submit_flg = false;
}
window.onunload = unload_page;
// -->
</script>
</head>
<body>

<!-- Header -->
<div id="header">
	<div class="shell">
		<!-- Logo + Top Nav -->
		<?php tcom_header_logo_nav($gc) ?>
		<!-- End Logo + Top Nav -->
		<!-- Main Nav -->
		<?php tcom_header_main_nav2($gc, 1) ?>
		<!-- End Main Nav -->
	</div>
</div>
<!-- End Header -->

<!-- Container -->
<div id="container">
	<div class="shell">

		<!-- Small Nav -->
		<div class="small-nav">
			<a href="item_l.php">案件管理</a>
			<span>&gt;</span>
			申込み/対応状況
		</div>
		<!-- End Small Nav -->

		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>

			<!-- Content -->
			<div id="content">

				<!-- Box -->
				<div class="box">

					<!-- Form -->
					<div class="form">

						<form name="form_search" action="item_l.php" method="get" onsubmit="return false">
							<input name="mode" type="hidden" value="">

							<div class="box-size2 left">
								<p class="inline-field">
									<label style="display:inline;">案件番号:</label>
									<input name="anken_no" type="text" class="field size3" value="<?php echo f_hsc($gc->anken_no) ?>" />
									<button type="button" class="button color silver ml05" onclick="run_submit('form_search', 'search');">検索</button>
								</p>
							</div>

							<div class="cl">&nbsp;</div>

						</form>

					</div>
					<!-- End Form -->

					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left">申込み/対応状況</h2>
						<div class="right">
							<a href="item_csv.php" class="custom-button"><span>CSV出力</span></a>
						</div>
					</div>
					<!-- End Box Head -->

					<!-- Table -->
					<div class="table">

<?php if($row_count > 0){ ?>
						<!-- Pagging -->
						<div class="pagging">
							<div class="box-l">
								<?php echo $page_arr["cmes_str"].$page_arr["par1_str"].$page_arr["par2_str"]; ?>
							</div>
							<div class="box-c">
								<div class="margin-center">
									<?php echo $page_arr["back_str"].$page_arr["list_str"].$page_arr["deno_str"].$page_arr["next_str"]; ?>
								</div>
							</div>
							<div class="box-r">
								<label>表示件数:</label>
								<?php echo $page_arr["plst_str"] ?>
							</div>
						</div>
						<!-- End Pagging -->
<?php } ?>

						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr style="border-top:solid 1px #e0e0e0;">
								<th width="80" class="ac"><a href="item_l.php<?php echo f_sq("ank") ?>">案件番号</a><?php echo $sort_mode["ank"] ?></th>
								<th width="80" class="ac"><a href="item_l.php<?php echo f_sq("mbi") ?>">申込日</a><?php echo $sort_mode["mbi"] ?></th>
								<th width="80" class="ac"><a href="item_l.php<?php echo f_sq("sbt") ?>">種別</a><?php echo $sort_mode["sbt"] ?></th>
								<th width="80" class="ac"><a href="item_l.php<?php echo f_sq("men") ?>">延床面積</a><?php echo $sort_mode["men"] ?><br />(平米)</th>
								<th width="100" class="ac"><a href="item_l.php<?php echo f_sq("tod") ?>">都道府県</a><?php echo $sort_mode["tod"] ?></th>
								<th><a href="item_l.php<?php echo f_sq("shi") ?>">市区町村</a><?php echo $sort_mode["shi"] ?></th>
								<th width="50" class="ac"><a href="item_l.php<?php echo f_sq("muk") ?>">状態</a><?php echo $sort_mode["muk"] ?></th>
								<th width="70" class="ac">詳細</th>
							</tr>

<?php

	$i = 0;

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

		$item_no = $rs->fields["item_no"];
		$anken_no = $rs->fields["anken_no"];
		$buken_sbt = $rs->fields["buken_sbt"];
		$menseki = $rs->fields["menseki"];
		$rank_no = $rs->fields["rank_no"];
		$buken_shikucyouson_no = $rs->fields["buken_shikucyouson_no"];
		$mukou_flg = $rs->fields["mukou_flg"];
		$c_mukou_flg = $rs->fields["c_mukou_flg"];
		$moushikomibi = $rs->fields["moushikomibi"];

		$menseki = (float)$menseki;

		$moushikomi_d = substr($moushikomibi, 0, 4)."/".substr($moushikomibi, 5, 2)."/".substr($moushikomibi, 8, 2);
		$moushikomi_t = substr($moushikomibi, 11);

		$arr = fdiv_set_buken_sbt_array();
		$buken_sbt_nm = $arr[$buken_sbt];

		$arr = fdiv_set_rank_array();
		$rank_nm = $arr[$rank_no];

		$buken_shikucyouson_nm = fdb_get_name($gc, "m_shikucyouson", "shikucyouson_nm", "shikucyouson_no", $buken_shikucyouson_no);
		$todoufuken_no = fdb_get_name($gc, "m_shikucyouson", "todoufuken_no", "shikucyouson_no", $buken_shikucyouson_no);
		$todoufuken_nm = fdb_get_name($gc, "m_todoufuken", "todoufuken_nm", "todoufuken_no", $todoufuken_no);

		$odd = "";
		if(($i % 2)==1){
			$odd = " class=\"odd\"";
		}

		echo "<tr".$odd.">";
		echo "<td class=\"ac\">".f_hsc($anken_no)."</td>";
		echo "<td class=\"ac\">".$moushikomi_d."<br />".$moushikomi_t."</td>";
		echo "<td class=\"ac\">".f_hsc($buken_sbt_nm)."</td>";
		echo "<td class=\"ac\">".f_hsc($menseki)."</td>";
		echo "<td class=\"ac\">".f_hsc($todoufuken_nm)."</td>";
		echo "<td>".f_hsc($buken_shikucyouson_nm)."</td>";
		echo "<td class=\"ac\" style=\"color: ".($c_mukou_flg==1?"red":"blue").";\">".f_hsc($c_mukou_flg==1?"無効":"有効")."</td>";
		echo "<td class=\"ac\"><button type=\"button\" class=\"list-button\" onclick=\"location.href='item_e.php?mode=edit&item_no=".$item_no."';\">詳細</button></td>";
		echo "</tr>";

		$rs->move_next();

		$i++;

	}

	$rs->free_result();

	if($row_count==0){
		echo "<tr>";
		echo "<td colspan=\"8\" align=\"center\">データはありません。</td>";
		echo "</tr>";
	}

?>

						</table>

<?php if($row_count > 0){ ?>
						<!-- Pagging -->
						<div class="pagging">
							<div class="box-l">
								&nbsp;
							</div>
							<div class="box-c">
								<div class="margin-center">
									<?php echo $page_arr["back_str"].$page_arr["list_str"].$page_arr["deno_str"].$page_arr["next_str"]; ?>
								</div>
							</div>
							<div class="box-r">
								<label>表示件数:</label>
								<?php echo $page_arr["plst_str"] ?>
							</div>
						</div>
						<!-- End Pagging -->
<?php } ?>

					</div>
					<!-- Table -->

				</div>
				<!-- End Box -->
				<div class="cl">&nbsp;</div>

			</div>
			<!-- End Content -->
			<div class="cl">&nbsp;</div>

		</div>
		<!-- Main -->
	</div>
</div>
<!-- End Container -->

<!-- Footer -->
	<?php tcom_footer($gc) ?>
<!-- End Footer -->

</body>
</html>
<?php
}
Exemplo n.º 29
0
function f_page_web($thisphp, $cnt, $def_page_line_num = null, $def_col = null, $page_cnt = null)
{
    /**************************************************
     * $def_page_line_num :ページ内件数 デフォルト 30
     * $def_col           :カラム数     デフォルト  1
     * $page_cnt          :表示ページ数 デフォルト 10
     **************************************************/
    if (!is_numeric($def_page_line_num)) {
        $def_page_line_num = 30;
    }
    if (!is_numeric($def_col)) {
        $def_col = 1;
    }
    if (!is_numeric($page_cnt)) {
        $page_cnt = 10;
    }
    $page_num = $_GET["pn"];
    $page_line_num = $_GET["pl"];
    $qs = "";
    foreach ($_GET as $key => $value) {
        if ($key != "pn" and $key != "pl") {
            if (empty($qs)) {
                $qs .= "?";
            } else {
                $qs .= "&";
            }
            if (is_array($value)) {
                $loop_flg = false;
                foreach ($value as $key2 => $value2) {
                    if ($loop_flg) {
                        $qs .= "&";
                    }
                    $loop_flg = true;
                    $qs .= $key . "%5B%5D=" . urlencode($value2);
                }
            } else {
                $qs .= $key . "=" . urlencode($value);
            }
        }
    }
    $thisphp .= $qs;
    if (empty($page_num) or !is_numeric($page_num) or $page_num < 1) {
        $page_num = 1;
    } else {
        $page_num = abs($page_num);
    }
    if (empty($page_line_num) or !is_numeric($page_line_num) or $page_line_num < 1) {
        $page_line_num = $def_page_line_num;
    } else {
        $page_line_num = abs($page_line_num);
    }
    if (strstr($thisphp, '?')) {
        $thisphp .= "&pl=" . $page_line_num;
    } else {
        $thisphp .= "?pl=" . $page_line_num;
    }
    $all_page_num = ceil(ceil($cnt / $def_col) / $page_line_num);
    $back_page = $page_num - 1;
    $next_page = $page_num + 1;
    if ($all_page_num > $page_cnt) {
        $p = $page_num - floor($page_cnt / 2);
        if ($p <= 0) {
            $p = 1;
        }
        if ($p > $all_page_num - $page_cnt + 1) {
            $p = $all_page_num - $page_cnt + 1;
        }
    } else {
        $p = 1;
        $page_cnt = $all_page_num;
    }
    //現在より前のページが存在すれば戻るリンクを作成
    if ($back_page >= 1) {
        $back_str = '<a style=\'margin:0px 5px;\' href="' . $thisphp . '&pn=' . $back_page . '">' . f_hsc("<<前") . '</a>';
    } else {
        //		$back_str='<b>'.f_hsc("前へ").'</b>';
    }
    //現在より後のページが存在すれば進むリンクを作成
    if ($next_page <= $all_page_num) {
        $next_str = '<a style=\'margin:0px 5px;\' href="' . $thisphp . '&pn=' . $next_page . '">' . f_hsc("次>>") . '</a>';
    } else {
        //		$next_str='<b>'.f_hsc("次へ").'</b>';
    }
    for ($i = 0; $i < $page_cnt; $i++) {
        if ($p + $i != $page_num) {
            $page_str .= '<a style=\'margin:0px 5px;\' href="' . $thisphp . '&pn=' . ($p + $i) . '">' . ($p + $i) . '</a>';
        } else {
            $page_str .= '<b style=\'margin:0px 5px;\' >' . ($p + $i) . '</b>';
        }
    }
    $page["back_str"] = $back_str;
    $page["page_str"] = $page_str;
    $page["next_str"] = $next_str;
    $page["page_cnt"] = $page_cnt;
    $page["page_inf"] = $page_num . "/" . ceil($cnt / ($def_page_line_num * $def_col));
    return $page;
}
Exemplo n.º 30
0
function out_html_company_r($gc) {

	$sql = "SELECT SQL_CALC_FOUND_ROWS";
	$sql.= " s.shikucyouson_no,";
	$sql.= " s.shikucyouson_nm, ";
	$sql.= " c.shikucyouson_kingaku ";
//	$sql.= " c.shikucyouson_kingaku, ";
//	$sql.= " c.shikucyouson_ritu ";
	$sql.= "FROM";
	$sql.= " m_shikucyouson s ";
	$sql.= "INNER JOIN";
	$sql.= " (";
	$sql.= " SELECT";
	$sql.= "  shikucyouson_no,";
	$sql.= "  shikucyouson_kingaku";
//	$sql.= "  shikucyouson_kingaku,";
//	$sql.= "  shikucyouson_ritu";
	$sql.= " FROM";
	$sql.= "  m_company_area";
	$sql.= " WHERE";
	$sql.= "  company_no = ".$gc->company_no;
	$sql.= " ) c ";
	$sql.= "ON";
	$sql.= " s.shikucyouson_no = c.shikucyouson_no ";
	$sql.= "WHERE";
	$sql.= " s.todoufuken_no = ".$gc->todoufuken_no." ";
	$sql.= "ORDER BY";
	$sql.= " s.sort_no ";

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

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

?>

<div class="" style="width:900px;" id="sortable<?php echo $gc->todoufuken_no ?>">

<?php

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

		$shikucyouson_no = $rs->fields["shikucyouson_no"];
		$shikucyouson_nm = $rs->fields["shikucyouson_nm"];
		$shikucyouson_kingaku = $rs->fields["shikucyouson_kingaku"];
//		$shikucyouson_ritu = $rs->fields["shikucyouson_ritu"];

		echo "<div style=\"white-space:nowrap; margin: 2px 7px 5px; float:left;\">";
		echo f_hsc("・".$shikucyouson_nm);
		echo "<div style=\"text-align:right;\">".f_hsc($shikucyouson_kingaku)."</div>";
//		echo "<div style=\"text-align:right;\">".f_hsc($shikucyouson_ritu)."</div>";
		echo "</div>";

		$rs->move_next();

	}

	$rs->free_result();

?>

</div>

<?php
}