Related Project Contacts:"; if($orderby == "Name" || !$orderby) $orderby = "last_name, first_name"; if($specialty || $name || $all) $contacts = get_contacts("*",$orderby, $specialty,$name); else echo "

Individuals in Alaska have demonstrated an interest in the effects of roads on habitat quality and connectivity. As the Alaska Department of Transportation & Public Facilities plans future projects, planners may be able to use the database of contacts to identify persons interested in helping inform the planning process. "; /* $specialties = dbgq_all_key_val("select specialty, count(specialty) cnt from contact where specialty is not null group by specialty",'specialty','cnt'); //a($specialties); while(list($key,$val) = each($specialties)) $specialties[$key] = "$key ($val)"; //a($specialties); */ $contacts_keys = @array_keys($contacts[0]); unset($contacts_keys[0]); $contacts_keys[2] = "Name"; unset($contacts_keys[1]); echo "

"; //echo "Select a specialty:"; //form_select_create_assoc('specialty', $specialties,$specialty,true, 'onchange="form.submit();"'); //echo "
   -and/or-   "; echo "Enter a Keyword:"; form_text('name', $name, 20); echo " -or- Click here to see all results   "; form_submit('submit','Search'); echo "

"; if($name && !$contacts) echo "No results found using that keyword. Please try a different keyword."; if($contacts) { echo "This is a listing of people and organizations related to this project. You can click on the column titles to order the list by that column alphabetically.

"; $specialty_url = rawurlencode($sepcialty); echo ""; echo ""; echo ""; unset($contacts_keys[6]); unset($contacts_keys[8]); $specialty_url = rawurlencode($specialty); while(list($key,$val) = each($contacts_keys)) echo ""; //a($contacts_keys); echo ""; echo ""; while(list($key,$contact) = @each($contacts)) { if($i++ % 2) $bgcolor= "#F0F0F0"; else $bgcolor="E0E0E0"; echo ""; if($contact[Last_Name] || $contact[First_Name]) echo ""; else echo ""; echo ""; echo ""; echo ""; if(eregi( "@", $contact[Email]) ) echo ""; elseif(eregi("http://",$contact[Email]) ) echo ""; else echo ""; echo ""; echo ""; echo ""; } //echo ""; echo "
".str_replace('_',' ',$val)."
$contact[First_Name] $contact[Last_Name] $contact[Title]$contact[Affiliation]$contact[Specialty]EmailWebsite 
Phone: $contact[Phone]   Mailing Address:$contact[Mailing_Address]
"; } echo_footer(); ?>