<% '########################## system-wide functions ################ ' this file contains global variables & functions dim fixedstr,strwd,formitem,reggie function goIrish(oldstr) ' takes care of apostrophy problem in txt fields fixedstr = replace(oldstr,"'","''") goIrish = fixedstr end function 'functions stripQuotes() and killChars() remove sql for insertion attacks 'stripQuotes() also solves stand-alone apostrophe problem function stripQuotes(strWords) stripQuotes = replace(strWords, "'", "''") end function function addBr(strwd) ' if instr(strwd,vbcrlf) > 0 then ' strwd = replace(strwd,vbcrlf,"
") ' end if addBr = strwd end function function stripSp(spword) Set reggie = New RegExp reggie.Pattern = "^ +" ' Set pattern. stripsp = reggie.Replace(spword, "") ' Make replacement. end function function killChars(strWords) dim badChars,newChars,i badChars = array("select", "drop", ";", "--", "insert", "delete", "xp_","update") 'newChars = strWords newChars = replace(strWords, "'", "''") for i = 0 to uBound(badChars) newChars = replace(newChars, badChars(i), "") next killChars = newChars end function function die(dieword) response.write dieword response.end end function function echo(echoword) response.write echoword end function function echoLn(echoword) response.write echoword & "
" end function function get_moname(monthnum,siz) if monthnum=1 then moname= "January" elseif monthnum=2 then moname= "February" elseif monthnum=3 then moname= "March" elseif monthnum=4 then moname= "April" elseif monthnum=5 then moname= "May" elseif monthnum = 6 then moname= "June" elseif monthnum = 7 then moname= "July" elseif monthnum = 8 then moname = "August" elseif monthnum = 9 then moname= "September" elseif monthnum = 10 then moname= "October" elseif monthnum = 11 then moname= "November" elseif monthnum = 12 then moname= "December" end if if siz = "short" then moname = left(moname,3) end if get_moname = moname end function function getvars() for each formitem in Request.Form 'update response.write formitem & "='"" & "& formitem & " & ""', " next response.write "

dim" for each formitem in Request.Form 'vars response.write formitem & ", " next response.write "

" 'insert response.write "insert into (" for each formitem in Request.Form response.write formitem & ", " next response.write ") values(" for each formitem in Request.Form response.write " '"" & " & formitem & " & ""', " next response.write ")"" " response.write "

" 'print out querystring vars for each formitem in Request.Form response.write formitem & "=request.form("""&formitem&""")
" next end function function forDate(sDate) dim fdmonth,fdyear,fdmoname,fdday,fddate fdday = DatePart("d",sDate) fdyear = DatePart("yyyy",sDate) fdmonth =DatePart("m",sDate) if fdmonth = 1 then fdmoname = "January" elseif fdmonth = 2 then fdmoname = "February" elseif fdmonth = 3 then fdmoname = "March" elseif fdmonth = 4 then fdmoname = "April" elseif fdmonth = 5 then fdmoname = "May" elseif fdmonth = 6 then fdmoname = "June" elseif fdmonth = 7 then fdmoname = "July" elseif fdmonth = 8 then fdmoname = "August" elseif fdmonth = 9 then fdmoname = "September" elseif fdmonth = 10 then fdmoname = "October" elseif fdmonth = 11 then fdmoname = "November" elseif fdmonth = 12 then fdmoname = "December" end if fddate = fdmoname & " " & fdday & ", " & fdyear forDate = fddate end function '########################## system-wide variables ################ dim orgname,deflocation,evmailto,donormailto,orgaddress, webroot,ylpmailto, conTAmailto,wkTAmailto,ctdbmailto,qamailto,homepage,metataglist,metatagdesc, bigseven 'bigseven defines the pacific, anadromaous salmon bigseven = "2,3,4,6,7,9,18" 'webroot is default, top level web directory webroot = "c:\inetpub\wwwroot" 'orgname is organization default name orgname= "State of the Salmon " ' orgaddress is main address for organization orgaddress = "1903 SE Ankeny
Portland, OR 97214" ' deflocation is default address for events in event calendar deflocation = "Ecotrust
721 NW Ninth Avenue,Suite 200
Portland, OR 97209" 'evmailto is the default email address for events registration evmailto = "training@tacs.org" 'evmailto = "ekr@tacs.org" 'donormailto is for donations 'donormailto = "ekr@tacs.org" 'ylpmailto is for workshop ta application ylpmailto = "legal@tacs.org" 'ylpmailto = "ekr@tacs.org" 'contamailto is for consulting project ta application conTAmailto = "tafund@tacs.org" 'conTAmailto = "ekr@tacs.org" 'wktamailto is for workshop ta application wkTAmailto = "tafund@tacs.org" 'wkTAmailto = "ekr@tacs.org" ' qamailto receives questions for q & a qamailto = "info@tacs.org" 'ctdbmailto is who gets consultant form updates ctdbmailto = "info@tacs.org" ' to include to a page, use metataglist = "salmon, steelhead, monitoring, monitoring protocols, stock status, Alaska salmon, conservation, fisheries, science, research, education, Russian, Kamchatka, Russian Far East, magadan, chukotka, primorye, khabarovsk, Sakhalin, Pacific Rim, Washington, Oregon, Cascadia, Olympic Peninsula, Hoh River, salmonid, fishing expeditions, river, rivers, fish, chinook, coho, cherry, masu, rainbow trout, trout, lenok, taimen, GIS, endangered, sockeye, chum, charr, pink, humpback, red, dog, silver, king, cutthroat, bull trout, Dolly Varden, State of the Salmon:An Atlas of Pacific Salmon" metatagdesc = "The State of the Salmon program, a joint effort of the Wild Salmon Center and Ecotrust, is building the world’s most credible, comprehensive source of data and information on North Pacific salmon to foster informed and collaborative policy that secures a future in which wild salmon, and all life that depends on them, prosper." homepage = "/index.asp" echo "" %><% dim conn 'setting dbase parameters for select only user set conn = server.CreateObject("adodb.connection") conn.open "DSN=CONTENT;uid=;pwd=;Trusted_Connection=yes" %><%dim scrname,fname,rs,sql,lastname,firstname,nameID,organizationID,orgtypename,sqlst,sqlcn,rsst,rscn,rcst,countryID,nationID,aptype,apname,orclawsset rs = server.createobject("adodb.recordset")aptype= request.querystring("aptype")if aptype = "sci" then orclaws = " species"else orclaws = " name"end ifsql = "select * from tblLK_species where speciesID in("&bigseven&") order by " & orclawsrs.open sql, conn%>State of the Salmon - Salmon Serve

State of the Salmon
<%'die("

System Upgrade

As we conduct a critical software upgrade, our database will not be available. Please check these pages for an update.

")%>

Salmon Serve - Our Salmon Query Tool


Use Common name Use Scientific name


SalmonServe puts complex biogeographic data at your fingertips.
You may choose to look at data for any of the following questions. In certain questions, you may choose a species of salmon. You may also choose to narrow your focus to a specific region.

Step 1. Click a radio button next to one of the following research topics.

Where salmon are?                                     

-OR-

How many salmon are there?                       

-OR-

Risk of Extinction:                                       

-OR-

Salmon Diversity: Species Per Ecoregion

-OR-

Salmon Diversity: Species Per Watershed

-OR-

Transboundary rivers that support salmon




Step 2. Now Choose A Region

Complete descriptions of the datasets that provide information for this map can be found here.

Creative Commons License
This work is licensed under a Creative Commons License.

YOU ARE HERE: stateofthesalmon.org » Resources » Salmon Serve