| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** $Id: default.php 10381 2008-06-01 03:35:53Z pasamio $ */ 3 defined( '_JEXEC' ) or die( 'Restricted access' ); 4 ?> 5 6 <form method="post" action="index.php?option=com_users"> 7 <table class="adminlist"> 8 <thead> 9 <tr> 10 <td class="title"> 11 <strong><?php echo '#' ?></strong> 12 </td> 13 <td class="title"> 14 <strong><?php echo JText::_( 'Name' ); ?></strong> 15 </td> 16 <td class="title"> 17 <strong><?php echo JText::_( 'Group' ); ?></strong> 18 </td> 19 <td class="title"> 20 <strong><?php echo JText::_( 'Client' ); ?></strong> 21 </td> 22 <td class="title"> 23 <strong><?php echo JText::_( 'Last Activity' ); ?></strong> 24 </td> 25 <td class="title"> 26 <strong><?php echo JText::_( 'Logout' ); ?></strong> 27 </td> 28 </tr> 29 </thead> 30 <tbody> 31 <?php 32 $i = 0; 33 $now = time(); 34 foreach ($rows as $row) : 35 $auth = $user->authorize( 'com_users', 'manage' ); 36 if ($auth) : 37 $link = 'index.php?option=com_users&task=edit&cid[]='. $row->userid; 38 $name = '<a href="'. $link .'" title="'. JText::_( 'Edit User' ) .'">'. $row->username .'</a>'; 39 else : 40 $name = $row->username; 41 endif; 42 43 $clientInfo =& JApplicationHelper::getClientInfo($row->client_id); 44 ?> 45 <tr> 46 <td width="5%"> 47 <?php echo $pageNav->getRowOffset( $i ); ?> 48 </td> 49 <td> 50 <?php echo $name;?> 51 </td> 52 <td> 53 <?php echo $row->usertype;?> 54 </td> 55 <td> 56 <?php echo $clientInfo->name;?> 57 </td> 58 <td> 59 <?php echo JText::sprintf( 'activity hours', ($now - $row->time)/3600.0 );?> 60 </td> 61 <td> 62 <?php if ($auth && $user->get('gid') > 24 && $row->userid != $user->get('id')) : ?> 63 <input type="image" src="images/publish_x.png" onclick="f=this.form;f.task.value='flogout';f.client.value=<?php echo (int) $row->client_id; ?>;f.cid_value.value=<?php echo (int) $row->userid ?>" /> 64 <?php endif; ?> 65 </td> 66 </tr> 67 <?php 68 $i++; 69 endforeach; 70 ?> 71 </tbody> 72 </table> 73 <input type="hidden" name="task" value="" /> 74 <input type="hidden" name="client" value="" /> 75 <input type="hidden" name="cid[]" id="cid_value" value="" /> 76 <?php echo JHTML::_( 'form.token' ); ?> 77 </form>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |