Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- foreach( $file_list as $file ) {
- $column = 'D';
- $book = PHPExcel_IOFactory::load( $folder . $file );
- $headings = array( 'Title1',
- 'Title2',
- 'Title3',
- 'Title4',
- 'Title5' );
- ?>
- <table class="results">
- <tbody>
- <tr>
- <?php
- for( $i = 0; $i <= 4; $i++ ) {
- echo '<th colspan="2">' . $headings[ $i ] . '</th>' . "\n";
- }
- ?>
- </tr>
- <tr>
- <?php
- for( $row = 106; $row <= 110; $row++ ) {
- echo '<td colspan="2">' . round( $book->getActiveSheet()->getCell( $column . $row )->getCalculatedValue(), 1 ) . '</td>' . "\n";
- }
- ?>
- </tr>
- </tbody>
- </table>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement