Location: PHPKode > scripts > dBrowser > dbrowser/dTabela.php
<?
class dTabela{
	Function create($table, $tit, $tr1, $tr2){
		echo "<table style='$table'>";
		echo "<tr style='$tit'>";
		foreach($this->colunas as $col)
			echo "<td>$col</td>";
		echo "</tr>";
		
		for($x = 0; $x < sizeof($this->rows); $x++){
			echo "<tr style='" . (!($x%2)?$tr1:$tr2) . "'>";
			foreach($this->rows[$x] as $col)
				echo "<td>$col</td>";
			echo "</tr>";
		}
		echo "</table>";
	}
	
	Function setRows($linhas){
		$this->rows = $linhas;
	}
	
	Function setColunas($colunas){
		$this->colunas = $colunas;
	}
}
Return current item: dBrowser