git://git.iain.cx/iain
/
readifood.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tidy up forms.
[readifood.git]
/
lib
/
area.php
diff --git
a/lib/area.php
b/lib/area.php
index
b2ac8c8
..
51f57d3
100644
(file)
--- a/
lib/area.php
+++ b/
lib/area.php
@@
-53,7
+53,7
@@
return;
}
return;
}
-
echo "<form method=\"POST\" action=\"" . $_SCRIPT['REQUEST_URI'] . "\">\n"
;
+
form("noprint standout")
;
echo "<p>Show areas in\n";
echo "<select name=\"city_id\">\n";
foreach ($cities as $city) {
echo "<p>Show areas in\n";
echo "<select name=\"city_id\">\n";
foreach ($cities as $city) {
@@
-61,7
+61,7
@@
}
echo "</select>\n";
echo "<input type=\"submit\" value=\"Show\">\n";
}
echo "</select>\n";
echo "<input type=\"submit\" value=\"Show\">\n";
- e
cho "</form>\n"
;
+ e
nd_form()
;
}
function show_new_area_form($city_id = null) {
}
function show_new_area_form($city_id = null) {
@@
-74,7
+74,7
@@
return;
}
return;
}
-
echo "<form method=\"POST\" action=\"" . $_SERVER['REQUEST_URI'] . "\">\n"
;
+
form("noprint standout")
;
echo "<p>Add a new area <input name=\"area_name\">\n";
echo "in <select name=\"city_id\">\n";
echo "<p>Add a new area <input name=\"area_name\">\n";
echo "in <select name=\"city_id\">\n";
@@
-83,7
+83,7
@@
}
echo "</select>\n";
echo "<input type=\"submit\" value=\"Add\">\n";
}
echo "</select>\n";
echo "<input type=\"submit\" value=\"Add\">\n";
- e
cho "</form>\n"
;
+ e
nd_form()
;
}
function add_area($name, $city_id) {
}
function add_area($name, $city_id) {
@@
-211,7
+211,7
@@
$area = get_area_by_name($name);
if (! $area) return;
$area = get_area_by_name($name);
if (! $area) return;
-
echo "<form method=\"POST\" action=\"" . $_SERVER['REQUEST_URI'] . "\">\n"
;
+
form()
;
echo "<p>Area: <span class=\"strong\">" . $area->getName() . "</span>";
$n = $area->getName();
$i = $area->getId();
echo "<p>Area: <span class=\"strong\">" . $area->getName() . "</span>";
$n = $area->getName();
$i = $area->getId();
@@
-234,7
+234,7
@@
echo "<input type=\"submit\" name=\"update_area\" value=\"Update\">\n";
}
echo "</p>\n";
echo "<input type=\"submit\" name=\"update_area\" value=\"Update\">\n";
}
echo "</p>\n";
- e
cho "</form>\n"
;
+ e
nd_form()
;
}
/* /area/in/Cambridge/1 */
}
/* /area/in/Cambridge/1 */