/
var
/
www
/
vhosts
/
ihelp.ro
/
httpdocs
/
templates
/
Admin
/
Banners
/
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/Banners
mkdir
upload
Name
Size
Mode
Actions
add.php
1283
0644
edit
dl
rm
edit.php
1996
0644
edit
dl
rm
index.php
6697
0644
edit
dl
rm
view.php
1635
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/httpdocs/templates/Admin/Banners/index.php
(6697B)
<!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-lg-12"> <h1> <?php echo __('Banners'); ?> <div class="float-right"> <?php echo $this->Html->link(__('New'), ['action' => 'add'], ['class' => 'btn btn-success btn-xs']); ?> </div> </h1> </div> </div> </div><!-- /.container-fluid --> </section> <!-- Main content --> <section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-body"> <?php echo $this->form->create(null, ['class' => 'row', 'type' => 'get']); echo '<div class="col-lg-3">' . $this->Form->control('uuid', ['label' => __('Banner #'), 'value' => $_GET['uuid'] ?? '']) . '</div>'; ?> <!-- Date range --> <div class="col-lg-3"> <?= $this->Form->control('name', ['label' => __('Name'), 'value' => $_GET['name'] ?? '']) ?> </div> <div class="col-lg-3"> <?= $this->Form->control('title_link', ['label' => __('Title link'), 'value' => $_GET['title_link'] ?? '']) ?> </div> <div class="col-lg-3"> <?= $this->Form->control('url_link', ['label' => __('Url link'), 'value' => $_GET['url_link'] ?? '']) ?> </div> <div class="col-lg-3"> <?= $this->Form->control('position', [ 'class' => 'form-control select-with-search', 'type' => 'select', 'options' => $positionList, 'value' => $_GET['position'] ?? null ]) ?> </div> <?php echo '<div class="col-lg-2">' . $this->Form->control('is_active', ['class' => 'form-control select-with-search', 'type' => 'select', 'options' => ['1' => __('Yes'), '0' => __('No')], 'empty' => __('All'), 'value' => $_GET['is_active'] ?? '']) . '</div>'; echo '<div class="col-lg-12">'; echo $this->Form->button('Search'); echo $this->Html->link('Reset', ['prefix' => 'Admin', 'controller' => 'Banners', 'action' => 'index'], ['class' => 'btn btn-danger float-right']); echo $this->Form->end() . '</div>'; ?> </div> </div> </div> <div class="col-lg-12"> <div class="card"> <!-- /.box-header --> <div class="card-body table-responsive p-0"> <table class="table table-hover text-nowrap"> <thead> <tr> <th scope="col"> <?php echo $this->Paginator->sort('Banners.id', ['label' => _('Banner #')]); ?> </th> <th scope="col"> <?php echo $this->Paginator->sort('Banners.image_path', ['label' => _('Image')]); ?> </th> <th scope="col"> <?php echo $this->Paginator->sort('Banners.name', ['label' => _('Name')]); ?> </th> <th scope="col"> <?php echo $this->Paginator->sort('Banners.url_link', ['label' => _('Url link')]); ?> </th> <th scope="col"> <?php echo $this->Paginator->sort('Banners.position', ['label' => _('Position')]); ?> </th> <th scope="col"> <?php echo $this->Paginator->sort('Banners.is_active', ['label' => _('Activ')]); ?> </th> <th class="actions text-center" scope="col"> <?php echo __('Actions'); ?></th> </tr> </thead> <tbody> <?php foreach ($banners as $banner) : ?> <tr> <td><?php echo h($banner->uuid); ?></td> <td><?= $this->Html->image($banner->image_path, ['alt' => 'Banner Image', 'width' => '80', 'height' => '40']); ?></td> <td><?= $banner->name; ?></td> <td><?= h($banner->url_link) ?></td> <td><?= $this->Number->format($banner->position) ?></td> <td><i class="fa <?php echo $banner->is_active ? 'fa-check-circle text-success ' : 'fa-times-circle text-danger'; ?>"></i> </td> <td class="actions text-center"> <?php echo $this->Html->link(__('View'), ['prefix' => 'Admin', 'controller' => 'Banners', 'action' => 'view', $banner->id], ['class' => 'btn btn-info btn-xs']); ?> <?php echo $this->Html->link(__('Edit'), ['prefix' => 'Admin', 'controller' => 'Banners', 'action' => 'edit', $banner->id], ['class' => 'btn btn-warning btn-xs']); ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> </div> <div class="row"> <div class="col-sm-12"> <?php echo $this->element('paginator'); ?> </div> </div> </div> </section>
Save
cmd:
run