Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.09 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Level Rewards</title>
  6. <link rel="stylesheet" type="text/css" href="../style/itemtable.css">
  7. </head>
  8.  
  9. <body>
  10.  
  11. <div class="selectform">
  12. <form id="myForm" method="POST">
  13. <select name="select" onchange="<?php echo $_SERVER['PHP_SELF'];?>" id="select">
  14. <option value="" >Select...</option>
  15. <option value="2">SCAB</option>
  16. <option value="3">SCAVENGER</option>
  17. <option value="4">HUNTER</option>
  18. <option value="5">RANGER</option>
  19. <option value="6">SOLDIER</option>
  20. <option value="7">MERCENARY</option>
  21. <option value="8">WARRIOR</option>
  22. <option value="9">ASSASSIN</option>
  23. <option value="10">MIGHTY</option>
  24. <option value="11">LEGENDARY</option>
  25. <option value="12">IMMORTAL</option>
  26. <option value="13">GODLIKE</option>
  27. </select>
  28. <input type="submit" name="formSubmit" value="Submit" id="submit" >
  29. </form>
  30. </div>
  31.  
  32.  
  33. <?php
  34.  
  35. if(!isset($_POST['formSubmit']) ){
  36. echo '<div class="info">';
  37. echo '<div class="title">LEVEL</div>';
  38. echo '<div class="points">PLEASE SELECT A LEVEL</br>IN THE TOP LEFT.</div>';
  39. echo '</div>';
  40.  
  41. }
  42.  
  43. if(isset($_POST['formSubmit']) ){
  44. $var = $_POST['select'];
  45.  
  46. if($var == '2'){
  47. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1021, 1022)";
  48. $result = $connect->query($query);
  49.  
  50. echo '<div class="info">';
  51. echo '<div class="title">SCAB</div>';
  52. echo '<div class="points">REQUIRED POINTS: 50</div>';
  53. echo '<div class="xp">EXPERIENCE REWARD: 200XP</div>';
  54. echo '<div class="dibs">DIBS REWARD: 50 #DIBS</div>';
  55. echo '</div>';
  56.  
  57. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  58.  
  59. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  60. echo '<tr><td>';
  61. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  62. echo '</td><td>';
  63. echo $row['id'];
  64. echo '</td><td>';
  65. echo $row['itemname'];
  66. echo '</td></tr>';
  67. // and so on for what you want to echo out
  68. }
  69.  
  70. }
  71.  
  72. if($var == '3'){
  73. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (490, 81)";
  74. $result = $connect->query($query);
  75.  
  76. echo '<div class="info">';
  77. echo '<div class="title">SCAVENGER</div>';
  78. echo '<div class="points">REQUIRED POINTS: 100</div>';
  79. echo '<div class="xp">EXPERIENCE REWARD: 300XP</div>';
  80. echo '<div class="dibs">DIBS REWARD: 75 #DIBS</div>';
  81. echo '</div>';
  82.  
  83. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  84.  
  85. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  86.  
  87. echo '<tr><td>';
  88. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  89. echo '</td><td>';
  90. echo $row['id'];
  91. echo '</td><td>';
  92. echo $row['itemname'];
  93. echo '</td></tr>';
  94. // and so on for what you want to echo out
  95. }
  96.  
  97. }
  98.  
  99. if($var == '4'){
  100. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1170, 7, 144, 334, 81)";
  101. $result = $connect->query($query);
  102.  
  103. echo '<div class="info">';
  104. echo '<div class="title">HUNTER</div>';
  105. echo '<div class="points">REQUIRED POINTS: 200</div>';
  106. echo '<div class="xp">EXPERIENCE REWARD: 500XP</div>';
  107. echo '<div class="dibs">DIBS REWARD: 100 #DIBS</div>';
  108. echo '</div>';
  109.  
  110. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  111.  
  112. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  113. echo '<tr><td>';
  114. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  115. echo '</td><td>';
  116. echo $row['id'];
  117. echo '</td><td>';
  118. echo $row['itemname'];
  119. echo '</td></tr>';
  120. // and so on for what you want to echo out
  121. }
  122.  
  123. }
  124.  
  125. if($var == '5'){
  126. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 8, 143, 81)";
  127. $result = $connect->query($query);
  128.  
  129. echo '<div class="info">';
  130. echo '<div class="title">RANGER</div>';
  131. echo '<div class="points">REQUIRED POINTS: 300</div>';
  132. echo '<div class="xp">EXPERIENCE REWARD: 700XP</div>';
  133. echo '<div class="dibs">DIBS REWARD: 200 #DIBS</div>';
  134. echo '</div>';
  135.  
  136. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  137.  
  138. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  139. echo '<tr><td>';
  140. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  141. echo '</td><td>';
  142. echo $row['id'];
  143. echo '</td><td>';
  144. echo $row['itemname'];
  145. echo '</td></tr>';
  146. // and so on for what you want to echo out
  147. }
  148.  
  149. }
  150.  
  151. if($var == '6'){
  152. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 253, 305, 306, 313, 146, 153, 328, 81)";
  153. $result = $connect->query($query);
  154.  
  155. echo '<div class="info">';
  156. echo '<div class="title">SOLDIER</div>';
  157. echo '<div class="points">REQUIRED POINTS: 500</div>';
  158. echo '<div class="xp">EXPERIENCE REWARD: 1200XP</div>';
  159. echo '<div class="dibs">DIBS REWARD: 300 #DIBS</div>';
  160. echo '</div>';
  161.  
  162. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  163.  
  164. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  165. echo '<tr><td>';
  166. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  167. echo '</td><td>';
  168. echo $row['id'];
  169. echo '</td><td>';
  170. echo $row['itemname'];
  171. echo '</td></tr>';
  172. // and so on for what you want to echo out
  173. }
  174.  
  175. }
  176.  
  177. if($var == '7'){
  178. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (147, 296, 1015, 1016, 1017, 328, 81)";
  179. $result = $connect->query($query);
  180.  
  181. echo '<div class="info">';
  182. echo '<div class="title">MERCENARY</div>';
  183. echo '<div class="points">REQUIRED POINTS: 800</div>';
  184. echo '<div class="xp">EXPERIENCE REWARD: 1600XP</div>';
  185. echo '<div class="dibs">DIBS REWARD: 500 #DIBS</div>';
  186. echo '</div>';
  187.  
  188. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  189.  
  190. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  191. echo '<tr><td>';
  192. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  193. echo '</td><td>';
  194. echo $row['id'];
  195. echo '</td><td>';
  196. echo $row['itemname'];
  197. echo '</td></tr>';
  198. // and so on for what you want to echo out
  199. }
  200.  
  201. }
  202.  
  203. if($var == '8'){
  204. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 307, 308, 309, 310, 1177, 1201, 328, 81)";
  205. $result = $connect->query($query);
  206.  
  207. echo '<div class="info">';
  208. echo '<div class="title">WARRIOR</div>';
  209. echo '<div class="points">REQUIRED POINTS: 2600</div>';
  210. echo '<div class="xp">EXPERIENCE REWARD: 2200XP</div>';
  211. echo '<div class="dibs">DIBS REWARD: 1000 #DIBS</div>';
  212. echo '</div>';
  213.  
  214. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  215.  
  216. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  217. echo '<tr><td>';
  218. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  219. echo '</td><td>';
  220. echo $row['id'];
  221. echo '</td><td>';
  222. echo $row['itemname'];
  223. echo '</td></tr>';
  224. // and so on for what you want to echo out
  225. }
  226.  
  227. }
  228.  
  229. if($var == '9'){
  230. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 253, 1156, 1157, 1200, 328, 81)";
  231. $result = $connect->query($query);
  232.  
  233. echo '<div class="info">';
  234. echo '<div class="title">ASSASSIN</div>';
  235. echo '<div class="points">REQUIRED POINTS: 5600</div>';
  236. echo '<div class="xp">EXPERIENCE REWARD: 2600XP</div>';
  237. echo '<div class="dibs">DIBS REWARD: 2500 #DIBS</div>';
  238. echo '</div>';
  239.  
  240. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  241.  
  242. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  243. echo '<tr><td>';
  244. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  245. echo '</td><td>';
  246. echo $row['id'];
  247. echo '</td><td>';
  248. echo $row['itemname'];
  249. echo '</td></tr>';
  250. // and so on for what you want to echo out
  251. }
  252.  
  253. }
  254.  
  255. if($var == '10'){
  256. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 235, 236, 237, 238, 519, 520, 328, 81)";
  257. $result = $connect->query($query);
  258.  
  259. echo '<div class="info">';
  260. echo '<div class="title">MIGHTY</div>';
  261. echo '<div class="points">REQUIRED POINTS: 10800</div>';
  262. echo '<div class="xp">EXPERIENCE REWARD: 3200XP</div>';
  263. echo '<div class="dibs">DIBS REWARD: 6000 #DIBS</div>';
  264. echo '</div>';
  265.  
  266. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  267.  
  268. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  269. echo '<tr><td>';
  270. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  271. echo '</td><td>';
  272. echo $row['id'];
  273. echo '</td><td>';
  274. echo $row['itemname'];
  275. echo '</td></tr>';
  276. // and so on for what you want to echo out
  277. }
  278.  
  279. }
  280.  
  281. if($var == '11'){
  282. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 1364, 1365, 1169, 1171, 1172, 1389, 1395, 328, 81)";
  283. $result = $connect->query($query);
  284.  
  285. echo '<div class="info">';
  286. echo '<div class="title">LEGENDARY</div>';
  287. echo '<div class="points">REQUIRED POINTS: 24000</div>';
  288. echo '<div class="xp">EXPERIENCE REWARD: 4000XP</div>';
  289. echo '<div class="dibs">DIBS REWARD: 10000 #DIBS</div>';
  290. echo '</div>';
  291.  
  292. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  293.  
  294. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  295. echo '<tr><td>';
  296. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  297. echo '</td><td>';
  298. echo $row['id'];
  299. echo '</td><td>';
  300. echo $row['itemname'];
  301. echo '</td></tr>';
  302. // and so on for what you want to echo out
  303. }
  304.  
  305. }
  306.  
  307. if($var == '12'){
  308. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1270, 1271, 1441, 1443, 1425, 1428, 1419, 1421, 1302, 1395, 328, 81, 39140)";
  309. $result = $connect->query($query);
  310.  
  311. echo '<div class="info">';
  312. echo '<div class="title">IMMORTAL</div>';
  313. echo '<div class="points">REQUIRED POINTS: 50000</div>';
  314. echo '<div class="xp">EXPERIENCE REWARD: 5000XP</div>';
  315. echo '<div class="dibs">DIBS REWARD: 20000 #DIBS</div>';
  316. echo '</div>';
  317.  
  318. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  319.  
  320. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  321. echo '<tr><td>';
  322. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  323. echo '</td><td>';
  324. echo $row['id'];
  325. echo '</td><td>';
  326. echo $row['itemname'];
  327. echo '</td></tr>';
  328. // and so on for what you want to echo out
  329. }
  330.  
  331. }
  332.  
  333. if($var == '13'){
  334. $query = "SELECT * FROM `uconomyitemshop` WHERE id IN (1443, 39141)";
  335. $result = $connect->query($query);
  336.  
  337. echo '<div class="info">';
  338. echo '<div class="title">GODLIKE</div>';
  339. echo '<div class="points">REQUIRED POINTS: 100000</div>';
  340. echo '<div class="xp">EXPERIENCE REWARD: 10000XP</div>';
  341. echo '<div class="dibs">DIBS REWARD: 40000 #DIBS</div>';
  342. echo '</div>';
  343.  
  344. echo '<table><tr><th>IMAGE</th><th>ID</th><th>ITEM NAME</th></tr>';
  345.  
  346. while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)){
  347. echo '<tr><td>';
  348. echo '<center><img class="shopimg" src="https://toxicitygaming.com/forum/extraimages/design/shop/items/'.$row['id'].'.png"</center>';
  349. echo '</td><td>';
  350. echo $row['id'];
  351. echo '</td><td>';
  352. echo $row['itemname'];
  353. echo '</td></tr>';
  354. // and so on for what you want to echo out
  355. }
  356.  
  357. }
  358. elseif($var <= '1'){
  359. echo '<div class="info">';
  360. echo '<div class="title">LEVEL</div>';
  361. echo '<div class="points">PLEASE SELECT A LEVEL</br>IN THE TOP LEFT.</div>';
  362. echo '</div>';
  363.  
  364. }
  365.  
  366. }
  367.  
  368. echo "</table>";
  369. ?>
  370.  
  371. </body>
  372. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement