|
|
<%
'Read in all the search words into one variable
strSearchWords = Trim(Request.QueryString("search"))
'If the site is in English then use the server HTML encode method
If blnEnglishLanguage = True Then
'Replace any HTML tags with the HTML codes for the same characters (stops people entering HTML tags)
strSearchWords = Server.HTMLEncode(strSearchWords)
'If the site is not english just change the script tags
Else
'Just replace the script tag <> with HTML encoded < and >
strSearchWords = Replace(strSearchWords, "<", "<", 1, -1, 1)
strSearchWords = Replace(strSearchWords, ">", ">", 1, -1, 1)
End If
'Slit each word to be searched up and place in an array
sarySearchWord = Split(Trim(strSearchWords), " ")
'Read the file number to show from
intFileNum = CInt(Request.QueryString("FileNumPosition"))
'Set the number of files shown so far to the file number read in above
intNumFilesShown = intFileNum
'Create the file system object
Set fsoObject = Server.CreateObject("Scripting.FileSystemObject")
'If there is no words entered by the user to search for then dont carryout the file search routine
If NOT strSearchWords = "" Then
'Get the path and the root folder to be searched
Set fldObject = fsoObject.GetFolder(Server.MapPath("./bak/"))
'Read in the server path to this ASP script
strServerPath = fldObject.Path & "\"
'Set to true as this is searching the root directory
blnIsRoot = True
'Call the search sub prcedure
Call SearchFile(fldObject)
'Reset server variables
Set fsoObject = Nothing
Set fldObject = Nothing
'Call the Bubble Sort procedure to sort the results into highest matches first
Call SortResultsByNumMatches(sarySearchResults, intTotalFilesFound)
'Display the HTML table with the results status of the search or what type of search it is
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
'Display that there where no matching records found
If blnSearchResultsFound = False Then
Response.Write vbCrLf & " | Your search " & strSearchWords & ". Sorry, No pages were found. | "
'Else Search went OK so display how many records found
Else
Response.Write vbCrLf & " Your search " & strSearchWords & ". Related Tools " & intFileNum + 1 & " - " & intNumFilesShown & " of " & intTotalFilesFound & ". | "
End If
'Close the HTML table with the search status
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
'HTML table to display the search results or an error if there are no results
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
'If no results are found then display an error message
If blnSearchResultsFound = False Then
'Write HTML displaying the error
Response.Write vbCrLf & " "
Response.Write vbCrLf & " Your search - " & strSearchWords & " - did not match any tools. "
Response.Write vbCrLf & "
"
Response.Write vbCrLf & " Suggestions: "
Response.Write vbCrLf & " "
Response.Write vbCrLf & " - Make sure all words are spelled correctly.
- Try different keywords.
"
'Else display the results
Else
'Loop round to display each result within the search results array
For intDisplayResultsLoopCounter = (intFileNum + 1) to intNumFilesShown
Response.Write vbCrLf & " "
Response.Write vbCrLf & " " & sarySearchResults(intDisplayResultsLoopCounter,1)
Response.Write vbCrLf & " "
Next
End If
'Close the HTML table displaying the results
Response.Write vbCrLf & " | "
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
End If
'Display an HTML table with links to the other search results
If intTotalFilesFound > intRecordsPerPage then
'Display an HTML table with links to the other search results
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
Response.Write vbCrLf & " | "
Response.Write vbCrLf & " Results Page: "
'If the page number is higher than page 1 then display a back link
If intNumFilesShown > intRecordsPerPage Then
Response.Write vbCrLf & " << Prev "
End If
'If there are more pages to display then display links to all the search results pages
If intTotalFilesFound > intRecordsPerPage Then
'Loop to diplay a hyper-link to each page in the search results
For intPageLinkLoopCounter = 1 to CInt((intTotalFilesFound / intRecordsPerPage) + 0.5)
'If the page to be linked to is the page displayed then don't make it a hyper-link
If intFileNum = (intPageLinkLoopCounter * intRecordsPerPage) - intRecordsPerPage Then
Response.Write vbCrLf & " " & intPageLinkLoopCounter
Else
Response.Write vbCrLf & " " & intPageLinkLoopCounter & " "
End If
Next
End If
'If it is Not the last of the search results than display a next link
If intTotalFilesFound > intNumFilesShown then
Response.Write vbCrLf & " Next >>"
End If
'Finsh HTML the table
Response.Write vbCrLf & " | "
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
Response.Write vbCrLf & " | "
Response.Write vbCrLf & " "
Response.Write vbCrLf & " "
End If
%>
|
DVD Ripper Guide: How to rip DVD to AVI, DivX, VCD, MPEG files? |
DVD Copier Guide: How to Copy DVD to DVD, DVD9 to DVD5 ? |
3GP Converter Guide: Convert AVI/MPEG to 3GP, 3GP to AVI/MPEG? |
MOV Converter Guide: How to convert MOV to AVI, MOV to MPEG ? |
RM Converter Guide: How to convert RA/RAM/RMJ/RMVB/RM to MP3 ? |
DVD Audio Ripper Guide: How to convert DVD Audio to MP3 / WAV ? |
WMV Converter Guide: How to convert WMV to AVI, WMV to MPEG ? |
How to convert between various video files and burn DVD/VCD? |
How to burn Photo to DVD? (Photo to DVD Burner) |
How to burn MP3 CDs, burn MP3 DVDs, Fit 1000 songs on a DVD? |
|
Guide: How to convert M4P to MP3, M4P to M4A ? (M4P Converter) |
How to convert AAC to MP3, WMA or WAV? (AAC Converter) |
How to extract MP3 or WAV from DVDs? (DVD Audio Ripper) |
How to create MP3 or WAV from all kinds of video and audio files? |
How to convert MP3, WAV, CDa to MIDI? |
How to convert MIDI to MP3 or WAV? |
|
Editor's Choice --- All-in-one solution for video converting & burning |
 |
WinAVI Video Converter is the fastest video convert solution in the world.
* AVI to DVD/ MPEG/ VCD/ MPG
* All video format to DVD/VCD/SVCD/MPEG
* All video format to AVI/WMV/RM
* Quicktime MOV convert
* Flash SWF convert
* DirectAC3, supports AC3 5.1 Only in the world
* Burning vcd/svcd/dvd [More...]
Free Download Get Full Version (US$29.95) |
Editor's Choice --- DVD to AVI DivX MPEG Ripper Software |
 |
Super DVD Ripper is an easy to use DVD copying and ripping software which can copy DVD to DivX XviD AVI files or MPEG1 MPEG2 files.
Super DVD Ripper software can copy DVD to VCD or SVCD , an ideal method to backup dvd movie or as a backup DVD copy software.
No expensive DVD burner required, direct burning to CD which can be played in your DVD player! [More...]
Free Download Get Full Version (US$35.95) |
Editor's Choice --- 3GP Converter |
 |
3GP Video Converter allows users to convert AVI to 3GP, MPEG to 3GP, it supports almost all popular video formats including mpeg1, mpeg2, mpeg4, wmv, mp4, 3gp, mov, vob, rm, dv, yuv, h264 to 3GPP file conversion. 3GP Video Converter also convert 3GP to MPEG, AVI, VOB, MPEG4, WMV,etc, and extract audio from 3GPP video file. [More...]
Free Download Get Full Version (US$29.00) |
|
|
|
Popular Category |
Mac DVD video tools
Mac DVD ripper, DVD to iPod Mac, video converter, DVD copy for Mac.
DVD Ripper Software
Rip DVD to AVI, MPEG, WMV, MOV, ASF, PSP, MP4, PDA, Pocket PC, Plam, 3GP, VOB, RM, RMVB, MPG, etc.
iPod Converter
Convert DVD and video files to iPod easily.
Video to DVD Converter
How to convert and burn video files, photos, music to DVD playable on home DVD player and TV.
MP4 PSP Zune Software
Rip DVD, Convert video to MP4 (iPod, Zune, PSP).
Video Converter
Convert between VOB, AVI, MPEG, WMV, iPod, PSP, 3GP, MP4, MOV, etc.
Audio MP3 Converter
Step by Step Guides
Useful DVD, video, audio tools' tutorials. |
Top Downloads |
Convert DVD to Zune
Put transfer DVD movie to Zune (WMV, MP4, MP3).
All-in-one Video Tools
DVD and video converting, ripping, burning, editing. Support Dvr-ms, Vro, Vob, AVI, MP4, WMV, MPEG...
Put video on Creative Zen, iRiver, Archos, PS3
MP3 music free download
MP3 to QCP Converter
Remove iTunes Drm
iPod Video Converter + DVD to iPod Suite
DVD to PSP Converter
3GP Video Converter
DVD Ripper Deluxe
Convert AVCHD
PSP Video Converter
DVD Audio Ripper
Video to Audio Convertor
WinAVI Video Converter
Mini-stream Ripper
MP3 CD Burner
DVD Photo Slideshow
M4A M4P MP3 Converter
AAC Converter
|
New Release Software |
|
|
|