-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixtures.php
125 lines (108 loc) · 3.06 KB
/
fixtures.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!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">
<head>
<script>
function showCD(str) {
if (str=="") {
document.getElementById("txtHint").innerHTML="";
return;
}
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else { // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","index_parsing.php?q="+str,true);
xmlhttp.send();
}
</script>
<link rel="stylesheet" href="css/fixture.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fixture of sportszone</title>
</head>
<body>
<div class="fix main">
<div class="fix header">
<h1>SPORTS ZONE</h1>
</div>
<div class="fix navigation_bar">
<ul >
<?php
if($_COOKIE['id'])
{
if($_COOKIE['id']=='1234'){
?>
<li><a href="home.php">HOME</a></li>
<li><a href="live_score.php">LIVE SCORES</a></li>
<li><a href="news.php">NEWS</a></li>
<li><a href="#">PHOTOS</a></li>
<li><a href="register.php">REGISTRATION</a></li>
<li><a href="admin_page.php">ADMIN</a></li>
<li><a href="logout.php">LOGOUT</a></li>
<?php
} else{
?>
<li><a href="home.php">HOME</a></li>
<li><a href="live_score.php">LIVE SCORES</a></li>
<li><a href="news.php">NEWS</a></li>
<li><a href="#">PHOTOS</a></li>
<li><a href="register.php">REGISTRATION</a></li>
<li><a href="logout.php">LOGOUT</a></li>
<?php
}
}else
{
?>
<li><a href="home.php">HOME</a></li>
<li><a href="live_score.php">LIVE SCORES</a></li>
<li><a href="news.php">NEWS</a></li>
<li><a href="#">PHOTOS</a></li>
<li><a href="register.php">REGISTRATION</a></li>
<li><a href="login.php">LOGIN</a></li>
<?php
}
?>
</ul>
</div>
<div class="live_score">
<h1>live score is here</h1>
</div>
<div class="fix content">
<div class="fix sidebar">
<ul >
<li><a href="home.php">HOME</a></li>
<li><a href="fixtures.php">FIXTURES</a></li>
<li><a href="video.php">VIDEOS</a></li>
<li><a href="register.php">REGISTER</a></li>
<li><a href="about.php">ABOUT</a></li>
</ul>
</div>
<div class="fix content_middle">
<div class="fix ajax_form">
<p class="form_style">Choose Your Desired Fixture</p>
<form>
<select name="cds" onchange="showCD(this.value)">
<option class="option_style" value="">SELECT A TOURNAMENT</option>
<option class="option_style" value="WORLD CRICKET">WORLD CRICKET</option>
<option class="option_style" value="WORLD FOOTBALL">WORLD FOOTBALL</option>
<option class="option_style" value="EPL">ENGLISH PREMIER LEAGUE</option>
</select>
</form>
</div>
<div id="txtHint" ></div>
</div>
</div>
</div>
<div class="fix footer">
<p class="fix footer_text1 ">Mahamudul Hasan Shuvro</p>
<p class="fix footer_text2">CSE 2K12</p>
<p class="fix footer_text3">Project 2-2</p>
</div>
</body>
</html>