Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/04/2011, 12:35
Krlinhos_
 
Fecha de Ingreso: octubre-2010
Mensajes: 103
Antigüedad: 13 años, 5 meses
Puntos: 0
Respuesta: Aplicar css a una tabla generada en php

Código PHP:
<?php
      
include_once("../funcionesPHP/funciones.php");
                                    
      echo 
"<table>
      <caption>Recursos registrados en la base de datos.</caption>
       <thead>
         <tr>
                                         <th>C&oacute;digo</th><th>Filo</th><th>Clase</th><th>Orden</th><th>Familia</th><th>Especie</th><th>Observaciones</th><th></th><th></th>
        </tr>
        </thead>
        <tbody id=\"cuerpoTabla\">"
;
                                    
            if(!isset(
$_GET["buscador"])){
                     echo 
tablaSeccion("recurso");
            }else{
                     if(
filter_var($_GET["buscador"] ,FILTER_VALIDATE_REGEXP,array("options"=>array("regexp"=>"/^([\wáéíóúÁÉÍÓÚñÑ]+[\wáéíóúÁÉÍÓÚñÑ \-\.]*)*$/")))!==false){
                    echo 
tablaSeccion("recurso"$_GET["buscador"]);    
                    }else{
                         echo 
tablaSeccion("recurso");
             }
                 }
        echo 
"</tbody>
                    </table>"
;
?>