prepared forum for ajax injection

This commit is contained in:
Václav Šmejkal 2024-05-16 21:06:40 +02:00
parent 9787c13dc0
commit 29bebb6d5c
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -22,6 +22,7 @@ if (!isset($_SESSION["username"]))
<script src="./res/global.js"></script> <script src="./res/global.js"></script>
<link rel="stylesheet" href="./res/global.css"> <link rel="stylesheet" href="./res/global.css">
<script src="./res/forum/script.js"></script>
<link rel="stylesheet" href="./res/forum/style.css"> <link rel="stylesheet" href="./res/forum/style.css">
<title>Fabrika Hrádek Tour</title> <title>Fabrika Hrádek Tour</title>
@ -37,12 +38,12 @@ if (!isset($_SESSION["username"]))
if ($out -> num_rows == 1) if ($out -> num_rows == 1)
{ {
echo '<img onclick="" src="./res/forum/images/admin.png" alt="Tlačítko adminského panelu">'; echo '<img onclick="show(\'admin\')" src="./res/forum/images/admin.png" alt="Tlačítko adminského panelu">';
} }
?> ?>
<img onclick="" src="./res/forum/images/user.png" alt="Tlačítko nastavení profilu"> <img onclick="show('user')" src="./res/forum/images/user.png" alt="Tlačítko nastavení profilu">
<img onclick="" src="./res/forum/images/home.png" alt="Tlačítko domovské stránky"> <img onclick="show('home')" src="./res/forum/images/home.png" alt="Tlačítko domovské stránky">
</div> </div>
</div> </div>
</body> </body>