<!DOCTYPE html>
<html xmlns="https://www.w3.org/1999/xhtml">
	<head>
		<title>Login Dashboard</title>
		<?php
			include "../libs/functiondb.php";
			$mdb = mysqli_query($koneksi, "SELECT * FROM cmas_metadata");
			$mdt = mysqli_fetch_array($mdb);
		?>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
		<link href="assets/css/loginpage.css" rel="stylesheet" type="text/css" />
		<link href="../assets/images/<?php echo $mdt['metadata_gambar']; ?>" rel="shortcut icon" type="image/x-icon" />
		<link rel="preconnect" href="https://fonts.googleapis.com">
		<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
		<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap" rel="stylesheet">
	</head>
	<Body>
		<div id="container">
			<div id="containerbox">
				<div id="containerbg">
					<div id="form">
						<div id="formlogin">
							<div id="formcover">
								<div class="formcovertitle">
									DASHBOARD
								</div>
								<div class="formcoversubtitle">
									<?php 
										include "../libs/functiondb.php";
										$ldb = mysqli_query($koneksi, "SELECT * FROM cmas_logo"); 
										$ldt = mysqli_fetch_array($ldb);
										echo "$ldt[logo_nama]";
									?>
								</div>
								<form action="login.php?action=in" method="post" onSubmit="return validasi(this)">
									<input name="admin_username" type="text" class="formcoverinput" placeholder="Username" required />
									<input name="admin_password" type="password" class="formcoverinput" placeholder="Password" required />
									<div class="formcoverbutton">
										<input type="submit" value="LOGIN" name="login" class="loginbutton">
									</div>
								</form>
							</div>
						</div>
					</div>
					<div id="copyright">
						<div class="copyrightlink">
							<?php echo "<a href='https://$mdt[metadata_url]' target='_blank'>VIEW WEBSITE</a>"; ?>
						</div>
						<div class="copyrightcopy">
							<?php echo $mdt['metadata_copyright']; ?>
						</div>
						<div class="copyrightdeveloped">
							<a href="https://www.maliniart.com/" target="_blank"><span id="malini">MALINI</span>ARTSTUDIO</a>
						</div>
					</div>
				</div>
			</div>
		</div>
	</Body>
</html>	