Blame view

src/app/backend/views/projects/index.php 1.24 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
  <h1>Проекты</h1>
  <a class="btn btn-primary" href="/add_project">Добавить</a>
  <table class="table table-hover" data-url="/sort_project">
      <thead>
      <tr>
          <th id="id">#</th>
          <th id="name" class="sortable"><p>Название</p></th>
          <th id="url" class="sortable"><p>url</p></th>
          <th id="status" class="sortable"><p>Статус</p></th>
          <th class="table-buttons"></th>
      </tr>
      </thead>
      <tbody id="result">
  
      <?php foreach ($data as $item):?>
          <tr>
              <td><?=$item->id; ?></td>
              <td><?= $item->name; ?></td>
              <td><?= $item->url; ?></td>
              <td><?= $item->status; ?></td>
              <td>
                  <a href="<?= $this->url->get([ 'for' => 'delete_project', "id"=>$item->id]) ?>" class="action-img delete_icon" title="Удалить" onclick="return confirm('Вы действительно хотите удалить пункт?')"></a>
                  <a href="<?= $this->url->get([ 'for' => 'edit_project', "id"=>$item->id ]) ?>" class="action-img edit-icon" title="Редактировать"></a>
              </td>
          </tr>
      <?php endforeach; ?>
      </tbody>
  </table>
  <a class="btn btn-primary" href="/add_project">Добавить</a>