Ejemplo n.º 1
0
<?php

/**
 * Created by PhpStorm.
 * User: ununik
 * Date: 27.08.2015
 * Time: 14:33
 */
$profil = new Profil(0, $_SESSION['tiary']['login'], $_SESSION['tiary']['password']);
$notices = new Notice();
$notices = $notices->getNumNotice($profil->getId());
$headerNotice = "";
if ($notices > 0) {
    $headerNotice = "!";
    if ($notices > 1) {
        $headerNotice .= '<span class="headerNoticeNum">' . $notices . "</span>";
    }
}
$headerName = "<span class='headerName'>{$profil->getName()}</span>";
$html->addToHeader("<a href='index.php?page=profil'>");
$html->addToHeader($headerName);
$html->addToHeader("<img src='images/profile_images/small/{$profil->getProfilImage()}' id='header_profile_image'>");
$html->addToHeader("</a>");
$html->addToHeader("<span class='headerNotice' onclick='getUnseenNotices()'>{$headerNotice}</span>");