[licrea] / trunk / consulta-todos-rea.php  
ViewVC logotype

Annotation of /trunk/consulta-todos-rea.php

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : egutierrez 7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 :     <!--
3 : egutierrez 9 Diseñado por Estefani Gutiérrez
4 : egutierrez 7
5 : egutierrez 9 Nombre : Repositorio de Licencias para REAS
6 :     Descripción:
7 :     Versión :
8 : egutierrez 7 -->
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 : egutierrez 9 <title>Repositorio REA | Consulta todos los REA</title>
15 : egutierrez 7 <!--Enlace con hoja de Estilo-->
16 :     <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
17 :    
18 : egutierrez 9
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 : egutierrez 7 </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 : egutierrez 9 <div id="titulo">
31 : egutierrez 7 </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 :     $sql= "SELECT*FROM rea";
44 :     $cursor =mysql_query($sql);
45 :    
46 :     $num_reg= mysql_num_rows($cursor);
47 :    
48 :    
49 :    
50 :     echo '<table border="3">';
51 :    
52 :     echo '<tr>';
53 :    
54 :    
55 :     echo "<th align='center'>";
56 :     echo "N&deg;";
57 :     echo '</th>';
58 :    
59 :    
60 :     echo "<th align='center'>";
61 :     echo "T&iacute;tulo";
62 :     echo '</th>';
63 :    
64 :    
65 :     echo "<th align='center' width='70px'>";
66 :     echo "Fecha de Creaci&oacute;n";
67 :     echo '</th>';
68 :    
69 :     echo "<th align='center'>";
70 :     echo "Tema";
71 :     echo '</th>';
72 :    
73 :     echo "<th align='center'>";
74 :     echo "Dirigido a";
75 :     echo '</th>';
76 :    
77 :    
78 :     echo "<th align='center'>";
79 :     echo "Tipo de Material";
80 :     echo '</th>';
81 :    
82 :    
83 :     echo "<th align='center'>";
84 :     echo "Formato del Material";
85 :     echo '</th>';
86 :    
87 :    
88 :     echo "<th align='center' width='79px'>";
89 :     echo "Destinado a";
90 :     echo '</th>';
91 :    
92 :     echo '<th>';
93 :     echo "Licencias";
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 (rea)
110 :    
111 :     $id_rea= mysql_result($cursor, $i ,'id_rea');
112 :     $titulo= mysql_result($cursor,$i,'titulo');
113 :     $fecha_creacion= mysql_result($cursor, $i ,'fecha_creacion');
114 :     $tipo_material= mysql_result($cursor, $i ,'id_tipo_material');
115 :     $formato_material= mysql_result($cursor, $i ,'id_formato_material');
116 :     $tipo_usuario= mysql_result($cursor,$i,'id_tipo_usurio');
117 :    
118 :     //CONSULTA DE LOS NOMBRES DE LOS id(claves foraneas) DE LA TABLA (rea)
119 :     $tipo_material= "SELECT tipo_material FROM tipo_material WHERE id_tipo_material='$tipo_material'";
120 :     $cur=mysql_query($tipo_material);
121 :     $row= mysql_fetch_array($cur);
122 :     $tm=$row['tipo_material'];
123 :    
124 :     $formato_material= "SELECT formato_material FROM formato_material WHERE id_formato_material='$formato_material'";
125 :     $cur=mysql_query($formato_material);
126 :     $row= mysql_fetch_array($cur);
127 :     $fm=$row['formato_material'];
128 :    
129 :     $tipo_usuario= "SELECT tipo_usuario FROM tipo_usuario WHERE id_tipo_usurio='$tipo_usuario'";
130 :     $cur=mysql_query($tipo_usuario);
131 :     $row= mysql_fetch_array($cur);
132 :     $tu=$row['tipo_usuario'];
133 :    
134 :     //CONSULTA DE LAS DEMÁS RELACIONES
135 :    
136 :     //tema
137 :     $tema= "SELECT id_tema FROM relacion_rea_tema WHERE id_rea='$id_rea'";
138 :     $cur=mysql_query($tema);
139 :     $row= mysql_fetch_array($cur);
140 :     $id_tema=$row['id_tema'];
141 :    
142 :     $tema= "SELECT tema FROM tema WHERE id_tema='$id_tema'";
143 :     $cur=mysql_query($tema);
144 :     $row= mysql_fetch_array($cur);
145 :     $tema1=$row['tema'];
146 :    
147 :     //nivel educativo (dirigido a)
148 :     $nivel_educativo= "SELECT id_nivel_educ FROM relacion_rea_ne WHERE id_rea='$id_rea'";
149 :     $cur=mysql_query($nivel_educativo);
150 :     $row= mysql_fetch_array($cur);
151 :     $id_ne=$row['id_nivel_educ'];
152 :    
153 :     $nivel_educativo= "SELECT nivel_educativo FROM nivel_educativo WHERE id_nivel_educ='$id_ne'";
154 :     $cur=mysql_query($nivel_educativo);
155 :     $row= mysql_fetch_array($cur);
156 :     $ne=$row['nivel_educativo'];
157 :    
158 :     //licencias (convinaciones)
159 :    
160 :     //usuario (creador)
161 :     $usuario= "SELECT id_usuario FROM relacion_usuario_rea WHERE id_rea='$id_rea'";
162 :     $cur=mysql_query($usuario);
163 :     $row= mysql_fetch_array($cur);
164 :     $id_us=$row['id_usuario'];
165 :    
166 :     $usuario= "SELECT nombre_apellido FROM usuario WHERE id_usuario='$id_us'";
167 :     $cur=mysql_query($usuario);
168 :     $row= mysql_fetch_array($cur);
169 :     $usu=$row['nombre_apellido'];
170 :    
171 :    
172 :     //IMPRIMO EN LA TABLA LOS VALORES CONSULTADOS
173 :     echo '<tr>';
174 :    
175 :    
176 :     echo '<td>';
177 :     echo $id_rea;
178 :     echo '</td>';
179 :    
180 :    
181 :     echo '<td>';
182 :     echo $titulo;
183 :     echo '</td>';
184 :    
185 :    
186 :     echo '<td>';
187 :     echo $fecha_creacion;
188 :     echo '</td>';
189 :    
190 :     echo '<td>';
191 :     echo $tema1;
192 :     echo '</td>';
193 :    
194 :     echo '<td>';
195 :     echo $ne;
196 :     echo '</td>';
197 :    
198 :     echo '<td>';
199 :     echo $tm;
200 :     echo '</td>';
201 :    
202 :    
203 :     echo '<td>';
204 :     echo $fm;
205 :     echo '</td>';
206 :    
207 :    
208 :     echo '<td>';
209 :     echo $tu;
210 :     echo '</td>';
211 :    
212 :    
213 :    
214 :    
215 :    
216 :    
217 :    
218 :    
219 :     echo '<td>';
220 :     echo $lic;
221 :     echo '</td>';
222 :    
223 :    
224 :    
225 :     echo '<td>';
226 :     echo $usu;
227 :     echo '</td>';
228 :    
229 :    
230 :    
231 :    
232 :     echo '</tr>';
233 :    
234 :    
235 :     }
236 :    
237 :     echo '</table>';
238 :    
239 :    
240 :    
241 :    
242 :     mysql_close();
243 :    
244 :     ?>
245 :     </div>
246 :     </div>
247 : egutierrez 9
248 :     <div class="post">
249 :     <div class="entry">
250 :     <table align="center"><tr><td>
251 :     <br /><a href="consulta-rea.php"><img src="imagenes/gif3.gif" title="Volver atr&aacute;s" /></a></td></tr></table>
252 :     </div>
253 :     </div>
254 :    
255 : egutierrez 7 <div style="clear: both;">&nbsp;</div>
256 :     </div>
257 :     <!-- end #content -->
258 :     <!--Contenido de izquierda-->
259 :     <div id="sidebar" align="center">
260 :     <div align="center">
261 :     <a href="http://www.cenditel.gob.ve"><img src="/repositorio_rea/imagenes/logocenditel.jpg" id="cenditel" title="Principal | Cenditel Nodo M&eacute;rida" ></a>
262 :     </div><br /><br />
263 : egutierrez 9 <!--Inicio de Menu-->
264 : egutierrez 7 <div align="center" id="menu">
265 : egutierrez 9 <ul>
266 :     <li class="nivel1 primera"><a href="index.html" title="P&aacute;gina Principal" class="nivel1"><img src="/repositorio_rea/imagenes/inicio.png"></img></a>
267 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 1<table class="falsa"><tr><td><![endif]-->
268 :     </li>
269 :     <li class="nivel1"><a href="" class="nivel1"><img src="/repositorio_rea/imagenes/usuario.png"></img></a>
270 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 2<table class="falsa"><tr><td><![endif]-->
271 :     <ul>
272 :     <li class="primera"><a href="crear-usuario.php" title="Crear Usuario"><img src="/repositorio_rea/imagenes/crear usuario.png"></img></a></li>
273 :     <li><a href="inicio-sesion.php" title="Iniciar Sesi&oacute;n"><img src="/repositorio_rea/imagenes/iniciar sesion.png"></img></a></li>
274 :     <li><a href="menu-usuario.php" title="&iquest;Qu&eacute; desea hacer?"><img src="/repositorio_rea/imagenes/operaciones.png"></img></a></li>
275 :     </ul>
276 :     <!--[if lte IE 6]></td></tr></table></a><![endif]-->
277 :     </li>
278 :     <li class="nivel1"><a href="" class="nivel1"><img src="/repositorio_rea/imagenes/recursos educativos.png"></img></a>
279 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 3<table class="falsa"><tr><td><![endif]-->
280 :     <ul>
281 :     <li class="primera"><a href="consulta-rea.php" title="Consultar REA"><img src="/repositorio_rea/imagenes/consulta rea.png"></img></a></li>
282 :     <li><a href="agregar-rea.php" title="Insertar REA"><img src="/repositorio_rea/imagenes/inserta rea.png"></img></a></li>
283 :     </ul>
284 :     <!--[if lte IE 6]></td></tr></table></a><![endif]-->
285 :     </li>
286 :     </ul>
287 :    
288 :     </div>
289 :    
290 :     <!--Fin del menu--> &nbsp;<br />
291 : egutierrez 7 &nbsp;<br />
292 :     &nbsp;<br />
293 :     &nbsp;<br />
294 :     <!-- enlace con el blog de RADECON -->
295 :     <div>
296 :     <table style="background-color:transparent;border: 0px" border="0" width="170px" align="center" id="linkradecon">
297 :     <tr><td bordercolor="white" align="center">
298 :     <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>
299 :     <a href="http://radecon.cenditel.gob.ve/"><b><b>Red de defensa del conocimiento</b></h5></a>
300 :     </td></tr></table>
301 :     </div>
302 :     </div>
303 :    
304 :     <!-- end #sidebar -->
305 :     <div style="clear: both;">&nbsp;</div>
306 :     </div>
307 :     </div>
308 :     </div>
309 :     <!-- end #page -->
310 :     </div>
311 :     <div id="footer">
312 :     <HR WIDTH=1024px>
313 :     <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>
314 :     </div>
315 :     <!-- end #footer -->
316 :     </body>
317 :     </html>

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