                       <?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'] = "Store";
$page['name'] = "Online Store";
$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 blue ">

							<h2 class="title">Online Store
							</h2>
<p class="credits-countries-select">
<?php
switch($userRoom['onloadroom']){
  case 277:
  {
    ?>
    <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 'Sorry, but you are not in a store.';
  }
}
?>
</p>
					</div>
						
				</div>
</div>
<div id="column2" class="column">
				<div class="habblet-container ">
						<div class="cbb clearfix blue ">

							<h2 class="title">Why Online Store?
							</h2>
						<div id="purse-habblet">

<div class="box-content">
<img src="http://www.habbolot.net/goodies/miscellaneous/frank_thumbup.gif"" align="right">
Well we are currently taking the catalog away from regular users.(Sorry!) But you can always buy from here x]</div>
</div>


					</div>
				</div
</div>

<?php require_once('./templates/community_footer.php'); ?>