mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-02 18:44:21 +00:00
77e3cd68b0
* 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
70 lines
3.1 KiB
Smarty
70 lines
3.1 KiB
Smarty
<div id="content" class="messages">
|
|
<h1>Messages</h1>
|
|
<?php
|
|
include("menu.tpl");
|
|
?>
|
|
<form method="post" action="nachrichten.php" name="msg" ><input type="hidden" name="ft" value="m5" /><table cellpadding="1" cellspacing="1" id="overview">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2">Subject</th>
|
|
<th>Sender</th>
|
|
<th class="sent"><a href="nachrichten.php?s=0&t=3&o=1">Sent</a></th>
|
|
</tr></thead><tfoot><tr><th>
|
|
<input class="check" type="checkbox" id="s10" name="s10" onclick="Allmsg(this.form);" />
|
|
</th>
|
|
<th colspan="2" class="buttons">
|
|
<button name="delmsg" value="delete" id="btn_delete" class="trav_buttons" alt="delete" /> Delete </button <button name="start" value="Back" alt="Back" id="btn_back" class="trav_buttons" /> Back </button</th>
|
|
<th class="navi"><?php
|
|
if(!isset($_GET['s']) && count($message->archived1) < 10) {
|
|
echo "«»";
|
|
}
|
|
else if (!isset($_GET['s']) && count($message->archived1) > 10) {
|
|
echo "«<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&' : '')."s=10&o=0\">»</a>";
|
|
}
|
|
else if(isset($_GET['s']) && count($message->archived1) > $_GET['s']) {
|
|
if(count($message->archived1) > ($_GET['s']+10) && $_GET['s']-10 < count($message->archived1) && $_GET['s'] != 0) {
|
|
echo "<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&' : '')."s=".($_GET['s']-10)."&o=0\">«</a><a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&' : '')."s=".($_GET['s']+10)."&o=0\">»</a>";
|
|
}
|
|
else if(count($message->archived1) > $_GET['s']+10) {
|
|
echo "«<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&' : '')."s=".($_GET['s']+10)."&o=0\">»</a>";
|
|
}
|
|
else if (count($message->archived1) > 10) {
|
|
echo "<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&' : '')."s=".($_GET['s']-10)."&o=0\">«</a>»";
|
|
}
|
|
}
|
|
?></th></tr></tfoot><tbody>
|
|
<?php
|
|
if(isset($_GET['s'])) {
|
|
$s = $_GET['s'];
|
|
}
|
|
else {
|
|
$s = 0;
|
|
}
|
|
$name = 1;
|
|
for($i=(1+$s);$i<=(10+$s);$i++) {
|
|
if(count($message->archived1) >= $i) {
|
|
if($message->archived[$i-1]['owner'] == 0) {
|
|
echo "<tr class=\"sup\">";
|
|
}
|
|
else {
|
|
echo "<tr>";
|
|
}
|
|
echo "<td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->archived[$i-1]['id']."\" /></td>
|
|
<td class=\"top\"><a href=\"nachrichten.php?id=".$message->archived[$i-1]['id']."\">".$message->archived[$i-1]['topic']."</a> ";
|
|
if($message->archived[$i-1]['viewed'] == 0) {
|
|
echo "(new)";
|
|
}
|
|
$date = $generator->procMtime($message->archived[$i-1]['time']);
|
|
echo "</td><td class=\"send\"><a href=\"spieler.php?uid=".$message->archived[$i-1]['owner']."\"><u>".$database->getUserField($message->archived[$i-1]['owner'],'username',0)."</u></a></td>
|
|
<td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
|
|
}
|
|
$name++;
|
|
}
|
|
if(count($message->archived1) == 0) {
|
|
echo "<td colspan=\"4\" class=\"none\">There are no messages available in the archive.</td></tr>";
|
|
}
|
|
?>
|
|
</tbody></table>
|
|
</form>
|
|
</div>
|