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

Annotation of /trunk/consulta-por-creador.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 por Creador</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 :     $nombre_creador = $_POST["nombre_apellido"];
44 : egutierrez 9 echo "<h3 class='title'><a href='#'>Consulta por Creador</a></h3>
45 :     <p class='links'><a href='#'><font size='3'>".$nombre_creador."</font></a></p><br>";
46 : egutierrez 7
47 :     $id_usuario= "SELECT id_usuario FROM usuario WHERE nombre_apellido='$nombre_creador'";
48 :     $cur=mysql_query($id_usuario);
49 :     $row= mysql_fetch_array($cur);
50 :     $id_us=$row['id_usuario'];
51 : egutierrez 9 //echo $id_usu;
52 : egutierrez 7
53 :     $sql= "SELECT*FROM relacion_usuario_rea WHERE id_usuario='$id_us'";
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 "Destinado a";
94 :     echo '</th>';
95 :    
96 :     echo '<th>';
97 :     echo "Licencias";
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 : egutierrez 9 //echo $id_rea2;
122 : egutierrez 7
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 : egutierrez 9 //echo $titulo;
129 : egutierrez 7
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 : egutierrez 9 //echo $fecha_creacion;
136 : egutierrez 7
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 : egutierrez 9 //echo $tipo_material;
143 : egutierrez 7
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 : egutierrez 9 //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 : egutierrez 7
158 :    
159 : egutierrez 9 $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 : egutierrez 7
164 : egutierrez 9 //tipo de usuario
165 : egutierrez 7
166 : egutierrez 9 $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 : egutierrez 7
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 :     //IMPRIMO EN LA TABLA LOS VALORES CONSULTADOS
207 :     echo '<tr>';
208 :    
209 :    
210 :    
211 :     echo '<td>';
212 :     echo $titulo;
213 :     echo '</td>';
214 :    
215 :    
216 :     echo '<td>';
217 :     echo $fecha_creacion;
218 :     echo '</td>';
219 :    
220 :     echo '<td>';
221 :     echo $tema1;
222 :     echo '</td>';
223 :    
224 :     echo '<td>';
225 :     echo $ne;
226 :     echo '</td>';
227 :    
228 :     echo '<td>';
229 :     echo $tm;
230 :     echo '</td>';
231 :    
232 :    
233 :     echo '<td>';
234 :     echo $fm;
235 :     echo '</td>';
236 :    
237 :    
238 :     echo '<td>';
239 :     echo $tu;
240 :     echo '</td>';
241 :    
242 :    
243 :     echo '<td>';
244 :     echo $lic;
245 :     echo '</td>';
246 :    
247 :    
248 :    
249 :    
250 :     echo '</tr>';
251 :    
252 :    
253 :     }
254 :    
255 :     echo '</table>';
256 :     }
257 :     mysql_close();
258 :    
259 :    
260 :     ?>
261 :     </div>
262 :     </div>
263 : egutierrez 9 <div class="post">
264 :     <div class="entry">
265 :     <table align="center"><tr><td>
266 :     <br /><a href="consulta-rea.php"><img src="imagenes/gif3.gif" title="Volver atr&aacute;s" /></a></td></tr></table>
267 :     </div>
268 :     </div>
269 :    
270 : egutierrez 7 <div style="clear: both;">&nbsp;</div>
271 :     </div>
272 :     <!-- end #content -->
273 :     <!--Contenido de izquierda-->
274 :     <div id="sidebar" align="center">
275 :     <div align="center">
276 :     <a href="http://www.cenditel.gob.ve"><img src="/repositorio_rea/imagenes/logocenditel.jpg" id="cenditel" title="Principal | Cenditel Nodo M&eacute;rida" ></a>
277 :     </div><br /><br />
278 : egutierrez 9 <!--Inicio de Menu-->
279 : egutierrez 7 <div align="center" id="menu">
280 : egutierrez 9 <ul>
281 :     <li class="nivel1 primera"><a href="index.html" title="P&aacute;gina Principal" class="nivel1"><img src="/repositorio_rea/imagenes/inicio.png"></img></a>
282 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 1<table class="falsa"><tr><td><![endif]-->
283 :     </li>
284 :     <li class="nivel1"><a href="" class="nivel1"><img src="/repositorio_rea/imagenes/usuario.png"></img></a>
285 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 2<table class="falsa"><tr><td><![endif]-->
286 :     <ul>
287 :     <li class="primera"><a href="crear-usuario.php" title="Crear Usuario"><img src="/repositorio_rea/imagenes/crear usuario.png"></img></a></li>
288 :     <li><a href="inicio-sesion.php" title="Iniciar Sesi&oacute;n"><img src="/repositorio_rea/imagenes/iniciar sesion.png"></img></a></li>
289 :     <li><a href="menu-usuario.php" title="&iquest;Qu&eacute; desea hacer?"><img src="/repositorio_rea/imagenes/operaciones.png"></img></a></li>
290 :     </ul>
291 :     <!--[if lte IE 6]></td></tr></table></a><![endif]-->
292 :     </li>
293 :     <li class="nivel1"><a href="" class="nivel1"><img src="/repositorio_rea/imagenes/recursos educativos.png"></img></a>
294 :     <!--[if lte IE 6]><a href="#" class="nivel1ie">Opción 3<table class="falsa"><tr><td><![endif]-->
295 :     <ul>
296 :     <li class="primera"><a href="consulta-rea.php" title="Consultar REA"><img src="/repositorio_rea/imagenes/consulta rea.png"></img></a></li>
297 :     <li><a href="agregar-rea.php" title="Insertar REA"><img src="/repositorio_rea/imagenes/inserta rea.png"></img></a></li>
298 :     </ul>
299 :     <!--[if lte IE 6]></td></tr></table></a><![endif]-->
300 :     </li>
301 :     </ul>
302 :    
303 :     </div>
304 :    
305 :     <!--Fin del menu-->
306 : egutierrez 7 &nbsp;<br />
307 :     &nbsp;<br />
308 :     &nbsp;<br />
309 :     &nbsp;<br />
310 :     <!-- enlace con el blog de RADECON -->
311 :     <div>
312 :     <table style="background-color:transparent;border: 0px" border="0" width="170px" align="center" id="linkradecon">
313 :     <tr><td bordercolor="white" align="center">
314 :     <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>
315 :     <a href="http://radecon.cenditel.gob.ve/"><b><b>Red de defensa del conocimiento</b></h5></a>
316 :     </td></tr></table>
317 :     </div>
318 :     </div>
319 :    
320 :     <!-- end #sidebar -->
321 :     <div style="clear: both;">&nbsp;</div>
322 :     </div>
323 :     </div>
324 :     </div>
325 :     <!-- end #page -->
326 :     </div>
327 :     <div id="footer">
328 :     <HR WIDTH=1024px>
329 :     <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>
330 :     </div>
331 :     <!-- end #footer -->
332 :     </body>
333 :     </html>

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