<div class="left">
<p class="location">LocalizaciÃ³n: <a href="index.php.htm" tppabs="http://shiro2.net/index.php">Land of Metin</a> > <a href="index.php?s=itemshop" tppabs="http://shiro2.net/index.php?s=itemshop">Item shop</a>
</p>
<div style="margin-top: 70px;" class="box">
<div class="top"></div>
<div class="middle">
<h3>Item shop</h3>
<div class="big-line"></div>
<?PHP

  if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {
    if(isset($_GET['k']) && checkInt($_GET['k'])) {
      $sqlCmdS="SELECT * FROM ".SQL_HP_DB.".is_items WHERE kategorie_id='".$_GET['k']."' ORDER BY id DESC";
    }
    else {
      $sqlCmdS="SELECT * FROM ".SQL_HP_DB.".is_items ORDER BY id DESC";
    }
  ?>

         
      <?PHP
        $sqlCmd = "SELECT * FROM ".SQL_HP_DB.".is_kategorien ORDER BY titel ASC;";
        $sqlQry = mysql_query($sqlCmd,$sqlHp);
        while($getKats = mysql_fetch_object($sqlQry)) {
          echo'
		   <a href="index.php?s=itemshop&k='.$getKats->id.'">
<input type="submit" value="'.$getKats->titel.'" name="submit" class="btn">
		</a>';
        }
      ?>

		</center>		</div>

  </div> 
				<div class="postui2 text-end">
             
                
                  
    </div></div>

 <br />
 <div id="content">			<div class="postui2 text-title">
					<h2>
           Item Liste
                    
                    </h2>
				
				</div>
				<div class="postui2 text-con">
				<div class="con-wrap">
  <div id="isright">
    <?PHP
      $sqlQry=mysql_query($sqlCmdS,$sqlHp);
      while($getItems=mysql_fetch_object($sqlQry)) {
        $aktItem = compareItems($getItems->vnum);
        $itemStufe = (checkInt($aktItem['stufe'])) ? "+".$aktItem['stufe'] : '';
        ?>
         <div id="fuibar">			
<div class="fuibarui fui-title">
<p><?PHP echo $aktItem['item'].$itemStufe; ?></p>
</div>
<div class="fuibarui fui-con">
<div class="fui-wrap">
<table>
        <tr>
          <td width="87">
          <a href="index.php?s=is_buy&id=<?PHP echo $getItems->id; ?> ">
          <input type="submit" value=""  class="is_btn">
          </a>
          </td>
          <td width="400"><?PHP echo $getItems->beschreibung; ?><br />
          Kostet:<b> <?PHP echo $getItems->preis; ?> Coins</b></td>
        </tr>
        </table>
</div>
</div> 
<div class="fuibarui fui-end">
</div></div>
        <?PHP
      }
    ?>
  </div>
  <?PHP
  }
  else {
    echo'<p class="meldung">Sie m&uuml;ssen f&uuml;r diesen Bereich angemeldet sein.</p>';
  }
?>
</table>
</div>
<div class="bottom"></div>
</div>
</div>