From 4cb6876aed8d69a0175568b627777ccef0cf9ae9 Mon Sep 17 00:00:00 2001 From: inghamn Date: Wed, 6 Jan 2010 17:10:08 +0000 Subject: [PATCH] Find form now autopopulates the section drop down after you choose the cemetery git-svn-id: https://rosehill.googlecode.com/svn/branches/php@28 100bd78a-fc82-11de-b5bc-ffd2847a4b57 --- blocks/html/interments/addIntermentForm.inc | 26 +------- blocks/html/interments/findForm.inc | 61 +++++++++++------- .../html/interments/updateIntermentForm.inc | 26 +------- html/interments/home.php | 63 +++++++++---------- html/js/functions.js | 29 +++++++++ templates/html/partials/header.inc | 2 + 6 files changed, 98 insertions(+), 109 deletions(-) create mode 100644 html/js/functions.js diff --git a/blocks/html/interments/addIntermentForm.inc b/blocks/html/interments/addIntermentForm.inc index 93c93bb..90037a9 100644 --- a/blocks/html/interments/addIntermentForm.inc +++ b/blocks/html/interments/addIntermentForm.inc @@ -15,7 +15,7 @@ $return_url = isset($this->return_url) ? $this->return_url : BASE_URL.'/intermen - find(); - foreach ($cemeteries as $cemetery) { - $name = View::escape($cemetery->getName()); - $fieldname = 'sections_'.$cemetery->getId(); - echo " - - + - - "; - } - ?> + echo ""; + } + ?> + + + + + +
-
+
diff --git a/blocks/html/interments/updateIntermentForm.inc b/blocks/html/interments/updateIntermentForm.inc index 78b362a..f7c00c6 100644 --- a/blocks/html/interments/updateIntermentForm.inc +++ b/blocks/html/interments/updateIntermentForm.inc @@ -16,7 +16,7 @@ $return_url = $this->return_url ? $this->return_url : BASE_URL.'/interments';