Sindbad~EG File Manager

Current Path : /var/www/html/votacao.camarasap.rs.gov.br/templates/PoliticalParties/
Upload File :
Current File : /var/www/html/votacao.camarasap.rs.gov.br/templates/PoliticalParties/index.php

<?php $this->assign('title', __('Political Parties')); ?>
<?php $values['name'] = $this->request->getQuery('name'); ?>

<div class="row">

  <div class="col-md-12">    

    <?= $this->Form->create(null, ['type' => 'get']) ?>

    <!-- general form elements -->
    <div class="card card-primary">
      <div class="card-header">
        <h3 class="card-title"><?= __('Search Political Parties') ?></h3>
      </div><!-- /.card-header -->
      <!-- form start -->
      <form role="form">
        <div class="card-body">
          <div class="row">
            <div class="col-md-12 col-xs-12">
              <div class="form-group">
                <label for="name"><?= __('Name') ?></label>
                <?= $this->Form->control('name', ['label' => false, 'class' => 'form-control', 'value' => h($values['name'])]) ?>
              </div>
            </div>
          </div>
        </div><!-- /.card-body -->

        <div class="card-footer">
          <?= $this->Form->button(__('Search'), ['class' => 'btn btn-primary']) ?>
          <p class="float-right">
            <?= $this->Html->link(__('New Political Party'), ['action' => 'add'], ['class' => 'btn btn-primary']) ?>
          </p>
        </div>

      </form>
    </div><!-- /.card -->

    <?= $this->Form->end() ?>

    <div class="card">

        <!-- /.box-header -->
        <div class="card-body table-responsive">
          <table class="table table-bordered">
            <tbody><tr>
              <th style="width: 10px"><?= $this->Paginator->sort('id') ?></th>
              <th><?= $this->Paginator->sort('name') ?></th>
              <th><?= $this->Paginator->sort('acronym') ?></th>
              <th><?= $this->Paginator->sort('created') ?></th>
              <th><?= $this->Paginator->sort('modified') ?></th>
              <th width="10%"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($politicalParties as $politicalParty): ?>
                <tr>
                    <td><?= $this->Number->format($politicalParty->id) ?></td>
                    <td><?= h($politicalParty->name) ?></td>
                    <td><?= h($politicalParty->acronym) ?></td>
                    <td><?= h($politicalParty->created) ?></td>
                    <td><?= h($politicalParty->modified) ?></td>
                    <td class="actions">
                        <?= $this->Html->link(__('<i class="fas fa-pencil-alt" aria-hidden="true"></i>'), ['action' => 'edit', $politicalParty->id], ['escape' => false, 'title' => __('Edit')]) ?>
                        <?= $this->Form->postLink(__('<i class="fas fa-trash" aria-hidden="true"></i>'), ['action' => 'delete', $politicalParty->id], ['confirm' => __('Are you sure you want to delete # {0}?', $politicalParty->id), 'escape' => false, 'title' => __('Delete')]) ?>
                    </td>
                </tr>
            <?php endforeach; ?>
          </tbody></table>
        </div>
        <!-- /.card-body -->
        <div class="card-footer clearfix">
          <?= $this->element('layout/pagination'); ?>
        </div>
    </div>

  </div>

</div>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists