mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fixed #98
This commit is contained in:
parent
bb60d17ccc
commit
be9ce34dc8
@ -87,7 +87,10 @@ else {
|
|||||||
$players_deaths = $db->query("SELECT `p`.`name` AS `victim`, `d`.`killed_by` as `killed_by`, `d`.`time` as `time`, `d`.`level`, `d`.`is_player` FROM `player_deaths` as `d` INNER JOIN `players` as `p` ON d.player_id = p.id ORDER BY `time` DESC LIMIT " . $config['last_kills_limit'] . ";");
|
$players_deaths = $db->query("SELECT `p`.`name` AS `victim`, `d`.`killed_by` as `killed_by`, `d`.`time` as `time`, `d`.`level`, `d`.`is_player` FROM `player_deaths` as `d` INNER JOIN `players` as `p` ON d.player_id = p.id ORDER BY `time` DESC LIMIT " . $config['last_kills_limit'] . ";");
|
||||||
if(!empty($players_deaths)) {
|
if(!empty($players_deaths)) {
|
||||||
foreach($players_deaths as $death) {
|
foreach($players_deaths as $death) {
|
||||||
$killers_string .= getPlayerLink($death['victim']) . ' died at level ' . $death['level'] . ' by ';
|
$players_deaths_count++;
|
||||||
|
$killers_string = '';
|
||||||
|
|
||||||
|
$killers_string .= getPlayerLink($death['victim']) . ' died at level <strong>' . $death['level'] . '</strong> by ';
|
||||||
if($death['is_player'] == '1')
|
if($death['is_player'] == '1')
|
||||||
$killers_string .= getPlayerLink($death['killed_by']);
|
$killers_string .= getPlayerLink($death['killed_by']);
|
||||||
else
|
else
|
||||||
@ -97,7 +100,7 @@ else {
|
|||||||
|
|
||||||
$last_kills[] = array(
|
$last_kills[] = array(
|
||||||
'id' => $players_deaths_count,
|
'id' => $players_deaths_count,
|
||||||
'date' => $death['date'],
|
'time' => $death['time'],
|
||||||
'killers_string' => $killers_string,
|
'killers_string' => $killers_string,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1,46 +1,69 @@
|
|||||||
<div class="TableContainer" >
|
<div class="TableContainer" >
|
||||||
<table class="Table1" cellpadding="0" cellspacing="0" >
|
<table class="Table3">
|
||||||
<div class="CaptionContainer" >
|
<div class="CaptionContainer" >
|
||||||
<div class="CaptionInnerContainer" >
|
<div class="CaptionInnerContainer" >
|
||||||
<span class="CaptionEdgeLeftTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" /></span>
|
<span class="CaptionEdgeLeftTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" ></span>
|
||||||
<span class="CaptionEdgeRightTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" /></span>
|
<span class="CaptionEdgeRightTop" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" ></span>
|
||||||
<span class="CaptionBorderTop" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);" ></span>
|
<span class="CaptionBorderTop" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);" ></span>
|
||||||
<span class="CaptionVerticalLeft" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);" /></span>
|
<span class="CaptionVerticalLeft" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);" ></span>
|
||||||
<div class="Text" >Last Kills</div>
|
<div class="Text" >Last Kills</div>
|
||||||
<span class="CaptionVerticalRight" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);" /></span>
|
<span class="CaptionVerticalRight" style="background-image:url({{ template_path }}/images/content/box-frame-vertical.gif);" ></span>
|
||||||
<span class="CaptionBorderBottom" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);" ></span>
|
<span class="CaptionBorderBottom" style="background-image:url({{ template_path }}/images/content/table-headline-border.gif);" ></span>
|
||||||
<span class="CaptionEdgeLeftBottom" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" /></span>
|
<span class="CaptionEdgeLeftBottom" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" ></span>
|
||||||
<span class="CaptionEdgeRightBottom" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" /></span>
|
<span class="CaptionEdgeRightBottom" style="background-image:url({{ template_path }}/images/content/box-frame-edge.gif);" ></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div class="InnerTableContainer" >
|
<div class="InnerTableContainer" >
|
||||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
<table style="width:100%;">
|
||||||
{% if lastkills|length <= 0 %}
|
<tbody>
|
||||||
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
No one died on {{ config.lua.serverName }}
|
<div class="TableShadowContainerRightTop">
|
||||||
|
<div class="TableShadowRightTop" style="background-image:url({{ template_path }}/images/content/table-shadow-rt.gif);"></div>
|
||||||
|
</div>
|
||||||
|
<div class="TableContentAndRightShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-rm.gif);">
|
||||||
|
<div class="TableContentContainer">
|
||||||
|
<table class="TableContent" width="100%">
|
||||||
|
{% if lastkills|length <= 0 %}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
No one died on {{ config.lua.serverName }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% else %}
|
||||||
|
{% for lastkill in lastkills %}
|
||||||
|
<tr bgcolor="{{ getStyle(lastkill.id) }}">
|
||||||
|
<td class="centralizeContent" width="30">
|
||||||
|
{{ lastkill.id }}.
|
||||||
|
</td>
|
||||||
|
<td width="125">
|
||||||
|
<small>{{ lastkill.time|date("j.m.Y, G:i:s") }}</small>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{{ lastkill.killers_string|raw }}
|
||||||
|
</td>
|
||||||
|
{% if config.multiworld %}
|
||||||
|
<td>
|
||||||
|
{{ lastkill.world_id }}
|
||||||
|
</td>
|
||||||
|
{% endif %}
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="TableShadowContainer">
|
||||||
|
<div class="TableBottomShadow" style="background-image:url(https://static.tibia.com/images/global/content/table-shadow-bm.gif);">
|
||||||
|
<div class="TableBottomLeftShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-bl.gif);"></div>
|
||||||
|
<div class="TableBottomRightShadow" style="background-image:url({{ template_path }}/images/content/table-shadow-br.gif);"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
{% else %}
|
</tr>
|
||||||
{% for lastkill in lastkills %}
|
</tbody>
|
||||||
<tr>
|
|
||||||
<td class="centralizeContent" width="30">
|
|
||||||
{{ lastkill.id }}
|
|
||||||
</td>
|
|
||||||
<td width="125">
|
|
||||||
<small>{{ lastkill.date|date("j.m.Y, G:i:s") }}</small>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ lastkill.killers_string|raw }}
|
|
||||||
</td>
|
|
||||||
{% if config.multiworld %}
|
|
||||||
<td>
|
|
||||||
{{ lastkill.world_id }}
|
|
||||||
</td>
|
|
||||||
{% endif %}
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user