/web/htdocs/www.euroroma.net/home/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
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
<? include("topnews.php"); ?>

      <!-- start site main content -->
      <section id="mainContent" style='margin-top: 70px;'>
  
          <!-- start main content bottom -->
          <div class="content_bottom">
            <div class="col-lg-8 col-md-8">
            <!-- start content bottom left -->
              <div class="content_bottom_left">
                <div class="single_page_area">
                   <ol class="breadcrumb">
                    <li><a href="http://www.euroroma.net">HOME</a></li>
                    <li><a href="http://www.euroroma.net/1NEWS.html">NOTIZIE IN BREVE</a></li>
                  </ol>
                  <h2 class="post_titile"><? echo $titolo?></h2>
                  <div class="single_page_content">
                    <div class="post_commentbox">
                      <a href="#"><i class="fa fa-user"></i>di Redazione Euroroma</a>
                      <a href="#"><i class="fa fa-tags"></i>Notizie in breve</a>
                    </div>
                    
                    <p><? echo $testo?></p>
                    
                    <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>
                    
                    <br><a href='http://www.emporioantonelli.it' target='_blank'><img src='http://www.euroroma.net/images/bannerEmporioAntonelli.jpg' width='100%' class='img-responsive'></a><br>
                    
                    <?
                    
//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']) ? : (int)$_GET['page'];
                        
$primo = ($current_page 1) * $per_page;
                        
//FINE PAGINE

                        
if ($db == FALSE)
                            die (
"Errore nella connessione.");
                        
$sql "SELECT * FROM notiziebrevi ORDER BY Data_e_ora DESC, ID DESC 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"]);
                            
$testonews $special->specialChars($results["Testo"]);
                            
$data $special->specialChars($results["Data_e_ora"]);
                            
                            
                            
$cate "News";
                            
$stringa permalink($testonews);
                            echo 
"<B>".$data{8}.$data{9}.$data{7}.$data{5}.$data{6}.$data{4}.$data{0}.$data{1}.$data{2}.$data{3}."</B>: <A href='http://www.euroroma.net/".$ID."/".$cate.".html' class='news'>".$titolo."</A><br><hr>"
                        }
                    
mysql_close($db);
                
?>
    
    
                    <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>                 
                </div>

              </div><!--End content_bottom_left-->     
                      
            </div>
            
            <? include("menudx.php");?>
        </div><!-- end main content bottom -->  
           
      </section><!-- End site main content -->
    </div> <!-- /.container -->
    
    <? include("foot.php");?>