tengo un codigo k me genera una tabla con resultados de los datos de un exel pero ahora me gustaria k lo hiciera en 2 columnas, tengo este para genearr una.
Código PHP:
//$linea_abuscar=$_REQUEST["lineas"];
//$columna_abuscar=$_REQUEST["columna"];
$linea_abuscar="Procesador";
$columna_abuscar=1;
require_once('Excel/reader.php');
$data = new Spreadsheet_Excel_Reader();
$data->setOutputEncoding('CP1251');
$data->read('Catalogo/catalogo.xls');
error_reporting(E_ALL ^ E_NOTICE);
$renglones=$data->sheets[0]['numRows'];
for ($ren=2; $ren<=$renglones; $ren++) {
if ($columna_abuscar==1) { $linea=$data->sheets[0]['cells'][$ren][1]; } else { $linea=$data->sheets[0]['cells'][$ren][3].$data->sheets[0]['cells'][$ren][4]; }
$exclusivo=$data->sheets[0]['cells'][$ren][11];
if (stristr($linea, $linea_abuscar)!="") {
if ($exclusivo=="No" or ($exclusivo=="Si" and isset($_SESSION["autentificado"]))) {
echo "<tr align='left'>";
echo "<td width='128px' align='center'>"."<a href='des_producto/procesadores/".$data->sheets[0]['cells'][$ren][14].".php'><img src='Fotos/procesadores/tn_".$data->sheets[0]['cells'][$ren][14].".jpg' alt='click sobre la imagen para ampliarla' border='0' ><br></a></td>";
echo "<td valign='top' style='font-color:#3A72FF'>";
echo "<table width='100%' border='0' cellspacing='1' cellpadding='0' colls='0' bordercolor='#FFFFFF' align='left' style='margin-top:10px'>";
echo "<tr><td height='100%' width='100%' colspan=2 bgcolor='#0099FF'><font color='#FFFFFF'><strong>".$data->sheets[0]['cells'][$ren][3]."</strong></font>";
echo "<tr>
<td height='10' width='25%' bgcolor='#D7D7D7'><font color='#000000' >Arquitectura:</td>
<td height='10' bgcolor='#D7D7D7'><font color='#000000' >".$data->sheets[0]['cells'][$ren][4]."</td></tr>";
if ($_SESSION["registrado"]=="Si"){
echo "<tr><td height='10px' width='90%' bgcolor='#FF960C' colspan='2'><font color='#FFFFFF'> <strong>$".number_format($data->sheets[0]['cells'][$ren][12],2)." ".$data->sheets[0]['cells'][$ren][13]." (".$data->sheets[0]['cells'][$ren][2].")</td></strong></font>";}
else{
echo "<tr><td height='10px' colspan=2 width='90%' bgcolor='#FF960C'><font color='#FFFFFF'><strong>Super Precio...!!!</strong></td></font>";}
echo "</tr>";
echo "</table>";
}
}
}
?>