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

$page['id'] = "Magasin";
$page['name'] = "Magasin";
$page['bodyid'] = "home";
$page['cat'] = "achat";
require_once('./templates/community_header.php');
?>


<div id='container'>
<div id='content'>
<div id='column1' class='column'><div class='habblet-container '>		
<div class='cbb clearfix pixelgreen '>
	
<h2 class='title'>Le Magasin!</h2>

<style type="text/css">

/* error message styles */
.error input,.error select {
	border: 1px solid #e2001a;
}

.error-message {
	color: #e2001a;
}

.error-messages-holder {
	display: none;
}

.error-messages-holder ul {
	padding: 0;
	list-style: none;
}

.error-messages-holder ul li {
	background: transparent url('http://www.habbo.fr/habboweb/51_b4ea29afdff17a13afb841a9811ebf55/6/web-gallery/v2/images/registration/exclamation.png') no-repeat left 50%;
	line-height: 18px;
	padding-left: 18px;
}

.error-messages-holder ul p {
	margin: 3px 0;
	padding: 0;
}

.error-messages-holder h3 {
	color: #E2001A;
	font-size: 13px;
	margin: 5px 0;
}

.error-messages-holder {
	display: block;
	padding: 0px 10px;
	background-color: #FFF4F2;
	border: 1px solid #E2001A;
	margin-top: 10px;
}

.state-error input.text-field,.state-error input.password-field {
	border: 2px solid #E2001A;
	background: #FFF4F2 url(../images/registration/exclamation.png) no-repeat scroll 99% 50%;
}

.state-error select {
	background-color: #FFF4F2;
	border: 2px solid #E2001A;
}

.state-error label#tos {
	border: 2px solid #E2001A;
	padding: 5px;
}

.state-error .help { /* color: #e2001a; */
	
}

#error-message-position {
	display: none;
}
#error-messages-container
{
width: 400px;
}

/* valide message styles */
.valide input,.valide select {
	border: 1px solid #e2001a;
}

.valide-message {
	color: #DFFFDF;
}

.valide-messages-holder {
	display: none;
}

.valide-messages-holder ul {
	padding: 0;
	list-style: none;
}

.valide-messages-holder ul li {
	background: transparent url('http://www.habbo.fr/habboweb/51_b4ea29afdff17a13afb841a9811ebf55/6/web-gallery/v2/images/registration/exclamation.png') no-repeat left 50%;
	line-height: 18px;
	padding-left: 18px;
}

.valide-messages-holder ul p {
	margin: 3px 0;
	padding: 0;
}

.valide-messages-holder h3 {
	color: #2AB838;
	font-size: 13px;
	margin: 5px 0;
}

.valide-messages-holder {
	display: block;
	padding: 0px 10px;
	background-color: #DFFFDF;
	border: 1px solid lightgreen;
	margin-top: 10px;
}

.state-valide input.text-field,.state-valide input.password-field {
	border: 2px solid #E2001A;
	background: #FFF4F2 url(../images/registration/exclamation.png) no-repeat scroll 99% 50%;
}

.state-valide select {
	background-color: #FFF4F2;
	border: 2px solid #E2001A;
}

.state-valide label#tos {
	border: 2px solid #E2001A;
	padding: 5px;
}

.state-valide .help { /* color: #e2001a; */
	
}

#valide-message-position {
	display: none;
}
#valide-messages-container
{
width: 400px;
}
#name-suggestions { margin-right: 13px; width: 400px; clear: left;}

#name-suggestions .available p {
	margin-top: 5px;
	border: 3px solid lightgreen;
	padding: 5px 5px 5px 25px;
	background: #DFFFDF url(../images/registration/tick.png) no-repeat 2px 50%;
	line-height: 16px;
}

#name-suggestions .taken {
	margin-top: 5px;
	border: 3px solid #F4DE64;
	padding: 5px;
	background-color: #ffe;
}

#name-suggestions .taken p {
	display: inline;
	padding: 5px 0;
}
#name-suggestions .help { margin-left: 0; }

#name-suggestion-list a {
	text-decoration: none;
	color: #024CC9;
	padding: 2px;
}

#name-suggestion-list a:hover {
	background-color: #eee;
}
</style>
<center><div id="valide-messages-container"> 
			<div class="valide-messages-holder"> 
