[text]p=/locations/[/text][function name=process] [showif [by]=elp] [search db=/db/locationstiedto.db&eqcampaignid_keydatarq=16][foundItems] [search table=partners&eqnamedatarq=[lookup db=/db/locations.db&value=[locid_key]&lookinfield=locid&returnfield=locname]&eqislanddatarq=[lookup db=/db/locations.db&value=[locid_key]&lookinfield=locid&returnfield=locisland]] [if [numfound]=0] [then] [append table=partners]pid=[locid_key]&name=[url][lookup db=/db/locations.db&value=[locid_key]&lookinfield=locid&returnfield=locname][/url]&locs=1&island=[lookup db=/db/locations.db&value=[locid_key]&lookinfield=locid&returnfield=locIsland][/append] [/then] [/if] [/search] [/foundItems][/search] [/showif] [showif [? by]=0] [text scope=global]by=Listing[/text] [/showif] [math]hit=0[/math] [text scope=global]terms=[/text] [if [? topic]=1] [then] [math]hit=1[/math] [switch value=[topic]] [case value=Aloha] [text scope=global]terms=&eqlocAlohadatarq=T[/text] [/case] [case value=Citizenship] [text scope=global]terms=&eqlocCitizendatarq=T[/text] [/case] [case value=Energy] [text scope=global]terms=&eqlocEnergydatarq=T[/text] [/case] [case value=Waste] [text scope=global]terms=&eqlocWastedatarq=T[/text] [/case] [case value=Food] [text scope=global]terms=&eqlocEatLocaldatarq=T[/text] [/case] [case value=All] [text scope=global]terms=&neLocIDdatarq=z[/text] [/case] [/switch] [/then] [/if] [if [? type]=1] [then] [math]hit=1[/math] [switch value=[type]] [case value=Sustainable Business] [text scope=global]terms=[terms]&eqloctypedatarq=Sustainable Business[/text] [/case] [case value=Recycling Facility] [text scope=global]terms=[terms]&eqloctypedatarq=Recycling Facility[/text] [/case] [case value=Service Organization] [text scope=global]terms=[terms]&eqloctypedatarq=Service Organization[/text] [/case] [case value=Governmental Service] [text scope=global]terms=[terms]&eqloctypedatarq=Governmental Service[/text] [/case] [case value=Restaurant] [text scope=global]terms=[terms]&eqloctypedatarq=Restaurant[/text] [/case] [case value=Supermarket/Store] [text scope=global]terms=[terms]&eqloctypedatarq=Supermarket/Store[/text] [/case] [case value=Farmer's Market] [text scope=global]terms=[terms]&eqloctypedatarq=Farmer's Market[/text] [/case] [/switch] [/then] [/if] [if [? island]=1] [then] [math]hit=1[/math] [switch value=[island]] [case value=Hawaii Island] [text scope=global]terms=[terms]&eqlocIslanddatarq=Hawaii[/text] [/case] [case value=Kauai] [text scope=global]terms=[terms]&eqlocIslanddatarq=Kauai[/text] [/case] [case value=Lanai] [text scope=global]terms=[terms]&eqlocIslanddatarq=Lanai[/text] [/case] [case value=Maui] [text scope=global]terms=[terms]&eqlocIslanddatarq=Maui[/text] [/case] [case value=Molokai] [text scope=global]terms=[terms]&eqlocIslanddatarq=Molokai[/text] [/case] [case value=Oahu] [text scope=global]terms=[terms]&eqlocIslanddatarq=Oahu[/text] [/case] [/switch] [/then] [/if] [if ("[topic]"="All Challenges") & ("[type]"="All Types") & ("[island]"="Statewide")] [then] [text scope=global]terms=&neLOCIDdatarq=z[/text] [/then] [/if] [showif [hit]=0] [text scope=global]terms=&neLOCIDdatarq=z[/text] [/showif] [return][/return] [/function][process][include file=/includes/header.tpl&title=Kanu Hawaii Member Posted Locations&h=[topic]]

Locations


[getInclude f=locations-intro.inc] [text]challenges=All,aloha,citizenship,energy,food,waste[/text]

Sort locations:   

[hideif [by]=elp][/hideif] [text]types=All Types,Farmer's Market,Governmental Service,Recycling Facility,Restaurant,Service Organization,Supermarket/Store,Sustainable Business[/text] [text]islands=Statewide,Hawaii Island,Kauai,Lanai,Maui,Molokai,Oahu[/text]

[showif [page]=[raw][page][/raw]][math show=f]page=1[/math][/showif] [search db=/db/locations.db[terms]&popularitysort=1&popularitysdir=de&popularitytype=num&locLastUpdatesort=2&locLastUpdatesdir=de&locnamesumm=t&max=10&startat=[math](([page]-1)*10)+1[/math]]

Matching Locations ([numfound])[!] - See on Map[/!]

[if [numfound]=0] [then][getInclude f=no.locations.inc][/then] [else] [foundItems]

[!]
[showif [hasLogo]=t] [/showif]
[/!]

[locname]

[loctype] [search db=/db/locations.db&eqlocnamedatarq=[locname]&nelociddatarq=[locid]&eqlocislanddatarq=[locisland]] [showif [numfound]>0] | [numfound] other [locisland] location[showif [numfound]>1]s[/showif]: [foundItems] [loccity], [loczip] [hideif [index]=[numfound]] , [/hideif] [/foundItems] [/showif] [/search]
[if "[hasLogo]"="t"][then] [locName] Logo [/then] [else]







[/else] [/if]
[showif [popularity]!0]

Popularity: [popularity]

[/showif]

[locaddress]
[loccity], [locstate] [loczip]

[locIsland] [showif [locurl]!][truncate text=[locurl]&max=60]
[/showif] [showif [locphone]!]Telephone: [locphone]
[/showif]


[showif [tagEnergy][tagWaste][tagCitizenship][tagFood]^T]
[showif [locAloha]=T][/showif] [showif [locCitizen]=T][/showif] [showif [locEnergy]=T][/showif] [showif [locEatLocal]=T][/showif] [showif [locWaste]=T][/showif]
[/showif]
[/foundItems] [hideif [numfound]<6] [genPagingGeneric path=[url][thisurl]/?r=t[showif [? topic]=1]&topic=[topic]&[/showif][showif [? type]=1]&type=[type][/showif][showif [? island]=1]&island=[island][/showif]&[/url]&n=[numfound]&page=[page]&end=[math]ceil([numfound]/10)[/math]] [/hideif] [/else] [/if] [/search]
[include /includes/footer.tpl]