Interment searching is now working
git-svn-id: https://rosehill.googlecode.com/svn/branches/php@9 100bd78a-fc82-11de-b5bc-ffd2847a4b57
This commit is contained in:
parent
b0fbc4bb44
commit
ace118bc0a
|
@ -23,14 +23,15 @@
|
||||||
$cemeteries->find();
|
$cemeteries->find();
|
||||||
foreach ($cemeteries as $cemetery) {
|
foreach ($cemeteries as $cemetery) {
|
||||||
$name = View::escape($cemetery->getName());
|
$name = View::escape($cemetery->getName());
|
||||||
|
$fieldname = 'sections_'.$cemetery->getId();
|
||||||
echo "
|
echo "
|
||||||
<tr><td><label for=\"\">$name Sections</label></td>
|
<tr><td><label for=\"\">$name Sections</label></td>
|
||||||
<td><select name=\"sections_{$cemetery->getId()}\">
|
<td><select name=\"$fieldname\">
|
||||||
<option value=\"\">All</option>
|
<option value=\"\">All</option>
|
||||||
";
|
";
|
||||||
foreach ($cemetery->getSections() as $section) {
|
foreach ($cemetery->getSections() as $section) {
|
||||||
$section = View::escape($section);
|
$section = View::escape($section);
|
||||||
$selected = (isset($_GET['section']) && $_GET['section']==$section)
|
$selected = (isset($_GET[$fieldname]) && $_GET[$fieldname]==$section)
|
||||||
? 'selected="selected"'
|
? 'selected="selected"'
|
||||||
: '';
|
: '';
|
||||||
echo "<option $selected>$section</option>";
|
echo "<option $selected>$section</option>";
|
||||||
|
|
Loading…
Reference in New Issue