2009-12-18 12:56:12 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @copyright 2009 City of Bloomington, Indiana
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
|
|
|
|
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
|
|
|
*/
|
2009-12-18 14:28:25 +00:00
|
|
|
$currentPage = isset($_GET['page']) ? (int)$_GET['page'] : 1;
|
2009-12-18 12:56:12 +00:00
|
|
|
|
2009-12-18 14:28:25 +00:00
|
|
|
$deedList = new DeedList(null,20,$currentPage);
|
2009-12-18 15:01:46 +00:00
|
|
|
|
|
|
|
|
2010-01-26 18:42:34 +00:00
|
|
|
$knownFields = array('section_id','lot','cemetery_id','firstname','lastname','middleInitial');
|
2009-12-18 15:01:46 +00:00
|
|
|
if (count(array_intersect(array_keys($_GET),$knownFields))) {
|
|
|
|
$deedList->find($_GET);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$deedList->find();
|
|
|
|
}
|
|
|
|
|
2009-12-18 12:56:12 +00:00
|
|
|
|
|
|
|
$template = new Template();
|
2009-12-18 15:01:46 +00:00
|
|
|
$template->blocks[] = new Block('deeds/findForm.inc');
|
2009-12-18 12:56:12 +00:00
|
|
|
$template->blocks[] = new Block('deeds/deedList.inc',array('deedList'=>$deedList));
|
|
|
|
echo $template->render();
|