Просмотр файла libarea-0.9/modules/admin/views/logs/search.php

Размер файла: 1.34Kb
<?= insertTemplate(
  'menu',
  [
    'data'  => $data,
    'meta'  => $meta,
    'menus' => [
      [
        'id'    => 'audits.all',
        'url'   => url('admin.logs'),
        'name'  => __('admin.logs'),
      ],
      [
        'id'    => 'logssearch.all',
        'url'   => url('admin.logs.search'),
        'name'  => __('admin.search'),
      ]
    ]
  ]
); ?>

<div class="box">

  <?php if ($data['logs']) : ?>
    <table>
      <thead>
        <th><?= __('admin.query'); ?></th>
        <th><?= __('admin.time'); ?></th>
        <th class="w60"><?= __('admin.number'); ?></th>
      </thead>
      <?php foreach ($data['logs'] as $log) : ?>
        <tr>
          <td class="gray-600">
            <a target="_blank" rel="noreferrer" href="/search/go?q=<?= htmlEncode($log['request']); ?>&type=<?= $log['action_type']; ?>">
              <?= htmlEncode($log['request']); ?>
            </a>
          </td>
          <td class="gray-600"> <?= __('admin.' . $log['action_type']); ?> | <?= langDate($log['add_date']); ?></td>
          <td class="center">
            <?= $log['count_results']; ?>
          </td>
        </tr>
      <?php endforeach; ?>
    </table>
  <?php else : ?>
    <?= insert('/_block/no-content', ['type' => 'small', 'text' => __('admin.no'), 'icon' => 'info']); ?>
  <?php endif; ?>
</div>
</main>
<?= insertTemplate('footer'); ?>