menu php+liste

This commit is contained in:
Baptiste Rebillard 2022-04-14 19:38:36 +02:00
parent cb5308f10f
commit 734fa92602
2 changed files with 46 additions and 7 deletions

View file

@ -0,0 +1,10 @@
<?php
ob_start(); // Start reading html
?>
<main>
</main>
<?php
$infopage = ["", "Com'ville", ob_get_clean(), "", "map_com_ville"]; //relativepath, pagetitle, pagecontent, pagescript, pagename | cf structure/template.php ligne 2 à 6
include("structure/template.php");
?>

View file

@ -127,11 +127,40 @@ if(!isset($relativepath)) {
<!-- Top layer (LtR) -->
<?php
$co_y_0 = [0, 48.85, 97.7, 146.55, 195.4, 244.25, 293.1, 341.95, 390.8, 439.65, 488.5];
$texte_y_0 = ["Accueil", "Planning", "Plan", "Blouse", "Parrainage", "Homework", "Chansons", "Pkpeach", "Boomario", "Les stats", ""];
$lien_y_0 = ["index.php", "planning.php", "map.php", "blouse.php", "parrainage.php", "vacances.php", "chansons.php", "team.php?team=pkpeach", "team.php?team=boomario", "stats.php", ""];
for($i = 0; $i <= 10; $i++) {
echo
'<a href="'.$lien_y_0[$i].'" class="menu-link">
<use xlink:href="#Brick" width="47" height="17" x="'.$co_y_0[$i].'" y="0"/>
<svg id="btn10" width="47" height="17" x="'.$co_y_0[$i].'" y="0">
<text x="50%" y="50%">
'.$texte_y_0[$i].'
</text>
</svg>
</a>';
}
$co_y_1 = [-23.5, 25.35,74.2, 123.05, 171.9, 220.75, 269.6, 318.45, 367.3, 416.15, 465];
$texte_y_1 = ["", "Photos","Lydia/Izly", "Les clubs", "Prévention", "Com'ville", "", "", "Download", "Les com's", "Infos"];
$lien_y_1 = ["", "photos.php","lydia.php", "clubs.php", "prevs.php", "map_com_ville.php", "", "", "downloads.php", "coms.php", "info.php"];
for($i = 0; $i <= 10; $i++) {
echo
'<a href="'.$lien_y_1[$i].'" class="menu-link">
<use xlink:href="#Brick" width="47" height="17" x="'.$co_y_1[$i].'" y="17.85"/>
<svg id="btn10" width="47" height="17" x="'.$co_y_1[$i].'" y="17.85">
<text x="50%" y="50%">
'.$texte_y_1[$i].'
</text>
</svg>
</a>';
}
?>
<use xlink:href="#Brick" width="47" height="17" x="0" y="0"/>
<!--use xlink:href="#Brick" width="47" height="17" x="48.85" y="0"/-->
<a href="index.php" class="menu-link">
<!--<a href="index.php" class="menu-link">
<use xlink:href="#Brick" width="47" height="17" x="48.85" y="0"/>
<svg id="btn10" width="47" height="17" x="48.85" y="0">
<text x="50%" y="50%">
@ -140,6 +169,7 @@ if(!isset($relativepath)) {
</svg>
</a>
<use xlink:href="#Brick" width="47" height="17" x="97.7" y="0"/>
<use xlink:href="#Brick" width="47" height="17" x="146.55" y="0"/>
@ -156,12 +186,11 @@ if(!isset($relativepath)) {
<use xlink:href="#Brick" width="47" height="17" x="439.65" y="0"/>
<use xlink:href="#Brick" width="47" height="17" x="488.5" y="0"/>
<use xlink:href="#Brick" width="47" height="17" x="488.5" y="0"/>-->
<!-- Bottom Layer (LtR) -->
<use xlink:href="#Brick" width="47" height="17" x="-23.5" y="17.85"/>
<!-- Bottom Layer (LtR) -->
<!--<use xlink:href="#Brick" width="47" height="17" x="-23.5" y="17.85"/>
<use xlink:href="#Brick" width="47" height="17" x="25.35" y="17.85"/>
@ -181,7 +210,7 @@ if(!isset($relativepath)) {
<use xlink:href="#Brick" width="47" height="17" x="416.15" y="17.85"/>
<use xlink:href="#Brick" width="47" height="17" x="465" y="17.85"/>
<use xlink:href="#Brick" width="47" height="17" x="465" y="17.85"/>-->
</svg>