echo $sectionTitle ?>
if ($showTimeBox==true) { ?>
Browse:
Anytime |
This Week |
This Month |
This Year |
Last Year
} ?>
if ($showStateBox==true) { ?>
Toggle State List
View by State:
} ?>
- Michigan
- Minnesota
- Mississippi
- Missouri
- Montana
- Nebraska
- Nevada
- New Hampshire
- New Jersey
- New Mexico
- New York
// Display the results
if ($count>0)
{
if ($endRecord>$count)
$endRecord = $count;
if ($startRecord==0)
$startRecord = 1;
echo ($count)." results matching your search. Displaying records ".($startRecord)." through ".$endRecord.".";
// Page navigation
$pages = floor($count / $recordsPerPage);
if ($count % $recordsPerPage > 0)
$pages++;
if ($searchName=="%")
$searchName = "";
if ($searchState=="%")
$searchState = "";
echo "
";
$count = 0;
foreach($results AS $row)
{
$count++;
//post_key, post_creation_dt, post_leadline1, post_leadline2, post_first_run_date, post_heading1, post_heading2
//print_r($row);
$postingKey = $row["POST_KEY"];
$publicationDate = $row['POST_FIRST_RUN_DATE'];
$newspaperName = $row['NEWS_DBA'];
$type = $row['APP_TYPE'];
switch ($type)
{
case "BIRTHS-BIRTHDAYS":
$section="birthdays";
break;
case "OTHERS":
$section="other";
break;
default:
$section = strtolower($type);
break;
}
if($brandingMode==true)
{
$url = strtolower($type)."/posting.php".$qs."&key=".$postingKey;
}
else
{
$url = "posting.php?key=".$postingKey."&".$qs;
}
if (strtolower(trim($newspaperName)) == "important occasions")
{
$newspaperName = "Published on ImportantOccasions.com";
}
else
{
$newspaperName = "Published in the ".$newspaperName;
}
// if (!empty($row['POST_HEADING1']))
// {
// $listingName = trim($row['POST_HEADING1']);
// }
// else
// {
// $listingName = trim($row['POST_HEADING2']);
// }
$listingName = $row['HEADING'];
$keyword = $row['LASTNAME_KEYWORD'];
$listingName = $keyword.": ".$listingName;
if ($brandingMode == true)
{
echo "
";
if ($pages > 1)
{
echo "
Jump To Page:
"; // Show page navigation for ($i=1; $i<=$pages; $i++) { $iUrl = ""; echo "[".$iUrl.$i."] "; } } } else { echo "
if ($brandingMode != true)
{
require_once "footer.php";
}
?>
".
"".$listingName."".
"".$type." ".$publicationDate." | ".
"
".
"".$listingName."".
"".$type." ".$publicationDate." ".$newspaperName." | ".
"
Jump To Page:
"; // Show page navigation for ($i=1; $i<=$pages; $i++) { $iUrl = ""; echo "[".$iUrl.$i."] "; } } } else { echo "
There are no events matching your search criteria. Please revise your search criteria and try again.
"; } ?>