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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (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 :     Design by Free CSS Templates
4 :     http://www.freecsstemplates.org
5 :     Released for free under a Creative Commons Attribution 2.5 License
6 :    
7 :     Name : Flower Buds
8 :     Description: A two-column, fixed-width design with dark color scheme.
9 :     Version : 1.0
10 :     Released : 20110409
11 :    
12 :     -->
13 :     <html xmlns="http://www.w3.org/1999/xhtml">
14 :     <head>
15 :     <meta name="keywords" content="" />
16 :     <meta name="description" content="" />
17 :     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
18 :     <title>Repositorio REA | Confirmar Inicio de Sesi&oacute;n</title>
19 :     <!--Enlace con hoja de Estilo-->
20 :     <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
21 :    
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>
31 :     <a href="" target="_blank"><img src="http://crearbanner.com/banners/5614790299441665.png" border="0" width="1024" height="90" /></a>
32 :     </div>
33 :     <!-- end #header -->
34 :     <div id="page">
35 :     <div id="page-bgtop">
36 :     <div id="page-bgbtm">
37 :     <div id="content">
38 :     <div class="post">
39 :     <div class="entry">
40 :     <?php
41 :    
42 :     include("conexion.php");
43 :    
44 :     $sql= "SELECT*FROM rea";
45 :     $cursor =mysql_query($sql);
46 :    
47 :     $num_reg= mysql_num_rows($cursor);
48 :    
49 :    
50 :    
51 :     echo '<table border="3">';
52 :    
53 :     echo '<tr>';
54 :    
55 :    
56 :     echo "<th align='center'>";
57 :     echo "N&deg;";
58 :     echo '</th>';
59 :    
60 :    
61 :     echo "<th align='center'>";
62 :     echo "T&iacute;tulo";
63 :     echo '</th>';
64 :    
65 :    
66 :     echo "<th align='center' width='70px'>";
67 :     echo "Fecha de Creaci&oacute;n";
68 :     echo '</th>';
69 :    
70 :     echo "<th align='center'>";
71 :     echo "Tema";
72 :     echo '</th>';
73 :    
74 :     echo "<th align='center'>";
75 :     echo "Dirigido a";
76 :     echo '</th>';
77 :    
78 :    
79 :     echo "<th align='center'>";
80 :     echo "Tipo de Material";
81 :     echo '</th>';
82 :    
83 :    
84 :     echo "<th align='center'>";
85 :     echo "Formato del Material";
86 :     echo '</th>';
87 :    
88 :    
89 :     echo "<th align='center' width='79px'>";
90 :     echo "Destinado a";
91 :     echo '</th>';
92 :    
93 :     echo '<th>';
94 :     echo "Licencias";
95 :     echo '</th>';
96 :    
97 :     echo '<th>';
98 :     echo "Creador";
99 :     echo '</th>';
100 :    
101 :     echo '</tr>';
102 :    
103 :    
104 :    
105 :    
106 :    
107 :    
108 :     for($i=0;$i<$num_reg;$i++){
109 :    
110 :     //RESULTADOS DE LA CONSULTA DE LA TABLA (rea)
111 :    
112 :     $id_rea= mysql_result($cursor, $i ,'id_rea');
113 :     $titulo= mysql_result($cursor,$i,'titulo');
114 :     $fecha_creacion= mysql_result($cursor, $i ,'fecha_creacion');
115 :     $tipo_material= mysql_result($cursor, $i ,'id_tipo_material');
116 :     $formato_material= mysql_result($cursor, $i ,'id_formato_material');
117 :     $tipo_usuario= mysql_result($cursor,$i,'id_tipo_usurio');
118 :    
119 :     //CONSULTA DE LOS NOMBRES DE LOS id(claves foraneas) DE LA TABLA (rea)
120 :     $tipo_material= "SELECT tipo_material FROM tipo_material WHERE id_tipo_material='$tipo_material'";
121 :     $cur=mysql_query($tipo_material);
122 :     $row= mysql_fetch_array($cur);
123 :     $tm=$row['tipo_material'];
124 :    
125 :     $formato_material= "SELECT formato_material FROM formato_material WHERE id_formato_material='$formato_material'";
126 :     $cur=mysql_query($formato_material);
127 :     $row= mysql_fetch_array($cur);
128 :     $fm=$row['formato_material'];
129 :    
130 :     $tipo_usuario= "SELECT tipo_usuario FROM tipo_usuario WHERE id_tipo_usurio='$tipo_usuario'";
131 :     $cur=mysql_query($tipo_usuario);
132 :     $row= mysql_fetch_array($cur);
133 :     $tu=$row['tipo_usuario'];
134 :    
135 :     //CONSULTA DE LAS DEMÁS RELACIONES
136 :    
137 :     //tema
138 :     $tema= "SELECT id_tema FROM relacion_rea_tema WHERE id_rea='$id_rea'";
139 :     $cur=mysql_query($tema);
140 :     $row= mysql_fetch_array($cur);
141 :     $id_tema=$row['id_tema'];
142 :    
143 :     $tema= "SELECT tema FROM tema WHERE id_tema='$id_tema'";
144 :     $cur=mysql_query($tema);
145 :     $row= mysql_fetch_array($cur);
146 :     $tema1=$row['tema'];
147 :    
148 :     //nivel educativo (dirigido a)
149 :     $nivel_educativo= "SELECT id_nivel_educ FROM relacion_rea_ne WHERE id_rea='$id_rea'";
150 :     $cur=mysql_query($nivel_educativo);
151 :     $row= mysql_fetch_array($cur);
152 :     $id_ne=$row['id_nivel_educ'];
153 :    
154 :     $nivel_educativo= "SELECT nivel_educativo FROM nivel_educativo WHERE id_nivel_educ='$id_ne'";
155 :     $cur=mysql_query($nivel_educativo);
156 :     $row= mysql_fetch_array($cur);
157 :     $ne=$row['nivel_educativo'];
158 :    
159 :     //licencias (convinaciones)
160 :    
161 :     //usuario (creador)
162 :     $usuario= "SELECT id_usuario FROM relacion_usuario_rea WHERE id_rea='$id_rea'";
163 :     $cur=mysql_query($usuario);
164 :     $row= mysql_fetch_array($cur);
165 :     $id_us=$row['id_usuario'];
166 :    
167 :     $usuario= "SELECT nombre_apellido FROM usuario WHERE id_usuario='$id_us'";
168 :     $cur=mysql_query($usuario);
169 :     $row= mysql_fetch_array($cur);
170 :     $usu=$row['nombre_apellido'];
171 :    
172 :    
173 :     //IMPRIMO EN LA TABLA LOS VALORES CONSULTADOS
174 :     echo '<tr>';
175 :    
176 :    
177 :     echo '<td>';
178 :     echo $id_rea;
179 :     echo '</td>';
180 :    
181 :    
182 :     echo '<td>';
183 :     echo $titulo;
184 :     echo '</td>';
185 :    
186 :    
187 :     echo '<td>';
188 :     echo $fecha_creacion;
189 :     echo '</td>';
190 :    
191 :     echo '<td>';
192 :     echo $tema1;
193 :     echo '</td>';
194 :    
195 :     echo '<td>';
196 :     echo $ne;
197 :     echo '</td>';
198 :    
199 :     echo '<td>';
200 :     echo $tm;
201 :     echo '</td>';
202 :    
203 :    
204 :     echo '<td>';
205 :     echo $fm;
206 :     echo '</td>';
207 :    
208 :    
209 :     echo '<td>';
210 :     echo $tu;
211 :     echo '</td>';
212 :    
213 :    
214 :    
215 :    
216 :    
217 :    
218 :    
219 :    
220 :     echo '<td>';
221 :     echo $lic;
222 :     echo '</td>';
223 :    
224 :    
225 :    
226 :     echo '<td>';
227 :     echo $usu;
228 :     echo '</td>';
229 :    
230 :    
231 :    
232 :    
233 :     echo '</tr>';
234 :    
235 :    
236 :     }
237 :    
238 :     echo '</table>';
239 :    
240 :    
241 :    
242 :    
243 :     mysql_close();
244 :    
245 :     ?>
246 :     </div>
247 :     </div>
248 :     <div style="clear: both;">&nbsp;</div>
249 :     </div>
250 :     <!-- end #content -->
251 :     <!--Contenido de izquierda-->
252 :     <div id="sidebar" align="center">
253 :     <div align="center">
254 :     <a href="http://www.cenditel.gob.ve"><img src="/repositorio_rea/imagenes/logocenditel.jpg" id="cenditel" title="Principal | Cenditel Nodo M&eacute;rida" ></a>
255 :     </div><br /><br />
256 :     <!--Inicio de Menu-->
257 :     <div align="center" id="menu">
258 :     <ul>
259 :     <li><a href="index.html" title="P&aacute;gina Principal">Inicio</a></li>
260 :     <li><a href="#" title="Usuario">Usuario</a></li>
261 :     <ul id="navi"><!-- creacion de submenus-->
262 :     <li><a href="crear-usuario.php" title="Crear Usuario"> Crear Usuario</a></li>
263 :     <li><a href="inicio-sesion.php" title="Iniciar Sesi&oacute;n"> Iniciar Sesi&oacute;n</a></li>
264 :     <li><a href="menu-usuario.php" title="&iquest;Qu&eacute; desea hacer?"> Operaciones</a></li>
265 :     </ul><!-- fin de submenu-->
266 :     <li><a href="#3" title="Recursos Educativos">Recursos Educativos</a></li>
267 :     <ul id="navi"><!-- creacion de submenus-->
268 :     <li><a href="consulta-rea.php" title="Consultar REA">Consultar REA</a></li>
269 :     <li><a href="agregar-rea.php" title="Insertar REA"> Insertar REA</a></li>
270 :     </ul><!-- fin de submenu-->
271 :     </ul>
272 :     </div>
273 :     <!--Fin del menu-->
274 :     &nbsp;<br />
275 :     &nbsp;<br />
276 :     &nbsp;<br />
277 :     &nbsp;<br />
278 :     <!-- enlace con el blog de RADECON -->
279 :     <div>
280 :     <table style="background-color:transparent;border: 0px" border="0" width="170px" align="center" id="linkradecon">
281 :     <tr><td bordercolor="white" align="center">
282 :     <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>
283 :     <a href="http://radecon.cenditel.gob.ve/"><b><b>Red de defensa del conocimiento</b></h5></a>
284 :     </td></tr></table>
285 :     </div>
286 :     </div>
287 :    
288 :     <!-- end #sidebar -->
289 :     <div style="clear: both;">&nbsp;</div>
290 :     </div>
291 :     </div>
292 :     </div>
293 :     <!-- end #page -->
294 :     </div>
295 :     <div id="footer">
296 :     <HR WIDTH=1024px>
297 :     <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>
298 :     </div>
299 :     <!-- end #footer -->
300 :     </body>
301 :     </html>

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