function SortAndSearchForm()
 {
     $select = new HTMLSelect("sort", 1);
     if (count($this->cols) == 0) {
     } else {
         while (list($col, $val) = @each($this->cols)) {
             if ($this->descriptions[$col] != "") {
                 $select->AddOption("Nach {$this->descriptions[$col]} Sortieren", $col);
             } else {
                 $select->AddOption("Nach {$col} Sortieren", $col);
             }
         }
     }
     $html = $select->Get();
     $search = new HTMLInput("search", "text", "", 20);
     $html .= $search->Get();
     $html .= "<input type=\"submit\" value=\"Suchen\">";
     $html .= "<br>";
     $alphabet = range('A', 'Z');
     $html .= "<table width=\"100%\" cellpadding=\"7\"><tr>";
     foreach ($alphabet as $letter) {
         $html .= "<td><a href=\"\">{$letter}</a></td>";
     }
     $html .= "</tr></table>";
     return $html;
 }
Esempio n. 2
0
 function Get()
 {
     if ($this->checkvalue == $this->value) {
         $this->checked = "checked";
     }
     $this->value = $this->checkvalue;
     $this->value = 1;
     return parent::Get();
 }