Project

General

Profile

Bug #23054 » 14943-beuser-styles.diff

Administrator Admin, 2010-06-30 13:59

View differences:

typo3/sysext/beuser/mod/index.php (working copy)
t3lib_iconWorks::getSpriteIcon('actions-document-new') .
'</a>';
$allCells['USERS'] = '<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><strong>' . $GLOBALS['LANG']->getLL('usernames', TRUE) . '</strong></td><td width="12">' . $link_createNewUser . '</td></tr></table>';
$allCells['USERS'] = $link_createNewUser . '<strong>' . $GLOBALS['LANG']->getLL('usernames', TRUE) . '</strong>';
foreach ($options as $kk => $vv) {
if ($compareFlags[$kk]) {
......
}
// Make table
$outTable='';
$TDparams=' nowrap="nowrap" class="bgColor5" valign="top"';
$outTable = '';
$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"';
$class = ($i == 0) ? 't3-row-header' : 'db_list_normal';
$outTable .= '<tr class="' . $class . '"><td>' . implode('</td><td>', $allCells) . '</td></tr>';
$i++;
}
$outTable='<table border="0" cellpadding="2" cellspacing="2">' . $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);
$content.= $this->doc->section($GLOBALS['LANG']->getLL('result', true),$outTable,0,1);
$outTable = '<table class="typo3-dblist" style="width:auto;" border="0" cellpadding="0" cellspacing="0">' . $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);
$content .= $this->doc->section($GLOBALS['LANG']->getLL('result', TRUE), $outTable, 0, 1);
}
return $content;
}
......
$ip .= str_repeat('.*', 4-$GLOBALS['TYPO3_CONF_VARS']['BE']['lockIP']);
}
$outTable .= '
<tr class="bgColor4" height="17" valign="top">' .
'<td nowrap="nowrap">' .
date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'].' '.$GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'], $session['ses_tstamp']) .
<tr class="db_list_normal">' .
'<td>' . t3lib_BEfunc::datetime($session['ses_tstamp']) . '</td>' .
'<td>' .
'<span' . $hostName . '>' . $ip . '</span>' .
'</td>' .
'<td nowrap="nowrap">' .
'<span'.$hostName.'>'.$ip.'</span>' .
'</td>' .
'<td width="130">' .
t3lib_iconWorks::getSpriteIconForRecord('be_users',$session,array('title'=>$session['uid'])).htmlspecialchars($session['username']).'&nbsp;' .
t3lib_iconWorks::getSpriteIconForRecord('be_users', $session, array('title'=>$session['uid'])) . htmlspecialchars($session['username']) . '&nbsp;' .
'</td>' .
'<td nowrap="nowrap">'.htmlspecialchars($session['realName']).'&nbsp;&nbsp;</td>' .
'<td nowrap="nowrap">'.$this->elementLinks('be_users',$session).'</td>' .
'<td nowrap="nowrap" valign="top">'.($session['bu_username'] ? '&nbsp;SU from: ' : '').htmlspecialchars($session['bu_username']).'&nbsp;</td>' .
'<td nowrap="nowrap" valign="top">&nbsp;'.htmlspecialchars($session['bu_realName']).'</td>' .
'<td>'.htmlspecialchars($session['realName']).'&nbsp;&nbsp;</td>' .
'<td>'.$this->elementLinks('be_users', $session) . '</td>' .
'<td >'.($session['bu_username'] ? '&nbsp;SU from: ' : '') . htmlspecialchars($session['bu_username']) . '&nbsp;</td>' .
'<td>&nbsp;' . htmlspecialchars($session['bu_realName']) . '</td>' .
'</tr>';
}
}
// 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" border="0" cellpadding="0" cellspacing="0">
<tr class="t3-row-header">
<td>' . $GLOBALS['LANG']->getLL('timestamp', TRUE) . '</td>
<td>' . $GLOBALS['LANG']->getLL('host', TRUE) . '</td>
<td colspan="5">' . $GLOBALS['LANG']->getLL('username', TRUE) . '</td>
</tr>'.$outTable.'
</table>';
(3-3/4)