|
|
|
<%=formatDateTime(Now(), vbShortDate)%>
|
|
|
|

|
|
|
<%if (request.form("btnSearch") <> "") then%>

<%else%>

<%end if%>
|
|
<%
Dim bSubmitted 'Are we displaying search form or search results?
Dim i
Dim arsInfoType
Dim sKeywords
Dim bSrchProprietary
Dim bSrchLibrary
Dim sSubTopic
Dim ariSpecialty
Dim objSearch
Dim rsSearchResults
Dim bFoundResults
if IsPosted then
'Store the form data
sKeywords = trim(request.form("txtKeywords"))
if (Request.Form("chkProprietary") <> "") then
bSrchProprietary = true
else
bSrchProprietary = false
end if
if (Request.Form("chkLibrary") <> "") then
bSrchLibrary = true
else
bSrchLibrary = false
end if
dim allInfoType
allInfoType = Request.Form("cboInfoType")
if cstr(allInfoType) = "-1" then
allInfoType = ""
end if
dim allSpecialty
allSpecialty = request.form("cboSpecialty")
if cstr(allSpecialty) = "-1" then
allSpecialty = ""
end if
dim iKeywordType
iKeywordType = cint(Request.Form("keywordType"))
'Call the search component
On Error Resume Next
set objSearch = server.CreateObject("MDVista.clsSearch")
set rsSearchResults = objSearch.advSearch(sKeywords, iKeywordType, bSrchProprietary, bSrchLibrary, allInfoType, allSpecialty)
set objSearch = Nothing
'If we encountered an error, just say no records found instead
'of showing an error (temporary fix)
if Err <> 0 then
bFoundResults = false
else
bFoundResults = true
end if
if bFoundResults then
if bSrchProprietary then
DisplayProp
end if
if bSrchLibrary then
DisplayLibrary
end if
end if
set rsSearchResults = nothing
if not bFoundResults then
DisplayNoResults
end if
bSubmitted = true
else 'display the search form
bSubmitted = false
Dim arsSpecialty()
Dim objDataAccess
Dim rsRecords
Dim iInfoTypes
set objDataAccess = server.CreateObject("MDVista.clsDataAccess")
'First store the InfoType data in an array.
set rsRecords = objDataAccess.sqlQueryRs("SP_GetInfoTypes")
arsInfoType = rsRecords.getRows
'Now store the Specialty data in an array.
set rsRecords = objDataAccess.sqlQueryRs("SP_GetIndentedSpecialties")
if NOT (rsRecords.BOF and rsRecords.EOF) then
i = 0
do while not rsRecords.EOF
Redim Preserve arsSpecialty(1, i)
arsSpecialty(0, i) = rsRecords("Specialty")
arsSpecialty(1, i) = rsRecords("SpecialtyID")
rsRecords.MoveNext
i = i + 1
loop
rsRecords.close
end if
set objDataAccess = nothing
set rsRecords = nothing
%>
Note: At this time, our search engine scans only the MDvista Journal of Medicine- July 2000 edition. In the coming weeks, we will expand this offering, so that you will be able to search our archive of over 200 articles and 6000 library links.
<%
end if
%>
|
|
|
|

|
Copyright © 2000, MDvista Inc. All Rights Reserved
|
|
|
|