-
Notifications
You must be signed in to change notification settings - Fork 2
/
Ofertas.php
78 lines (72 loc) · 3.74 KB
/
Ofertas.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="favicon.png">
<title>Plazas Recientes</title>
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="assets/css/bootstrap.css">
<link rel="stylesheet" href="assets/css/normalize.css">
<link rel="stylesheet" href="assets/css/jqueryUI.css">
<link rel="stylesheet" href="assets/css/oferta.css">
<link rel="stylesheet" href="validacionStyle.css">
<script src="assets/js/jquery-v1.10.2.js"></script>
<script src="assets/js/momments.js"></script>
<script src="assets/js/timeago.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/jquery-ui.js"></script>
<script src="assets/js/jquery.validate.js"></script>
<script src="assets/js/modernizr2.6.2.js"></script>
<script src="assets/js/holder.js"></script>
</head>
<body>
<div id="header" class="navbar navbar-default navbar-static-top">
<?php include_once 'layout/header.php'; ?>
</div>
<div id="contenedor" class="container">
<?php
include_once 'clases/db_connect.php';
$result = mysql_query("SELECT * FROM `ofertas` where aprovacion_of=1") or trigger_error(mysql_error());
while ($row = mysql_fetch_array($result)) {
foreach ($row AS $key => $value) {
$row[$key] = stripslashes($value);
}
?>
<div class="oferta">
<div class="sub">
<hr class="featurette-divider">
<h3><a href="#"><?php echo nl2br($row['titulo_of']) ?></a></h3>
<h4><?php echo nl2br($row['descripcion_of']) ?></h4>
<h4><?php $fecha_ago = ($row['fecha_of']) ?></h4>
<?php echo "Publicado: <span id='timeagos' data-livestamp='$fecha_ago'></span><br>" ?>
<br>
<?php
session_start();
$cod_oferta = $row['cod_oferta'];
$_usuario = $_SESSION['estudiante'];
if ($_usuario != "") {
echo "<a href=detallesOferta.php?id=$cod_oferta class='btn btn-success btn-sm'>Ver Informacion</a>";
} else {
echo "<div class='alert alert-danger'>Debes registrarte para poder aplicar a las ofertas!";
echo " <button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button> </div>";
echo "<h2><a href='RegistroUsuario.php'>Clic aqui para registrarte</a></h2>";
}
?>
<hr class="featurette-divider">
</div>
</div>
<?php
// echo "<td valign='top'><a href=edit.php?id={$row['id']}>Aplicar</a></td><td><a href=delete.php?id={$row['id']}>Ver Detalles</a></td> ";
}
?>
<hr class="featurette-divider">
<footer>
<p class="pull-right"><a href="#">Subir <span class="glyphicon glyphicon-arrow-up"></span></a></p>
<p>© 2013 Bolsa de Empleo UFG, Inc. · <a href="#">Privacidad</a> · <a href="#">Terminos y Condiciones</a></p>
</footer>
</div>
</body>
</html>