Balicky
$query .= " ORDER BY `date` DESC LIMIT $page, ".($page + 100);
$res = $char->Query($query);
if (!$res)
die ("No Logs");
echo "
";
echo '';
echo 'Akce | ';
echo 'Rozdil bodu | ';
echo 'Aktualni body postavy | ';
echo 'Postava | ';
echo 'Datum | ';
echo 'Odměna udělena | ';
echo 'Vyzvednut balicek / Duvod | ';
echo '
';
while ($obj = $res->fetch_object())
{
echo '';
echo ''.$Actions[$obj->action].' | ';
echo ''.$obj->pointdiff.' | ';
echo ''.$obj->newpoints.' | ';
$name = GetPlayerName($obj->character);
if (strlen($name))
echo ''.$name.' | ';
else
echo 'Acc: '.($obj->account).' | ';
echo ''.$obj->date.' | ';
switch ($obj->action)
{
case 0:
$name = GetPlayerName($obj->givenBy);
if (strlen($name))
echo ''.$name.' | ';
else
echo 'Unknown | ';
break;
case 6:
echo ''.($obj->givenBy).' | ';
break;
default:
echo '- | ';
break;
}
echo ''.($obj->action ? $obj->pack : $obj->reason).' | ';
echo '
';
}
echo '
';
?>