[licrea] / trunk / consulta-por-tu.php  
ViewVC logotype

Annotation of /trunk/consulta-por-tu.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (view) (download) (as text)

1 : egutierrez 10 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 :     <!--
3 :     Diseñado por Estefani Gutiérrez
4 :    
5 :     Nombre : Repositorio de Licencias para REAS
6 :     Descripción:
7 :     Versión :
8 :     -->
9 :     <html xmlns="http://www.w3.org/1999/xhtml">
10 :     <head>
11 :     <meta name="keywords" content="" />
12 :     <meta name="description" content="" />
13 :     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
14 :     <title>Repositorio REA | Consulta por Creador</title>
15 :     <!--Enlace con hoja de Estilo-->
16 :     <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
17 :    
18 :    
19 :     <link rel="stylesheet" href="menu8.css" type="text/css" />
20 :     <!--[if IE 6]><style>#menu ul li.nivel1 {margin-bottom:-1px}</style><![endif]-->
21 :     <!--[if IE 7]><style>#menu ul li.nivel1 {margin-bottom:-2px}</style><![endif]-->
22 :     </head>
23 :     <body>
24 :     <div id="wrapper">
25 :     <div id="membrete">
26 :     </div>
27 :     <div id="enlaces">
28 :     <p align="right"><a href="http://www.cenditel.gob.ve/" title="Principal | Cenditel Nodo M&eacute;rida">Cenditel</a> | <a href="#noticias" title="Noticias">Noticias</a></p>
29 :     </div>
30 :     <div id="titulo">
31 :     </div>
32 :     <!-- end #header -->
33 :     <div id="page">
34 :     <div id="page-bgtop">
35 :     <div id="page-bgbtm">
36 :     <div id="content">
37 :     <div class="post">
38 :     <div class="entry">
39 :     <?php
40 :    
41 :     include("conexion.php");
42 :    
43 :     $tipo_usuario = $_POST["tipo_usuario"];
44 :     echo "<h3 class='title'><a href='#'>Consulta por Tipo Usuario</a></h3>
45 :     <p class='links'><a href='#'><font size='3'>".$tipo_usuario."</font></a></p><br>";
46 :    
47 :     $id_tipo_usuario= "SELECT id_tipo_usurio FROM tipo_usuario WHERE tipo_usuario='$tipo_usuario'";
48 :     $cur=mysql_query($id_tipo_usuario);
49 :     $row= mysql_fetch_array($cur);
50 :     $id_tipo_usurio=$row['id_tipo_usurio'];
51 :     //echo $id_tipo_usurio;
52 :    
53 :     $sql= "SELECT*FROM rea WHERE id_tipo_usurio='$id_tipo_usurio'";
54 :     $cursor =mysql_query($sql);
55 :    
56 :     $num_reg= mysql_num_rows($cursor);
57 :    
58 :     if ($num_reg>0){
59 :    
60 :     echo '<table border="3">';
61 :    
62 :     echo '<tr>';
63 :    
64 :     echo "<th align='center'>";
65 :     echo "T&iacute;tulo";
66 :     echo '</th>';
67 :    
68 :    
69 :     echo "<th align='center' width='70px'>";
70 :     echo "Fecha de Creaci&oacute;n";
71 :     echo '</th>';
72 :    
73 :     echo "<th align='center'>";
74 :     echo "Tema";
75 :     echo '</th>';
76 :    
77 :     echo "<th align='center'>";
78 :     echo "Dirigido a";
79 :     echo '</th>';
80 :    
81 :    
82 :     echo "<th align='center'>";
83 :     echo "Tipo de Material";
84 :     echo '</th>';
85 :    
86 :    
87 :     echo "<th align='center'>";
88 :     echo "Formato del Material";
89 :     echo '</th>';
90 :    
91 :    
92 :     echo "<th align='center' width='79px'>";
93 :     echo "Libertades";
94 :     echo '</th>';
95 :    
96 :     echo '<th>';
97 :     echo "Creador";
98 :     echo '</th>';
99 :    
100 :     echo '</tr>';
101 :    
102 :    
103 :    
104 :    
105 :    
106 :    
107 :     for($i=0;$i<$num_reg;$i++){
108 :    
109 :     //RESULTADOS DE LA CONSULTA DE LA TABLA (relacion_usuario_rea)
110 :    
111 :    
112 :    
113 :     $id_rea= mysql_result($cursor, $i ,'id_rea');
114 :    
115 :    
116 :    
117 :     $id_rea1= "SELECT id_rea FROM rea WHERE id_rea='$id_rea'";
118 :     $cur=mysql_query($id_rea1);
119 :     $row= mysql_fetch_array($cur);
120 :     $id_rea2=$row['id_rea'];
121 :     //echo $id_rea2;
122 :    
123 :     //titulo
124 :     $titulo1= "SELECT titulo FROM rea WHERE id_rea='$id_rea2'";
125 :     $cur=mysql_query($titulo1);
126 :     $row= mysql_fetch_array($cur);
127 :     $titulo=$row['titulo'];
128 :     //echo $titulo;
129 :    
130 :     //fecha_creacion
131 :     $fecha= "SELECT fecha_creacion FROM rea WHERE id_rea='$id_rea2'";
132 :     $cur=mysql_query($fecha);
133 :     $row= mysql_fetch_array($cur);
134 :     $fecha_creacion=$row['fecha_creacion'];
135 :     //echo $fecha_creacion;
136 :    
137 :     //tipo de material
138 :     $tipo_material1= "SELECT id_tipo_material FROM rea WHERE id_rea='$id_rea2'";
139 :     $cur=mysql_query($tipo_material1);
140 :     $row= mysql_fetch_array($cur);
141 :     $tipo_material=$row['id_tipo_material'];
142 :     //echo $tipo_material;
143 :    
144 :    
145 :     $tipo_material= "SELECT tipo_material FROM tipo_material WHERE id_tipo_material='$tipo_material'";
146 :     $cur=mysql_query($tipo_material);
147 :     $row= mysql_fetch_array($cur);
148 :     $tm=$row['tipo_material'];
149 :    
150 :    
151 :     //formato material
152 :     $formato_material1= "SELECT id_formato_material FROM rea WHERE id_rea='$id_rea2'";
153 :     $cur=mysql_query($formato_material1);
154 :     $row= mysql_fetch_array($cur);
155 :     $formato_material=$row['id_formato_material'];
156 :     //echo $formato_material;
157 :    
158 :    
159 :     $formato_material= "SELECT formato_material FROM formato_material WHERE id_formato_material='$formato_material'";
160 :     $cur=mysql_query($formato_material);
161 :     $row= mysql_fetch_array($cur);
162 :     $fm=$row['formato_material'];
163 :    
164 :     //tipo de usuario
165 :    
166 :     $tipo_usuario1= "SELECT id_tipo_usurio FROM rea WHERE id_rea='$id_rea2'";
167 :     $cur=mysql_query($tipo_usuario1);
168 :     $row= mysql_fetch_array($cur);
169 :     $tipo_usuario=$row['id_tipo_usurio'];
170 :     //echo $tipo_usuario;
171 :    
172 :    
173 :    
174 :     $tipo_usuario= "SELECT tipo_usuario FROM tipo_usuario WHERE id_tipo_usurio='$tipo_usuario'";
175 :     $cur=mysql_query($tipo_usuario);
176 :     $row= mysql_fetch_array($cur);
177 :     $tu=$row['tipo_usuario'];
178 :    
179 :     //CONSULTA DE LAS DEMÁS RELACIONES
180 :    
181 :     //tema
182 :     $tema= "SELECT id_tema FROM relacion_rea_tema WHERE id_rea='$id_rea'";
183 :     $cur=mysql_query($tema);
184 :     $row= mysql_fetch_array($cur);
185 :     $id_tema=$row['id_tema'];
186 :    
187 :     $tema= "SELECT tema FROM tema WHERE id_tema='$id_tema'";
188 :     $cur=mysql_query($tema);
189 :     $row= mysql_fetch_array($cur);
190 :     $tema1=$row['tema'];
191 :    
192 :     //nivel educativo (dirigido a)
193 :     $nivel_educativo= "SELECT id_nivel_educ FROM relacion_rea_ne WHERE id_rea='$id_rea'";
194 :     $cur=mysql_query($nivel_educativo);
195 :     $row= mysql_fetch_array($cur);
196 :     $id_ne=$row['id_nivel_educ'];
197 :    
198 :     $nivel_educativo= "SELECT nivel_educativo FROM nivel_educativo WHERE id_nivel_educ='$id_ne'";
199 :     $cur=mysql_query($nivel_educativo);
200 :     $row= mysql_fetch_array($cur);
201 :     $ne=$row['nivel_educativo'];
202 :    
203 :     //licencias (convinaciones)
204 :    
205 :    
206 :     //usuario (creador)
207 :     $usuario= "SELECT id_usuario FROM relacion_usuario_rea WHERE id_rea='$id_rea'";
208 :     $cur=mysql_query($usuario);
209 :     $row= mysql_fetch_array($cur);
210 :     $id_us=$row['id_usuario'];
211 :    
212 :     $usuario= "SELECT nombre_apellido FROM usuario WHERE id_usuario='$id_us'";
213 :     $cur=mysql_query($usuario);
214 :     $row= mysql_fetch_array($cur);
215 :     $usu=$row['nombre_apellido'];
216 :    
217 :    
218 :    
219 :     //IMPRIMO EN LA TABLA LOS VALORES CONSULTADOS
220 :     echo '<tr>';
221 :    
222 :    
223 :    
224 :     echo '<td>';
225 :     echo $titulo;
226 :     echo '</td>';
227 :    
228 :    
229 :     echo '<td>';
230 :     echo $fecha_creacion;
231 :     echo '</td>';
232 :    
233 :     echo '<td>';
234 :     echo $tema1;
235 :     echo '</td>';
236 :    
237 :     echo '<td>';
238 :     echo $ne;
239 :     echo '</td>';
240 :    
241 :     echo '<td>';
242 :     echo $tm;
243 :     echo '</td>';
244 :    
245 :    
246 :     echo '<td>';
247 :     echo $fm;
248 :     echo '</td>';
249 :    
250 :    
251 :     echo '<td>';
252 :     echo $lic;
253 :     echo '</td>';
254 :    
255 :    
256 :     echo '<td>';
257 :     echo $usu;
258 :     echo '</td>';
259 :    
260 :    
261 :    
262 :    
263 :     echo '</tr>';
264 :    
265 :    
266 :     }
267 :    
268 :     echo '</table>';
269 :     }
270 :     mysql_close();
271 :    
272 :    
273 :     ?>
274 :     </div>
275 :     </div>
276 :     <div class="post">
277 :     <div class="entry">
278 :     <table align="center"><tr><td>
279 :     <br /><a href="consulta-rea.php"><img src="imagenes/gif3.gif" title="Volver atr&aacute;s" /></a></td></tr></table>
280 :     </div>
281 :     </div>
282 :    
283 :     <div style="clear: both;">&nbsp;</div>
284 :     </div>
285 :     <!-- end #content -->
286 :     <!--Contenido de izquierda-->
287 :     <div id="sidebar" align="center">
288 :     <div align="center">
289 :     <a href="http://www.cenditel.gob.ve"><img src="/repositorio_rea/imagenes/logocenditel.jpg" id="cenditel" title="Principal | Cenditel Nodo M&eacute;rida" ></a>
290 :     </div><br /><br />
291 :     <!--Inicio de Menu-->
292 :     <div align="center" id="menu">
293 :     <ul>
294 :     <li class="nivel1 primera"><a href="index.html" title="P&aacute;gina Principal" class="nivel1"><img src="/repositorio_rea/imagenes/inicio.png"></img></a>
295 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 1<table class="falsa"><tr><td><![endif]-->
296 :     </li>
297 :     <li class="nivel1"><a href="" class="nivel1"><img src="/repositorio_rea/imagenes/usuario.png"></img></a>
298 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 2<table class="falsa"><tr><td><![endif]-->
299 :     <ul>
300 :     <li class="primera"><a href="crear-usuario.php" title="Crear Usuario"><img src="/repositorio_rea/imagenes/crear usuario.png"></img></a></li>
301 :     <li><a href="inicio-sesion.php" title="Iniciar Sesi&oacute;n"><img src="/repositorio_rea/imagenes/iniciar sesion.png"></img></a></li>
302 :     <li><a href="menu-usuario.php" title="&iquest;Qu&eacute; desea hacer?"><img src="/repositorio_rea/imagenes/operaciones.png"></img></a></li>
303 :     </ul>
304 :     <!--[if lte IE 6]></td></tr></table></a><![endif]-->
305 :     </li>
306 :     <li class="nivel1"><a href="" class="nivel1"><img src="/repositorio_rea/imagenes/recursos educativos.png"></img></a>
307 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 3<table class="falsa"><tr><td><![endif]-->
308 :     <ul>
309 :     <li class="primera"><a href="consulta-rea.php" title="Consultar REA"><img src="/repositorio_rea/imagenes/consulta rea.png"></img></a></li>
310 :     <li><a href="agregar-rea.php" title="Insertar REA"><img src="/repositorio_rea/imagenes/inserta rea.png"></img></a></li>
311 :     </ul>
312 :     <!--[if lte IE 6]></td></tr></table></a><![endif]-->
313 :     </li>
314 :     </ul>
315 :    
316 :     </div>
317 :    
318 :     <!--Fin del menu-->
319 :     &nbsp;<br />
320 :     &nbsp;<br />
321 :     &nbsp;<br />
322 :     &nbsp;<br />
323 :     <!-- enlace con el blog de RADECON -->
324 :     <div>
325 :     <table style="background-color:transparent;border: 0px" border="0" width="170px" align="center" id="linkradecon">
326 :     <tr><td bordercolor="white" align="center">
327 :     <a href="http://radecon.cenditel.gob.ve"><img src="/repositorio_rea/imagenes/radecon.jpg" id="radecon" title="Red de defensa del conocimiento" width="170px"></a>
328 :     <a href="http://radecon.cenditel.gob.ve/"><b><b>Red de defensa del conocimiento</b></h5></a>
329 :     </td></tr></table>
330 :     </div>
331 :     </div>
332 :    
333 :     <!-- end #sidebar -->
334 :     <div style="clear: both;">&nbsp;</div>
335 :     </div>
336 :     </div>
337 :     </div>
338 :     <!-- end #page -->
339 :     </div>
340 :     <div id="footer">
341 :     <HR WIDTH=1024px>
342 :     <p>FUNDACI&Oacute;N CENTRO NACIONAL DE DESARROLLO E INVESTIGACI&Oacute;N EN TECNOLOG&Iacute;AS LIBRES (CENDITEL) Avenida Alberto Carnevali, v&Iacute;a La Hechicera, Edificio CENDITEL. Tel&Eacute;fono: (0274)6574336 - 6574958. Apartado Postal: 078. C&Oacute;digo Postal: 5101A. RIF: G-20007349-7. M&Eacute;rida-Venezuela</p>
343 :     </div>
344 :     <!-- end #footer -->
345 :     </body>
346 :     </html>

root@fsl.cenditel.gob.ve
ViewVC Help
Powered by ViewVC 1.0.0