[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_weblinks/views/weblinks/tmpl/ -> default.php (source)

   1  <?php defined('_JEXEC') or die('Restricted access'); ?>
   2  
   3  <?php JHTML::_('behavior.tooltip'); ?>
   4  
   5  <?php
   6      // Set toolbar items for the page
   7      JToolBarHelper::title(   JText::_( 'Weblink Manager' ), 'generic.png' );
   8      JToolBarHelper::publishList();
   9      JToolBarHelper::unpublishList();
  10      JToolBarHelper::deleteList();
  11      JToolBarHelper::editListX();
  12      JToolBarHelper::addNewX();
  13      JToolBarHelper::preferences('com_weblinks', '380');
  14      JToolBarHelper::help( 'screen.weblink' );
  15      $ordering = ($this->lists['order'] == 'a.ordering');
  16  ?>
  17  <form action="index.php" method="post" name="adminForm">
  18  <table>
  19  <tr>
  20      <td align="left" width="100%">
  21          <?php echo JText::_( 'Filter' ); ?>:
  22          <input type="text" name="search" id="search" value="<?php echo htmlspecialchars($this->lists['search']);?>" class="text_area" onchange="document.adminForm.submit();" />
  23          <button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>
  24          <button onclick="document.getElementById('search').value='';this.form.getElementById('filter_catid').value='0';this.form.getElementById('filter_state').value='';this.form.submit();"><?php echo JText::_( 'Reset' ); ?></button>
  25      </td>
  26      <td nowrap="nowrap">
  27          <?php
  28              echo $this->lists['catid'];
  29              echo $this->lists['state'];
  30          ?>
  31      </td>
  32  </tr>
  33  </table>
  34  <div id="editcell">
  35      <table class="adminlist">
  36      <thead>
  37          <tr>
  38              <th width="5">
  39                  <?php echo JText::_( 'NUM' ); ?>
  40              </th>
  41              <th width="20">
  42                  <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $this->items ); ?>);" />
  43              </th>
  44              <th class="title">
  45                  <?php echo JHTML::_('grid.sort',  'Title', 'a.title', $this->lists['order_Dir'], $this->lists['order'] ); ?>
  46              </th>
  47              <th width="5%" nowrap="nowrap">
  48                  <?php echo JHTML::_('grid.sort',  'Published', 'a.published', $this->lists['order_Dir'], $this->lists['order'] ); ?>
  49              </th>
  50              <th width="8%" nowrap="nowrap">
  51                  <?php echo JHTML::_('grid.sort',  'Order', 'a.ordering', $this->lists['order_Dir'], $this->lists['order'] ); ?>
  52                  <?php if ($ordering) echo JHTML::_('grid.order',  $this->items ); ?>
  53              </th>
  54              <th width="15%"  class="title">
  55                  <?php echo JHTML::_('grid.sort',  'Category', 'category', $this->lists['order_Dir'], $this->lists['order'] ); ?>
  56              </th>
  57              <th width="5%">
  58                  <?php echo JHTML::_('grid.sort',  'Hits', 'a.hits', $this->lists['order_Dir'], $this->lists['order'] ); ?>
  59              </th>
  60              <th width="1%" nowrap="nowrap">
  61                  <?php echo JHTML::_('grid.sort',  'ID', 'a.id', $this->lists['order_Dir'], $this->lists['order'] ); ?>
  62              </th>
  63          </tr>
  64      </thead>
  65      <tfoot>
  66          <tr>
  67              <td colspan="9">
  68                  <?php echo $this->pagination->getListFooter(); ?>
  69              </td>
  70          </tr>
  71      </tfoot>
  72      <tbody>
  73      <?php
  74      $k = 0;
  75      for ($i=0, $n=count( $this->items ); $i < $n; $i++)
  76      {
  77          $row = &$this->items[$i];
  78  
  79          $link     = JRoute::_( 'index.php?option=com_weblinks&view=weblink&task=edit&cid[]='. $row->id );
  80  
  81          $checked     = JHTML::_('grid.checkedout',   $row, $i );
  82          $published     = JHTML::_('grid.published', $row, $i );
  83  
  84          $row->cat_link     = JRoute::_( 'index.php?option=com_categories&section=com_weblinks&task=edit&type=other&cid[]='. $row->catid );
  85          ?>
  86          <tr class="<?php echo "row$k"; ?>">
  87              <td>
  88                  <?php echo $this->pagination->getRowOffset( $i ); ?>
  89              </td>
  90              <td>
  91                  <?php echo $checked; ?>
  92              </td>
  93              <td>
  94                  <?php
  95                  if (  JTable::isCheckedOut($this->user->get ('id'), $row->checked_out ) ) {
  96                      echo $this->escape($row->title);
  97                  } else {
  98                  ?>
  99                  <span class="editlinktip hasTip" title="<?php echo JText::_( 'Edit Weblinks' );?>::<?php echo $this->escape($row->title); ?>">
 100                      <a href="<?php echo $link; ?>">
 101                          <?php echo $this->escape($row->title); ?></a></span>
 102                  <?php
 103                  }
 104                  ?>
 105              </td>
 106              <td align="center">
 107                  <?php echo $published;?>
 108              </td>
 109              <td class="order">
 110                  <span><?php echo $this->pagination->orderUpIcon( $i, ($row->catid == @$this->items[$i-1]->catid),'orderup', 'Move Up', $ordering ); ?></span>
 111                  <span><?php echo $this->pagination->orderDownIcon( $i, $n, ($row->catid == @$this->items[$i+1]->catid), 'orderdown', 'Move Down', $ordering ); ?></span>
 112                  <?php $disabled = $ordering ?  '' : 'disabled="disabled"'; ?>
 113                  <input type="text" name="order[]" size="5" value="<?php echo $row->ordering;?>" <?php echo $disabled ?> class="text_area" style="text-align: center" />
 114              </td>
 115              <td>
 116                  <span class="editlinktip hasTip" title="<?php echo JText::_( 'Edit Category' );?>::<?php echo $this->escape($row->category); ?>">
 117                  <a href="<?php echo $row->cat_link; ?>" >
 118                  <?php echo $this->escape($row->category); ?></a></span>
 119              </td>
 120              <td align="center">
 121                  <?php echo $row->hits; ?>
 122              </td>
 123              <td align="center">
 124                  <?php echo $row->id; ?>
 125              </td>
 126          </tr>
 127          <?php
 128          $k = 1 - $k;
 129      }
 130      ?>
 131      </tbody>
 132      </table>
 133  </div>
 134  
 135      <input type="hidden" name="option" value="com_weblinks" />
 136      <input type="hidden" name="task" value="" />
 137      <input type="hidden" name="boxchecked" value="0" />
 138      <input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
 139      <input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
 140      <?php echo JHTML::_( 'form.token' ); ?>
 141  </form>


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