SOCMED/application/view/login.php
2020-01-02 21:48:25 +07:00

105 lines
4.2 KiB
PHP

<!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" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TEAM</title>
<link rel="stylesheet" type="text/css" href="asset/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="asset/css/style.css" />
<script type="text/javascript">
window.onload = function () {
var seconds = 3;
setTimeout(function () {
document.getElementById("notif").style.display = "none";
}, seconds * 1000);
};
</script>
</head>
<body>
<div class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="container-fluid">
<div class="navbar-header">
<a href="<?php echo base_url ?>"><img src="asset/image/pic_0000_Group-1-copy.png" height="100%"/></a>
</div>
</div>
</div>
</div>
<div class="container">
<?php if(isset($_SESSION['notif-alert'])) { ?>
<div class="alert alert-warning" id="notif" style="height:100%;padding:3px;text-align:center;"><?php echo $_SESSION['notif-alert'] ?></div>
<?php } ?>
<div class="col-lg-6">
<div class="box450">
<div class="container">
</div>
</div>
</div>
<div class="col-lg-6">
<div class="box200">
<form class="form-horizontal" role="form" method='post' action='<?php echo base_url.'index.php'?>'>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label"> Username</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="inputEmail3" name='user' placeholder="Username" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="inputPassword3" name='pass' placeholder="Password" required>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<input type='hidden' name='action' value='login' />
<button type="submit" class="btn btn-default">Sign in</button>
</div>
</div>
</form>
</div>
<div class="box200">
<form class="form-horizontal" role="form" method="post" action='<?php echo base_url.'index.php'?>'>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">Username</label>
<div class="col-sm-10">
<input type="text" autocomplete="off" name='rUser' class="form-control" id="inputPassword3" placeholder="Username" required>
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label"> Email</label>
<div class="col-sm-10">
<input type="email" autocomplete="off" name='rEmail' class="form-control" id="inputEmail3" placeholder="Email" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="password" name='rPass' class="form-control" id="inputPassword3" placeholder="Password" required>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<input type='hidden' name='action' value='register' />
<button type="submit" class="btn btn-default">Register</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="navbar navbar-inverse navbar-fixed-bottom">
<div class="container">
<p class="navbar-text">Website By IFTEAM</p>
</div>
</div>
</body>
</html>