[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_menus/views/list/tmpl/ -> default.php (source)

   1  <?php defined('_JEXEC') or die('Restricted access'); ?>
   2  
   3  <form action="index.php?option=com_menus&amp;menutype=<?php echo htmlspecialchars($this->menutype); ?>" method="post" name="adminForm">
   4  
   5      <table>
   6          <tr>
   7              <td align="left" width="100%">
   8                  <?php echo JText::_( 'Filter' ); ?>:
   9                  <input type="text" name="search" id="search" value="<?php echo htmlspecialchars($this->lists['search']);?>" class="text_area" onchange="document.adminForm.submit();" />
  10                  <button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>
  11                  <button onclick="document.getElementById('search').value='';this.form.getElementById('levellimit').value='10';this.form.getElementById('filter_state').value='';this.form.submit();"><?php echo JText::_( 'Reset' ); ?></button>
  12              </td>
  13              <td nowrap="nowrap">
  14                  <?php
  15                  echo JText::_( 'Max Levels' );
  16                  echo $this->lists['levellist'];
  17                  echo $this->lists['state'];
  18                  ?>
  19              </td>
  20          </tr>
  21      </table>
  22  
  23  <table class="adminlist">
  24      <thead>
  25          <tr>
  26              <th width="20">
  27                  <?php echo JText::_( 'NUM' ); ?>
  28              </th>
  29              <th width="20">
  30                  <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->items); ?>);" />
  31              </th>
  32              <th class="title">
  33                  <?php echo JHTML::_('grid.sort',   'Menu Item', 'm.name', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  34              </th>
  35              <th width="5%">
  36                  <?php echo JText::_( 'Default' ); ?>
  37              </th>
  38              <th width="5%" nowrap="nowrap">
  39                  <?php echo JHTML::_('grid.sort',   'Published', 'm.published', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  40              </th>
  41              <th width="8%" nowrap="nowrap">
  42                  <?php echo JHTML::_('grid.sort',   'Order by', 'm.ordering', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  43                  <?php if ($this->ordering) echo JHTML::_('grid.order',  $this->items ); ?>
  44              </th>
  45              <th width="10%">
  46                  <?php echo JHTML::_('grid.sort',   'Access', 'groupname', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  47              </th>
  48              <th width="20%" class="title">
  49                  <?php echo JHTML::_('grid.sort',   'Type', 'm.type', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  50              </th>
  51              <th width="1%" nowrap="nowrap">
  52                  <?php echo JHTML::_('grid.sort',   'Itemid', 'm.id', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  53              </th>
  54          </tr>
  55      </thead>
  56      <tfoot>
  57          <tr>
  58              <td colspan="12">
  59                  <?php echo $this->pagination->getListFooter(); ?>
  60              </td>
  61          </tr>
  62      </tfoot>
  63      <tbody>
  64      <?php
  65      $k = 0;
  66      $i = 0;
  67      $n = count( $this->items );
  68      $rows = &$this->items;
  69      foreach ($rows as $row) :
  70          $access     = JHTML::_('grid.access',   $row, $i );
  71          $checked     = JHTML::_('grid.checkedout',   $row, $i );
  72          $published     = JHTML::_('grid.published', $row, $i );
  73          ?>
  74          <tr class="<?php echo "row$k"; ?>">
  75              <td>
  76                  <?php echo $i + 1 + $this->pagination->limitstart;?>
  77              </td>
  78              <td>
  79                  <?php echo $checked; ?>
  80              </td>
  81              <td nowrap="nowrap">
  82                  <?php if (  JTable::isCheckedOut($this->user->get('id'), $row->checked_out ) ) : ?>
  83                  <?php echo $row->treename; ?>
  84                  <?php else : ?>
  85                  <span class="editlinktip hasTip" title="<?php echo JText::_( 'Edit Menu' );?>::<?php echo $row->treename; ?>">
  86                  <a href="<?php echo JRoute::_('index.php?option=com_menus&menutype=' . htmlspecialchars($row->menutype) . '&task=edit&cid[]=' . $row->id); ?>"><?php echo $row->treename; ?></a></span>
  87                  <?php endif; ?>
  88              </td>
  89              <td align="center">
  90                  <?php if ( $row->home == 1 ) : ?>
  91                  <img src="templates/khepri/images/menu/icon-16-default.png" alt="<?php echo JText::_( 'Default' ); ?>" />
  92                  <?php else : ?>
  93                  &nbsp;
  94                  <?php endif; ?>
  95              </td>
  96              <td align="center">
  97                  <?php echo $published;?>
  98              </td>
  99              <td class="order" nowrap="nowrap">
 100                  <span><?php echo $this->pagination->orderUpIcon( $i, $row->parent == 0 || $row->parent == @$rows[$i-1]->parent, 'orderup', 'Move Up', $this->ordering); ?></span>
 101                  <span><?php echo $this->pagination->orderDownIcon( $i, $n, $row->parent == 0 || $row->parent == @$rows[$i+1]->parent, 'orderdown', 'Move Down', $this->ordering ); ?></span>
 102                  <?php $disabled = $this->ordering ?  '' : 'disabled="disabled"'; ?>
 103                  <input type="text" name="order[]" size="5" value="<?php echo $row->ordering; ?>" <?php echo $disabled ?> class="text_area" style="text-align: center" />
 104              </td>
 105              <td align="center">
 106                  <?php echo $access;?>
 107              </td>
 108              <td>
 109                  <span class="editlinktip" style="text-transform:capitalize"><?php echo ($row->type == 'component') ? $row->view : $row->type; ?></span>
 110              </td>
 111              <td align="center">
 112                  <?php echo $row->id; ?>
 113              </td>
 114          </tr>
 115          <?php
 116          $k = 1 - $k;
 117          $i++;
 118          ?>
 119      <?php endforeach; ?>
 120      </tbody>
 121      </table>
 122  
 123      <input type="hidden" name="option" value="com_menus" />
 124      <input type="hidden" name="menutype" value="<?php echo htmlspecialchars($this->menutype); ?>" />
 125      <input type="hidden" name="task" value="view" />
 126      <input type="hidden" name="boxchecked" value="0" />
 127      <input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
 128      <input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
 129      <?php echo JHTML::_( 'form.token' ); ?>
 130  </form>


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