Example #1
0
        }
    }
    $relationship = $relationship->isRelationship($me, $profil->getId());
    if ($relationship === true) {
        $relationships = "S tímto sportovcem se znáš. <form action='' method='post'><button name='friends' value='delete'>Zrušit přátelství</button></form>";
    } elseif ($relationship === false) {
        $relationships = "Zatím se neznáte. <form action='' method='post'><button name='friends' value='new'>Odeslat žádost</button></form>";
    } elseif ($relationship == "waiting") {
        $relationships = "Čeká se na potvrzení od druhého sportovce.";
    } elseif ($relationship == "check") {
        $relationships = "Tento sportovec se chce s tebou seznámit. <form action='' method='post'><button name='friends' value='check'>Potvrdit žádost</button></form>";
    }
    $relationships .= "<form action='index.php?page=message' method='post'><button name='id' value='{$profil->getId()}'>Odeslat zprávu</button></form>";
}
$gender = "";
$web = $profil->getProfilWeb();
if ($profil->getGender() == "m") {
    $gender = "muž";
} elseif ($profil->getGender() == "f") {
    $gender = "žena";
}
$clubs = $profil->getClubList();
$club = "";
foreach ($clubs as $club_one) {
    $club .= "{$club_one}<br>";
}
$club .= "";
$aboutMe = nl2br($profil->getAboutMe());
$entr = new Entry();
$allEntries = $entr->showEntries($profil->getId());
$entries = "";