/web/htdocs/www.euroroma.net/home/menudx.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311

            <!-- start content bottom right ALTRE DI SPALLA-->
            <div class="col-lg-4 col-md-4">
              <div class="content_bottom_right">
 
                <!-- start single bottom rightbar -->
                <div class="single_bottom_rightbar">
                  <h2>Notizie recenti</h2>
                  <ul class="small_catg popular_catg ">
                  <?
                    
//Altrie notizie di spalla
                    
include("admin/setConn.php");
                    
$special = new class_utility();
                    
                    
$ID $results["ID"];
                    
$IDarticolo $results["IDarticolo"];
                    
//cerco l'articolo nella tabella risultati
                    
if ($db == FALSE)
                        die (
"Errore nella connessione.");
                    
$sql2 "SELECT * FROM risultati WHERE Stato=0 ORDER BY ID DESC LIMIT 0, 4";
                    
$result2 mysql_db_query("Sql603025_1"$sql2$db);
                    while(
$results2 mysql_fetch_array($result2)){
                        
$ID2 $results2["ID"];
                        
$IDarticolo2 $results2["IDarticolo"];
                        
$rubrica $special->specialChars($results2["Rubrica"]);
                        
$autore $special->specialChars($results2["Autore"]);
                        
$titolo $special->specialChars($results2["Titolo"]);
                        
$sottotitolo $special->specialChars($results2["Sottotitolo"]);
                        
$testo $special->specialChars($results2["Testo"]);
                        
$url $special->specialChars($results2["URLimg"]);
                        
$data $special->specialChars($results2["Data_e_ora"]);
                
                        
$stringa permalink($titolo);
                
                        
$cate str_replace(' '''$rubrica); 
                        if(
$cate=="CULTURAESOCIETÀ" || $cate=="CULTURAESOCIET&Agrave;" || $cate=="CULTURA E SOCIET&Agrave;"){$cate="CULTURAESOCIETA";}
                
                
                        echo 
"<li>";
                        echo 
"<div class='media '>";
                        echo 
"  <a class='media-left' href='http://www.euroroma.net/".$ID2."/".$cate."/".$stringa.".html'>";
                        echo 
"    <img src='".$url."' alt='Le aLtre notizie di Euroroma'>";
                        echo 
"  </a>";
                        echo 
"  <div class='media-body'>";
                        echo 
"    <h4 class='media-heading'><a href='http://www.euroroma.net/".$ID2."/".$cate."/".$stringa.".html'>".$titolo."</a></h4> ";
                        echo 
"    <div class='comments_box'>";
                        echo 
"      <span class='meta_date'>".$data{8}.$data{9}."/".$data{5}.$data{6}."/".$data{0}.$data{1}.$data{2}.$data{3}."</span>";
                        echo 
"      <span class='meta_more'><a  href='http://www.euroroma.net/".$ID2."/".$cate."/".$stringa.".html'>Continua...</a></span>";
                        echo 
"    </div>";
                        echo 
"   </div>";
                        echo 
"</div>";
                        echo 
"</li>";
                    }
                    
                    
mysql_close($db);
                  
?>
                  </ul>
                  
                  <br>
                <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                <!-- Responsive orizzontale 1 -->
                <ins class="adsbygoogle"
                     style="display:block"
                     data-ad-client="ca-pub-5549117216645456"
                     data-ad-slot="5436023121"
                     data-ad-format="auto"></ins>
                <script>
                (adsbygoogle = window.adsbygoogle || []).push({});
                </script>
                <br>
                </div> <!-- End single bottom rightbar -->
                
                
                
                
                
                
                <!-- start single bottom rightbar SHEDE-->
                <div class="single_bottom_rightbar">
                  <ul role="tablist" class="nav nav-tabs custom-tabs">
                    <li class="active" role="presentation"><a data-toggle="tab" role="tab" aria-controls="home" href="#Video">Video</a></li>
                    <li role="presentation"><a data-toggle="tab" role="tab" aria-controls="messages" href="#Foto">Foto</a></li>
                    <li role="presentation"><a data-toggle="tab" role="tab" aria-controls="messages" href="#Blog">Blog</a></li>
                  </ul>
                  
                  
                  <div class="tab-content">
                  <div id="Video" class="tab-pane fade in active" role="tabpanel">
                    <ul class="small_catg popular_catg ">
                    
                      <?
     
                        
//Videogallery
                                
            

                            
include("admin/setConn.php");
                            
$special = new class_utility();
                            if (
$db == FALSE)
                                    die (
"Errore nella connessione.");
                            
$sql "SELECT * FROM galleriavideo ORDER BY ID DESC, Data_e_ora DESC LIMIT 3";
                            
$result mysql_db_query("Sql603025_1"$sql$db);
                            while(
$results mysql_fetch_array($result)){
                                
$ID $results["ID"];
                                
$titolo $special->specialChars($results["titolo"]);
                                
$url $results["url"];
                                
$descrizione $special->specialChars($results["descrizione"]);
                                
$urlimage $results["URLimg"];
 
                                
$IDvideo estraiCodice($url);

                                
# call youtube api function
                                
$youtube youtube("https://www.youtube.com/watch?v=".$IDvideo."");
                                
# title
                                
$youtube->title;
                                
# duration in seconds
                                #video description
                                
$youtube->description;
                                
# thumbnail url High Quality
                                
$youtube->thumbnail->hqDefault;
                                
# thumbnail url Small Quality
                                
$youtube->thumbnail->sqDefault;
                                
# video rating out of five
                                
$youtube->rating;
                                
# total likes
                                
$youtube->likeCount;
                                
# video category
                                
$youtube->category;
                                
# total view
                                
$youtube->viewCount;
                                
# time upload time
                                
$youtube->uploaded;

                                
$thumb =  $youtube->thumbnail->hqDefault;
                                
                                echo 
"<li>";
                                echo 
"<div class='media '>";
                                echo 
"  <a class='media-left' href='http://www.euroroma.net/video.php?ID=".$ID."'>";
                                  
$verificastrstr ($thumb'hqdefault');
                                    if(
$verifica){
                                        echo 
"<img src='".$thumb."' alt='I video più recenti di Euroroma'>";
                                    }else{ 
                                        echo 
"<img src='".$urlimage."' alt='Le video notizie online'>";
                                    }
                                    
                                echo 
" </a>";
                                echo 
"  <div class='media-body'>";
                                echo 
"    <h4 class='media-heading'><a href='http://www.euroroma.net/video.php?ID=".$ID."'>".$titolo."</a></h4> ";
                                echo 
"    <div class='comments_box'>";
                                echo 
"      <span class='meta_more'><a  href='http://www.euroroma.net/video.php?ID=".$ID."'>Guarda il video...</a></span>";
                                echo 
"      <span class='glyphicon glyphicon-facetime-video' aria-hidden='true'></span>";
                                echo 
"    </div>";
                                echo 
"  </div>";
                                echo 
"</div>";
                                echo 
"</li>";
                            }
                            
mysql_close($db);
        
        
                        
?>
                    </ul>
                  </div>
                  
                  
                  
                  <div id="Foto" class="tab-pane fade" role="tabpanel">
                     <ul class="small_catg popular_catg">
                     
                     <?
                            
include("admin/setConn.php");
                            
//include("admin/cut-html-text.php");
                            
$special = new class_utility();
    
                            
$namedb "Sql603025_1";
                            
//PAGINE
                            
$result mysql_db_query($namedb$sql$db);
                            
$count mysql_query("SELECT COUNT(ID) FROM photogallery");
                            
$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']) ? : (int)$_GET['page'];
                            
$primo = ($current_page 1) * $per_page;
                            
//FINE PAGINE

                            
if ($db == FALSE)
                                die (
"Errore nella connessione.");
                            
$sql "SELECT * FROM photogallery ORDER BY ID DESC, aaaa DESC, mm DESC, gg DESC LIMIT 0, 3";
                            
$result mysql_db_query($namedb$sql$db);
                            
