<?PHP 
require_once('core.php');
if(!isset($_SESSION['id']))
{
header("Location: index.php");
exit();
}
$menu = "shop";
$page = "diamants";
?>
<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title><?PHP echo htmlentities(trim($cms['nom_hotel'])); ?> - Boutique </title>
        <link type="text/css" href="<?PHP echo htmlspecialchars(trim($cms['lien'])); ?>/web/css/material.css" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="<?PHP echo htmlspecialchars(trim($cms['lien'])); ?>/web/css/nav.css">
        <script src="<?PHP echo htmlspecialchars(trim($cms['lien'])); ?>/web/js/jquery.js"></script>
        <script type="text/javascript" src="<?PHP echo htmlspecialchars(trim($cms['lien'])); ?>/web/js/smoothscroll.js"></script>
        <script src="//api.dedipass.com/v1/pay.js"></script>
    </head> 
    <body>
    <?PHP require_once('template/header/template_header.php'); ?>
        <div class="container_24">
        <?PHP require_once('template/header/template_nav.php'); ?>
        <div class="grid_24" style="text-align: center;">
            <img src="web/img/boutique/header_shop.png">
        </div>
            <div class="grid_18">
                <div id="contentBox" class="activity" style="overflow: hidden;">
                    <div class="head">
                        <div class="badgeImage habbo"></div>
                        Acheter des diamants
                        <br>
                        <span class="date">Les diamants sont la monnaie précieuse sur <?PHP echo htmlentities(trim($cms['nom_hotel'])); ?> !</span>
                    </div>
                    <div class="text">
                    <p style="color: cornflowerblue;font-weight: 600;">En achetant un code ci-dessous tu obtiendra : <?PHP echo intval($B['nombre_diamants']); ?> Diamants supplémentaire !
                    <div data-dedipass="<?PHP echo htmlspecialchars(trim($B['data_dedipass'])); ?>" data-dedipass-custom=""></div>
                    </div>

                </div>
            </div>
            <div class="grid_6">
                <div id="contentBox" class="activity" style="overflow: hidden;">
                    <div class="head">
                        <div class="badgeImage trade"></div>
                        Ton porte monnaie
                    </div>
                    <div class="text" >
                        <img src="web/img/me/credits.png"> <?PHP echo intval($U['credits']); ?><br>
                        <img src="web/img/me/duckets.png"> <?PHP echo intval($U['activity_points']); ?><br>
                        <img src="web/img/me/diamonds.png"> <?PHP echo intval($U['vip_points']); ?>
                    </div>

                </div>
            </div>
            <div class="grid_6">
                <div id="contentBox" class="activity" style="overflow: hidden;">
                    <div class="head">
                        <div class="badgeImage attention"></div>
                        Tu es mineur ?
                    </div>
                    <div class="text" >
                        Si tu es mineur, demande l'autorisation à tes parents avant de procéder à l'achat de diamants !
                    </div>

                </div>
            </div>
            
            <div class="grid_24">
                <div id="contentBox">
                    <div class="title red">
                        <?PHP echo htmlentities(trim($cms['nom_hotel'])); ?> est propulsé par PlusCMS par Dodone.
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>