                       <?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
|| # http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/

$page['allow_guests'] = true;
require_once('./includes/core.php');
require_once('./includes/session.php');
$lang->addLocale("credits.credits");

$page['id'] = "furniture";
$page['name'] = "Furniture Shop";
$page['bodyid'] = "home";
$page['cat'] = "credits";

require_once('./templates/community_header.php');
$getUserRoom = mysql_query("SELECT onloadroom FROM users WHERE name = '".$user->name."'");
$userRoom = mysql_fetch_assoc($getUserRoom);
?>
<div id="container">
	<div id="content" style="position: relative" class="clearfix">
    <div id="column1" class="column">

				<div class="habblet-container ">
						<div class="cbb clearfix green ">

							<h2 class="title"><span style="float: left;">Furniture Shop</span>
							</h2>
<p class="credits-countries-select">
<?php
switch($userRoom['curoom']){
  case 320:
  {
    ?>
    <center><img src="<?php echo PATH; ?>/web-gallery/Headers/Lodge.gif"><br />
    <br />
    <table>
    <tr>
    <td width="130px">
      <strong>Item</strong>
    </td>
    <td width="50px">
      <strong>Cost</strong>
    </td>
    <td>
      <strong>Amount</strong>
    </td>
    <td>
      <strong>Buy Now</strong>
    </td>
    </tr>
    <?php
    $getFurni = mysql_query("SELECT * FROM catalogue_items WHERE catalogue_id_page = '26'");
    while($tehFurni = mysql_fetch_array($getFurni)){
      echo '<tr>
      <td>
      '.$tehFurni['catalogue_name'].'
      </td>
      <td>
      '.$tehFurni['catalogue_cost'].'
      </td>
      <td>
      <input type="text" name="amount" style="width: 50px;" />
      </td>
      <td>
      <input type="submit" name="buy_now" value="Buy Now" />
      </td></tr>';
    }
    echo '</table></center>';
    break;
  }

  default:
  {
    echo 'You must be in a store to purchase items.';
  }
}
?>
</p>
					</div>
						
				</div>
</div>
<div id="column2" class="column">
				<div class="habblet-container ">
						<div class="cbb clearfix green ">

							<h2 class="title"><span style="float: left;">Online Store</span>
							</h2>
						<div id="purse-habblet">

<div class="box-content">
Instead of purchasing items from the catalogue, you must now purchase your items via site. It'simple, and we sell all products at a low price! To begin shopping, walk into a store in-game.</div>
</div>


					</div>
				</div


<?php require_once('./templates/community_footer.php'); ?>
