Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Level Rewards</title>
- <link rel="stylesheet" type="text/css" href="../style/itemtable.css">
- </head>
- <body>
- <div class="selectform">
- <form id="myForm" method="POST">
- <select name="select" onchange="<?php echo $_SERVER['PHP_SELF'];?>" id="select">
- <option value="" >Select...</option>
- <option value="2">SCAB</option>
- <option value="3">SCAVENGER</option>
- <option value="4">HUNTER</option>
- <option value="5">RANGER</option>
- <option value="6">SOLDIER</option>
- <option value="7">MERCENARY</option>
- <option value="8">WARRIOR</option>
- <option value="9">ASSASSIN</option>
- <option value="10">MIGHTY</option>
- <option value="11">LEGENDARY</option>
- <option value="12">IMMORTAL</option>
- <option value="13">GODLIKE</option>
- </select>
- <input type="submit" name="formSubmit" value="Submit" id="submit" >
- </form>
- </div>
- <?php
- if(!isset($_POST['formSubmit']) ){
- echo '<div class="info">';
- echo '<div class="title">LEVEL</div>';
- echo '<div class="points">PLEASE SELECT A LEVEL</br>IN THE TOP LEFT.</div>';
- echo '</div>';
- }
- if(isset($_POST['formSubmit']) ){
- $var = $_POST['select'];
- if($var == '2'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1021, 1022)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">SCAB</div>';
- echo '<div class="points">REQUIRED POINTS: 50</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 200XP</div>';
- echo '<div class="dibs">DIBS REWARD: 50 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- if($var == '3'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (490, 81)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">SCAVENGER</div>';
- echo '<div class="points">REQUIRED POINTS: 100</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 300XP</div>';
- echo '<div class="dibs">DIBS REWARD: 75 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- if($var == '4'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1170, 7, 144, 334, 81)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">HUNTER</div>';
- echo '<div class="points">REQUIRED POINTS: 200</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 500XP</div>';
- echo '<div class="dibs">DIBS REWARD: 100 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- if($var == '5'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 8, 143, 81)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">RANGER</div>';
- echo '<div class="points">REQUIRED POINTS: 300</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 700XP</div>';
- echo '<div class="dibs">DIBS REWARD: 200 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- if($var == '6'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 253, 305, 306, 313, 146, 153, 328, 81)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">SOLDIER</div>';
- echo '<div class="points">REQUIRED POINTS: 500</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 1200XP</div>';
- echo '<div class="dibs">DIBS REWARD: 300 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- if($var == '7'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (147, 296, 1015, 1016, 1017, 328, 81)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">MERCENARY</div>';
- echo '<div class="points">REQUIRED POINTS: 800</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 1600XP</div>';
- echo '<div class="dibs">DIBS REWARD: 500 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- if($var == '8'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 307, 308, 309, 310, 1177, 1201, 328, 81)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">WARRIOR</div>';
- echo '<div class="points">REQUIRED POINTS: 2600</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 2200XP</div>';
- echo '<div class="dibs">DIBS REWARD: 1000 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- if($var == '9'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 253, 1156, 1157, 1200, 328, 81)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">ASSASSIN</div>';
- echo '<div class="points">REQUIRED POINTS: 5600</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 2600XP</div>';
- echo '<div class="dibs">DIBS REWARD: 2500 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- if($var == '10'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 235, 236, 237, 238, 519, 520, 328, 81)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">MIGHTY</div>';
- echo '<div class="points">REQUIRED POINTS: 10800</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 3200XP</div>';
- echo '<div class="dibs">DIBS REWARD: 6000 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- if($var == '11'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 1364, 1365, 1169, 1171, 1172, 1389, 1395, 328, 81)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">LEGENDARY</div>';
- echo '<div class="points">REQUIRED POINTS: 24000</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 4000XP</div>';
- echo '<div class="dibs">DIBS REWARD: 10000 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- if($var == '12'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 1441, 1443, 1425, 1428, 1419, 1421, 1302, 1395, 328, 81, 39140)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">IMMORTAL</div>';
- echo '<div class="points">REQUIRED POINTS: 50000</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 5000XP</div>';
- echo '<div class="dibs">DIBS REWARD: 20000 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- if($var == '13'){
- $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1443, 39141)";
- $result = $connect->query($query);
- echo '<div class="info">';
- echo '<div class="title">GODLIKE</div>';
- echo '<div class="points">REQUIRED POINTS: 100000</div>';
- echo '<div class="xp">EXPERIENCE REWARD: 10000XP</div>';
- echo '<div class="dibs">DIBS REWARD: 40000 #DIBS</div>';
- echo '</div>';
- echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
- while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo '<tr><td>';
- echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
- echo '</td><td>';
- echo $row['id'];
- echo '</td><td>';
- echo $row['itemname'];
- echo '</td></tr>';
- // and so on for what you want to echo out
- }
- }
- elseif($var <= '1'){
- echo '<div class="info">';
- echo '<div class="title">LEVEL</div>';
- echo '<div class="points">PLEASE SELECT A LEVEL</br>IN THE TOP LEFT.</div>';
- echo '</div>';
- }
- }
- echo "</table>";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement