Files
TravianZ/Templates/Message/read.tpl
T
phaze1G 77e3cd68b0 Buttons replace part 2 (#536)
* Update assignpos.tpl

* Update changename.tpl

* Update kick.tpl

* Update kick.tpl

* Update linkforum.tpl

* Update search.tpl

* Update 18_create.tpl

* Update invite.tpl

* Update option.tpl

* Update newdorf.tpl

* buttons replace part 2

* Update addABTroops.tpl

* Update addTroops.tpl

* Update graphic.tpl

* Update all.tpl

* Update archive.tpl

* Update forum_3.tpl

* Update read.tpl

* Update ranksearch.tpl

* Update delete.tpl

* Update inbox.tpl

* Update 19.tpl
2018-04-29 13:03:59 +02:00

54 lines
1.6 KiB
Smarty

<?php
$input = $message->reading['message'];
$alliance = $message->reading['alliance'];
$player = $message->reading['player'];
$coor = $message->reading['coor'];
$report = $message->reading['report'];
include("GameEngine/BBCode.php");
?>
<div id="content" class="messages">
<h1>Messages</h1>
<?php
include("menu.tpl");
?>
<form method="post" action="nachrichten.php">
<div id="read_head" class="msg_head"></div>
<div id="read_content" class="msg_content">
<img src="img/x.gif" id="label" class="read" alt="" />
<div id="heading">
<div><?php
$linkSender = ($message->reading['owner'] != 2 && $message->reading['owner'] != 4);
if ($linkSender) {
echo '<a href="'.rtrim(SERVER, '/')."/spieler.php?uid=".$message->reading['owner']."\">";
}
echo $database->getUserField($message->reading['owner'],"username",0);
if ($linkSender) {
echo '</a>';
}
?>
</div>
<div><?php echo $message->reading['topic']; ?></div>
</div>
<div id="time">
<div><?php $date = $generator->procMtime($message->reading['time']);echo $date[0]; ?></div>
<div><?php echo $date[1]; ?></div>
</div>
<div class="clear"></div>
<div class="line"></div>
<div class="message"><?php echo stripslashes(nl2br($bbcoded)); ?></div>
<input type="hidden" name="id" value="<?php echo $message->reading['id']; ?>" />
<input type="hidden" name="ft" value="m1" />
<input type="hidden" name="t" value="1" />
<p class="btn">
<button value="" name="s1" id="btn_reply" class="trav_buttons" alt="answer" /> Answer </button>
</p>
</div>
<div id="read_foot" class="msg_foot"></div>
</form>
</div>