[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_finder/tmpl/searches/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_finder
   6   *
   7   * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\HTML\HTMLHelper;
  14  use Joomla\CMS\Language\Text;
  15  use Joomla\CMS\Layout\LayoutHelper;
  16  use Joomla\CMS\Router\Route;
  17  
  18  /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
  19  $wa = $this->document->getWebAssetManager();
  20  $wa->useScript('multiselect');
  21  
  22  $listOrder = $this->escape($this->state->get('list.ordering'));
  23  $listDirn = $this->escape($this->state->get('list.direction'));
  24  
  25  ?>
  26  <form action="<?php echo Route::_('index.php?option=com_finder&view=searches'); ?>" method="post" name="adminForm" id="adminForm">
  27      <div class="row">
  28          <div class="col-md-12">
  29              <div id="j-main-container" class="j-main-container">
  30                  <?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this, 'options' => array('filterButton' => false))); ?>
  31                  <?php if (empty($this->items)) : ?>
  32                      <div class="alert alert-info">
  33                          <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span>
  34                          <?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
  35                      </div>
  36                  <?php else : ?>
  37                  <table class="table">
  38                      <caption class="visually-hidden">
  39                          <?php echo Text::_('COM_FINDER_SEARCHES_TABLE_CAPTION'); ?>,
  40                              <span id="orderedBy"><?php echo Text::_('JGLOBAL_SORTED_BY'); ?> </span>,
  41                              <span id="filteredBy"><?php echo Text::_('JGLOBAL_FILTERED_BY'); ?></span>
  42                      </caption>
  43                      <thead>
  44                          <tr>
  45                              <th scope="col">
  46                                  <?php echo HTMLHelper::_('searchtools.sort', 'COM_FINDER_HEADING_PHRASE', 'a.searchterm', $listDirn, $listOrder); ?>
  47                              </th>
  48                              <th scope="col" class="w-15">
  49                                  <?php echo HTMLHelper::_('searchtools.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?>
  50                              </th>
  51                              <th scope="col" class="w-1 text-center">
  52                                  <?php echo Text::_('COM_FINDER_HEADING_RESULTS'); ?>
  53                              </th>
  54                          </tr>
  55                      </thead>
  56                      <tbody>
  57                      <?php foreach ($this->items as $i => $item) : ?>
  58                          <tr class="row<?php echo $i % 2; ?>">
  59                              <th scope="row" class="break-word">
  60                                  <?php echo $this->escape($item->searchterm); ?>
  61                              </th>
  62                              <td>
  63                                  <?php echo (int) $item->hits; ?>
  64                              </td>
  65                              <td class="text-center btns">
  66                                  <?php echo (int) $item->results; ?>
  67                              </td>
  68                          </tr>
  69                      <?php endforeach; ?>
  70                      </tbody>
  71                  </table>
  72  
  73                      <?php // load the pagination. ?>
  74                      <?php echo $this->pagination->getListFooter(); ?>
  75  
  76                  <?php endif; ?>
  77                  <input type="hidden" name="task" value="">
  78                  <input type="hidden" name="boxchecked" value="0">
  79                  <?php echo HTMLHelper::_('form.token'); ?>
  80              </div>
  81          </div>
  82      </div>
  83  </form>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer