Current_page = $current_page; $this->Extra_URI = $extrauri; } function SortMultiArray($tabel,$orderkolom,$direction) { $dummy = array(); // needed for sorting for ($aant = 0; $aant < (sizeof($tabel)); $aant++) { for ($rij = 0; $rij < (sizeof($tabel)-1); $rij++) { $huidige = $tabel[$rij][$orderkolom]; $volgende = $tabel[$rij+1][$orderkolom]; // Hyperlink ignorance. if (substr($huidige,1,3) == "a h") $huidige = $huidige[9]; // Replace with first nonlink char. if (substr($volgende,1,3) == "a h") $volgende = $volgende[9]; // Replace with first nonlink char. if ( (($direction == "a")&&($huidige > $volgende)) || (($direction == "d")&&($huidige < $volgende)) ) { $dummy = $tabel[$rij]; $tabel[$rij] = $tabel[$rij+1]; $tabel[$rij+1] = $dummy; } } } return $tabel; } function Show() { // show rows $rownr = 0; $x = 0; $y = 0; // html table definitie print""; // use order_by_col_nr if (!empty($this->Order_by_col_nr)) { $this->Data = $this->SortMultiArray($this->Data,($this->Order_by_col_nr-1),"a"); // tabel sorteren } // toon rijen while ($y < sizeof($this->Data)) { // make header if ($y == 0) { print""; while (!empty($this->Data[0][$x])) { print""; print""; if ($this->Header_font_bold) print""; print $this->Header_fields[$x]; if ($this->Header_font_bold) print""; print ""; print""; $x++; } print""; } // not header rows print""; // toon velden $x = 0; while (!empty($this->Data[$y][$x])) { // show field print""; print""; print $this->Data[$y][$x]; // toon waarde print""; print""; $x++; } print""; $y++; } print""; } } ?>