[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_search/views/search/tmpl/ -> default.php (source)

   1  <?php defined('_JEXEC') or die('Restricted access'); ?>
   2  
   3  <form action="index.php" method="post" name="adminForm">
   4      <table>
   5          <tr>
   6              <td align="left" width="100%">
   7                  <?php echo JText::_( 'Filter' ); ?>:
   8                  <input type="text" name="search" id="search" value="<?php echo $this->escape($this->search); ?>" class="text_area" onchange="document.adminForm.submit();" />
   9                  <button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>
  10                  <button onclick="document.getElementById('search').value='';this.form.submit();"><?php echo JText::_( 'Reset' ); ?></button>
  11              </td>
  12              <td nowrap="nowrap">
  13                  <span class="componentheading"><?php echo JText::_( 'Search Logging' ); ?> :
  14                  <?php echo $this->enabled ? '<b><font color="green">'. JText::_( 'Enabled' ) .'</font></b>' : '<b><font color="red">'. JText::_( 'Disabled' ) .'</font></b>' ?>
  15                  </span>
  16              </td>
  17              <td nowrap="nowrap" align="right">
  18              <?php if ( $this->showResults ) : ?>
  19                  <a href="index.php?option=com_search&amp;search_results=0"><?php echo JText::_( 'Hide Search Results' ); ?></a>
  20              <?php else : ?>
  21                  <a href="index.php?option=com_search&amp;search_results=1"><?php echo JText::_( 'Show Search Results' ); ?></a>
  22              <?php endif; ?>
  23              </td>
  24          </tr>
  25      </table>
  26  
  27      <div id="tablecell">
  28          <table class="adminlist">
  29              <thead>
  30                  <tr>
  31                      <th width="10">
  32                          <?php echo JText::_( 'NUM' ); ?>
  33                      </th>
  34                      <th class="title">
  35                          <?php echo JHTML::_('grid.sort',   'Search Text', 'search_term', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  36                      </th>
  37                      <th nowrap="nowrap" width="20%">
  38                          <?php echo JHTML::_('grid.sort',   'Times Requested', 'hits', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  39                      </th>
  40                      <?php
  41                      if ( $this->showResults ) : ?>
  42                          <th nowrap="nowrap" width="20%">
  43                              <?php echo JText::_( 'Results Returned' ); ?>
  44                          </th>
  45                      <?php endif; ?>
  46                  </tr>
  47              </thead>
  48              <tfoot>
  49                  <tr>
  50                      <td colspan="4">
  51                          <?php echo $this->pageNav->getListFooter(); ?>
  52                      </td>
  53                  </tr>
  54              </tfoot>
  55              <tbody>
  56              <?php
  57              $k = 0;
  58              for ($i=0, $n = count($this->items); $i < $n; $i++) {
  59                  $row =& $this->items[$i];
  60                  ?>
  61                  <tr class="row<?php echo $k;?>">
  62                      <td align="right">
  63                          <?php echo $i+1+$this->pageNav->limitstart; ?>
  64                      </td>
  65                      <td>
  66                          <?php echo htmlspecialchars($row->search_term, ENT_QUOTES, 'UTF-8'); ?>
  67                      </td>
  68                      <td align="center">
  69                          <?php echo $row->hits; ?>
  70                      </td>
  71                      <?php if ( $this->showResults ) : ?>
  72                      <td align="center">
  73                          <?php echo $row->returns; ?>
  74                      </td>
  75                      <?php endif; ?>
  76                  </tr>
  77                  <?php
  78                  $k = 1 - $k;
  79              }
  80              ?>
  81              </tbody>
  82          </table>
  83      </div>
  84  
  85      <input type="hidden" name="option" value="com_search" />
  86      <input type="hidden" name="task" value="" />
  87      <input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
  88      <input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
  89  </form>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1