Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $christmasCountdown = true;
- if (time() <= strtotime('2017-12-25')) {
- session_start();
- if($_SESSION["Admin"] != true){
- header("Location: christmasCountdown.php");
- die();
- }
- }
- ?>
- <!DOCTYPE html>
- <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
- <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
- <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
- <!--[if gt IE 8]><!-->
- <html class="no-js"> <!--<![endif]-->
- <head>
- <title>Tangz Seedbank</title>
- <!-- meta -->
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
- <!-- css -->
- <link rel="stylesheet" href="css/bootstrap.min.css">
- <link rel="stylesheet" href="css/bootstrap-theme.min.css">
- <link rel="stylesheet" href="css/font-awesome.min.css">
- <link rel="stylesheet" href="css/main.css">
- <!-- php -->
- <?php require("config/sqlConnect.php"); ?>
- <!-- google font -->
- <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Kreon:300,400,700'>
- <!-- js -->
- <script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
- </head>
- <body data-spy="scroll" data-target="#navbar" data-offset="120" >
- <!--[if lt IE 7]>
- <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>
- <![endif]-->
- <!-- NAV BAR -->
- <?php if(file_exists("downtime.php")){
- require("config/nav.php");
- }else{
- exit;
- } ?>
- <!-- /NAV BAR -->
- <div id="special-offser" class="parallax pricing">
- <div class="container inner"><br>
- <h2 class="section-title text-center"><img src="img/tsb.png"></h2>
- <p class="lead main text-center">BUY HIGH QUALITY CANNABIS SEEDS. 100% LEGAL, STEALTH SHIPPING AND SECURE PURCHASING.</p>
- <div class="row">
- <input type="text" style="text-align: center;" id="myInput" onkeyup="myFunction()" placeholder="Search breeders.....">
- <ul id="myUL" >
- <?php
- if(file_exists("downtime.php")){
- }else{
- exit;
- }
- $sql = "SELECT * FROM breeders ORDER BY breeders asc";
- $result = $conn->query($sql);
- if ($result->num_rows > 0) {
- // output data of each row
- while ($row = $result->fetch_assoc()) {
- if ($row["seed_count"] != 0) {
- echo '<div class="col-lg-6 col-md-6 col-sm-12 text-center style="padding-left: 100px; "><center>
- <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>
- <div class="clearfix"></div>
- </center></div>';
- } else {
- echo '
- <div class="col-lg-6 col-md-6 col-sm-12 text-center style="padding-left: 100px;">
- <center><li><a href="" onclick="return false;">' . $row["breeders"] . ' <h4 style="color: red;">' . $row["seed_count"] . ' Seeds in stock</h4></a></li>
- <div class="clearfix"></div>
- </center></div> ';
- }
- }
- } else {
- echo "<h1><div class='text-center'>No seeds in stock</div></h1>";
- }if(file_exists("downtime.php")){
- }else{
- exit;
- }
- echo " </ul>";
- ?>
- </div>
- <!-- footer -->
- </div>
- <!-- /.container -->
- <!-- /#special-offser -->
- <?php
- require("config/footer.php");
- ?>
- <script>
- function myFunction() {
- // Declare variables
- var input, filter, ul, li, a, i;
- input = document.getElementById('myInput');
- filter = input.value.toUpperCase();
- ul = document.getElementById("myUL");
- li = ul.getElementsByTagName('li');
- // Loop through all list items, and hide those who don't match the search query
- for (i = 0; i < li.length; i++) {
- a = li[i].getElementsByTagName("a")[0];
- if (a.innerHTML.toUpperCase().indexOf(filter) > -1) {
- li[i].style.display = "";
- } else {
- li[i].style.display = "none";
- }
- }
- }
- </script>
- <script src="js/jquery-2.1.3.min.js"></script>
- <script src="js/jquery.actual.min.js"></script>
- <script src="js/jquery.scrollTo.min.js"></script>
- <script src="js/bootstrap.min.js"></script>
- <script src="js/main.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement