-
Notifications
You must be signed in to change notification settings - Fork 3
/
header.php
57 lines (54 loc) · 1.78 KB
/
header.php
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
54
55
56
<?php
//ini_set('display_errors', 'On');
//error_reporting(E_ALL);
if (!$_SESSION['logget_ind']) {
header("Location: ".$ROOT_URL."auth/thecity/");
die();
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Musikteam - <?php echo $strTitle; ?></title>
<link href="musikstyle.css" type="text/css" rel="stylesheet" media="screen" />
<!--[if IE]>
<link href="musikstyleIE.css" type="text/css" rel="stylesheet" media="screen" />
<![endif]-->
<?php
if (isset($_GET['page'])) {
if ($_GET['page'] == 'teams') echo '<script src="js/teams.js" type="text/javascript"></script>';
if ($_GET['page'] == 'program') echo '<script src="js/program.js" type="text/javascript"></script>';
if ($_GET['page'] == 'admin') echo '<script src="js/admin.js" type="text/javascript"></script>';}
?>
<script type="text/javascript">
<!--
if (document.getElementById) { window.onload = swap };
function swap() {
var numimages=6;
rndimg = new Array("img/bg-header_1.gif", "img/bg-header_2.gif", "img/bg-header_3.gif", "img/bg-header_4.gif", "img/bg-header_5.gif","img/bg-header_6.gif");
x=(Math.floor(Math.random()*numimages));
randomimage=(rndimg[x]);
document.getElementById("header").style.backgroundImage = "url("+ randomimage +")";
}
function NewWindow(mypage, myname, scroll)
{
var w=790;
var h=screen.height;
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 10;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
win = window.open(mypage, '', winprops);
win.focus();
}
// -->
</script>
<script src="js/ajax.js"></script>
<script src="js/func.js"></script>
<style type="text/css">
<!--
.style3 {font-size: 9px}
-->
</style>
</head>