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

Annotation of /trunk/consulta-por-tm.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 Tipo de Material</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_material = $_POST["tipo_material"];
44 :     echo "<h3 class='title'><a href='#'>Consulta por Tipo de Material</a></h3>
45 :     <p class='links'><a href='#'><font size='3'>".$tipo_material."</font></a></p><br>";
46 :    
47 :     $id_tipo_material1= "SELECT id_tipo_material FROM tipo_material WHERE tipo_material='$tipo_material'";
48 :     $cur=mysql_query($id_tipo_material1);
49 :     $row= mysql_fetch_array($cur);
50 :     $id_tipo_material=$row['id_tipo_material'];
51 :     //echo $id_tipo_material;
52 :    
53 :    
54 :     $id_rea1= "SELECT id_rea FROM rea WHERE id_tipo_material='$id_tipo_material'";
55 :     $cur=mysql_query($id_rea1);
56 :     $row= mysql_fetch_array($cur);
57 :     $id_rea=$row['id_rea'];
58 :     echo $id_rea;
59 :    
60 :     $sql= "SELECT*FROM rea WHERE id_rea='$id_rea'";
61 :     $cursor =mysql_query($sql);
62 :    
63 :     $num_reg= mysql_num_rows($cursor);
64 :    
65 :     if ($num_reg>0){
66 :    
67 :     echo '<table border="3">';
68 :    
69 :     echo '<tr>';
70 :    
71 :     echo "<th align='center'>";
72 :     echo "T&iacute;tulo";
73 :     echo '</th>';
74 :    
75 :    
76 :     echo "<th align='center' width='70px'>";
77 :     echo "Fecha de Creaci&oacute;n";
78 :     echo '</th>';
79 :    
80 :     echo "<th align='center'>";
81 :     echo "Tema";
82 :     echo '</th>';
83 :    
84 :    
85 :     echo "<th align='center'>";
86 :     echo "Dirigido a";
87 :     echo '</th>';
88 :    
89 :    
90 :     echo "<th align='center'>";
91 :     echo "Formato del Material";
92 :     echo '</th>';
93 :    
94 :    
95 :     echo "<th align='center' width='79px'>";
96 :     echo "Destinado a";
97 :     echo '</th>';
98 :    
99 :     echo '<th>';
100 :     echo "Licencias";
101 :     echo '</th>';
102 :    
103 :     echo "<th align='center'>";
104 :     echo "Creador";
105 :     echo '</th>';
106 :    
107 :     echo '</tr>';
108 :    
109 :    
110 :    
111 :    
112 :    
113 :    
114 :     for($i=0;$i<$num_reg;$i++){
115 :    
116 :     //RESULTADOS DE LA CONSULTA DE LA TABLA (relacion_usuario_rea)
117 :    
118 :    
119 :    
120 :     $id_rea= mysql_result($cursor, $i ,'id_rea');
121 :    
122 :    
123 :    
124 :     $id_rea1= "SELECT id_rea FROM rea WHERE id_rea='$id_rea'";
125 :     $cur=mysql_query($id_rea1);
126 :     $row= mysql_fetch_array($cur);
127 :     $id_rea2=$row['id_rea'];
128 :     //echo $id_rea2;
129 :    
130 :     //titulo
131 :     $titulo1= "SELECT titulo FROM rea WHERE id_rea='$id_rea2'";
132 :     $cur=mysql_query($titulo1);
133 :     $row= mysql_fetch_array($cur);
134 :     $titulo=$row['titulo'];
135 :     //echo $titulo;
136 :    
137 :    
138 :     //fecha_creacion
139 :     $fecha= "SELECT fecha_creacion FROM rea WHERE id_rea='$id_rea2'";
140 :     $cur=mysql_query($fecha);
141 :     $row= mysql_fetch_array($cur);
142 :     $fecha_creacion=$row['fecha_creacion'];
143 :     //echo $fecha_creacion;
144 :    
145 :     //tipo de material
146 :     $tipo_material1= "SELECT id_tipo_material FROM rea WHERE id_rea='$id_rea2'";
147 :     $cur=mysql_query($tipo_material1);
148 :     $row= mysql_fetch_array($cur);
149 :     $tipo_material=$row['id_tipo_material'];
150 :     //echo $tipo_material;
151 :    
152 :    
153 :     $tipo_material= "SELECT tipo_material FROM tipo_material WHERE id_tipo_material='$tipo_material'";
154 :     $cur=mysql_query($tipo_material);
155 :     $row= mysql_fetch_array($cur);
156 :     $tm=$row['tipo_material'];
157 :    
158 :    
159 :     //formato material
160 :     $formato_material1= "SELECT id_formato_material FROM rea WHERE id_rea='$id_rea2'";
161 :     $cur=mysql_query($formato_material1);
162 :     $row= mysql_fetch_array($cur);
163 :     $formato_material=$row['id_formato_material'];
164 :     //echo $formato_material;
165 :    
166 :    
167 :     $formato_material= "SELECT formato_material FROM formato_material WHERE id_formato_material='$formato_material'";
168 :     $cur=mysql_query($formato_material);
169 :     $row= mysql_fetch_array($cur);
170 :     $fm=$row['formato_material'];
171 :    
172 :     //tipo de usuario
173 :    
174 :     $tipo_usuario1= "SELECT id_tipo_usurio FROM rea WHERE id_rea='$id_rea2'";
175 :     $cur=mysql_query($tipo_usuario1);
176 :     $row= mysql_fetch_array($cur);
177 :     $tipo_usuario=$row['id_tipo_usurio'];
178 :     //echo $tipo_usuario;
179 :    
180 :    
181 :    
182 :     $tipo_usuario= "SELECT tipo_usuario FROM tipo_usuario WHERE id_tipo_usurio='$tipo_usuario'";
183 :     $cur=mysql_query($tipo_usuario);
184 :     $row= mysql_fetch_array($cur);
185 :     $tu=$row['tipo_usuario'];
186 :    
187 :     //CONSULTA DE LAS DEMÁS RELACIONES
188 :    
189 :     //tema
190 :     $tema= "SELECT id_tema FROM relacion_rea_tema WHERE id_rea='$id_rea'";
191 :     $cur=mysql_query($tema);
192 :     $row= mysql_fetch_array($cur);
193 :     $id_tema=$row['id_tema'];
194 :    
195 :     $tema= "SELECT tema FROM tema WHERE id_tema='$id_tema'";
196 :     $cur=mysql_query($tema);
197 :     $row= mysql_fetch_array($cur);
198 :     $tema1=$row['tema'];
199 :    
200 :     //nivel educativo (dirigido a)
201 :     $nivel_educativo= "SELECT id_nivel_educ FROM relacion_rea_ne WHERE id_rea='$id_rea'";
202 :     $cur=mysql_query($nivel_educativo);
203 :     $row= mysql_fetch_array($cur);
204 :     $id_ne=$row['id_nivel_educ'];
205 :    
206 :     $nivel_educativo= "SELECT nivel_educativo FROM nivel_educativo WHERE id_nivel_educ='$id_ne'";
207 :     $cur=mysql_query($nivel_educativo);
208 :     $row= mysql_fetch_array($cur);
209 :     $ne=$row['nivel_educativo'];
210 :    
211 :     //licencias (convinaciones)
212 :    
213 :    
214 :     //usuario (creador)
215 :     $usuario= "SELECT id_usuario FROM relacion_usuario_rea WHERE id_rea='$id_rea'";
216 :     $cur=mysql_query($usuario);
217 :     $row= mysql_fetch_array($cur);
218 :     $id_us=$row['id_usuario'];
219 :    
220 :     $usuario= "SELECT nombre_apellido FROM usuario WHERE id_usuario='$id_us'";
221 :     $cur=mysql_query($usuario);
222 :     $row= mysql_fetch_array($cur);
223 :     $usu=$row['nombre_apellido'];
224 :    
225 :    
226 :    
227 :     //IMPRIMO EN LA TABLA LOS VALORES CONSULTADOS
228 :     echo '<tr>';
229 :    
230 :    
231 :    
232 :     echo '<td>';
233 :     echo $titulo;
234 :     echo '</td>';
235 :    
236 :    
237 :     echo '<td>';
238 :     echo $fecha_creacion;
239 :     echo '</td>';
240 :    
241 :     echo '<td>';
242 :     echo $tema1;
243 :     echo '</td>';
244 :    
245 :     echo '<td>';
246 :     echo $ne;
247 :     echo '</td>';
248 :    
249 :     echo '<td>';
250 :     echo $fm;
251 :     echo '</td>';
252 :    
253 :    
254 :     echo '<td>';
255 :     echo $tu;
256 :     echo '</td>';
257 :    
258 :    
259 :     echo '<td>';
260 :     echo $lic;
261 :     echo '</td>';
262 :    
263 :    
264 :     echo '<td>';
265 :     echo $usu;
266 :     echo '</td>';
267 :    
268 :    
269 :    
270 :    
271 :     echo '</tr>';
272 :    
273 :    
274 :     }
275 :    
276 :     echo '</table>';
277 :     }
278 :     mysql_close();
279 :    
280 :    
281 :     ?>
282 :     </div>
283 :     </div>
284 :     <div class="post">
285 :     <div class="entry">
286 :     <table align="center"><tr><td>
287 :     <br /><a href="consulta-rea.php"><img src="imagenes/gif3.gif" title="Volver atr&aacute;s" /></a></td></tr></table>
288 :     </div>
289 :     </div>
290 :    
291 :     <div style="clear: both;">&nbsp;</div>
292 :     </div>
293 :     <!-- end #content -->
294 :     <!--Contenido de izquierda-->
295 :     <div id="sidebar" align="center">
296 :     <div align="center">
297 :     <a href="http://www.cenditel.gob.ve"><img src="/repositorio_rea/imagenes/logocenditel.jpg" id="cenditel" title="Principal | Cenditel Nodo M&eacute;rida" ></a>
298 :     </div><br /><br />
299 :     <!--Inicio de Menu-->
300 :     <div align="center" id="menu">
301 :     <ul>
302 :     <li class="nivel1 primera"><a href="index.html" title="P&aacute;gina Principal" class="nivel1"><img src="/repositorio_rea/imagenes/inicio.png"></img></a>
303 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 1<table class="falsa"><tr><td><![endif]-->
304 :     </li>
305 :     <li class="nivel1"><a href="" class="nivel1"><img src="/repositorio_rea/imagenes/usuario.png"></img></a>
306 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 2<table class="falsa"><tr><td><![endif]-->
307 :     <ul>
308 :     <li class="primera"><a href="crear-usuario.php" title="Crear Usuario"><img src="/repositorio_rea/imagenes/crear usuario.png"></img></a></li>
309 :     <li><a href="inicio-sesion.php" title="Iniciar Sesi&oacute;n"><img src="/repositorio_rea/imagenes/iniciar sesion.png"></img></a></li>
310 :     <li><a href="menu-usuario.php" title="&iquest;Qu&eacute; desea hacer?"><img src="/repositorio_rea/imagenes/operaciones.png"></img></a></li>
311 :     </ul>
312 :     <!--[if lte IE 6]></td></tr></table></a><![endif]-->
313 :     </li>
314 :     <li class="nivel1"><a href="" class="nivel1"><img src="/repositorio_rea/imagenes/recursos educativos.png"></img></a>
315 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 3<table class="falsa"><tr><td><![endif]-->
316 :     <ul>
317 :     <li class="primera"><a href="consulta-rea.php" title="Consultar REA"><img src="/repositorio_rea/imagenes/consulta rea.png"></img></a></li>
318 :     <li><a href="agregar-rea.php" title="Insertar REA"><img src="/repositorio_rea/imagenes/inserta rea.png"></img></a></li>
319 :     </ul>
320 :     <!--[if lte IE 6]></td></tr></table></a><![endif]-->
321 :     </li>
322 :     </ul>
323 :    
324 :     </div>
325 :    
326 :     <!--Fin del menu-->
327 :     &nbsp;<br />
328 :     &nbsp;<br />
329 :     &nbsp;<br />
330 :     &nbsp;<br />
331 :     <!-- enlace con el blog de RADECON -->
332 :     <div>
333 :     <table style="background-color:transparent;border: 0px" border="0" width="170px" align="center" id="linkradecon">
334 :     <tr><td bordercolor="white" align="center">
335 :     <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>
336 :     <a href="http://radecon.cenditel.gob.ve/"><b><b>Red de defensa del conocimiento</b></h5></a>
337 :     </td></tr></table>
338 :     </div>
339 :     </div>
340 :    
341 :     <!-- end #sidebar -->
342 :     <div style="clear: both;">&nbsp;</div>
343 :     </div>
344 :     </div>
345 :     </div>
346 :     <!-- end #page -->
347 :     </div>
348 :     <div id="footer">
349 :     <HR WIDTH=1024px>
350 :     <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>
351 :     </div>
352 :     <!-- end #footer -->
353 :     </body>
354 :     </html>

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