-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
131 lines (82 loc) · 3.55 KB
/
index.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
<?php
require 'php/Functions.php';
$obj = new Funciones();
//registros
$publicaciones = $obj->getPublicaciones();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="src/css/materialize.min.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="src/css/themes/light/main.css" media="screen,projection"/>
<link href="src/css/style.css" type="text/css" rel="stylesheet" media="screen,projection">
<!--Icon-->
<link rel="shortcut icon" href="src/img/a.png">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<nav class="#455a64 blue-grey darken-2" role="navigation" id="navBar">
<div class="nav-wrapper container"><a onload="mapeo()" id="logo-container" href="index.php" class="brand-logo">CMS yuri Gagarin</a>
<ul class="right hide-on-med-and-down">
<li><a href="#">Registrarse</a></li>
<li><a href="views/admin/index.php">Iniciar sesion</a></li>
</ul>
<ul id="nav-mobile" class="sidenav">
<li><a href="#">Navbar Link</a></li>
</ul>
<a href="#" data-target="nav-mobile" class="sidenav-trigger"><i class="material-icons">menu</i></a>
</div>
</nav>
<div class="container">
<div class="section">
<div class="hache4">
<h4 >post mas recientes</h4>
</div>
<div>
<?php foreach($publicaciones as $publicacion): ?>
<script src="src/js/admin_fix.js"></script>
<?php $post_fixed = $publicacion['blog_id'] ?>
<?php echo '<div class="responsive col s4">' ?>
<?php echo '<div class="gallery">' ?>
<?php echo '<p>' ?>
<?php echo '<img src="src/img/sample-1.jpg" alt="Mountains" width="600" height="400">' ?>
<?php echo '</p>' ?>
<?php echo '<div class="desc">' ?>
<?php echo '<h5>', $publicacion['titulo'], '</h5>';?>
<?php //echo '<p>', 'publicado por: ', $publicacion['admin_id'], '</p>'?>
<?php //echo '<p>', $publicacion['contenido'], '</p>';?>
<?php echo '</div>' ?>
<?php echo '<div class="row center">' ?>
<a id="Button" href="views/posts.php?blog_id=<?php echo $post_fixed;?>"
id="download-button"
class="btn-large waves-effect #757575 grey darken-1" > ver mas</a>
<?php echo '</div>' ?>
<?php echo '</div>' ?>
<?php echo '</div>' ?>
<?php endforeach;?>
</div>
</div>
</div>
<footer id="Footer" class="page-footer #cfd8dc blue-grey lighten-4">
<div class="footer-copyright">
<div class="container">
<span class="black-text">
© 2018 Copyright <b>UPT Jose Felix Ribas</b>
</span>
<a class="black-text text-lighten-4 right" href="http://www.misionsucre.gov.ve/">Mision sucre</a>
<img src="src/img/heart.png" alt="heart-icon">
</div>
</div>
</footer>
<!--JavaScript at end of body for optimized loading-->
<script type="text/javascript" src="src/js/materialize.min.js"></script>
<!-- jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="src/js/choosing_themes.js"></script>
</body>
</html>