<h3>Les avantages du VIP CLUB en int&eacute;gralit&eacute;</h3>
<img src="https://www.habbo.fr/habboweb/51_b4ea29afdff17a13afb841a9811ebf55/6/web-gallery/v2/images/registration/tick.png"> <b>50</b> BobZ de plus lors de l'adh&eacute;ration.<br>
<img src="https://www.habbo.fr/habboweb/51_b4ea29afdff17a13afb841a9811ebf55/6/web-gallery/v2/images/registration/tick.png"> <b>10 000</b> Cr&eacute;dits de plus dans ton Porte Monnaie.<br>
<img src="https://www.habbo.fr/habboweb/51_b4ea29afdff17a13afb841a9811ebf55/6/web-gallery/v2/images/registration/tick.png"> Plusieurs cat&eacute;gorie de <b>Rares</b> sont dans ton Catalogue.<br><img src="https://www.habbo.fr/habboweb/51_b4ea29afdff17a13afb841a9811ebf55/6/web-gallery/v2/images/registration/tick.png"> Acc&eacute;s &agrave; la futur <b>Beta</b> de <?php echo FULLNAME; ?> (Comme Habbo).<br>
<img src="https://www.habbo.fr/habboweb/51_b4ea29afdff17a13afb841a9811ebf55/6/web-gallery/v2/images/registration/tick.png"> <b>3</b> commandes pour ce mettre en <b>Animaux</b> (Envisag&eacute;).<br>
<img src="https://www.habbo.fr/habboweb/51_b4ea29afdff17a13afb841a9811ebf55/6/web-gallery/v2/images/registration/tick.png"> <b>Plusieur</b> cat&eacute;gorie priv&eacute; et espace publique.<br>
<img src="https://www.habbo.fr/habboweb/51_b4ea29afdff17a13afb841a9811ebf55/6/web-gallery/v2/images/registration/tick.png"> <b>5</b> Badges offert dont un <b>VIP</b>.<br>
<img src="https://www.habbo.fr/habboweb/51_b4ea29afdff17a13afb841a9811ebf55/6/web-gallery/v2/images/registration/tick.png"> <b>1</b> mois au <b>VIP CLUB</b>.<br>
<br></div></div></center>
<br>
<hr><br>
<center>
<div id="name-suggestions"> 
                    <div class="taken"> 
<h3>Information:</h3>
 ~ La boutique de <b>NewlifeBobba</b> &agrave; &eacute;t&eacute; con&ccedil;u pour un maximum de confort elle sers tout d&#39;abord &agrave; nous aid&eacute;s &agrave; l&#39;achat des serveurs<br />
	Mais pour vous aussi &agrave; trouver votre bonheur, elle dispose d&#39;achat de <b>Bobz,rares</b> et d&#39;abonnement au <b>VIP CLUB</b><br />
	Tout membre qui adh&egrave;re au Club ViP poss&egrave;de de nombreux privil&egrave;ge &agrave; d&eacute;couvrir en vous abonnant<br><br></div></div></center>
 <br>
 <hr><br>
 <center>
 <?php if(!empty($message)) {
echo "<div id=\"error-messages-container\"> 
			<div class=\"error-messages-holder\"> 

<font color=\"#e2001a\"><h3><b>Tu dois d'abord r&eacute;gler le probl&egrave;me suivant avant de pouvoir continuer</h3></b><img src=\"http://www.habbo.fr/habboweb/51_b4ea29afdff17a13afb841a9811ebf55/6/web-gallery/v2/images/registration/exclamation.png\"> $message</font><br><br>

</div>
</div>";
} ?></center><center><br>
<?php if($myrow['rank'] == 2) {
echo '<h1><font color="red"><b>Tu n&#39;as pas le rang VIP</b></font></h1>';
 ?>

<?php
} elseif($myrow['rank'] == 1) {
echo '<h1><font color="red"><b>Tu doit &ecirc;tre HC avant de adh&eacute;r&eacute; au VIP CLUB</b></font></h1>';
} else {
echo '<h1><b><font color="red">Tu as d&eacute;j&agrave; un RANG sup&eacute;rieur ou &eacute;gal au VIP CLUB!</b></font></h1>';
}
?>
<br>
  

</div></div></div>
  
<div id="column2" class="column">
				
	
							
<div class='habblet-container '>		
						<div class='cbb clearfix orange '>
	
							<h2 class='title'>15 VIP au Hasard</h2>
						<div id='credits-promo' class='box-content credits-info'>
    <div class='credit-info-text clearfix'>
   <?php
   $sql = mysql_query("SELECT name,mission FROM users WHERE rank = '3' ORDER BY RAND() LIMIT 0,15");
   while($row = mysql_fetch_array($sql)) {
  
   echo 'Pseudo: <b>'.$row['name'].'</b><br>Rang: VIP<hr>';
   }  ?>
	
						
					</div>
				</div></div>
				<script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
			 
							 
</div></div>


<?php

require('./templates/community_footer.php');

?>