Faculty & Staff
AutoViewer requires JavaScript and the Flash Player. Get Flash here.
// ExcelFile($filename, $encoding); $data = new Spreadsheet_Excel_Reader(); // Set output Encoding. $data->setOutputEncoding('CP1251'); if($_GET["file"] == "alphabetical"){ $data->read('staff_alphabetical.xls'); } else { $data->read('staff_department.xls'); } /* $data->sheets[0]['numRows'] - count rows $data->sheets[0]['numCols'] - count columns $data->sheets[0]['cells'][$i][$j] - data from $i-row $j-column $data->sheets[0]['cellsInfo'][$i][$j] - extended info about cell $data->sheets[0]['cellsInfo'][$i][$j]['type'] = "date" | "number" | "unknown" if 'type' == "unknown" - use 'raw' value, because cell contain value with format '0.00'; $data->sheets[0]['cellsInfo'][$i][$j]['raw'] = value if cell without format $data->sheets[0]['cellsInfo'][$i][$j]['colspan'] $data->sheets[0]['cellsInfo'][$i][$j]['rowspan'] */ ?>
Name |
Department |
Phone |
| ".$data->sheets[0]['cells'][$i][$j]." | "; } else { echo "".$data->sheets[0]['cells'][$i][$j]." | "; } } echo "


