Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ob_start();
- require_once 'includes/db.php';
- require_once 'includes/init.php';
- if (!($user -> LoggedIn()))
- {
- header('location: login.php');
- die();
- }
- if (!($user -> notBanned($odb)))
- {
- header('location: login.php');
- die();
- }
- ?>
- <!DOCTYPE html>
- <!--[if lt IE 7 ]><html lang="en" class="ie6 ielt7 ielt8 ielt9"><![endif]--><!--[if IE 7 ]><html lang="en" class="ie7 ielt8 ielt9"><![endif]--><!--[if IE 8 ]><html lang="en" class="ie8 ielt9"><![endif]--><!--[if IE 9 ]><html lang="en" class="ie9"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!-->
- <html lang="en"><!--<![endif]-->
- <head>
- <title>Purchase</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="css/bootstrap.min.css" rel="stylesheet">
- <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
- <link href="css/site.css" rel="stylesheet">
- <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
- </head>
- <body>
- <?php
- $plansql = $odb -> prepare("SELECT `users`.*,`plans`.`name`, `plans`.`mbt` FROM `users`, `plans` WHERE `plans`.`ID` = `users`.`membership` AND `users`.`ID` = :id LIMIT 1");
- $plansql -> execute(array(":id" => $_SESSION['ID']));
- $userInfo = $plansql -> fetch(PDO::FETCH_ASSOC);
- ?>
- <h1>Abonnements a vie !</h1>
- </div>
- <table class="table grid table-striped table-bordered table-condensed">
- <thead><tr>
- <th>Nom du pack</th>
- <th>Expiration</th>
- <th>Outils</th>
- <th>Prix</th>
- <th>Acheter (PayPal)</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <?php
- $newssql = $odb -> query("SELECT * FROM `plans` ORDER BY `price` ASC");
- while($row = $newssql ->fetch())
- {
- echo '<td>'.$row['name'].'</td>
- <td>Lifetime</td>
- <td>Disponible</td>
- <td>'.$row['price'].'.00€</td>
- <td>
- <a href="order.php?id='.$row['ID'].'"><button class="btn btn-info" type="submit">
- <i class="icon-shopping-cart"></i> Buy Now !
- </button></a>
- </td>
- </tr>';
- }
- ?>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <script src="js/jquery.min.js"></script>
- <script src="js/bootstrap.min.js"></script>
- <script src="js/site.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment