Oi Boa Noite pra tudos eu preciso do ajuda pra meu web do meu ot server meu problema e que en meu support.php meu status online e meu ultimo acceso nao fica bom sempre e offline mais eu quero que fique online verde e rojo pra offline e meu ultimo acceso e em 1969 aqui a imagen do meu script o table do abaixo funca bom mais eu quero que funque tabla do arriba desculpa meu portugues no e muito bom mais eu deixo meu script boa noite
<style type="text/css">
tr.over:hover
{
background-color: lightgrey;
}
</style>
<?PHP
if($groups = simplexml_load_file($config['site']['server_path'].'/data/XML/groups.xml') or die('<b>Could not load groups!</b>'))
foreach($groups->group as $g)
$groupList[(int)$g['id']] = $g['name'];
$list = $SQL->query("SELECT `name`, `online`, `group_id`, `world_id`, `lastlogin` FROM `players` WHERE `group_id` > 1 ORDER BY `group_id` DESC");
$showed_players = 0;
$main_content .= '<center><h2>SUPPORT LIST</h2><table border="0" cellspacing="1" cellpadding="4" width="100%" style="border: 1px solid #505050;box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19) !important;">
<tbody><tr bgcolor="#505050">
<td width="15%"><font class="white"><b>Group</b></font></td>
<td width="20%"><font class="white"><b>Name</b></font></td>
<td width="15%"><font class="white"><b>Language</b></font></td>
<td width="5%"><font class="white"><b>Status</b></font></td>
<td width="15%"><font class="white"><b>Last Access</b></font></td>
</tr>
<tr bgcolor="#F1E0C6">
<td><div class="gmicons" style=""><b><center></div><span class="god"><font color="green"><img src="/images/god.png"> Administrator <a href="/?subtopic=phone"><img style="position: absolute; left: 150px; padding: 0px 0px 0px 0px;"src="https://www.megatibia.com.br/layouts/tibiarl/images/network/whatsapp.png" width="18""></font></b></span></center></td>
<td><a href="?subtopic=characters&name=GOD+Demitry"> <img src="/images/flags/mx.png"> GOD Demitry</a></td>
<td><small>English, Portuguese</small></td>
<td><font size="2" color="'.($gm['online'] == 0 ? 'red"><b><center>Offline</center></b>' : 'green"><b><center><blink>Online</blink></center></b>').'</font></td>
<td><font size="1"><b><center><small>'.date("d F Y, G:i", $gm['lastlogin']).'</small></center></b></font></td></tr>
</tr></tbody></table></center><br>';
$headline = '<table border="0" cellspacing="1" cellpadding="1" width="100%">
<tr bgcolor="'.$config['site']['vdarkborder'].'">
<td width="20%"><font size="2" class=white><b><center>Group<a href="/?subtopic=phone"><img style="position: absolute; left: 145px; padding: 0px 0px 0px 0px;"src="https://www.megatibia.com.br/layouts/tibiarl/images/network/whatsapp.png" width="16""></center></b></font></td>
<td width="45%"><font size="2" class=white><b>Name</b></font></td>
<td width="15%"><font size="2" class=white><b><center>Status</center></b></font></td>
<td width="20%"><font size="2" class=white><b><center>Last Login</center></b></font></td>';
$group_id = 0;
foreach($list as $gm)
{
if($group_id != (int)$gm['group_id'])
{
if($group_id != 0)
$main_content .= '</table><br />';
$main_content .= $headline;
$group_id = (int)$gm['group_id'];
}
$main_content .= '<tr bgcolor="'.(is_int($showed_players++ / 2) ? $config['site']['darkborder'] : $config['site']['lightborder']).'" class="over"><td><img src="images/god.PNG" align="left"><font size="2" color="green"><center><b>'.$groupList[(int)$gm['group_id']].'</b></center></font></td><td><font size="2"><a href="?subtopic=characters&name='.urlencode($gm['name']).'">'.$gm['name'].'</a></font><img src="images/flags/mx.PNG" align="left"></td><td><font size="2" color="'.($gm['online'] == 0 ? 'red"><b><center>Offline</center></b>' : 'green"><b><center><blink>Online</blink></center></b>').'</font></td><td><font size="2"><b><center><small>'.date("d F Y, G:i", $gm['lastlogin']).'</small></center></b></font></td></tr>';
}
$main_content .= '</table>';
?>