Ejemplo n.º 1
0
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<?php 
include '../header/menu.php';
if (isset($_SESSION['user'])) {
    refreshUserSession();
    $userManager = new UserPdoManager();
    $accountManager = new AccountPdoManager();
    $refManager = new RefPlanPdoManager();
    //Récupère les dates d'enregistrement et de fin d'abonnement
    $userStartDate = $user->getCurrentAccount()->getStartDate();
    $userEndDate = $user->getCurrentAccount()->getEndDate();
    //Formatage des dates pour une meilleur lisibilité humaine
    $userFormatStartDate = AbstractPdoManager::formatMongoDate($userStartDate);
    $userFormatEndDate = AbstractPdoManager::formatMongoDate($userEndDate);
    //Requête BDD
    $userInSession = unserialize($_SESSION['user']);
    $user = $userManager->findById($userInSession->getId());
    //retrouve l'user connecté grâce à l'id en session
    $userAccount = $accountManager->findById($user->getCurrentAccount());
    //retrouve le compte user
    $userPlan = $refManager->findById($userAccount->getRefPlan());
    //retrouve le plan user
    ?>
    <body id="bodyAccount">
    <aside id="left-panel">
        <div class="left-panel-content">
            <div class="tab-control toggle-card">
                <div class="card-spinner-container">
                    <i id="buttCollapse" style="color: red;position: absolute;left: 201px;height: 100%;padding-top: 20px;" class="glyphicon glyphicon-cog"></i>