Blame view

src/app/backend/views/request/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
25
26
  <div class="inner"><?= $this->flash->output(); ?></div>
  <a class="btn btn-primary" href="/add_request">Добавить</a>
  <table class="table table-hover" data-url="/sort_user">
      <thead>
      <tr>
          <th>#</th>
          <th><p>E-mail</p></th>
          <th></th>
          <th class="table-buttons"></th>
      </tr>
      </thead>
      <tbody id="result">
      <?php foreach ($data as $item):?>
          <tr>
              <td><?=$item->id; ?></td>
              <td><?= $item->email; ?></td>
              <td><a href="<?= $this->url->get([ 'for' => 'add_brief', 'id' =>$item->id   ]) ?>" class="btn btn-primary">Бриф</a></td>
              <td>
                  <a href="<?= $this->url->get([ 'for' => 'delete_request', "id"=>$item->id ]) ?>" class="action-img delete_icon" title="Удалить" onclick="return confirm('Вы действительно хотите удалить пункт?')"></a>
                  <a href="<?= $this->url->get([ 'for' => 'update_request', "id"=>$item->id ]) ?>" class="action-img edit-icon" title="Редактировать"></a>
              </td>
          </tr>
      <?php endforeach; ?>
      </tbody>
  </table>
  <a class="btn btn-primary add-state" href="/add_request">Добавить</a>