\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; */ // --- read header line $data_fields=fread_csv($fp); // --- read data lines $data_array=array(); $data_array_sortcrit=array(); while (!feof($fp)) { $data_values=fread_csv($fp); if (is_array($data_values)) { array_push($data_array, $data_values); $sortcrit=$data_values[6] . " - " . $data_values[1]; // Session - Name array_push($data_array_sortcrit, $sortcrit); } } // --- close data file fclose($fp); // --- sort data index due to sortcrit (asort shuffles indices too) asort ($data_array_sortcrit); // --- print data array reset ($data_array_sortcrit); foreach ($data_array_sortcrit as $key=>$value) { $data_values=$data_array[$key]; if (is_array($data_values)) { // for ($i=0;$i$max) {$max=strlen($arr[$i]);} $mean=$mean+strlen($arr[$i]); } $mean=$mean/count($arr); if ($mean>110) { $text=preg_replace("/\n/","

\n",$text); }else{ $text=preg_replace("/\n\n[\n]*/","

\n",$text); } echo "$data_values[6]\n
\n"; echo "Preferred Presentation: $data_values[8]\n

\n"; echo "

$data_values[5]

\n"; echo "

$data_values[1]"; if ($data_values[2]!="") { echo "; $data_values[2]"; } echo "
\n

\n"; echo "

"; #echo "$data_values[7]
\n"; #echo "$data_values[8]"; echo "

\n"; echo "$text

\n"; echo "

 


\n\n"; } } /* echo "\n\n"; */ include "footer.php"; exit ; } /* htmlheader($title); */ include "header.php"; echo "

$title

\n"; $self=$_SERVER['PHP_SELF']; echo "This list in Microsoft excel CSV format.
\n"; echo "This list in HTML HTML format.

\n"; echo "\n"; // --- read header line $data_fields=fread_csv($fp); echo_trow ($data_fields, "","", ""); // --- read data lines while (!feof($fp)) { $data_values=fread_csv($fp); if (is_array($data_values)) { for ($i=0;$i","",""); } } echo "
", "
","
\n"; // --- close data file fclose($fp); /* htmlfooter(); */ include "footer.php"; // ----------------------------- function htmlheader($title) { echo "\n"; echo "\n"; echo "$title\n"; echo "\n"; echo "\n"; echo "\n"; } // ----------------------------- function htmlfooter() { echo "


\n"; echo "Back to web pages.\n"; echo "\n"; echo "\n"; } ?>