[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_users/views/users/tmpl/ -> default.php (source)

   1  <?php defined('_JEXEC') or die('Restricted access'); ?>
   2  
   3  <?php  JHTML::_('behavior.tooltip');  ?>
   4  
   5  <?php
   6      JToolBarHelper::title( JText::_( 'User Manager' ), 'user.png' );
   7      JToolBarHelper::custom( 'logout', 'cancel.png', 'cancel_f2.png', 'Logout' );
   8      JToolBarHelper::deleteList();
   9      JToolBarHelper::editListX();
  10      JToolBarHelper::addNewX();
  11      JToolBarHelper::help( 'screen.users' );
  12  ?>
  13  
  14  <form action="index.php?option=com_users" method="post" name="adminForm">
  15      <table>
  16          <tr>
  17              <td width="100%">
  18                  <?php echo JText::_( 'Filter' ); ?>:
  19                  <input type="text" name="search" id="search" value="<?php echo htmlspecialchars($this->lists['search']);?>" class="text_area" onchange="document.adminForm.submit();" />
  20                  <button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>
  21                  <button onclick="document.getElementById('search').value='';this.form.getElementById('filter_type').value='0';this.form.getElementById('filter_logged').value='0';this.form.submit();"><?php echo JText::_( 'Reset' ); ?></button>
  22              </td>
  23              <td nowrap="nowrap">
  24                  <?php echo $this->lists['type'];?>
  25                  <?php echo $this->lists['logged'];?>
  26              </td>
  27          </tr>
  28      </table>
  29  
  30      <table class="adminlist" cellpadding="1">
  31          <thead>
  32              <tr>
  33                  <th width="2%" class="title">
  34                      <?php echo JText::_( 'NUM' ); ?>
  35                  </th>
  36                  <th width="3%" class="title">
  37                      <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->items); ?>);" />
  38                  </th>
  39                  <th class="title">
  40                      <?php echo JHTML::_('grid.sort',   'Name', 'a.name', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  41                  </th>
  42                  <th width="15%" class="title" >
  43                      <?php echo JHTML::_('grid.sort',   'Username', 'a.username', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  44                  </th>
  45                  <th width="5%" class="title" nowrap="nowrap">
  46                      <?php echo JText::_( 'Logged In' ); ?>
  47                  </th>
  48                  <th width="5%" class="title" nowrap="nowrap">
  49                      <?php echo JHTML::_('grid.sort',   'Enabled', 'a.block', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  50                  </th>
  51                  <th width="15%" class="title">
  52                      <?php echo JHTML::_('grid.sort',   'Group', 'groupname', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  53                  </th>
  54                  <th width="15%" class="title">
  55                      <?php echo JHTML::_('grid.sort',   'E-Mail', 'a.email', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  56                  </th>
  57                  <th width="10%" class="title">
  58                      <?php echo JHTML::_('grid.sort',   'Last Visit', 'a.lastvisitDate', @$this->lists['order_Dir'], @$this->lists['order'] ); ?>
  59                  </th>
  60                  <th width="1%" class="title" 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="10">
  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                  $img     = $row->block ? 'publish_x.png' : 'tick.png';
  80                  $task     = $row->block ? 'unblock' : 'block';
  81                  $alt     = $row->block ? JText::_( 'Enabled' ) : JText::_( 'Blocked' );
  82                  $link     = 'index.php?option=com_users&amp;view=user&amp;task=edit&amp;cid[]='. $row->id. '';
  83  
  84                  if ($row->lastvisitDate == "0000-00-00 00:00:00") {
  85                      $lvisit = JText::_( 'Never' );
  86                  } else {
  87                      $lvisit    = JHTML::_('date', $row->lastvisitDate, '%Y-%m-%d %H:%M:%S');
  88                  }
  89              ?>
  90              <tr class="<?php echo "row$k"; ?>">
  91                  <td>
  92                      <?php echo $i+1+$this->pagination->limitstart;?>
  93                  </td>
  94                  <td>
  95                      <?php echo JHTML::_('grid.id', $i, $row->id ); ?>
  96                  </td>
  97                  <td>
  98                      <a href="<?php echo $link; ?>">
  99                          <?php echo $row->name; ?></a>
 100                  </td>
 101                  <td>
 102                      <?php echo $row->username; ?>
 103                  </td>
 104                  <td align="center">
 105                      <?php echo $row->loggedin ? '<img src="images/tick.png" width="16" height="16" border="0" alt="" />': ''; ?>
 106                  </td>
 107                  <td align="center">
 108                      <a href="javascript:void(0);" onclick="return listItemTask('cb<?php echo $i;?>','<?php echo $task;?>')">
 109                          <img src="images/<?php echo $img;?>" width="16" height="16" border="0" alt="<?php echo $alt; ?>" /></a>
 110                  </td>
 111                  <td>
 112                      <?php echo JText::_( $row->groupname ); ?>
 113                  </td>
 114                  <td>
 115                      <a href="mailto:<?php echo $row->email; ?>">
 116                          <?php echo $row->email; ?></a>
 117                  </td>
 118                  <td nowrap="nowrap">
 119                      <?php echo $lvisit; ?>
 120                  </td>
 121                  <td>
 122                      <?php echo $row->id; ?>
 123                  </td>
 124              </tr>
 125              <?php
 126                  $k = 1 - $k;
 127                  }
 128              ?>
 129          </tbody>
 130      </table>
 131  
 132      <input type="hidden" name="option" value="com_users" />
 133      <input type="hidden" name="task" value="" />
 134      <input type="hidden" name="boxchecked" value="0" />
 135      <input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
 136      <input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
 137      <?php echo JHTML::_( 'form.token' ); ?>
 138  </form>


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