Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.79 KB | None | 0 0
  1. <?php include("login.php"); ?>
  2.  
  3.  
  4. <!DOCTYPE html>
  5. <html lang="en">
  6.   <head>
  7.     <meta charset="utf-8">
  8.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9.     <meta name="viewport" content="width=device-width, initial-scale=1">
  10.     <title>Secret Diary</title>
  11.  
  12.     <!-- Bootstrap -->
  13.     <link href="css/bootstrap.min.css" rel="stylesheet">
  14.  
  15.     <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  16.     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  17.     <!--[if lt IE 9]>
  18.       <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  19.       <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  20.     <![endif]-->
  21.    
  22.    <style>
  23.    
  24.         .navbar-brand{
  25.             font-size:1.8em;
  26.            
  27.         }
  28.        
  29.         #topContainer{
  30.             background-image:url("background.jpg");
  31.             height:400px;
  32.             width:100%;
  33.             background-size:cover; 
  34.         }
  35.        
  36.         #topRow {
  37.             margin-top:100px;
  38.             text-align:center; 
  39.         }
  40.    
  41.         #topRow h1{
  42.             font-size:300%;
  43.    
  44.         }
  45.        
  46.         .bold{
  47.             font-weight:bold;
  48.         }
  49.    
  50.         .marginTop{
  51.             margin-top:30px;
  52.        
  53.         }
  54.        
  55.         .center{
  56.             text-align:center;
  57.        
  58.         }
  59.        
  60.         .title {
  61.             margin-top:100px;
  62.             font-size:300%;
  63.            
  64.         }
  65.        
  66.         #footer{
  67.             background-color: #B0D1FB;
  68.             padding-top:70px;
  69.             width:100%;
  70.         }
  71.        
  72.         ,marginBottom{
  73.             margin-bottom:30px;
  74.            
  75.         }
  76.        
  77.         .appstoreImage{
  78.             width:250px;
  79.        
  80.         }
  81.    </style>
  82.    
  83.   </head>
  84.  
  85. <body data-spy="scroll" data-target=".navbar-collapse">
  86.  
  87.   <div class="navbar navbar-default navbar-fixed-top">
  88.  
  89.     <div class="container">
  90.    
  91.         <div class="navbar-header">
  92.        
  93.             <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  94.            
  95.                 <span class="icon-bar"></span>
  96.                
  97.                 <span class="icon-bar"></span>
  98.                
  99.                 <span class="icon-bar"></span>
  100.                    
  101.             </button>
  102.            
  103.             <a class="navbar-brand">Secret Diary</a>
  104.            
  105.         </div>
  106.        
  107.         <div class="collapse navbar-collapse">
  108.        
  109.             <form class="navbar-form navbar-right" method="post">
  110.            
  111.                 <div class="form-group">
  112.                
  113.                     <input type="email" name="loginemail" placeholder="Email" class="form-control" value="<?php echo addslashes($_POST['loginemail']); ?>" />
  114.                                                                                                    
  115.                 </div>
  116.                
  117.                 <div class="form-group">
  118.                
  119.                     <input type="password" name="loginpassword" placeholder="Password" class="form-control" value="<?php echo addslashes($_POST['loginpassword']); ?>" />
  120.                                                                                                            
  121.                 </div>
  122.                
  123.                 <input type="submit" name= "submit" class="btn btn-success" value="Log In">
  124.                
  125.             </form>
  126.            
  127.         </div>
  128.        
  129.     </div> 
  130.    
  131.   </div>
  132.  
  133.  
  134.  <div class="container contentContainer" id="topContainer">
  135.         <div class="row">
  136.        
  137.             <div class="col-md-6 col-md-offset-3" id="topRow">
  138.              
  139.              <h1 class="marginTop">Secret Diary</h1>
  140.              
  141.              <p class="lead">Your own private diary, with you wherever you go.</p>
  142.              
  143.              
  144.              <?php
  145.              
  146.                 if ($error) {
  147.                
  148.                     echo '<div class="alert alert-danger">'.addslashes($error).'</div>';
  149.                
  150.                 }
  151.                
  152.                 if ($message) {
  153.                
  154.                     echo '<div class="alert alert-success">'.addslashes($message).'</div>';
  155.                
  156.                 }
  157.              
  158.              ?>
  159.              
  160.              
  161.              <p class="bold marginTop">Interested? Sign Up Below!</p>
  162.              
  163.              <form class="marginTop" method="post">
  164.              
  165.                 <div class="form-group">
  166.                
  167.                     <label for="email">Email Address</label>
  168.                    
  169.                 <input type="email" name="email" class="form-control" placeholder="Your Email" value="<? echo addslashes($_POST['email']); ?>" />
  170.                                                                                                
  171.                 </div>
  172.                
  173.                 <div class="form-group">
  174.                
  175.                     <label for="password">Password</label>
  176.                    
  177.                 <input type="password" name="password" class="form-control" placeholder="Password" value="<? echo addslashes($_POST['password']); ?>" />
  178.                                                                                                  
  179.                 </div>
  180.  
  181.                 <input type="submit" name="submit" value="Sign Up" class="btn btn-success btn-lg marginTop"/>
  182.                
  183.              </form>
  184.              
  185.              </div>
  186.          
  187.         </div>
  188.        
  189.   </div>
  190.  
  191.    
  192.  
  193.    
  194.    
  195.  
  196.     <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  197.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
  198.    
  199.     <!-- Include all compiled plugins (below), or include individual files as needed -->
  200.    
  201.     <script src="js/bootstrap.min.js"></script>
  202.    
  203.     <script>
  204.    
  205.    
  206.         $(".contentContainer").css("min-height",$(window).height());
  207.    
  208.     </script>
  209.    
  210.   </body>
  211. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement