Advertisement
Guest User

account setting

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