Login   Register  
PHP Classes
elePHPant
Icontem

File: showDataTable.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Aneesh R  >  CSV Parse and Read  >  showDataTable.php  >  Download  
File: showDataTable.php
Role: Auxiliary script
Content type: text/plain
Description: This will show the formatted output
Class: CSV Parse and Read
Parse and display data from a CSV file
Author: By
Last change:
Date: 2007-09-12 00:12
Size: 485 bytes
 

Contents

Class file image Download
<style>
.row1
{
    background-color:#FFFFFF;
}
.row2{
    background-color:#CCCCCC;
}
</style>
<TABLE style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:9px" width="100%" border="0"><?php
for($i=0;  $i<sizeof($Data);$i++){
    
$RowIndex     =     1;
    
$Css          =     $RowIndex%== 'row1' 'row2';
    
?>
     <TR class="<?php echo $Css;?>"><?php
        
foreach ( $Data[$i] as $Dat) {?>
              <TD>&nbsp;<?php echo $Dat;?></TD>
        <?php ?>
     </TR><?php
}?>    
</TABLE>