Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if (!isset($_SESSION['User'])){
- header("Location: login.php");
- }
- $user = $_SESSION['User'];
- require 'scripts/config.php';
- require 'scripts/itemInfo.php';
- $isAdmin = $_SESSION['Admin'];
- $queryAuctions=mysql_query("SELECT * FROM WA_Auctions");
- if ($useMySQLiConomy){
- $queryiConomy=mysql_query("SELECT * FROM $iConTableName WHERE username='$user'");
- $iConRow = mysql_fetch_row($queryiConomy);
- }
- $queryMarket=mysql_query("SELECT * FROM WA_MarketPrices ORDER BY id DESC");
- $playerQuery = mysql_query("SELECT * FROM WA_Players WHERE name='$user'");
- $playerRow = mysql_fetch_row($playerQuery);
- $mailQuery = mysql_query("SELECT * FROM WA_Mail WHERE player='$user'");
- $mailCount = mysql_num_rows($mailQuery);
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
- <title>ECC Market</title>
- <style type="text/css" title="currentStyle">
- @import "css/table_jui.css";
- @import "css/<?php echo $uiPack?>/jquery-ui-1.8.16.custom.css";
- </style>
- <link rel="stylesheet" type="text/css" href="css/<?php echo $cssFile?>.css" />
- <script type="text/javascript" language="javascript" src="js/jquery.js"></script>
- <script type="text/javascript" language="javascript" src="js/jquery.dataTables.js"></script>
- <script type="text/javascript" charset="utf-8">
- $(document).ready(function() {
- oTable = $('#example').dataTable({
- "bJQueryUI": true,
- "sPaginationType": "full_numbers"
- });
- } );
- </script>
- </head>
- <div id="holder">
- <?php include("topBoxes.php"); ?>
- <h1>ECC Market</h1>
- <br/>
- <h2>Item Info</h2>
- </p>
- <div class="demo_jui">
- <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
- <thead>
- <tr>
- <th>Item</th>
- <th>Number Sold</th>
- <th>Market Price</th>
- <th>Value Graph</th>
- </tr>
- </thead>
- <tbody>
- <?php
- $marketNames = array();
- while(list($id, $name, $damage, $time, $price, $ref)= mysql_fetch_row($queryMarket))
- {
- $keyName = in_array($name.":".$damage, $marketNames);
- if (!$keyName == false){
- //found this item id
- }else{
- $marketNames[] = $name.":".$damage;
- $fullName = getItemName($name, $damage);
- ?>
- <tr class="gradeC">
- <td><img src="<?php echo getItemImage($name, $damage) ?>" alt="<?php echo $fullName ?>"/><br/><?php echo $fullName ?></td>
- <td><? echo $ref ?></td>
- <td><?php echo $price ?></td>
- <td><a href="graph.php?name=<?php echo $name ?>&damage=<? echo $damage ?>">View Graph</a></td>
- </tr>
- <?php
- }
- ?>
- <?php } ?>
- </tbody>
- </table>
- </div>
- <div class="spacer"></div>
- <?php include("footer.php"); ?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement