Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if($_SESSION){
- if($_SESSION['idrole']== 1)
- {
- header("Location: ../technician/index.php");
- }
- if($_SESSION['idrole']== 2)
- {
- header("Location: ../clerk/index.php");
- }
- if($_SESSION['idrole']== 3)
- {
- header("Location: ../director/index.php");
- }
- }
- include 'checklogin.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 name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <title>PCC Login</title>
- </head>
- <body>
- <?php include 'header login.php';?>
- <div class="container">
- <div class="row">
- <div class="col-md-6 col-md-offset-3">
- <div class="panel panel-login">
- <div class="panel-heading">
- <div class="row">
- <div class="col-xs-6">
- <a href="login.php" class="active" id="loginlink">Login</a>
- </div>
- <div class="col-xs-6">
- <a href="register.php" id="registerlink">Register</a>
- </div>
- </div>
- <hr>
- </div>
- <div class="panel-body">
- <div class="row">
- <div class="col-lg-12">
- <form id="login-form" action="checklogin.php" method="post" role="form" style="display: block;">
- <div class="form-group">
- <input type="text" name="username" id="username" tabindex="1" class="form-control" placeholder="Username" required="required">
- </div>
- <div class="form-group">
- <input type="password" name="password" id="password" tabindex="2" class="form-control" placeholder="Password" required="required">
- </div>
- <div class="form-group text-center">
- <input type="checkbox" tabindex="3" class="" name="remember" id="remember">
- <label for="remember"> Remember Me</label>
- </div>
- <div class="form-group">
- <div class="row">
- <div class="col-sm-6 col-sm-offset-3">
- <input type="submit" name="login-submit" id="login-submit" tabindex="4" class="form-control btn btn-login" value="Login">
- </div>
- <?php echo $error; ?>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement