<?php
$CurrentPage="login.php";
$CurrentPageName="ログイン";
$base_path = $_SERVER['DOCUMENT_ROOT'];
$base_path = str_replace("/html", "/", $base_path);

require_once($base_path."autoid2024/config.php");	//DB接続
require_once($base_path."autoid2024/module/var_set.inc");	//VarSetUp
//出展社専用サイト終了時にコメントアウト
//require_once($base_path."autoid2024/module/usr_loginchk.inc");	//header
require_once($base_path."autoid2024/views/usr_header.inc");	//header

//基準のexh_cd
if (isset($_GET['exh'])) {
	$exh = $_GET['exh'];
}

//print("セッション：".$_SESSION['liusr_autoid2024']."<br />");
?>

<div id="adm_content">

<?php 
if($exh != ""){
	$stmt = $pdo->prepare('Select exh_nm From exh_mst 
		Where exh_cd = :exh AND (del_flg is null or del_flg = \'\')');
	$stmt -> bindValue(':exh', $exh, PDO::PARAM_INT);
	$stmt->execute();
	while ($ekh_row = $stmt->fetch(PDO::FETCH_ASSOC)) {
		$exh_nm = $ekh_row["exh_nm"];
	}
	print("<p class=\"tenjikai\">".$exh_nm."</p>");
}
?>

<?php print($msg);  ?>
<p style="font-size: 16px;">出展社専用サイトは終了いたしました。</p>

<!--出展社専用サイト終了時にコメントアウト-->
<!--

<div id="login-tb">
<form action="login.php" method="post">
<?php print("<table cellspacing=\"0\" cellpadding=\"0\">");  ?>
<tr>
<td>ログインID：</td>
<td><input type="text" name="uid" value="<?php print($uid);  ?>" /></td>
</tr>
<tr>
<td>パスワード：</td>
<td><input type="password" name="pswd" value="<?php print($pswd);  ?>" /></td>
</tr>

<?php
if($exh != ""){
	print("</table>\n");
	print("<input type=\"hidden\" name=\"exh\" value=\"".$exh."\" />\n");
} else {
	print("<tr>\n");
	print("<td>展示会：</td>\n");
	print("<td><select name=\"exh\">\n");
	print("<option value=\"\">選択してください</option>\n");
		$stmt_ekh_ = $pdo->prepare('Select exh_cd, exh_nm From exh_mst WHERE del_flg is null Order By exh_sort');
		$stmt_ekh_->execute();
		while ($ekh_row = $stmt_ekh_->fetch(PDO::FETCH_ASSOC)) {
			print("<option value=\"". $ekh_row["exh_cd"]."\"");
			if($exh == $ekh_row["exh_cd"]){
				print(" selected=\"selected\"");	
			}
			print(">".$ekh_row["exh_nm"]."</option>");
		} 
	print("</select></td>\n");
	print("</tr>\n");
	print("</table>\n");
}
?>
<p class="mgnb20">
<input type="submit" value="ログイン" />
<input type="hidden" name="act" value="login" />
</p>
</form>
</div>
-->
</div>
<?php
require_once($base_path."autoid2024/views/footer.inc");	//footer
?>
