This repository was archived by the owner on Jan 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagrupar_en_proyectos.php
More file actions
172 lines (131 loc) · 6.39 KB
/
agrupar_en_proyectos.php
File metadata and controls
172 lines (131 loc) · 6.39 KB
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
167
168
169
170
171
172
<?php
include_once 'session.php';
include_once '../../database_conn.php';
$conexion = conexion();
if(!isset($_SESSION['user'])) {
header('location : login.php');
}
$contador = 0;
if(isset($_POST['guardar'])) {
$query = "INSERT INTO Prueba VALUES ('BIEN3.0')";
mysqli_query($conexion, $query);
header('location: perfil.php');
}
?>
<!DOCTYPE html>
<html lang="es" dir="ltr">
<head>
<meta charset="utf-8">
<title>Selecciona una actividad</title>
<link rel="stylesheet" href="assetsFAQ/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assetsFAQ/fonts/fontawesome-all.min.css">
<link rel="stylesheet" href="assetsFAQ/css/Footer-Dark.css">
<link rel="stylesheet" href="assetsFAQ/css/Navegacin-APS.css">
<link rel="stylesheet" href="assetsFAQ/css/Search-Input-responsive.css">
<link rel="stylesheet" href="assetsFAQ/css/Sidebar-1.css">
<link rel="stylesheet" href="assetsFAQ/css/Sidebar-Menu-1.css">
<link rel="stylesheet" href="assetsFAQ/css/Sidebar-Menu.css">
<link rel="stylesheet" href="assetsFAQ/css/Sidebar.css">
<link rel="stylesheet" href="assetsFAQ/css/simple-footer.css">
<link rel="stylesheet" href="assetsFAQ/css/styles.css">
<!-- Script de Búsqueda -->
<?php
// function Search($input){
//
// if($count > 0){
// while($rows = mysqli_fetch_assoc($resultados)){
// echo "<div class='row' style='margin-top: 1%;'>
// <div class='col'>
// <h1 class='text-left'>".$rows['decripcion']."</h1>
// <h1 class='text-left'>".$rows['fechaInicio']."</h1>
// <h1 class='text-left'>".$rows['fechaFin']."</h1>
// <h1 class='text-left'>".$rows['participantes']."</h1>
// <h1 class='text-left'>".$rows['horasDia']."</h1>
// <h1 class='text-left'>".$rows['archivo']."</h1>
// <h1 class='text-left'>".$rows['tipo']."</h1>
// <h1 class='text-left'>".$rows['propuestaPor']."</h1>
// <h1 class='text-left'>".$rows['aceptado']."</h1>
// <h1 class='text-left'>".$rows['ID']."</h1>
// <h1 class='text-left'>".$rows['Titulo']."</h1>
//
// </div>
// </div>";
// }
//}else{
/// echo "<div class='row' style='margin-top: 1%;'>
// <div class='col'>
// <h1 class='text-left'>No hay actividades de investigación sin asignar</h1>
// </div>
// </div>";
// }
// }
?>
<!-- Listener de retorno de carro para la barrita de búsqueda -->
<!-- // AQUÍ HABÍA UN SCRIPT -->
</head>
<body>
<?php include "_navbar.php"; ?>
<div class="container" style="margin-left: 15%;">
<div class="col-xl-8">
<div class="row">
<div class="col-md-4 col-lg-10 col-xl-12 text-center">
<div class="row">
<div class="col">
<h1 class="text-left" style="color: #56c6c6;padding-top: 20px;padding-bottom: 20px;">Actividades Propuestas</h1>
</div>
</div>
<?php
//////
echo"<form action = 'insertar_proyecto.php'>";
/////
$query = "SELECT * FROM Actividad";
$resultados = mysqli_query($conexion, $query);
// $contador = 0;
while($rows = mysqli_fetch_assoc($resultados)){
echo "<div class='row' style='margin-top: 1%;'>";
echo "<div class='col' style='border: 1px solid #56c6c6; border-radius: 10px;'>";
echo "<label><input type='checkbox' id='cbox1' name='".$rows['ID']."' value='first_checkbox'>".$rows['Titulo']."</label><br>";
if ($rows['aceptado']) {
echo "<p style='color: LawnGreen' class='text-left'>Actividad Aceptada</p>";
} else {
echo "<p style='color: Red' class='text-left'>Actividad NO Aceptada</p>";
}
echo
"
<p class='text-left'>Descripcion de la actividad: ".$rows['descripcion']."</p>
<p class='text-left'>Propuesta por: ".$rows['propuestaPor']."</p>
<p class='text-left'>Fecha de Inicio: ".$rows['fechaInicio']."</p>
<p class='text-left'>Fecha de Finalización: ".$rows['fechaFin']."</p>
<p class='text-left'>Numero de participantes: ".$rows['participantes']."</p>
<p class='text-left'>Horas Diarias: ".$rows['horasDia']."</p>
<p class='text-left'>Tipo: ".$rows['tipo']."</p>
<p class='text-left'>Perfiles Buscados: </br>";
$query = "SELECT habilidad FROM Actividad_Habilidad WHERE actividad = '".$rows['ID']."'";
$habilities = mysqli_query($conexion,$query);
while($data = mysqli_fetch_assoc($habilities)){
echo "\t - ".$data['habilidad']."</br>";
}
echo "</p>";
echo"</div>
</div>";
$contador++;
}
//////
////
?>
Nombre del Proyecto:
<p><input class='form-control' type='text' name='nombreProyecto' id='nombreProyecto'></p>
<p><input type='submit' value ='Guardar' href = '#'></p>
</form>
<?php
?>
</div>
</div>
</div>
</div>
<script src="assetsIndex/js/jquery.min.js"></script>
<script src="assetsIndex/bootstrap/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.3.1/js/swiper.jquery.min.js"></script>
<script src="assetsIndex/js/Simple-Slider.js"></script>
</body>
</html>