From 187e08d3f6839f58b172856ef746928607682048 Mon Sep 17 00:00:00 2001 From: inghamn Date: Wed, 6 Jan 2010 18:16:48 +0000 Subject: [PATCH] We now use two different search forms, depending on if there are results or not git-svn-id: https://rosehill.googlecode.com/svn/branches/php@33 100bd78a-fc82-11de-b5bc-ffd2847a4b57 --- blocks/html/interments/findForm-skinny.inc | 61 ++++++++++++++++++++++ html/interments/home.php | 7 ++- 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 blocks/html/interments/findForm-skinny.inc diff --git a/blocks/html/interments/findForm-skinny.inc b/blocks/html/interments/findForm-skinny.inc new file mode 100644 index 0000000..37eec10 --- /dev/null +++ b/blocks/html/interments/findForm-skinny.inc @@ -0,0 +1,61 @@ + + */ +?> +

Search Burial Records

+
+ + + + + + + + + + + +
+ +
+ +
+
+ +
+
\ No newline at end of file diff --git a/html/interments/home.php b/html/interments/home.php index 9b4a212..a7b29fa 100644 --- a/html/interments/home.php +++ b/html/interments/home.php @@ -20,7 +20,12 @@ $template = isset($_GET['format']) ? new Template('default',$_GET['format']) : n // Only the HTML version will include the findForm, addForm, and the about page. if ($template->outputFormat=='html') { - $template->blocks[] = new Block('interments/findForm.inc'); + if (!count($search)) { + $template->blocks[] = new Block('interments/findForm.inc'); + } + else { + $template->blocks[] = new Block('interments/findForm-skinny.inc'); + } if (userIsAllowed('Interments') && !count($search)) { $return_url = new URL($_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);