summaryrefslogtreecommitdiff
path: root/tpl/general/top.php
blob: f9ef6d8dbd3eb211a0d1a851f03e466c1c09d357 (plain) (blame)
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
45
46
47
48
49
50
51
52
53
<?php
global $user, $apps;	//These might be hidden because this page is called from sql();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<title><?php echo $title; ?></title>
		<link href="design/style.css" rel="stylesheet" type="text/css" media="screen" />
		<?php
		if (isset($js_include)) {
			foreach($js_include as $e) {
				echo '<script type="text/javascript" src="' . $e . '"></script>';
			}
		}
		if (isset($javascript)) echo '<script type="text/javascript">' . $javascript . '</script>';
		?>
	</head>

	<body<?php if (isset($onload_js)) echo ' onload="' . $onload_js . '"'; ?>>

		<div class="menu">
			<div class="right">
			<?php
if ($user['id'] == 0) {
	echo '<a href="new-account">Inscription</a><a href="?login">Connexion</a>';
} else {
	echo '<a href="?logout">Déconnexion (' . $user['name'] . ')</a>';
}
?>
			</div>
			<div class="left">
				<a href="/~katchup/">Accueil</a>
<?php
if ($user['id'] != 0) {
    echo '<a href="/~katchup/blog">Blog</a>';
	echo '<a href="user-notes-' . $user['id'] . '">bloc-notes</a>';
	echo '<a href="file">fichiers</a>';
}
?>
			</div>
			<div style="clear: both;"></div>
		</div>


		<div class="contents-right">

		<h1><?php echo $title; ?></h1>

<?php
if (isset($message)) echo '<div class="message">' . $message . "</div>\n";
if (isset($error)) echo '<div class="error">' . $error . "</div>\n";