} /* Label the data */ td:nth-of-type(1):before { content: "Autor"; } td:nth-of-type(2):before { content: "Título"; } td:nth-of-type(3):before { content: "Year"; } td:nth-of-type(4):before { content: "Publicación"; } td:nth-of-type(6):before { content: "PDF"; } } </style> <div class=""> <?php include_once "lectorCSV.php"; $miarray = loadDataFromCSVEncoding("csvCache/tablaResumen.csv"); //$miarray = loadDataFromCSVEncoding("https://docs.google.com/uc?authuser=0&id=0B777mNcRbpXNWnhacXBrRjlIU0E&export?format=download"); $mensaje = '<table id="qs_table" border="1" class=""><thead><tr><th width="20%">Autor</th><th width="30%">Título</th><th width="5%">Año</th><th width="30%">Publicación/Procedencia</th><th width="5%">PDF</th></tr></thead><tbody>'; for ($i = 1; $i < sizeof($miarray); $i++) { $id = $miarray[$i][2]; $autor = $miarray[$i][3]; $titulo = $miarray[$i][4]; $año = $miarray[$i][10]; $publicación = $miarray[$i][14] . $miarray[$i][5] . $miarray[$i][6] . $miarray[$i][7] . $miarray[$i][9]; $url = $miarray[$i][13]; $mensaje .= '<tr id="' . $id . '" class="entry">'; $mensaje .= '<tr><td>' . $autor . '</td>'; $mensaje .= '<td>' . $titulo . '</td>'; $mensaje .= '<td>' . $año . '</td>'; $mensaje .= '<td>' . $publicación . '</td>'; if ($url != "") {
width: 100%; } /* Label the data */ td:nth-of-type(1):before { content: "Autor"; } td:nth-of-type(2):before { content: "Título"; } td:nth-of-type(3):before { content: "Year"; } td:nth-of-type(4):before { content: "Publicación"; } td:nth-of-type(6):before { content: "PDF"; } } </style> <div class=""> <?php include_once "lectorCSV.php"; $miarray = loadDataFromCSVEncoding("csvCache/tablaTotal.csv"); //$miarray = loadDataFromCSVEncoding("https://docs.google.com/uc?authuser=0&id=0B777mNcRbpXNSGlhdGlYbGpYZTg&export?format=download"); $mensaje = '<table id="qs_tableTotal" border="1" class=""><thead id="cabecera-publicaciones"><tr><th width="30%">Autor</th><th width="30%">Título</th><th width="5%">Año</th><th width="30%">Publicación/Procedencia</th><th width="5%">PDF</th></tr></thead><tbody class="">'; for ($i = 1; $i < sizeof($miarray); $i++) { $id = $miarray[$i][2]; $autor = $miarray[$i][3]; $titulo = $miarray[$i][4]; $año = $miarray[$i][10]; $publicación = $miarray[$i][14] . $miarray[$i][5] . $miarray[$i][6] . $miarray[$i][7] . $miarray[$i][9]; $url = $miarray[$i][13]; $mensaje .= '<tr id="' . $id; $mensaje .= ' class="entry"><td>' . $autor . '</td>'; $mensaje .= '<td>' . $titulo . '</td>'; $mensaje .= '<td>' . $año . '</td>'; $mensaje .= '<td>' . $publicación . '</td>'; if ($url != "") {
<style type="text/css"> tbody { display: block; } tbody{ height: 200px; overflow-y: scroll; } tr>th{ display: initial; } </style> <div class=""> <?php include_once "lectorCSV.php"; $miarray = loadDataFromCSVEncoding("https://docs.google.com/uc?authuser=0&id=0B777mNcRbpXNSGlhdGlYbGpYZTg&export?format=download"); $mensaje = '<table id="qs_table" border="1" class=""><thead class="miTabla"><tr><th width="30%">Autor</th><th width="30%">Título</th><th width="5%">Año</th><th width="30%">Publicación/Procedencia</th><th width="5%">PDF</th></tr></thead><tbody class="miTabla">'; for ($i = 1; $i < sizeof($miarray); $i++) { $id = $miarray[$i][2]; $autor = $miarray[$i][3]; $titulo = $miarray[$i][4]; $año = $miarray[$i][10]; $publicación = $miarray[$i][14] . $miarray[$i][5] . $miarray[$i][6] . $miarray[$i][7] . $miarray[$i][9]; $url = $miarray[$i][13]; $mensaje .= '<tr id="' . $id; $mensaje .= ' class="entry"><td>' . $autor . '</td>'; $mensaje .= '<td>' . $titulo . '</td>'; $mensaje .= '<td>' . $año . '</td>'; $mensaje .= '<td>' . $publicación . '</td>'; if ($url != "") { $mensaje .= '<td><a href="' . $url . '"><center><img src="img/icon-pdf.png"></img></center></a></td>';