Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. <?php
  2.  
  3. $christmasCountdown = true;
  4.  
  5. if (time() <= strtotime('2017-12-25')) {
  6. session_start();
  7. if($_SESSION["Admin"] != true){
  8. header("Location: christmasCountdown.php");
  9. die();
  10. }
  11. }
  12.  
  13.  
  14.  
  15. ?>
  16. <!DOCTYPE html>
  17. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  18. <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
  19. <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
  20. <!--[if gt IE 8]><!-->
  21. <html class="no-js"> <!--<![endif]-->
  22. <head>
  23. <title>Tangz Seedbank</title>
  24.  
  25. <!-- meta -->
  26. <meta charset="utf-8">
  27. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  28. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
  29.  
  30. <!-- css -->
  31. <link rel="stylesheet" href="css/bootstrap.min.css">
  32. <link rel="stylesheet" href="css/bootstrap-theme.min.css">
  33. <link rel="stylesheet" href="css/font-awesome.min.css">
  34. <link rel="stylesheet" href="css/main.css">
  35.  
  36. <!-- php -->
  37. <?php require("config/sqlConnect.php"); ?>
  38.  
  39.  
  40. <!-- google font -->
  41. <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Kreon:300,400,700'>
  42.  
  43. <!-- js -->
  44. <script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
  45. </head>
  46. <body data-spy="scroll" data-target="#navbar" data-offset="120" >
  47. <!--[if lt IE 7]>
  48. <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
  49. <![endif]-->
  50.  
  51. <!-- NAV BAR -->
  52.  
  53. <?php if(file_exists("downtime.php")){
  54. require("config/nav.php");
  55. }else{
  56. exit;
  57. } ?>
  58.  
  59. <!-- /NAV BAR -->
  60.  
  61.  
  62. <div id="special-offser" class="parallax pricing">
  63. <div class="container inner"><br>
  64.  
  65. <h2 class="section-title text-center"><img src="img/tsb.png"></h2>
  66. <p class="lead main text-center">BUY HIGH QUALITY CANNABIS SEEDS. 100% LEGAL, STEALTH SHIPPING AND SECURE PURCHASING.</p>
  67.  
  68. <div class="row">
  69.  
  70. <input type="text" style="text-align: center;" id="myInput" onkeyup="myFunction()" placeholder="Search breeders.....">
  71. <ul id="myUL" >
  72. <?php
  73. if(file_exists("downtime.php")){
  74.  
  75. }else{
  76. exit;
  77. }
  78. $sql = "SELECT * FROM breeders ORDER BY breeders asc";
  79. $result = $conn->query($sql);
  80.  
  81. if ($result->num_rows > 0) {
  82. // output data of each row
  83. while ($row = $result->fetch_assoc()) {
  84. if ($row["seed_count"] != 0) {
  85. echo '<div class="col-lg-6 col-md-6 col-sm-12 text-center style="padding-left: 100px; "><center>
  86. <li><a href="seedlist.php?Link_id=' . $row["Link_id"] . '">' . $row["breeders"] . ' <h4 style="color: green;">' . $row["seed_count"] . ' Seeds in stock</h4></a></li>
  87. <div class="clearfix"></div>
  88. </center></div>';
  89. } else {
  90. echo '
  91. <div class="col-lg-6 col-md-6 col-sm-12 text-center style="padding-left: 100px;">
  92. <center><li><a href="" onclick="return false;">' . $row["breeders"] . ' <h4 style="color: red;">' . $row["seed_count"] . ' Seeds in stock</h4></a></li>
  93. <div class="clearfix"></div>
  94. </center></div> ';
  95. }
  96. }
  97. } else {
  98. echo "<h1><div class='text-center'>No seeds in stock</div></h1>";
  99. }if(file_exists("downtime.php")){
  100.  
  101. }else{
  102. exit;
  103. }
  104. echo " </ul>";
  105. ?>
  106. </div>
  107. <!-- footer -->
  108. </div>
  109.  
  110. <!-- /.container -->
  111. <!-- /#special-offser -->
  112. <?php
  113. require("config/footer.php");
  114. ?>
  115.  
  116.  
  117. <script>
  118. function myFunction() {
  119. // Declare variables
  120. var input, filter, ul, li, a, i;
  121. input = document.getElementById('myInput');
  122. filter = input.value.toUpperCase();
  123. ul = document.getElementById("myUL");
  124. li = ul.getElementsByTagName('li');
  125.  
  126. // Loop through all list items, and hide those who don't match the search query
  127. for (i = 0; i < li.length; i++) {
  128. a = li[i].getElementsByTagName("a")[0];
  129. if (a.innerHTML.toUpperCase().indexOf(filter) > -1) {
  130. li[i].style.display = "";
  131. } else {
  132. li[i].style.display = "none";
  133. }
  134. }
  135. }
  136. </script>
  137. <script src="js/jquery-2.1.3.min.js"></script>
  138. <script src="js/jquery.actual.min.js"></script>
  139. <script src="js/jquery.scrollTo.min.js"></script>
  140. <script src="js/bootstrap.min.js"></script>
  141. <script src="js/main.js"></script>
  142. </body>
  143.  
  144. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement