-
Notifications
You must be signed in to change notification settings - Fork 0
/
football.php
67 lines (67 loc) · 2.67 KB
/
football.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
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Football News</title>
<script src="javascript/common.js" type="text/javascript"></script>
<link href="football.css" rel="stylesheet" type="text/css" />
</head>
<?php
require('includes/paths.php');
require('includes/Rdf_Parser2.php');
require('includes/football.php');
?>
<body>
<div id="selector">
<div id="hp" class="choiceS">Home Page</div>
<div id="hc" class="choiceR" title="Click to see help" onmouseover="javascript:highlight('hc', 'choiceHR');" onmouseout="unhighlight('hc', 'choiceR');" onclick="javascript:openHelp();">Help</div>
<div id="ac" class="choiceR" title="Click to see detail about this site" onmouseover="javascript:highlight('ac', 'choiceHR');" onmouseout="unhighlight('ac', 'choiceR');" onclick="javascript:openAbout();">About</div>
</div>
<div id="sub_selector">
<div id="static">Wolverhampton Wanderers</div>
<div id="loading">
<form action="football.php" method="post">
<select id="league">
</select>
<select id="team">
</select>
</form>
</div>
</div>
<div class="news_source">
<?php
$url = 'http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/football/teams/w/wolverhampton_wanderers/rss.xml';
$file = 'bbc_sport_wolverhampton_wanderers.html';
$text = getFile($url, $file);
$last = 'Last Updated @ '.date("D d/m/y H:i:s", filectime($dir.'football_data/'.$file));
?>
<div class="news_source_title">
<a href="http://news.bbc.co.uk/sport1/hi/football/teams/w/wolverhampton_wanderers/default.stm" target="_blank">BBC Sport Headlines</a>
<?php echo $last;?>
</div>
<div class="news_source_data">
<?php echo $text;?>
</div>
</div>
<div class="news_source_right">
<?php
$url = 'http://news.google.co.uk/news?hl=en&ned=uk&q=wolverhampton+wanderers&ie=UTF-8&output=rss';
$file = 'google_wolverhampton_wanderers.html';
$text = getFile($url, $file);
$last = 'Last Updated @ '.date("D d/m/y H:i:s", filectime($dir.'football_data/'.$file));
?>
<div class="news_source_title">
<a href="http://news.google.co.uk/news?hl=en&ned=uk&q=wolverhampton+wanderers&ie=UTF-8" target="_blank">Google News UK</a>
<?php echo $last;?>
</div>
<div class="news_source_data">
<?php echo $text;?>
</div>
</div>
<div id="footer">
Powered by <a href="http://backstage.bbc.co.uk" target="_blank">backstage.bbc.co.uk</a> & <a href="http://news.google.co.uk">Google News UK</a> <span class="search_term">with the search term "Wolverhampton Wanderers"</span>
<br />
Data Updated Every 30 minutes
</div>
</body>
</html>