<?php
$person_id = (get_magic_quotes_gpc()) ? $_GET["person_id"] : addslashes($_GET["person_id"]);
$person_id = '5411390001226';
$mod = (get_magic_quotes_gpc()) ? $_GET["mod"] : addslashes($_GET["mod"]);
$mod = "idoc";
$url = "http://web.nongkhai2.go.th/amssplus/index.php?option=idocument&task=book_pass";
/*$level_pass = (get_magic_quotes_gpc()) ? $_GET["level_pass"] : addslashes($_GET["level_pass"]);
$ref_id = (get_magic_quotes_gpc()) ? $_GET["ref_id"] : addslashes($_GET["ref_id"]);
$id = (get_magic_quotes_gpc()) ? $_GET["id"] : addslashes($_GET["id"]); */
?>
<?php
/** ensure this file is being included by a parent file */
//defined( '_VALID_' ) or die( 'Direct Access to this location is not allowed.' );
require_once "amssplus_connect.php";
require_once "modules/permission/time_inc.php";
$sql_chk = "select * from system_user where person_id='$person_id'";
$dbquery_chk = mysqli_query($connect,$sql_chk);
$result1_chk = mysqli_fetch_array($dbquery_chk);
$username = $result1_chk['username'];
$pass = $result1_chk['userpass'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Stacked form</h2>
<form action="index_line_pass.php" method="post" name="loginForm" id="loginForm">
<div class="form-group">
<label for="username">Email:</label>
<input type="text" class="form-control" id="username" placeholder="Enter username" name="username" value="<?php echo $username?>"/>
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" id="pass" placeholder="Enter password" name="pass" value="<?php echo $pass?>"/>
</div>
<button type="submit" class="btn btn-primary">เข้าสู่ระบบ</button>
</form>
</div>
</body>
</html>