?? GreyFile — Mystic File Browser

Current path: home/webdevt/cryptoimpot.fr/module/Application/view/layout/



?? Go up: /home/webdevt/cryptoimpot.fr/module/Application/view

?? Viewing: warning-rapport.phtml

<?= $this->doctype() ?>

<html lang="fr">

<body>

<?php $startAnneeRapport = new DateTime($this->annee . '-01-01 00:00:00');
$endAnneeRapport = new DateTime($this->annee . '-12-31 23:59:59'); ?>
<h1>Rapport d'historiques de transactions manquantes</h1>


<h2>Quantité vendue supérieure à la quantité présente dans le portefeuille</h2>
<?php foreach ($this->arrayWarningWalletQte as $cryptoCode => $arrayInfosWallet) : ?>
    <h2>Evolution du <?= $cryptoCode ?> détenu dans le portefeuille</h2>
    <table style="border: 1px solid #000; font-size: large">
        <thead>
    <tr>
        <td style="text-align: center; border: 1px solid #000">
            Date
        </td>
        <td style="text-align: center; border: 1px solid #000">
            Qté dans le portefeuille avant la cession
        </td>
        <td style="text-align: center; border: 1px solid #000">
            Qté à sortir
        </td>
        <td style="text-align: center; border: 1px solid #000">
            Quantité manquante pour cette cession
        </td>
        <td style="text-align: center; border: 1px solid #000">
            Cumul quantité manquante
        </td>

    </tr>
        </thead>
        <tbody>
<?php foreach ($arrayInfosWallet as $indexInfos => $infoCumul) : ?>

        <tr>
            <td style="text-align: center; border: 1px solid #000">
                <?= $infoCumul['dateTime']->format('d-m-Y H:i:s') ?>
            </td>

            <td style="text-align: right; border: 1px solid #000">
                <?= !empty($infoCumul['qteInWalletBeforeCession']) ? $this->amount($infoCumul['qteInWalletBeforeCession'], 'crypto') : '-' ?>
            </td>
            <td style="text-align: right; border: 1px solid #000">
                <?= !empty($infoCumul['qteOut']) ? $this->amount($infoCumul['qteOut'], 'crypto') : '-' ?>
            </td>
            <td style="text-align: right; border: 1px solid #000">
                <?= !empty($infoCumul['qteManquante']) ? $this->amount($infoCumul['qteManquante'], 'crypto') : '-'?>
            </td>
            <td style="text-align: right; border: 1px solid #000">
                <?= $this->amount(abs($infoCumul['cumulQteManquante']), 'crypto') ?>
            </td>
        </tr>

<?php endforeach ?>
        </tbody>
    </table>

<p style="font-size: 15px">Vous avez omis de renseigner l'acquisition d'au moins <?= $this->amount(abs($infoCumul['cumulQteManquante']), 'crypto') ?> <?= $cryptoCode ?></p>
<?php endforeach ?>

<br pagebreak="true"/>


<h1>Historique des transactions</h1>
<?php foreach ($this->arrayImport as $import) : ?>
    <?php
    $contentFile = file_get_contents($import->getPath());
    //var_dump($content);
    $linesArray = explode("\n", $contentFile); ?>
    <h2>Fichier <?= $import->getName() ?></h2>
    <table>
        <?php foreach ($linesArray as $index => $row) : ?>
            <?php $arrayLine = str_getcsv($row); ?>
            <?php if (count($arrayLine) > 1): ?>
                <?php if ($index == 0) : ?>
                    <thead>
                    <tr>
                        <?php foreach ($arrayLine as $field) : ?>
                            <td style="text-align: center; border: 1px solid #000000"><?= $field ?></td>
                        <?php endforeach ?>
                    </tr>
                    </thead>
                <?php else : ?>
                    <?php $linehtml = '<tr>'; ?>

                    <?php foreach ($arrayLine as $indexfield => $field) : ?>
                        <?php if ($indexfield == 0) {
                            $dateLine = new DateTime($field);
                        } ?>
                        <?php $linehtml .= '<td style="text-align: center; border: 1px solid #000000">' . $field . '</td>'; ?>
                    <?php endforeach ?>
                    <?php $linehtml .= '</tr>'; ?>

                    <?php if ($dateLine <= $endAnneeRapport) {
                        echo $linehtml;
                    } ?>
                <?php endif ?>
            <?php endif ?>
        <?php endforeach ?>
    </table>
<?php endforeach; ?>




</body>
</html>


??

??