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
|
<? include_once("init.php"); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="iso-8859-1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="../../favicon.ico">
<title>Sivana | Noticias</title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" /> <!-- Bootstrap core CSS --> <link href="dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template --> <link href="css/sivana.css" rel="stylesheet"> <!-- Owl Carousel Assets --> <link href="owl-carousel/owl.carousel.css" rel="stylesheet"> <link href="owl-carousel/owl.theme.css" rel="stylesheet"> <!-- Just for debugging purposes. Don't actually copy these 2 lines! --> <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]--> <script src="assets/js/ie-emulation-modes-warning.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> <script src="assets/js/ie10-viewport-bug-workaround.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript" src="js/switch_display.js"></script> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[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>
<body> <? include ("topo.php") ?> <!-- Static navbar --> <? include ("menu.php") ?> <div class="conteudo"> <div class="container"> <? include ("aviso.php") ?> <div class="row"> <div class="col-md-8"> <div class="row"> <input type="hidden" id="current_page" /> <input type="hidden" id="show_per_page" /> <div id="content"> <? $query = mysql_query("SELECT idartigo, titulo, intro, imagem FROM artigo where publicado = 's' and manchete = 's' order by idartigo desc"); $contatdor = 1; $aux = 1; while ($not = mysql_fetch_array($query)) { $url = $not['titulo']; $urllimpo = normaliza(strtolower($url));
?> <? if ($contatdor == 1 ) { ?> <div class="col-lg-12"> <div class="principal"> <a href="noticia/<?= $not['idartigo'];?>/<?= $urllimpo;?>"><img src="userfiles/image/<?= $not['imagem']?>" /></a> <h3><a href="noticia/<?= $not['idartigo'];?>/<?= $urllimpo;?>"><?= $not['titulo']; ?></a></h3> <p><? //$not['intro']; ?></p> </div> </div> <? } else { ?> <div class="col-md-6"> <div class="principal"> <a href="noticia/<?= $not['idartigo'];?>/<?= $urllimpo;?>"> <img src="userfiles/image/<?= $not['imagem']?>" /> <h3><?= $not['titulo']; ?></h3> <p><? //$not['intro']; ?></p> </a> <a href="noticia/<?= $not['idartigo'];?>/<?= $urllimpo;?>" class="btn botao pull-right">Leia mais</a> <div class="clearfix"></div> </div> </div> <? } ?> <? $contatdor++;$aux++; if ($contatdor == 4) {echo '<div class="clearfix"></div>'; $contatdor =2;} } ?> </div> </div><!-- /Row --> <!-- /block -->
<div class="clearfix"></div> <div class="pagination" id='page_navigation'></div> </div><!-- col -- 8 -->
<div class="col-md-4"> <? include ("menu-rapido.php")?> </div> </div> <div class="vintespaco"></div> <? include("parceiros.php")?> </div> <!-- /container -->
<? include ("rodape.php") ?> </div><!-- Conteudo do site-->
<!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster -->
<script src="dist/js/bootstrap.min.js"></script>
<script src="owl-carousel/owl.carousel.js"></script>
</body> </html>
|