index.php 1.85 KB
<h1>Статистика</h1>
<div class="inner"><?= $this->flash->output(); ?></div>
<table class="table table-hover" data-url="">
    <thead>
    <tr>
        <th >#</th>
        <th >Название</th>
        <th >Дата</th>
        <th >Campaign</th>
        <th >Отправлено</th>
        <th >Доставленные</th>
        <th >Открытые</th>
        <th >Переходов</th>
        <th >Спам</th>
        <th >Отписавшихся</th>
        <th class="table-buttons"></th>
    </tr>
    </thead>
    <tbody id="result">
    <?php
    if( !empty( $info ) ) :?>
        <?php foreach ($info as $item):?>
            <tr>
                <td><?= $item->campaign_id ?></td>
                <td><?= $item->name ?></td>
                <td class="date"><?= $item->date ?></td>
                <td><?= $item->campaign ?></td>
                <td><?= $item->total ?></td>
                <td><?= !empty($item->delivered) ? $item->delivered.'%' : '' ?></td>
                <td><?= !empty($item->ok_read) ? $item->ok_read.'%' : ''; ?></td>
                <td><?= !empty($item->ok_link_visited) ? $item->ok_link_visited.'%' : ''; ?></td>
                <td><?= !empty($item->ok_fbl) ? $item->ok_fbl.'%' : ''; ?></td>
                <td><?= !empty($item->ok_unsubscribed) ? $item->ok_unsubscribed.'%' : ''; ?></td>
                <td>

                    <a class="news_submit float" href="<?= $this->url->get([ 'for' => 'delivery_update', 'id' => $item->campaign_id ]) ?>" title="Обновить данные">Обновить</a>
                    <a class="news_submit float" href="<?= $this->url->get([ 'for' => 'delivery_more_info', 'id' => $item->campaign_id ]) ?>" title="Обновить данные">Подробнее</a>
                </td>
            </tr>
        <?php endforeach; ?>
    <?php endif ?>
    </tbody>
</table>