-
Notifications
You must be signed in to change notification settings - Fork 0
/
cursos.php
executable file
·166 lines (149 loc) · 8.52 KB
/
cursos.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
<?php
require 'intranet/models/Curso.php';
require 'intranet/tools/Util.php';
$curso = new Curso();
$util = new Util();
?>
<!DOCTYPE html>
<html lang="es">
<!-- Mirrored from medico.dexignzone.com/xhtml/index.php by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 29 Sep 2020 21:18:50 GMT -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content=""/>
<meta name="author" content=""/>
<meta name="robots" content=""/>
<meta name="description" content=""/>
<meta property="og:title" content="Colegio de Trabajadores Sociales del Peru - Region XI Ancash"/>
<meta property="og:description" content="Cursos Colegio de Trabajadores Sociales del Peru - Region XI Ancash"/>
<meta property="og:image" content=""/>
<meta name="format-detection" content="telephone=no">
<!-- FAVICONS ICON -->
<link rel="icon" href="images/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png"/>
<!-- PAGE TITLE HERE -->
<title>Cursos | Colegio de Trabajadores Sociales del Peru - Region XI Ancash</title>
<!-- MOBILE SPECIFIC -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--[if lt IE 9]>
<script src="js/html5shiv.min.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
<!-- STYLESHEETS -->
<link rel="stylesheet" type="text/css" href="css/plugins.min.css">
<link rel="stylesheet" type="text/css" href="plugins/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="plugins/flaticon/flaticon.css">
<link rel="stylesheet" type="text/css" href="plugins/themify/themify-icons.css">
<link rel="stylesheet" type="text/css" href="css/style.min.css">
<link class="skin" rel="stylesheet" type="text/css" href="css/skin/skin-1.css">
<link rel="stylesheet" type="text/css" href="css/templete.min.css">
<script
src="https://code.jquery.com/jquery-3.5.1.js"
integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc="
crossorigin="anonymous"></script>
<style>
@import url('https://fonts.googleapis.com/css?family=Hind:300,400,500,600,700|Lato:100,100i,300,300i,400,400i,700,700i,900,900i|Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i|Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i|Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i|PT+Serif:400,400i,700,700i|Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i|Roboto+Slab:100,300,400,700|Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i|Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i|Rubik:300,300i,400,400i,500,500i,700,700i,900,900i');
</style>
</head>
<body id="bg">
<div id="loading-area"></div>
<div class="page-scroll"></div>
<div class="page-wraper">
<!-- header -->
<?php include 'fixed/header.php' ?>
<!-- header END -->
<!-- Content -->
<div class="page-content">
<!-- About Company -->
<!-- Our Awesome Services -->
<div class="section-full bg-white content-inner">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center section-head">
<h3 class="h3"> Cursos</h3>
<div class="dez-separator bg-primary"></div>
</div>
</div>
<div class="section-content ">
<div class="row">
<div class="col-lg-12 p-lr0">
<!-- blog grid -->
<div id="masonry" class="dez-blog-grid-3">
<?php
$acurso = $curso->verTodoCursos();
$fecha_actual = strtotime(date("Y-m-d"));
foreach ($acurso as $fila) {
$fecha_entrada = strtotime($fila['fecha']);
$label = '<label class="badge badge-success"> Activo</label>';
if ($fecha_entrada < $fecha_actual) {
$label = '<label class="badge badge-danger"> Cerrado</label>';
}
$year= date('Y', $fecha_entrada);
$day= date('d', $fecha_entrada);
$month = $util->Mes3Letras($fecha_entrada);
?>
<div class="post card-container col-lg-4 col-md-6 col-12">
<div class="blog-post blog-grid date-style-2">
<div class="dez-post-media dez-img-effect zoom-slow">
<a href="detalle_curso.php?idcurso=<?php echo $fila['id_curso'] ?>">
<img src="images/cursos/<?php echo $fila['imagen'] ?>" alt="" style="max-height: 200px">
</a>
</div>
<div class="dez-post-info">
<div class="dez-post-title ">
<h3 class="post-title">
<a href="detalle_curso.php?idcurso=<?php echo $fila['id_curso'] ?>">
<?php echo $fila['nombre'] ?>
</a>
<?php echo $label ?>
</h3>
</div>
<div class="dez-post-meta ">
<ul>
<li class="post-date"><i class="fa fa-calendar"></i><strong><?php echo $day . " " . $month?></strong> <span> <?php echo $year?></span></li>
</ul>
</div>
<div class="dez-post-text">
<p>Ponente: <?php echo $fila['profesor'] ?></p>
</div>
<div class="dez-post-info">
<p class="text-black">Precio: <strong>S/ <?php echo number_format($fila['monto'],2) ?></strong></p>
</div>
<div class="dez-post-readmore">
<a href="detalle_curso.php?idcurso=<?php echo $fila['id_curso'] ?>" title="READ MORE" rel="bookmark" class="btn btn-info">
<i class="fa fa-book"></i> Inscribirse <i class="fa fa-angle-double-right"></i>
</a></div>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<?php include 'fixed/footer.php' ?>
<!-- Footer END-->
<!-- scroll top button -->
<button class="scroltop fa fa-chevron-up"></button>
</div>
<!-- JavaScript files ========================================= -->
<script src="js/combining.js"></script><!-- COMBINING JS -->
<!-- revolution JS FILES -->
<script src="plugins/revolution/revolution/js/jquery.themepunch.tools.min.js"></script>
<script src="plugins/revolution/revolution/js/jquery.themepunch.revolution.min.js"></script>
<script src="js/rev.slider.js"></script>
<script>
jQuery(document).ready(function () {
'use strict';
dz_rev_slider_5();
}); /*ready*/
</script>
</body>
<!-- Mirrored from medico.dexignzone.com/xhtml/index.php by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 29 Sep 2020 21:19:49 GMT -->
</html>