Blame view

src/app/backend/views/brief/index.php 1.85 KB
ef60cd4d   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  <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>