Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.65 KB | None | 0 0
  1. <?php
  2. session_start();
  3. include 'connect.php';
  4.  
  5. if(!isset($_SESSION['username']))
  6. {
  7. //already logged in, redirect
  8. header('Location: index.php');
  9. exit;
  10. }
  11. ?>
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15. <link rel="stylesheet" type="text/css" href="css/privat.css">
  16. <link rel="stylesheet" type="text/css" href="css/link.css">
  17. <link rel="stylesheet" type="text/css" href="css/content.css">
  18. <meta http-equiv="content-Type" content="text/html; charset=utf-8" />
  19. <link rel="shortcut icon" href="img/icon.png" />
  20. <title>SE - Stick Empire</title>
  21. </head>
  22. <body>
  23.  
  24. <?php include 'toplog.php'; ?>
  25.  
  26. <div style="clear: both;"></div>
  27.  
  28. <!-- CONTENT -->
  29. <div id="container">
  30. <div style="margin-top: 50px;">
  31.  
  32. <!--- TOP --->
  33.  
  34.  
  35. <div style="margin-top: 20px;"></div>
  36.  
  37. <!--- LEFT -->
  38. <?php include 'left.php'; ?>
  39.  
  40. <!-- RIGHT -->
  41. <div style="margin-left: 20px; float: left; width: 827px;">
  42.  
  43. <!--- CLAN -->
  44. <div id="rightcontenttop"></div>
  45. <div id="rightcontent">
  46. <div style="margin-left: 24px;">
  47. &nbsp;
  48. <div style="margin-top: 5px;"></div>
  49. <center><h2 style="font-family: Papyrus;">SHOP!</h2></center>
  50. <div style="margin-top: 5px;"></div>
  51. &nbsp;
  52. </div>
  53. </div>
  54. <div id="rightcontentbot"></div>
  55.  
  56. <div style="margin-top: 20px;"></div>
  57.  
  58. <!--- PROFILE -->
  59. <div id="rightcontenttop"></div>
  60. <div id="rightcontent">
  61. <div style="margin-left: 30px;">
  62.  
  63.  
  64. <!-- HOVED -->
  65. <div style="float: left; width: 195px;">
  66. <center>
  67. <?php
  68. $result = mysqli_query($mysqli,"SELECT * FROM `shop` WHERE type='hoved' order by item ASC") or die(mysqli_error());
  69.  
  70. while($row = mysqli_fetch_array($result)){
  71. echo "<img src='img/".$row['type']."/".$row['item'].".png' width='130' height='70' style='margin-left: 15px;'/>";
  72. echo "<br />";
  73. echo "<a href='?shop'><input type='submit' style='width: 100px; height: 25px;' name='".$row['id']."' value='".$row['price']."'/></a>";
  74. echo "<br /><br /><br />";
  75.  
  76.  
  77.  
  78. if(@$_GET['shop']){
  79. $id = $_GET['id'];
  80. mysqli_query($mysqli,"UPDATE `man` SET head = '".$row['item']."' WHERE `id` = '".$id."'") or die(mysqli_error());
  81. }
  82. }
  83. ?>
  84. </div>
  85.  
  86.  
  87. <!-- MAVE -->
  88. <div style="float: left; width: 195px;">
  89. <center>
  90. <?php
  91. $result = mysqli_query($mysqli,"SELECT * FROM `shop` WHERE type='mave' order by item ASC") or die(mysqli_error());
  92.  
  93. while($row = mysqli_fetch_array($result)){
  94. echo "<img src='img/".$row['type']."/".$row['item'].".png' width='170' height='70'/>";
  95. echo "<br />";
  96. echo "<input type='submit' style='width: 100px; height: 25px;' name='".$row['id']."' value='".$row['price']."'/>";
  97. echo "<br /><br /><br />";
  98.  
  99. }
  100. ?>
  101. </center>
  102. </div>
  103.  
  104. <!-- BEN -->
  105. <div style="float: left; width: 195px;">
  106. <center>
  107. <?php
  108. $result = mysqli_query($mysqli,"SELECT * FROM `shop` WHERE type='ben' order by item ASC") or die(mysqli_error());
  109.  
  110. while($row = mysqli_fetch_array($result)){
  111. echo "<img src='img/".$row['type']."/".$row['item'].".png' width='170' height='70'/>";
  112. echo "<br />";
  113. echo "<input type='submit' style='width: 100px; height: 25px;' name='".$row['id']."' value='".$row['price']."'/>";
  114. echo "<br /><br /><br />";
  115.  
  116. }
  117. ?>
  118. </center>
  119. </div>
  120.  
  121. <!-- FOD -->
  122. <div style="float: left; width: 195px;">
  123. <center>
  124. <?php
  125. $result = mysqli_query($mysqli,"SELECT * FROM `shop` WHERE type='fod' order by item ASC") or die(mysqli_error());
  126.  
  127. while($row = mysqli_fetch_array($result)){
  128. echo "<img src='img/".$row['type']."/".$row['item'].".png' width='200' height='70'/>";
  129. echo "<br />";
  130. echo "<input type='submit' style='width: 100px; height: 25px;' name='".$row['id']."' value='".$row['price']."'/>";
  131. echo "<br /><br /><br />";
  132.  
  133. }
  134. ?>
  135. </center>
  136. </div>
  137.  
  138.  
  139. <div style="clear: both;">
  140.  
  141.  
  142. </div>
  143. </div>
  144. <div id="rightcontentbot"></div>
  145. </div>
  146.  
  147. <div style="clear: both;"></div>
  148.  
  149. <br />
  150. </div>
  151. </div>
  152.  
  153.  
  154. </body>
  155. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement