default-header.php 2.48 KB
Newer Older
haemmer's avatar
haemmer committed
1
<?php // Copyright (c) 2011, SWITCH - Serving Swiss Universities ?>
haemmer's avatar
haemmer committed
2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
<html><head>
haemmer's avatar
haemmer committed
4
5
	<title><?php echo getLocalString('title') ?></title> 
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
6
7
8
9
10
11
12
13
14
15
	<meta name="keywords" content="Discovery Service, WAYF, Shibboleth">
	<meta name="description" content="Choose your home organization to authenticate">
	<style type="text/css"><!--
	<? printCSS() ?>
-->
</style>
</head>

<body onLoad="preventIframeEmbedding(); setFocus();">
<script language="JavaScript" type="text/javascript">
haemmer's avatar
haemmer committed
16
<!--
17
18
19
20

function preventIframeEmbedding(){
	if (top != self) {
		top.location = self.location;
haemmer's avatar
haemmer committed
21
22
	}
	
23
24
25
26
27
28
}

function setFocus(){
	// Skip this if we cannot access the form elements
	if (!document.IdPList || !document.IdPList.Select){
		return;
haemmer's avatar
haemmer committed
29
30
	}
	
31
32
33
	// Set focus to submit button unless autofocus is supported
	if (!("autofocus" in document.createElement("input"))) {
		document.IdPList.Select.focus();
haemmer's avatar
haemmer committed
34
	}
35
}
haemmer's avatar
haemmer committed
36
37
38
39
40
41

function showConfirmation(){
	
	return confirm(unescape('<?php echo getLocalString('confirm_permanent_selection', 'js') ?>'));
}

42
43
44
45
46
function showPermanentConfirmation(){
	
	return alert(unescape('<?php echo getLocalString('permanent_cookie_note', 'js') ?>'));
}

haemmer's avatar
haemmer committed
47
48
49
50
51
52
53
54
55
56
57
58
function checkForm(){
	if(document.IdPList.user_idp && document.IdPList.user_idp.selectedIndex == 0){
		alert(unescape('<?php echo getLocalString('make_selection', 'js') ?>'));
		return false;
	} else {
		if (document.IdPList.permanent && document.IdPList.permanent.checked){
			return showConfirmation();
		} else {
			return true;
		}
	}
}
59

haemmer's avatar
haemmer committed
60
61
-->
</script>
62

haemmer's avatar
haemmer committed
63
<div id="container">
haemmer's avatar
haemmer committed
64
	<div class="box">
haemmer's avatar
haemmer committed
65
66
67
		<div id="header">
			<a href="http://www.switch.ch/aai"><img src="<?php echo $logoURL ?>" alt="SWITCHaai" id="federationLogo"></a>
			<a href="http://www.switch.ch/"><img src="<?php echo $imageURL ?>/switch-logo.png" alt="SWITCH" id="organisationLogo"></a>
68
		</div>
haemmer's avatar
haemmer committed
69
70
71
72
73
74
75
			<div id="content">
				<ul class="menu">
				  <li><a href="http://www.switch.ch/<?php echo $language ?>/aai/about/"><?php echo getLocalString('about_federation'); ?></a></li>
				  <li class="last"><a href="http://www.switch.ch/<?php echo $language ?>/aai/faq/"><?php echo getLocalString('faq') ?></a></li>
				  <li class="last"><a href="http://www.switch.ch/<?php echo $language ?>/aai/help/"><?php echo getLocalString('help') ?></a></li>
				  <li class="last"><a href="http://www.switch.ch/<?php echo $language ?>/aai/privacy/"><?php echo getLocalString('privacy') ?></a></li>
				</ul>
haemmer's avatar
haemmer committed
76
<!-- Body: Start -->