Esempio n. 1
0
echo date('Y', $account->getStartDate()->sec);
?>
</a></li>

                    </ul>
                    <div class="tab-content col-md-12">
                        <?php 
foreach ($filterDate as $thisAccount) {
    $accountOld = $accountManager->findById($thisAccount->getId());
    //                            var_dump($accountOld);
    $planOld = $planManager->findById($thisAccount->getRefPlan());
    //                            var_dump($planOld);
    //pourcentage storage
    $storageOld = round(convertKilobytes($accountOld->getStorage()));
    //stockage de l'user
    $maxStorageOld = round(convertKilobytes($planOld->getMaxStorage()));
    //maxStorage user
    $valueStorageOld = _percentage($storageOld, $maxStorageOld, $total);
    //valeur convertie en %
    switch ($valueStorageOld) {
        case $valueStorageOld >= 60:
            $classStorageOld = 'progress-bar-warning';
        case $valueStorageOld >= 80:
            $classStorageOld = 'progress-bar-danger';
            break;
        default:
            $classStorageOld = 'progress-bar-green';
            break;
    }
    ?>
                        <label class="col-sm-2 control-label" for="firstname">_idAccount</label>
Esempio n. 2
0
                                <h3><?php 
    echo $plan->getName();
    ?>
</h3>

                                <div class="price">
                                    <span class="dollar">$</span>
                                    <span class="qty"><?php 
    echo $plan->getPrice();
    ?>
</span>
                                    <span class="month">/month</span>
                                </div>
                                <div class="price">
                                    <span class="qty"><?php 
    echo round(convertKilobytes($plan->getMaxStorage()));
    ?>
</span>
                                    <span class="month">Mb</span>
                                </div>
                                <div class="features">
                                    <p>
                                        <strong>Multiple</strong>
                                        files / DL
                                    </p>
                                    <p>
                                        <strong>Download speed</strong><br />
                                        <?php 
    echo $plan->getDownloadSpeed();
    ?>
 Kb/s
Esempio n. 3
0
&nbsp;Mb" value="<?php 
    echo convertKilobytes($userAccount->getStorage());
    ?>
"
                                                               min="0" max="<?php 
    echo convertKilobytes($userPlan->getMaxStorage());
    ?>
"></progress>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <p id="minStorageVal" class="storageVal">0</p>
                                    <p id="maxStorageVal" class="storageVal"><?php 
    echo convertKilobytes($userPlan->getMaxStorage());
    ?>
&nbsp;Mb</p>
                                </td>
                            </tr>
                        </table>
                    </div>

                    <div id="speed" class="cat-user col-md-3">
                        <h3><i style="margin-right: 5px;" class="glyphicon glyphicon-stats"></i>Bandwidth</h3>
                        <table class="mainTab">
                            <tr>
                                <td class="tabInfo">Download speed limitation</td>
                                <td class="tabValue"><?php 
    echo $userPlan->getDownloadSpeed();
    ?>