mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-17 15:47:16 +00:00
The first release of the refactored version
It's still a work in progress, there are a lot of things that will change in the final release
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$message->readingNotice['data']);
|
||||
|
||||
if(!isset($isAdmin)){
|
||||
$mapUrl = "karte.php?d=";
|
||||
$playerUrl = "spieler.php?uid=";
|
||||
}elseif($isAdmin){
|
||||
$mapUrl = "admin.php?p=village&did=";
|
||||
$playerUrl = "admin.php?p=player&uid=";
|
||||
}
|
||||
|
||||
if ($database->getUserField($dataarray[0],'username',0) != "[?]") {
|
||||
$user_url = "<a href=\"".$playerUrl.$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}
|
||||
else $user_url = "<font color=\"grey\"><b>[?]</b></font>";
|
||||
|
||||
if($database->getVillageField($dataarray[1],'name') != "[?]") {
|
||||
$from_url = "<a href=\"".$mapUrl.$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}
|
||||
else $from_url = "<font color=\"grey\"><b>[?]</b></font>";
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $message->readingNotice['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($message->readingNotice['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <span><?php echo $date[0]." at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="trade"><thead><tr>
|
||||
<td> </td>
|
||||
<td><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr></thead><tbody><tr>
|
||||
<th>Resources</th>
|
||||
<td>
|
||||
<img class="r1" src="img/x.gif" alt="Wood" title="Wood" /><?php echo $dataarray[2]; ?> |
|
||||
<img class="r2" src="img/x.gif" alt="{$smarty.const.CLAY}" title="Clay" /><?php echo $dataarray[3]; ?> |
|
||||
<img class="r3" src="img/x.gif" alt="{$smarty.const.IRON}" title="Iron" /><?php echo $dataarray[4]; ?> |
|
||||
<img class="r4" src="img/x.gif" alt="{$smarty.const.CROP}" title="Crop" /><?php echo $dataarray[5]; ?>
|
||||
</td></tr></tbody>
|
||||
|
||||
</table></td></tr></tbody></table>
|
||||
Reference in New Issue
Block a user