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
|
<? include("admin/class_utility.php"); ?> <? include("classvideo.php"); ?>
<!DOCTYPE html> <html lang="it"> <head>
<? //Apertura //News include("admin/setConn.php"); $special = new class_utility(); if ($db == FALSE) die ("Errore nella connessione."); $namedb = "Sql603025_1"; //PAGINE $result = mysql_db_query($namedb, $sql, $db); $count = mysql_query("SELECT COUNT(ID) FROM notiziebrevi"); $res_count = mysql_fetch_row($count); $tot_records = $res_count[0]; $per_page = 10; $tot_pages = ceil($tot_records / $per_page); $current_page = (!$_GET['page']) ? 1 : (int)$_GET['page']; $primo = ($current_page - 1) * $per_page; //FINE PAGINE
if ($db == FALSE) die ("Errore nella connessione."); $sql = "SELECT * FROM notiziebrevi WHERE ID=".$_GET['ID']." ORDER BY Data_e_ora, ID LIMIT $primo, $per_page"; $result = mysql_db_query($namedb, $sql, $db); while($results = mysql_fetch_array($result)){ $ID = $results["ID"]; $titolo = $special->specialChars($results["Titolo"]); $testo = $special->specialChars($results["Testo"]); } mysql_close($db); ?> <LINK REL="shortcut icon" HREF="http://www.euroroma.net/favicon.ico" type="image/x-icon" /> <link rel="icon" href="http://www.euroroma.net/favicon.ico" type="image/x-icon" >
<title><? echo strip_tags($titolo); ?></title> <meta http-equiv="Content-Language" content="it" />
<meta http-equiv="Content-Type" content="text/php; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/php; charset=utf-8" /> <meta name="description" content="<? echo strip_tags($testo); ?>" /> <meta name="keywords" content="Giornale, giornali, online, telematico, telematici, settimanale, settimanali, notizia, notizie, news, breaking, politica, interna, interni, esteri, estero, economia, welfare, cultura, società , scienza, scienze, tecnologia, tecnologie, occidente, oriente, ambiente, roma, lettore, lettori, italia, europa, usa, germania, francia, spagna, gran bretagna, articolo, articoli, foto, video, archivio, mailinglist, capitale, crisi, affari, cronaca, cronache, rubrica, rubriche" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap --> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> <link rel="stylesheet" href="http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css"> <link href="http://www.euroroma.net/css/bootstrap.css" rel="stylesheet"> <!-- for fontawesome icon css file --> <link href="http://www.euroroma.net/css/font-awesome.min.css" rel="stylesheet"> <!-- for content animate css file --> <link rel="stylesheet" href="http://www.euroroma.net/css/animate.css"> <!-- google fonts --> <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'> <!-- slick slider css file --> <link href="http://www.euroroma.net/css/slick.css" rel="stylesheet"> <!-- <link href="css/theme-red.css" rel="stylesheet"> --> <link href="http://www.euroroma.net/css/theme.css" rel="stylesheet"> <!-- main site css file --> <link href="http://www.euroroma.net/style.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]-->
</head> <?php function permalink($string) { $string = strtolower($string); $string = preg_replace("/[^0-9A-Za-z ]/", "", $string); $string = str_replace(" ", "-", $string); while (strstr($string, "--")) { $string = preg_replace("/--/", "-", $string); } return($string); } ?>
<body>
<!-- Facebook like page--> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<? include("topmenu.php"); include("admin/cut-html-text.php"); ?>
|