Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>File Box</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!--Bootstrap-->
- <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
- <link href="css/custom.css" rel="stylesheet">
- <script type="text/javascript" src="js/respond.js"></script>
- </head>
- <body>
- <div class="container">
- <!-- navigation -->
- <!-- navigation -->
- <div class="row">
- <nav class="navbar navbar-default navbar-fixed-top">
- <div class="container">
- <div class="navbar-header">
- <a href="#" class="navbar-brand">File Box</a>
- </div>
- </div>
- </nav>
- </div>
- <!-- end of navigation -->
- <div class="row" id="customRow">
- <div class="col-md-5">
- <img src="images/box.png">
- <h4>Access your files everywhere!</h4>
- </div>
- <div class="col-md-6 col-md-offset-1">
- <ul class="nav nav-tabs">
- <li><a href="#signin" data-toggle="tab">Sign in</a></li>
- <li><a href="#signup" data-toggle="tab">Sign up</a></li>
- </ul>
- <!--Tab contents -->
- <div class="tab-content">
- <!-- Sign in -->
- <div class="tab-pane fade active in" id="signin">
- <p><?php echo $message; ?></p>
- <form action="auth.php" method="POST" class="form-horizontal" role="form">
- <div class="form-group">
- <label for="Email" class="col-sm-2 control-label">Email</label>
- <div class="col-sm-8">
- <input type="email" name="email" required="true" class="form-control" id="Email" placeholder="Email">
- </div>
- </div>
- <div class="form-group">
- <label for="Password" class="col-sm-2 control-label">Password</label>
- <div class="col-sm-8">
- <input type="password" name="password" required="true" class="form-control" id="Password" placeholder="Password">
- </div>
- </div>
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <button class="btn btn-default" name="signin" />Sign in
- </div>
- </div>
- </form>
- </div>
- <!-- Sign up -->
- <div class="tab-pane fade active" id="signup">
- <form action="auth.php" method="POST" class="form-horizontal" role="form">
- <?php echo $alreadExists; ?>
- <div class="form-group">
- <label for="firstname" class="col-sm-2 control-label">First name</label>
- <div class="col-sm-8">
- <input type="text" name="fname" required="true" class="form-control" id="firstname" placeholder="First name">
- </div>
- </div>
- <div class="form-group">
- <label for="lastname" class="col-sm-2 control-label">Last name</label>
- <div class="col-sm-8">
- <input type="text" name="lname" required="true" class="form-control" id="lastname" placeholder="Last name">
- </div>
- </div>
- <div class="form-group">
- <label for="Email" class="col-sm-2 control-label">Email</label>
- <div class="col-sm-8">
- <input type="email" name="email" required="true" class="form-control" id="Email" placeholder="Email">
- </div>
- </div>
- <div class="form-group">
- <label for="Password" class="col-sm-2 control-label">Password</label>
- <div class="col-sm-8">
- <input type="password" name="password" required="true" class="form-control" id="Password" placeholder="Password">
- </div>
- <p><?php echo $emailErr; ?></p>
- </div>
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <button class="btn btn-primary" name="submit" />Sign Up
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- <footer class="row">
- <p><small>Distributed systems course work (CSD4020), All rights reserved.</small></p>
- <?php echo $output; ?>
- </footer>
- </div><!-- end of container -->
- <!-- javascript -->
- <script src="http://code.jquery.com/jquery-latest.min.js"></script>
- <script src="js/bootstrap.min.js"></script>
- <script>
- $(function () {
- $('.nav-tabs a:first').tab('show');
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement