Blame view

src/app/backend/views/message/index.php 1.19 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
  <div class="inner"><?= $this->flash->output(); ?></div>
  <table class="table table-hover" data-url="/sort_user">
      <thead>
      <tr>
          <th>#</th>
          <th><p>Контакт</p></th>
          <th><p>Текст</p></th>
          <th class="table-buttons"></th>
      </tr>
      </thead>
      <tbody id="result">
      <?php foreach ($data as $item):?>
          <tr <?= $item->status ? ($item->status == '1' ? 'class="checked_message"' : 'class="important_message"') : 'class="new_message"'?>>
              <td><?=$item->id; ?></td>
              <td><?= $item->email ? $item->email : $item->phone ?></td>
              <td><div class="table_text_inner_block"><?= $item->comments; ?></div></td>
              <td>
                  <a href="<?= $this->url->get([ 'for' => 'delete_message', "id"=>$item->id, 'type' => $type ]) ?>" class="action-img delete_icon" title="Удалить" onclick="return confirm('Вы действительно хотите удалить пункт?')"></a>
                  <a href="<?= $this->url->get([ 'for' => 'update_message', "id"=>$item->id ]) ?>" class="action-img edit-icon" title="Редактировать"></a>
              </td>
          </tr>
      <?php endforeach; ?>
      </tbody>
  </table>