$i=0;
                
                
                            while(
$results mysql_fetch_array($result)){
                                
$ID_photogallery $results["ID"];
                                
$titologalleria $results["titolo"];
                                
$gg $results["gg"];
                                
$mm $results["mm"];
                                
$aaaa $results["aaaa"];
                    
                                
//Ultima foto Galleria
                                
if ($db == FALSE)
                                    die (
"Errore nella connessione.");
                                
$sql2 "SELECT * FROM photo WHERE ID_photogallery=".$ID_photogallery." ORDER BY Display_Order, ID DESC LIMIT 1";
                                
$result2 mysql_db_query("Sql603025_1"$sql2$db);
                                while(
$results2 mysql_fetch_array($result2)){
                                    
$ID2 $results2["ID"];
                                    
$titolo2 $results2["titolo"];
                                    
$miniatura2 $results2["miniatura"];
                                    
                                    echo 
"<li>";
                                    echo 
"<div class='media'>";
                                    echo 
"  <a class='media-left' href='http://www.euroroma.net/foto.php?ID=".$ID_photogallery."'>";
                                    echo 
"<img src='http://www.euroroma.net/public/photo/".$miniatura2."' alt='Le foto più recenti di Euroroma'>";
                                    echo 
" </a>";
                                    echo 
"  <div class='media-body'>";
                                    echo 
"    <h4 class='media-heading'><a href='http://www.euroroma.net/foto.php?ID=".$ID_photogallery."'>".$titologalleria."</a></h4> ";
                                    echo 
"    <div class='comments_box'>";
                                    echo 
"      <span class='meta_more'><a  href='http://www.euroroma.net/foto.php?ID=".$ID_photogallery."'>Guarda le foto...</a></span>";
                                    echo 
"      <span class='glyphicon glyphicon-camera' aria-hidden='true'></span>";
                                    echo 
"    </div>";
                                    echo 
"  </div>";
                                    echo 
"</div>";
                                    echo 
"</li>";
                                }
                                
$i++;
                            }

                            
mysql_close($db);
                        
?>
                      
                    </ul>
                  </div>
                  
                  <div id="Blog" class="tab-pane fade" role="tabpanel">
                     <ul class="small_catg popular_catg">
                      <li>
                        <div class="media">
                          <div class="media-body">
                            <h4 class="media-heading"><a href="http://www.euroroma.net/blog.php">Segui i blog partner di Euroroma </a></h4> 
                            <p> </p>
                          </div>
                        </div>
                      </li>
                    </ul>
                  </div>          
                                           
                </div>
              </div> <!-- End single bottom rightbar -->
              
              <div class="single_bottom_rightbar">
                    <br><h2>Multimedia</h2>
                    <ul>
                      <li><a href="http://www.euroroma.net/galleriafoto.php">Galleria Foto</a></li>
                      <li><a href="http://www.euroroma.net/galleriavideo.php">Galleria Video</a></li>
                      <li><a href="http://www.euroroma.net/DEGUSTIBUS.html">De Gustibus - La rubrica del gusto</a></li>
                      <li><a href="http://www.euroroma.net/blog.php">Blog</a></li>
                    </ul>
                </div>

                
                <div class="single_bottom_rightbar">
                <h2>Speciali</h2>
                <div class="blog_archive ">
                   <form>
                     <select id="option3" onchange="location.href='http://www.euroroma.net/speciali.php?ID_speciale=' + this.options[this.selectedIndex].value">
                     <option value='#' selected='selected'>Scegli lo speciale</option>
                     <?
                        
include("admin/setConn.php");
                        
$special = new class_utility();    
                        
$namedb "Sql603025_1";
                        
$stato=0;

                        if (
$db == FALSE)
                            die (
"Errore nella connessione.");
                        
$sql "SELECT * FROM speciale ORDER BY ID DESC";
                        
$result mysql_db_query($namedb$sql$db);
                        
$i=0;
                
    
                        while(
$results mysql_fetch_array($result)){
                            
$ID $results["ID"];
                            
$nome $special->specialChars($results["nome"]);
                    
                            echo 
"<option value='".$ID."'>".$nome."</option>";
                        }
                        
mysql_close($db);
                    
?>

                     </select>
                   </form>
                 </div>
              </div>
              
              
               
              <div class="single_bottom_rightbar ">
                <h2>Contatti</h2>
                <ul>
                  <li><a href="http://www.euroroma.net/redazione.php">Redazione</a></li>
                  <li><a href="http://www.euroroma.net/LAVOSTRAVOCE.html">La Vostra voce</a></li>
                  <li><a href="http://www.euroroma.net/contatti.php">Contattaci</a></li>
                  <li><a href="http://www.euroroma.net/collabora-con-il-giornale-online.php">Collabora con noi</a></li>
                  <li><a href="http://www.euroroma.net/pubblicita-su-questo-sito.php">Pubblicit&agrave; su questo sito</a></li>
                </ul>
              </div>
            </div>
          </div>
          <!-- start content bottom right -->