Beispiel #1
0
 function CreateFoodDropdownList()
 {
     $foodModel = new FoodModel();
     $result = "<form action = '' method = 'post' width = '200px'>\n                   <p> Please select a type: </p>\n                    <select name = 'types' >\n                        <option value = '%' >All</option>\n                        " . $this->CreateOptionValues($foodModel->GetFoodTypes()) . "</select>\n                     <input type = 'submit' value = 'Search' />\n                    </form>";
     return $result;
 }