Edit login.php via Editor
This commit is contained in:
parent
e64eb23c43
commit
84395a5c8b
60
login.php
60
login.php
@ -45,45 +45,35 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Login - Bhuddi School</title>
|
<title>Login - Bhuddi School Student Management System</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="assets/css/custom.css">
|
<link rel="stylesheet" href="assets/css/login.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container mt-5">
|
<div class="login-container">
|
||||||
<div class="row justify-content-center">
|
<div class="login-box">
|
||||||
<div class="col-md-6">
|
<h1 class="login-title">Project Name</h1>
|
||||||
<div class="card">
|
<?php if(!empty($success)): ?>
|
||||||
<div class="card-header">
|
<div class="alert alert-success" role="alert">
|
||||||
Login
|
<?php echo $success; ?>
|
||||||
</div>
|
|
||||||
<div class="card-body">
|
|
||||||
<?php if(!empty($success)): ?>
|
|
||||||
<div class="alert alert-success" role="alert">
|
|
||||||
<?php echo $success; ?>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if(!empty($error)): ?>
|
|
||||||
<div class="alert alert-danger" role="alert">
|
|
||||||
<?php echo $error; ?>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<form action="login.php" method="POST">
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="username" class="form-label">Username</label>
|
|
||||||
<input type="text" class="form-control" id="username" name="username" required>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<label for="password" class="form-label">Password</label>
|
|
||||||
<input type="password" class="form-control" id="password" name="password" required>
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn btn-primary">Login</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="card-footer text-center">
|
|
||||||
Don't have an account? <a href="signup.php">Sign up here</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if(!empty($error)): ?>
|
||||||
|
<div class="alert alert-danger" role="alert">
|
||||||
|
<?php echo $error; ?>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<form action="login.php" method="POST">
|
||||||
|
<div class="mb-3">
|
||||||
|
<input type="text" class="form-control" id="username" name="username" placeholder="Username" required>
|
||||||
|
</div>
|
||||||
|
<div class="mb-3">
|
||||||
|
<input type="password" class="form-control" id="password" name="password" placeholder="Password" required>
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-login">Login</button>
|
||||||
|
</form>
|
||||||
|
<div class="login-footer">
|
||||||
|
Don't have an account? <a href="signup.php">Sign up here</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user