This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
93 lines (83 loc) · 3.13 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
<?php
include('conexion/conexion.php');
?>
<!DOCTYPE html>
<html lang="ES">
<head>
<title>CSS Template</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> -->
<!-- Add icon library -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<header>
<img src="img/logo.png" alt="logo">
</header>
<body>
<ul>
<li><a href="#home">Inicio</a></li>
<li><a href="#news">Informacion</a></li>
<li><a href="#contact">Contactanos</a></li>
<li style="float:right"><a href="#" class="fa fa-instagram"></a></li>
<li style="float:right"><a href="#" class="fa fa-facebook"></a></li>
<li style="float:right"><a href="#" class="fa fa-twitter"></a></li>
</ul>
<section>
<!-- Barra Lateral -->
<nav>
<div id="form">
<form method="POST" action="seguridad/login_accion.php">
<a>Usuario:</a>
<input type="text" name="email" class="textbox" >
<a>Contraseña:</a>
<input type="password" name="password" class="textbox">
<div class="btn-group">
<button id="submit" type="submit">Entrar</button>
</div>
<p><a href="registroUsuario.php">Registrate</a></p>
</form>
</nav>
<article>
<h3>Cursos </h3>
<p>Estos son los cursos ofertados en el Inadeh Guarare.</p>
<!-- Busqueda -->
<div id="search">
<form action="/action_page.php">
</form>
</div>
<!-- Listado de Cursos 'style='width:100%' -->
<!-- Portfolio Gallery Grid -->
<div class="row">
<?php
//$sql = "SELECT * FROM tb_cursos WHERE status='por confirmar' OR status='pendiente' OR status='confirmado' OR status='Realizado'";
$sql = "SELECT * FROM tb_cursos WHERE activo ='Activo'";
$result = $connect->query($sql);
if($result->num_rows > 0) {
while($row = $result->fetch_assoc())
{
echo "<div class='column'>
<div class='content'>
<img src='img/".$row['foto']."'>
<p>".$row['nombre']."</p>
<p>Horas: ".$row['horas']."</p>
<div class='btn-cursos'>
<a href='verCursosDetalle.php?idCursos=".$row['id']."'><button type='button'>Detalle</button></a>
</div>
</div>
</div> ";
}
} else {
echo "<tr><td colspan='5'><center>No hay Cursos!</center></td></tr>";
}
?>
</div>
</article>
</section>
<!-- Footer -->
<footer>
<p>Trabajo final de Graduacion UTP Azuero Estudiantes: Ariel Gonzalez / Randol H Gonzalez</p>
<p><a href=https://github.com/randol696/set>Github</a></p>
</footer>
</body>
</html>