chris: Tabellen sortieren

Beitrag lesen

Hallo chris,

... jedoch machen die Radiobuttons probleme. Sobald die dabei sind kann ich nicht mehr Sortieren.

wo sind denn die Radiobuttons? Hast du mal eine Beispieltabelle oder einen Link zur Testseite?

Gruß, Jürgen

Moin, also das Radiobutton Problem ansich habe ich gelöst, aber es will nicht sortieren. Ich Poste mal den Teil der Funktion.

<form id="change" name="change" method="post" action="index.php?option=inventar&task=<?php echo $_POST['function'];?>">
                            <?
                             echo "<table>";
                             echo "<table class="tabelle sortierbar">";
                             echo "Waehlen sie die Ressource aus die ";
                             echo $reason;
                             echo " werden soll";
        echo "<thead>";
        echo "<tr>";
        echo "<th></th>";
        echo "<th class="sortierbar vorsortiert+">Name</th>";
        echo "<th class="sortierbar">Info</th>";
        echo "<th class="sortierbar">Ressource</th>";
        echo "<th class="sortierbar">Standort</th>";
        echo "</tr>";
        echo "</thead>";
        echo "<tbody>";
        //Anzahl der Ressourcen wird gezaehlt
                                 $count_items = count($item_array);
                                    foreach ($item_array as $row)
                                    {
                                        echo "<tr>";
                                           echo "<td class="ce"><input name="item" value=".$row->id." type="radio" /></td>";
                                           echo "<td class="ce">".$row->name."</td>";
                                           echo "<td class="ce">".$row->info."</td>";
                                           echo "<td class="ce">".$row->item."</td>";
                                           echo "<td class="ce">".$row->location."</td>";
                                        echo "</tr>";
                                    }
        echo "</tbody>";
        echo "</table>";
        //echo  <input name="button_change" type="submit" value="Weiter"/>;
                            ?>
                     </form>