Project

General

Profile

Bug #23054 » 14943-v3.patch

Administrator Admin, 2010-11-16 07:34

View differences:

typo3/sysext/beuser/mod/index.php (working copy)
$uListArr=array();
foreach ($dat['users'] as $uDat) {
$uItem = '<tr><td width="130">' . t3lib_iconWorks::getSpriteIconForRecord('be_users',$uDat,array('title'=> $uDat['uid'] )) . $this->linkUser($uDat['username'],$uDat) . '&nbsp;&nbsp;</td><td nowrap="nowrap">' . $this->elementLinks('be_users',$uDat);
$uItem = '<tr class="db_list_normal"><td width="130">' . t3lib_iconWorks::getSpriteIconForRecord('be_users',$uDat,array('title'=> $uDat['uid'] )) . $this->linkUser($uDat['username'],$uDat) . '&nbsp;&nbsp;</td><td nowrap="nowrap">' . $this->elementLinks('be_users',$uDat);
if ($curUid != $uDat['uid'] && !$uDat['disable'] && ($uDat['starttime'] == 0 ||
$uDat['starttime'] < $GLOBALS['EXEC_TIME']) && ($uDat['endtime'] == 0 ||
$uDat['endtime'] > $GLOBALS['EXEC_TIME'])) {
......
$TDparams=' nowrap="nowrap" class="bgColor5" valign="top"';
$i = 0;
foreach ($allGroups as $allCells) {
$outTable.='<tr><td'.$TDparams.'>'.implode('</td><td'.$TDparams.'>',$allCells).'</td></tr>';
$TDparams=' nowrap="nowrap" class="'.($i++ % 2 == 0 ? 'bgColor4' : 'bgColor6').'" valign="top"';
// $outTable.='<tr><td'.$TDparams.'>'.implode('</td><td'.$TDparams.'>' .$i,$allCells).'</td></tr>';
// $TDparams=' nowrap="nowrap" class="'.($i++ % 2 == 0 ? 'bgColor4' : 'bgColor6').'" valign="top"';
$class = ($i == 0) ? 'class="t3-row-header"' : '';
+ $outTable .= '<tr ' . $class . '><td>' . implode('</td><td>', $allCells) . '</td></tr>';
+ $i++;
}
$outTable='<table border="0" cellpadding="2" cellspacing="2">' . $outTable . '</table>';
$outTable='<table class="typo3-dblist">' . $outTable . '</table>';
$outTable .= '<br /><br />' . $GLOBALS['LANG']->getLL('cachedGrouplistsUpdated', true);
$outTable.=$tooManyUsers?'<br /><br /><strong><span class="typo3-red">' . $tooManyUsers . '</span></strong>':'';
$content.= $this->doc->spacer(10);
......
$ip .= str_repeat('.*', 4-$GLOBALS['TYPO3_CONF_VARS']['BE']['lockIP']);
}
$outTable .= '
<tr class="bgColor4" height="17" valign="top">' .
<tr class="db_list_normal" valign="top">' .
'<td nowrap="nowrap">' .
date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'].' '.$GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'], $session['ses_tstamp']) .
'</td>' .
......
}
// Wrap <table> tag around the rows:
$outTable = '
<table border="0" cellpadding="2" cellspacing="2">
<tr class="bgColor5">
<td valign="top"><strong>' . $GLOBALS['LANG']->getLL('timestamp', true) . '</strong></td>
<td valign="top"><strong>' . $GLOBALS['LANG']->getLL('host', true) . '</strong></td>
<td valign="top" colspan="5"><strong>' . $GLOBALS['LANG']->getLL('username', true) . '</strong></td>
<table class="typo3-dblist">
<tr class="t3-row-header">
<td valign="top">' . $GLOBALS['LANG']->getLL('timestamp', TRUE) . '</td>
<td valign="top">' . $GLOBALS['LANG']->getLL('host', TRUE) . '</td>
<td valign="top" colspan="5">' . $GLOBALS['LANG']->getLL('username', TRUE) . '</td>
</tr>'.$outTable.'
</table>';
(4-4/4)