forked from che0/greybox
-
Notifications
You must be signed in to change notification settings - Fork 3
/
default.inc
executable file
·44 lines (35 loc) · 1.09 KB
/
default.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/*
* greybox
* $Id: default.inc,v 1.9 2005/03/15 12:56:01 che0 Exp $
*/
pg_head();
@include("languages/" . $lang["release_notes_filename"]);
if ($_SESSION['is_logged_in']) {
cph_p(cphs_link("./?page=clovek&clovek_id=" . $_SESSION['user_clovek_ID'] ,$_SESSION['user_name']));
$klub_nazev = cpdb_fetch_one_value("select nazev from klub where klub_ID = :klub_ID",array(":klub_ID"=>$_SESSION['user_klub_ID']));
if ($klub_nazev) {
cph_p(cphs_link(sprintf("./?page=klub&klub_id=%s",$_SESSION['user_klub_ID']),$klub_nazev));
}
cpdb_fetch_all(
"select tym.tym_ID as a_tym_ID, tym.nazev as a_tym
from clovek_tym left join tym using (tym_ID)
where clovek_tym.clovek_ID = :clovek_ID and clovek_tym.aktivni = 1",
array(":clovek_ID"=>$_SESSION['user_clovek_ID']),
$tymy);
$prvni = true;
foreach($tymy as $tym) {
if ($prvni) {
cph_tag_start("p");
$prvni = false;
} else {
echo ", ";
}
cph_link(sprintf("./?page=tym&tym_id=%s",$tym["a_tym_ID"]),$tym["a_tym"]);
}
if (! $prvni) {
cph_tag_end("p");
}
}
cph_tag("div", array("id"=>"footnote"), $lang['tail_footnote']);
?>