-
Notifications
You must be signed in to change notification settings - Fork 1
/
news.php
74 lines (64 loc) · 2.7 KB
/
news.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
<?php
include_once dirname(__FILE__) . "/engine/engine.php";
//include_once( "engine/engine.php" );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
Site Engineering by Andrewww
-->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>FantaTorneo *New Generation*</title>
<? @include("page_elements/scripts.php"); ?>
<link rel="shortcut icon" href="pics/favicon.ico"/>
<script type="text/javascript">
$(document).ready(function() {
get_rss_feed();
});
function get_rss_feed() {
$("#rss_content").empty();
jQuery.get("<?php echo $baseUrl ?>rssBackend.php", {url : 'http://www.calciomercato.it/rss/'}, function(data) {
$('#loading_icon').hide("fast");
// $('.rss_small').css("height", "160px");
// $('.rss_small').css("overflow", "scroll");
// $('.rss_small').css("overflow-x", "hidden");
$(data).find('item').each(function() {
var $item = $(this);
var title = $item.find('title').text();
var link = $item.find('link').text();
var description = $item.find('description').text();
var pubDate = $item.find('pubDate').text();
var html = '<li><a href="' + link + '" target="_blank">' + title + '</a><br/>' + description + '</li>';
$('#rss_content').append(html);
});
});
};
</script>
</head>
<body>
<? @include("page_elements/header.php"); ?>
<div id="content">
<div id="colOne">
<div id="logo"></div>
<? @include("page_elements/login_box.php"); ?>
<? @include("page_elements/menu_lat.php"); ?>
</div>
<div id="colTwo">
<h2>Warm news</h2>
<div class="rss" style="width:100%;">
<img alt="Loading..." src="images/loading.gif" id="loading_icon" align="center" class="loading_icon"/>
<ul id="rss_content">
</ul>
</div>
</div>
</div>
<br/><br/>
<div id="footer">
<p>Copyright (c) 2009 <a href="http://www.andreamartelli.it">Andrea Martelli</a>. All rights reserved.</p>
</div>
</body>
</html>