73 lines
3.1 KiB
Plaintext
73 lines
3.1 KiB
Plaintext
<style>
|
|
tr.unvis_1 > td {
|
|
color: #6c757d !important;
|
|
}
|
|
tr.unvis_1 {
|
|
opacity: .6;
|
|
}
|
|
|
|
</style>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-12" id="colTable">
|
|
<div class="bg-white rounded p-2">
|
|
<h2 class="mb-2"><?php echo \htmlentities($cat->cat_name, ENT_QUOTES, 'UTF-8', false); ?></h2>
|
|
<div class="p-2 bg-light">
|
|
<?php if($module->add): ?>
|
|
<a href="?cat=<?php echo \htmlentities($cat->cat, ENT_QUOTES, 'UTF-8', false); ?>&act=edit&id=0" data-fancybox data-type="ajax" class="btn btn-success btn-sm"><i class="far fa-plus"></i> Создать</a>
|
|
<?php endif; ?>
|
|
<button class="btn btn-primary btn-sm" type="button" data-toggle="collapse" data-target="#pageFilter" aria-expanded="false" aria-controls="multiCollapseExample2"><i class="far fa-filter"></i> Фильтр</button>
|
|
</div>
|
|
<div class="q_filter collapse bg-light p-2 mt-2" id="pageFilter">
|
|
<form>
|
|
<input type="hidden" name="cat" value="<?php echo \htmlentities($cat->cat, ENT_QUOTES, 'UTF-8', false); ?>">
|
|
<?php echo $filter; ?>
|
|
|
|
<div class="form-group mt-3">
|
|
<button type="submit" class="btn btn-primary">Показать</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="table-responsive mt-3">
|
|
<table class="table table-sm small table-hover table2excel">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<?php $__currentLoopData = $cols; $this->addLoop($__currentLoopData);$this->getFirstLoop();
|
|
foreach($__currentLoopData as $colName => $colTitle): $loop = $this->incrementLoopIndices(); ?>
|
|
<th><?php echo \htmlentities($colTitle, ENT_QUOTES, 'UTF-8', false); ?></th>
|
|
<?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
|
|
<?php if($module->del): ?>
|
|
<th>Уд.</th>
|
|
<?php endif; ?>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php while($row->next()): ?>
|
|
<tr class="unvis_<?php echo \htmlentities($row->get('_sys_unvisible'), ENT_QUOTES, 'UTF-8', false); ?>">
|
|
<td class="text-nowrap">
|
|
<a href="?cat=<?php echo \htmlentities($cat->cat, ENT_QUOTES, 'UTF-8', false); ?>&act=edit&id=<?php echo \htmlentities($row->id, ENT_QUOTES, 'UTF-8', false); ?>&curpage=<?php echo \htmlentities($page, ENT_QUOTES, 'UTF-8', false); ?><?php echo \htmlentities($filterUrl, ENT_QUOTES, 'UTF-8', false); ?>" data-fancybox data-type="ajax"><i class="fas fa-edit"></i></a>
|
|
<?php echo \htmlentities($row->id, ENT_QUOTES, 'UTF-8', false); ?>
|
|
|
|
</td>
|
|
<?php $__currentLoopData = $cols; $this->addLoop($__currentLoopData);$this->getFirstLoop();
|
|
foreach($__currentLoopData as $colName => $colTitle): $loop = $this->incrementLoopIndices(); ?>
|
|
<td>
|
|
<?php echo $row->render($colName,true); ?>
|
|
|
|
</td>
|
|
<?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
|
|
<?php if($module->del): ?>
|
|
<td><a href="?cat=<?php echo \htmlentities($cat->cat, ENT_QUOTES, 'UTF-8', false); ?>&act=del&id=<?php echo \htmlentities($row->id, ENT_QUOTES, 'UTF-8', false); ?>&curpage=<?php echo \htmlentities($page, ENT_QUOTES, 'UTF-8', false); ?><?php echo \htmlentities($filterUrl, ENT_QUOTES, 'UTF-8', false); ?>" onClick="return confirm('Удалить?');" title="Удалить"><i class="fas fa-times text-danger "></i></a></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endwhile; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php echo $walker; ?>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |