% Dim numArticles numArticles = 0 %> <% If searchQ = "" AND (pageMode = "search" OR Session("adminLoggedIn") <> True) Then %>
The search field was left empty, and therefore cannot be processed. Please try again.
<% End If %> <% If Session("adminLoggedIn") = True Then %> <% End If %> <% Server.Execute("inc_footer.asp") %> <% ElseIf Session("adminLoggedIn") = True Then Set rsKbSearch = Server.CreateObject("ADODB.RecordSet") StrSql="SELECT * FROM tbl_KbIndex" rsKbSearch.Open StrSql,cString %>| Welcome, <%=Session("adminName")%>. Listed below are all articles. |
| Welcome, <%=Session("adminName")%>. Your search for <%=searchQ%> yielded the following results: |
| Article ID: <%=rsKbSearch("ID")%> |
| Article Title: &<%If Session("adminLoggedIn") = True Then%>mode=<%=pageMode%>&<%End If%>searchQ=<%=searchQ%>" class="tblLink"><%=rsKbSearch("articleTitle")%> |
| Keywords: <%=rsKbSearch("keywords")%> |
| Description: <%=rsKbSearch("description")%> |
| <%=numArticles%> articles total. |
| <%=numArticles%> article<%If numArticles > 1 Then%>s<%End If%> found. |
| Sorry, no articles were found relating to <%=searchQ%>. |
| Search again? |
| There are no articles in this database. |
| You searched for <%=searchQ%>, and we found the following article(s): |
| Article ID: <%=rsKbSearch("ID")%> |
| Article Title: &<%If Session("adminLoggedIn") = True Then%>mode=<%=pageMode%>&<%End If%>searchQ=<%=searchQ%>" class="tblLink"><%=rsKbSearch("articleTitle")%> |
| Keywords: <%=rsKbSearch("keywords")%> |
| Description: <%=rsKbSearch("description")%> |
| <%=numArticles%> article<%If numArticles > 1 Then%>s<%End If%> found. |
| Sorry, no articles were found relating to <%=searchQ%>. |
| Search again? |