Clan info updated with clanmembers and clickable to latest matches #123
1 changed files with 15 additions and 13 deletions
|
|
@ -1,16 +1,17 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<?php include './includes/head.php'; ?>
|
<?php include './includes/head.php'; ?>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<?php include './includes/navigation.php'; ?>
|
<?php include './includes/navigation.php'; ?>
|
||||||
<header>
|
<header>
|
||||||
<img src="./images/banner2.png" alt="banner" class="banner">
|
<img src="./images/banner2.png" alt="banner" class="banner">
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
<section>
|
<section>
|
||||||
<h2>Clan Stats</h2>
|
<h2>Clan Stats</h2>
|
||||||
<?php
|
<?php
|
||||||
include './config/config.php';
|
include './config/config.php';
|
||||||
|
|
||||||
// Load clan data from claninfo.json
|
// Load clan data from claninfo.json
|
||||||
|
|
@ -26,7 +27,7 @@
|
||||||
echo "<tr><td>" . htmlspecialchars($key) . "</td><td>" . htmlspecialchars($value) . "</td></tr>";
|
echo "<tr><td>" . htmlspecialchars($key) . "</td><td>" . htmlspecialchars($value) . "</td></tr>";
|
||||||
}
|
}
|
||||||
foreach ($clanmembers['clanMembers'] as $value) {
|
foreach ($clanmembers['clanMembers'] as $value) {
|
||||||
echo "<tr><td>name</td><td>" . htmlspecialchars($value) . "</td></tr>";
|
echo "<tr><td><a href='latestmatches.php?selected_player=" . htmlspecialchars($value) . "'>name</a></td><td><a href='latestmatches.php?selected_player=" . htmlspecialchars($value) . "'>" . htmlspecialchars($value) . "</a></td></tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
@ -36,11 +37,12 @@
|
||||||
} else {
|
} else {
|
||||||
echo "<p>Clan info file missing</p>";
|
echo "<p>Clan info file missing</p>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<?php include './includes/footer.php'; ?>
|
<?php include './includes/footer.php'; ?>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
|
</html>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue