Header.php
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Zespół Szkół Morskich w Świnoujściu</title> <link rel="stylesheet" href="CSS/style.css" type="text/css"> </head> <table border="0" width="766" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="t1"><p>Witaj na stronie!</p></td><td class="t2">szukaj: <input> <button type="submit">ok</button></td> </tr> <tr> <td class="top1"><div class="napis">Zespół Szkół Morskich w Świnoujściu</div></td> <td class="top2" valign="top"> <div class="mini">Logowanie!</div> <div class="mini2"> <?php if ($_SESSION['login']){ if ($_SESSION['ranga'] == 1) { } if ($_SESSION['ranga'] == 2) { } if ($_SESSION['ranga'] == 3) { if ($_SESSION['plec'] == 1){ } if ($_SESSION['plec'] == 2){ } } } else { include ("log.php"); } ?> </div> </td> </tr> </table> <table align="center" cellpadding="0"> <tr> <td valign="top"> <table cellpadding="0" cellspacing="0"> <tr><td class="topm">Strona</td></tr> <tr><td class="tlom"> :: <a href="index.php">Start panelu</a> <br> </td></tr> <tr><td class="dolm"></td></tr> </table> <br> <table cellpadding="0" cellspacing="0"> <tr><td class="topm">Zaawansowane</td></tr> <tr><td class="tlom"> :: <a href="ustawienia.php">Ustawienia</a> <br> :: <a href="adminprofile.php">Dodaj profil</a> <br> :: <a href="addclass.php">Dodaj klase</a> <br> :: <a href="rodzicplus.php">Dodaj rodzica</a> <br> :: <a href="">Uzupełnij dziennik</a> <br> :: <a href="">Edytuj plan</a> <br> </td></tr> <tr><td class="dolm"></td></tr> </table> <td valign="top">
Index.php
<?php ?> <?php include ('header.php'); ?> <?php include 'db.php'; // połączenie się z bazą danych $tabela = 'ustawienia'; // zdefiniowanie tabeli MySQL echo <<< KONIEC <table cellpadding="0" cellspacing="0"> <tr><td class="topn">Witajcie</td></tr> <tr><td class="tlon"> test </td></tr> <tr><td class="doln"></td></tr> KONIEC; ?>
SCREENY
po zalogowaniu:

Wylogowany
