Advertisement
Guest User

Untitled

a guest
Nov 29th, 2017
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.73 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html >
  3. <head>
  4.   <title>Portfolio</title>
  5.   <link href='https://fonts.googleapis.com/css?family=Titillium+Web:400,300,600' rel='stylesheet' type='text/css'>
  6.   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
  7.   <link rel="stylesheet" type="text/css" href="../css/font-awesome.css">
  8.       <link rel="stylesheet" href="../css/Otherstyle.css">
  9.       <link rel="stylesheet" href="../css/form.css">
  10.       <meta charset="utf-8">  <!-- Charset Definition-->
  11.       <meta name="viewport" content="width=device-width"> <!-- To Make Website Responsive to look good on all devices-->
  12.       <meta name="description" content="Fitness Fuel ">  <!-- SEO Purposes-->
  13.       <meta name="keywords" content="Fitness, Fuel, Gym, Health"> <!-- SEO Purposes-->
  14.       <meta name="Author" content="Alisa Hodge, Vanisha Munroe, Travon Sheoprashad, Cleadon Brummel">  <!-- SEO Purposes-->
  15.  
  16.     <style>
  17.         .head{
  18.             font-family: Arial;
  19.             font-size:90px;
  20.             text-rendering: auto;
  21.  
  22.         }
  23.  
  24.     </style>
  25.  
  26. </head>
  27.  
  28. <body>
  29.  
  30.  
  31.   <!--                                             Branding Area                                    -->
  32.   <header>
  33.   <div class="container">
  34.    <div id="BrandingArea">
  35.     <h1><span class="highlight"><a href="Index.html" style="padding-left: 20px;">The Fitness</a></span> <a href="#"><span style="color: white; padding: -20px;">Fuel</span></a></h1>
  36.    </div>
  37.    <nav>
  38.     <ul>
  39.      <li><a href="Home.html">Home</a></li>
  40.       <li><a href="Find-a-plan.html">Find a Plan</a></li>
  41.       <li class="current"><a href="#">Portfolio</a></li>
  42.      <li><a href="Nutrition.html">Nutrition</a></li>
  43.      <li><a href="#">Community</a></li>
  44.  
  45.      </li>
  46.     </ul>
  47.    </nav>
  48.   </div>
  49.   </header>
  50.   <!--                                             Branding Area End                               -->
  51.  
  52.   <!--                                            Showcase Image area                               -->
  53.   <section id="showcase-Nutrition">
  54.  
  55.       <div class="container">
  56.         <h1 class="head">PROGRESS/PORTFOLIO PAGE</h1>
  57.       </div>
  58.  
  59.   </section>
  60.   <!--                                                Showcase End                                     -->
  61.  
  62.  
  63.   <!--                                            News Letter Section                                   -->
  64.   <section id="newsletter">
  65.     <div class="container">
  66.       <h1 style="position:relative; top: 20px;">Subscribe To Our Newsletter</h1>
  67.       <form>
  68.         <input type="email" placeholder="Enter Email">
  69.         <button type="submit" class ="btn btn-primary my-btn" onclick="SubScribeAlert()">Subscribe</button>
  70.       </form>
  71.     </div>
  72.   </section>
  73.  
  74.   <!--                                            News Letter Section End                                   -->
  75.  
  76.   <!--                                            Boxes on the Bottom-Font awesome Elements                 -->
  77.   <section id="boxes">
  78.     <div class="container">
  79.  
  80.  
  81. <?php
  82. //require ("../includes/config.php");
  83. require ("../includes/constants.php");
  84. require ("../includes/functions.php");
  85.  
  86. $servername = "localhost";
  87. $username = "root";
  88. $password = "";
  89. $dbname = "fitnessfuel";
  90.  
  91. // Create connection
  92. $conn = mysqli_connect($servername, $username, $password, $dbname);
  93.  
  94.  
  95. if ($_SERVER["REQUEST_METHOD"] == "GET") {
  96.       // else render form
  97.       render("acc_form.php", array("title" => "Setting"));
  98.   }
  99.  
  100.  
  101. // if form was submitted
  102. if ($_SERVER["REQUEST_METHOD"] == "POST"){
  103.   if (empty($_POST["weight"]) || empty($_POST["Tweight"])){
  104.  
  105.           echo("Please enter new weight or new Target weight.");
  106.  
  107. }
  108.       $result = query("UPDATE users (weight, target_weight) VALUES(?, ?)", $_POST["weight"], $_POST["Tweight"]);
  109.  
  110.  
  111.  
  112.  
  113.         if($result == false) {
  114.             $error_message = "Try again!";}
  115.  
  116.             else {$success_message = "Updated!";}
  117.  
  118.  
  119.  
  120.  
  121. }
  122.  
  123.  ?>
  124.  
  125. <center>
  126.  
  127.   <h2><a href="logout.php" class="btn btn-primary my-btn" style="font-weight: bold; text-decoration:none;text-transform:uppercase;position:relative;">Log Out</a></h2>
  128. </center>
  129.  
  130.  
  131.       </div>
  132.     </div>
  133.   </section>
  134.  
  135.   <!--                                            Boxes on the Bottom-Font awesome Elements End                 -->
  136.  
  137.   <!--                                            Footer Begin                                                  -->
  138.   <footer>
  139.  
  140.   <ul class="social-media"
  141.  <li><a><span class="fa fa-phone"></span></a></li><a style="font-family:Raleway; font-weight: normal; position:relative; bottom: 5px; left: 5px;font-size: 15px">5922272216</a>
  142.   <li><a><span class="fa fa-phone"></span></a></li><a style="font-family:Raleway; font-weight: normal; position:relative; bottom: 5px; left: 5px;font-size: 15px">5922272229</a>
  143.  
  144.   </ul>
  145.  
  146.   <ul class="social-media">
  147.       <li><a href="https://www.facebook.com/" target="_blank"><span class="fa fa-facebook"></span></a></li>
  148.       <li><a href="https://twitter.com/?lang=en" target="_blank"><span class="fa fa-twitter"></span></a></li>
  149.       <li><a href="https://www.pinterest.com/" target="_blank"><span class="fa fa-pinterest"></span></a></li>
  150.       <li><a href="https://plus.google.com/" target="_blank"><span class="fa fa-google-plus"></span></a></li>
  151.       <li><a href="https://dribbble.com/" target="_blank"><span class="fa fa-dribbble"></span></a></li>
  152.       <li><a href="https://www.behance.net/" target="_blank"><span class="fa fa-behance"></span></a></li>
  153.   </ul>
  154.   <p>Lorem ipsum dolor sit amet &copy; 2017</p>
  155.   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sed sem nulla.</p>
  156.   <div class="links">
  157.   <a href="#">Something |</a>
  158.   <a href="#">Something Else |</a>
  159.   <a href="#">Another Something |</a>
  160.   <a href="#">Yet another something |</a>
  161.   <a href="#">Something 2.0 |</a>
  162.   <a href="#">Log In / Register |</a>
  163.   <a>Business ID: 7705551</a>
  164.   </div>
  165.   </footer>
  166.   <!--                                            Footer  End                                                  -->
  167.  
  168.  
  169.   <script>
  170.  
  171.  
  172.       var acc = document.getElementsByClassName("accordion");
  173.       var i;
  174.  
  175.       for (i = 0; i < acc.length; i++) {
  176.          acc[i].onclick = function(){
  177.              this.classList.toggle("active");
  178.              var panel = this.nextElementSibling;
  179.              if (panel.style.display === "block") {
  180.                  panel.style.display = "none";
  181.              } else {
  182.                  hideAll();
  183.                  panel.style.display = "block";
  184.              }
  185.          }
  186.      }
  187.  
  188.      function hideAll(){
  189.          var panels = document.getElementsByClassName("panel");
  190.  
  191.          for (var i = 0; i < panels.length; i++) {
  192.            panels[i].style.display = "none";
  193.          }
  194.      }
  195.  </script>
  196.  
  197.  
  198. </body>
  199.  
  200.  
  201. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement