Ver Mensaje Individual
  #14 (permalink)  
Antiguo 27/06/2013, 15:14
hkTr
 
Fecha de Ingreso: junio-2013
Ubicación: Mexico
Mensajes: 16
Antigüedad: 11 años, 8 meses
Puntos: 0
Respuesta: Mostrar varias consultas

Código HTML:
Ver original
  1. <div id="contenido">
  2.         <h2>Currículum Vitae Único</h2>
  3.      
  4.       <br/>
  5.         <div id="move">
  6.        
  7.          <p>Escriba para buscar por nombre de Investigador.</p>
  8.          
  9. <form class="form-wrapper cf" name="form1" method="post" action="busq.php">
  10.         <input type="text" placeholder="Buscar..." name= "busca" required>
  11.          
  12.         <button type="submit">Buscar</button>
  13.     </form>  
  14.         </div>
  15.         <br/>      
  16.          
  17.      
  18.            <br /><br /><br />    
  19.          
  20.   &nbsp;  &nbsp;<a name="arriba"></a>
  21.        <a href="#abajo" title="Ir Abajo">Ir abajo</a>
  22.     <div id="contenedortabla">
  23.       <?php
  24.      
  25.        include("conectar.php");
  26.  
  27. mysql_select_db("nodal_hidalgo", $conectar);
  28.  
  29.     $strConsulta = "select distinct a.applid ,f.investigador,
  30. b.nombre_institucion, d.nombre_centro, a.correos_elect,
  31. f.SNI, f.RENIECiy,f.RCEA,f.ESTATAL
  32. from tbl_datosp_investigador as a, tbl_adscripcion as b,
  33. tbl_registros_siicyt as c,
  34. cat_centro_inv as d,
  35. viscvu as f
  36. where a.applid=b.applid and c.applid=b.applid
  37. and a.applid=f.applid
  38. and b.bsinst=d.bsinst
  39. group by a.applid
  40. order by f.investigador";
  41.    
  42.     $pacientes = mysql_query($strConsulta);
  43.     $numfilas = mysql_num_rows($pacientes);
  44.    
  45.     echo '<table cellpadding="0" cellspacing="5" class=tabla>';
  46.     echo '<tr><th>Investigador</th><th>Institución</th><th>Centro de Investigación</th><th>Email</th><th>Nivel SNI</th><th>Nivel RCEA</th><th>Nivel RENIECyT</th><th>Nivel ESTATAL</th><th>ver más</th></th>';
  47.     for ($i=0; $i<$numfilas; $i++)
  48.     {
  49.         $fila = mysql_fetch_array($pacientes);
  50.         echo '<tr class=modo1 class=modo2><td>'.$fila['investigador'].'</td>';
  51.         echo '<td>'.$fila['nombre_institucion'].'</td>';
  52.         echo '<td>'.$fila['nombre_centro'].'</td> ';
  53.         echo '<td>' .$fila['correos_elect'].'</td>';
  54.         echo '<td>' .$fila['SNI'].'</td>';
  55.         echo '<td>' .$fila['RENIECiy'].'</td>';
  56.         echo '<td>' .$fila['RCEA'].'</td>';
  57.         echo '<td>' .$fila['ESTATAL'].'</td>';
  58.  
  59.         echo '<td><a href="info_inves.php?id='.$fila['applid'].'">ver</a></td></tr>';
  60.     }
  61.     echo "</table>";
  62.  
  63. ?>
  64.    
  65.  
  66.       </div>
  67.     <br>
  68.     &nbsp;  &nbsp;  <a href="#arriba" title="Ir Arriba">Ir arriba</a>
  69.      <a name="abajo"></a>
  70.      
  71.     </div>
  72.      
  73.    
  74.         <div id="pie">
  75.    
  76.      <div id="piecuatro">
  77.          <a href="http://www.forosdelweb.com/GLOSARIO/glosario.php" target="_blank"><img src="http://www.forosdelweb.com/Objetos/gloo.jpg" width="44px" height="44px" alt="Glosario" title="Glosario" />       </a>
  78.                
  79.         </div>
  80.    
  81.         <div id="pieuno">
  82.        
  83.        
  84.         <a href="https://twitter.com/cocyteh" target="_blank">
  85.             <img src="http://www.forosdelweb.com/Objetos/Twitter.png" width="44px" height="44px" alt="Twitter"  title="Twitter"/>
  86.         </a>
  87.        
  88.         </div>
  89.          
  90.       <div id="pietres">
  91.          <a href="http://www.facebook.com/Cocyteh" target="_blank">    
  92.             <img src="http://www.forosdelweb.com/Objetos/Facebook_3.png" width="44px" height="44px" alt="Facebook" title="Facebook" />      
  93.         </a>
  94.                
  95.         </div>
  96.         <div id="piedos"> <p>Ignacio Allende 406, tercer piso, Colonia Centro.
  97. C.P. 42000. Pachuca de Soto, Hidalgo, México
  98. </p>
  99.           <p>Correo electrónico: [email protected]</p>
  100.           <p>Teléfonos: 771 71 68058 y 771 71 57154</p>
  101.                  
  102.       </div>
  103.      
  104.   </div>
  105.          
  106.             <div id="curva-inferior"></div>
  107.      
  108. </div>
  109. <script type="text/javascript">
  110. var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
  111. </body>
  112. </html>