Householder Names <% If IsObject(HouseholderNameController.household) Then %> for <%= Server.HTMLEncode(HouseholderNameController.household.Address) %> <% End If %>

New Householder Name
<% Flash().ShowSuccessIfPresent %> <% Flash().ShowErrorsIfPresent %>
<% If HouseholderNameController.searchTerm <> "" Or HouseholderNameController.filterHouseholdId > 0 Then %> Clear <% End If %>
<% If HouseholderNameController.searchTerm <> "" Then %> Found <%= HouseholderNameController.recordCount %> result(s) <% Else %> <%= HouseholderNameController.recordCount %> total <% End If %>
<% If IsObject(HouseholderNameController.household) Then %>
Showing householder names for: <%= Server.HTMLEncode(HouseholderNameController.household.Address) %> Show All
<% End If %>
<% Dim iter, hn Set iter = HouseholderNameController.householderNames.Iterator() If Not iter.HasNext() Then %> <% Else Do While iter.HasNext() Set hn = iter.GetNext() %> <% Loop End If %>
ID Name Type Letter Returned Created Actions
<% If HouseholderNameController.searchTerm <> "" Then %> No householder names found matching "<%= Server.HTMLEncode(HouseholderNameController.searchTerm) %>" <% ElseIf HouseholderNameController.filterHouseholdId > 0 Then %> No householder names for this household. Add one <% Else %> No householder names found. Create one <% End If %>
<%= hn.Id %> <%= Server.HTMLEncode(hn.Name & "") %> Household <% If hn.LetterReturned = 1 Then %> Returned <% If Year(hn.ReturnDate) > 1970 Then %> <%= FormatDateTime(hn.ReturnDate, 2) %> <% End If %> <% Else %> No <% End If %> <%= FormatDateTime(hn.Created, 2) %> View Edit
<% If HouseholderNameController.pageCount > 1 Then %> <% Dim baseUrl, pg, startPage, endPage baseUrl = "/householder-names?" If HouseholderNameController.searchTerm <> "" Then baseUrl = baseUrl & "q=" & Server.URLEncode(HouseholderNameController.searchTerm) & "&" End If If HouseholderNameController.filterHouseholdId > 0 Then baseUrl = baseUrl & "household=" & HouseholderNameController.filterHouseholdId & "&" End If ' Calculate pagination range (show 5 pages at a time) startPage = HouseholderNameController.currentPage - 2 If startPage < 1 Then startPage = 1 endPage = startPage + 4 If endPage > HouseholderNameController.pageCount Then endPage = HouseholderNameController.pageCount startPage = endPage - 4 If startPage < 1 Then startPage = 1 End If %>

Page <%= HouseholderNameController.currentPage %> of <%= HouseholderNameController.pageCount %>

<% End If %>