The county search is now hidden if there are no counties. The
contact list is also ordered by lname, fname.
$userDeleted = false;
$wpUserDeleted = false;
$contactMembers = array();
+ $order = false;
$numbContacts = false;
$numbDisplayed = false;
$start = $newStart;
}
}
-
+ $order = "lname, fname";
// Get list of contacts
- $contactsList = $this->getList($where);
+ $contactsList = $this->getList($where, $order);
if ($contactsList != false) {
-
if ($paging) {
-
//Get paging results
$numbDisplayed = $contactsList['returned'];
$lastDisplayed = $contactsList['last'];
<div id="glmContactsSearchContainer" class="small-12 large-5">
<b>Text Search: </b><input id="glmContactsSearch" name="filterText" type="text" id="autoTest" value="{$filterText}">
</div>
+ {if $countyList}
<div id="glmContactsCountySearchContainer" class="small-12 large-5">
<b>County Search: </b>
<select id="glmContactsCountySearch" name="countySearch" type="text" value="{$countySearch}">
{/foreach}
</select>
</div>
+ {/if}
<div class="small-12 large-2" id="glmContactsSearchSubmit">
<input type="submit" value="Submit" class="glm-button button">
</div>