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
|
<? include("top.php"); ?>
<!-- start site main content --> <section id="mainContent" style='margin-top: 70px;'> <? include("scrollnews.php"); ?>
<!-- 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">
<!-- start business category ALTRE NOTIZIE 2 --> <div class="single_category "> <div class="archive_style_1"> <h2> <span class="bold_line"><span></span></span> <span class="solid_line"></span> <span class="title_text" href="#"> GALLERIA FOTO </h2> </div> <? 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']) ? 1 : (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 $primo, $per_page"; $result = mysql_db_query($namedb, $sql, $db); $i=1; $p=1; while($results = mysql_fetch_array($result)){ $ID_photogallery = $results["ID"]; $titologalleria = $special->specialChars($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 LIMIT 1"; $result2 = mysql_db_query("Sql603025_1", $sql2, $db);
while($results2 = mysql_fetch_array($result2)){ $ID2 = $results2["ID"]; $titolo2 = $special->specialChars($results2["titolo"]); $miniatura2 = $results2["miniatura"]; if($i==1){ echo "<div class='business_category_left '><ul class='small_catgNohr'>"; } if($i==2) { echo "<div class='business_category_right '><ul class='small_catgNohr'>"; } echo "<li>"; echo "<div class='media '>"; echo " <a class='media-left' href='foto.php?ID=".$ID_photogallery."'>"; echo " <img src='public/photo/".$miniatura2."' alt='Le foto notizie di Euroroma'>"; echo " </a>"; echo " <div class='media-body'>"; echo " <h4 class='media-heading'><a href='foto.php?ID=".$ID_photogallery."'>".$titologalleria."</a></h4> "; echo " <div class='comments_box'>"; echo " <span class='meta_date'>".$gg."/".$mm."/".$aaaa."</span>"; echo " <span class='meta_more'><a href='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>"; echo "</ul></div>"; if($i==2) { $i=0; echo "<div class='row'<span class='title_text2' href='#'></span></div>"; if($p==3){ echo "<br><a href='http://www.emporioantonelli.it' target='_blank'><img src='images/bannerEmporioAntonelli.jpg' width='100%' class='img-responsive'></a><br>"; } if($p==6){ echo "<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>"; } if($p==9){ echo "<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>"; } $p++; } } $i++; }
include("admin/paginazione.php"); // in questa cella inseriamo la paginazione print "<table width='100%' height='20' border='0' cellpadding='0' cellspacing='0' class='articoli'>"; print " <tr>\n <td height=\"30\" valign=\"center\" align=\"center\" class=\"pagine\">$paginazione</td>\n"; print " </tr>\n</table>"; mysql_close($db); ?>
</div> <!-- End business category --> </div><!--End content_bottom_left--> </div> <? include("menudx.php");?> </div><!-- end main content bottom --> </section><!-- End site main content --> </div> <!-- /.container --> <? include("foot.php");?>
|