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

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

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