-
Notifications
You must be signed in to change notification settings - Fork 26
/
page.php
51 lines (50 loc) · 1.38 KB
/
page.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
<?php
$pages = array(
'location' => 'pages/location.php',
'association' => 'pages/association.php',
'sessions' => 'pages/sessions.php',
'sponsors' => 'pages/sponsors.php',
'register' => 'pages/register.php',
'contact' => 'pages/contact.php',
);
if (!isset($pages[$_GET['to']])) {
header('location:index.php');
}
$thisPage = $_GET['to'];
$pagePath = $pages[$thisPage];
$arr = array($thisPage, 'Page');
?>
<!DOCTYPE HTML>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<title>Mobile Open Platform Conference</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/addional.css">
<script>
function click_ev (ev) {
var ee = '';
var elem = ev.target.parentNode;
if((typeof elem.href) == 'string') {
window.open(elem.href, 'new_w_'+(new Date).getTime(), '');
return false;
}
}
document.onclick = click_ev;
document.captureEvents(Event.CLICK);
</script>
</head>
<body id="<?php echo join('', $arr) ?>" class="normalLayout">
<div id="wrap">
<?php include_once('header.php'); ?>
<div id="container">
<div id="mainContent">
<?php include($pagePath); ?>
</div>
<hr />
</div>
<?php include_once('nav.php'); ?>
</div>
<?php include_once('footer.php'); ?>
</body>
</html>