Файловый менеджер - Редактировать - /var/www/vhosts/studiocol.dev1.mndrn.cloud/app/documents/_v/list.php
Назад
<div class="page-header"> <ul class="list-inline pull-right"> <!-- li><a class="btn btn-default" href="/documents/admin/order/"><i class="fa fa-random"></i> Riordina</a></li --> <li><a class="btn btn-default" href="/documents/admin/edit/"><i class="fa fa-cloud-upload"></i> Aggiungi</a></li> </ul> <h1>Documenti <small>di tipo circolari o moduli per utenti registrati</small></h1> </div> <? $count = LoadClass('documents', 1)->filter('COUNT'); $perPage = 40; $maxPage = ceil($count / $perPage); $currentPage = ($_GET['p']) ? $_GET['p'] : 1; $startItem = $perPage*($currentPage-1); $items = LoadClass('documents', 1)->filter( array('LIMIT', $startItem, $perPage), ' ORDER BY `creationTime` DESC ' ); if( $items ) : ?> <table class="table table-hover table-bordered"> <thead> <tr> <th>ID</th> <th>Titolo</th> <th>Inserimento</th> <th>Aggiornamento</th> <th>Categoria</th> <th>Documento</th> </tr> </thead> <tbody> <?php foreach( $items as $item ) : ?> <tr> <td> <?=$item->id?> </td> <td> <a href="/documents/admin/edit/id:<?=$item->id?>"><?=$item->title?></a> </td> <td> <?=date('d/m/Y H:i', $item->creationTime)?> </td> <td> <?=date('d/m/Y H:i', $item->gyu_updateTime)?> </td> <td> <?=ucfirst($item->categoria)?></a> </td> <td> File: <a href="<?=$item->get_permalink()?>"><?=$item->doc?></a> </td> </tr> <?php endforeach; ?> </tbody> </table> <?php if( $count > 0 ) CallFunction('admin', 'pagination', $currentPage, $maxPage, '/documents/admin'); ?> <? else: ?> <div class="alert alert-info"> Ancora nessun elemento inserito... </div> <? endif; ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка