Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php require_once('config.php');session_start();
- $userId =& $_SESSION['userId'];
- if (!$userId) {
- header('Location: login');
- exit;
- $top_servers = mysql_query("SELECT SQL_CALC_FOUND_ROWS servers.*,auctions.bid_amount as bid_amount FROM servers RIGHT JOIN auctions ON auctions.server_id=servers.id ORDER BY auctions.bid_amount LIMIT 5");
- $top_count = mysql_result(mysql_query('SELECT FOUND_ROWS() AS found;'), 0, 'found');
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta http-equiv="Lang" content="en">
- <meta name="description" content="<?php echo $config['description']; ?>">
- <meta name="keywords" content="<?php echo $config['keywords']; ?>">
- <title>Sponsored | Minecraft Servers</title>
- <link rel="stylesheet" type="text/css" href="<?php echo $config['root']; ?>style.css">
- <style>
- tr td, tr th {
- border:0;
- padding:0;
- padding-bottom:5px;
- }
- .paypal {
- background: #e3e3e3;
- width:300px;
- height:75px;
- padding-left:10px;
- margin-left:5px;
- display:table;
- margin-bottom:10px;
- }
- .contacth {
- color:black;
- text-decoration:none;
- }
- .contacth:hover {
- text-decoration: underline;
- }
- P { line-height : 125%; }
- </style>
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-16311976-18']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- </head>
- <body>
- <div id="wrapper">
- <div class="box" id="header">
- <div id="logo"><a href="./"><img src="<?php echo $config['root']; ?>img/logo.png" border="0"/></a></div>
- <div id="search"><form action="<?php echo $config['root']; ?>search" method="POST"><input id="searchField" onfocus="if (this.value == 'Search servers') this.value = ''" onblur="if (this.value == '') this.value = 'Search servers'" type="text" value="Search servers" name="search"/><input id="searchSubmit" type="submit" name="searchSubmit" value="search"/></form></div>
- <div id="menuSearchContainer">
- <div id="menu">
- <?php include('menu.php'); ?>
- </div>
- </div>
- </div>
- <div class="box" id="upBanner">
- <div class="banners" id="upBannerPicture"><?php include('img/upper2.php'); ?></div>
- </div>
- <div class="box">
- <p style="float: right;"><strong>Bidding is </strong><?php echo $auctionDays < 10 ? '<span class="green">Open' : '<span class="red">Closed'; ?></span></p>
- <h3>Sponsored</h3>
- <p style="padding: 5px">Sponsored servers appear above the main list on the homepage and are the very first servers potential players see when they visit the website.<br><br>
- There are a total of 5 sponsored slots available at any one time at a cost of <b>$250 per 30 days</b>.</p>
- <p><strong>Top Five Bids:</strong></p>
- <p>These are the current top bids for this round of bidding.</p>
- <table class="topBidList">
- <tr>
- <th class="tname">Bid Rank</th>
- <th class="tserver">Name</th>
- <th class="ttype">Bid Amount</th>
- <th class="tplayers">Date Placed</th>
- </tr>
- <?php $i=0; while($server = mysql_fetch_assoc($top_servers)) { $i++; ?>
- <tr>
- <td><?php echo $i; ?></td>
- <td style="width: 300px;"><a href="<?php echo $config['root']; ?>server/<?php echo $server['id'];?>"><?php echo $server['name'];?></a></td>
- <td><?php echo $server['bid_amount']; ?></td>
- <td>TODO</td>
- </tr>
- <?php } ?>
- </table>
- <div class="paypal">
- <h3 style="margin-left:0px;padding-top:5px;"><?php echo $count; ?> Sponsored slots remaining</h3>
- <?php if($count>0): ?>
- <?php else: ?>
- <span>All 5 sponsored server slots are full.<br>Next availability: <b>30th May</b><br><img src="http://minecraftservers.org/img/spr.png" /></span>
- <?php endif; ?>
- </div>
- </div>
- <div class="box" id="bottomBanner">
- <div class="banners" id="bottomBannerPicture"><?php include('img/bottom2.php'); ?></div>
- </div>
- <div class="box" id="footer">
- <?php require 'footer.php'; ?>
- </div>
- </div>
- </body>
- </html>
- <?php
- /*
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
- <input type="hidden" name="cmd" value="_s-xclick">
- <input type="hidden" name="hosted_button_id" value="QQZAAWQE4YZNC">
- <table>
- <tr><td><input type="hidden" name="on0" value="Server name">Server name</td></tr><tr><td><input type="text" name="os0" maxlength="200"></td></tr>
- </table>
- <input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_paynow_LG.gif" border="0" name="submit" alt="PayPal Ñ The safer, easier way to pay online.">
- <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
- </form>
- */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment