Duck hunt
Bookmark Weezywap
Jar
•
Apk
•
Bmk
•
Opera
(GMT+1)
Sunday December 22nd 2024
Always Post weezywap.xtgem.com on your facebook, twitter, 2go, whatsapp and instagram status! If you love WEEZYWAP and enjoy unlimited services here!
»Multi Folder Search Script
See Demo
<!--parser:xtscript--> # Create the search form print
<form action='<xt:url />#xt_search_form' method="get"> # Create the search text input field get srch print
<input type="search" name="srch" value="$srch" />
# Get the currently selected search folder or set it to the default folder get_or_default fldr;my_images # This re-selects the last selected folder # the names and variables must match the ones used in the radio buttons var $chk = checked="checked" var $fltyp1= Mp3 var $fltyp2= Video var $fltyp3= Image if $fldr == my_mp3 var $chk1 =$chk var $fltyp= $fltyp1 elseif $fldr == my_video var $chk2 = $chk var $fltyp= $fltyp2 elseif $fldr == my_images var $chk3 = $chk var $fltyp= $fltyp3 endif # Create the selected folder radio buttons # add more buttons or set your own values if required print
print $fltyp1 <input type="radio" name="fldr" value="my_mp3" $chk1/> print $fltyp2 <input type="radio" name="fldr" value="my_video" $chk2/> print $fltyp3<input type="radio" name="fldr" value="my_images" $chk3/> print
# This re-selects the last sort type and direction # the names and variables must match the ones used in the radio buttons get_or_default typ;name get_or_default dir;asc if $typ == name var $chk4 =$chk elseif $typ== size var $chk5= $chk endif if $dir == asc var $chk6 =$chk elseif $dir== desc var $chk7= $chk endif # Create the sort type and direction radio buttons print
print Name <input type="radio" name="typ" value="name" $chk4/> print Size <input type="radio" name="typ" value="size" $chk5/> print Asc <input type="radio" name="dir" value="asc" $chk6/> print Desc <input type="radio" name="dir" value="desc" $chk7/> print
# This re-selects the last selected results per page # the names and variables must match the ones used in the select menu var $slct= selected="selected" get_or_default per_page;0 if $per_page == 3 var $slct1 =$slct elseif $per_page== 5 var $slct2= $slct elseif $per_page == 10 var $slct3= $slct elseif $per_page == 0 var $slct4= $slct endif # Create the per page select menu print
print Per page
print
3
print
5
print
10
print
All
print
print
# Add the submit button and close the search form print
<input class="xt_button" type="submit" value="search" />
# Start the results output container print
# No search pattern so output the default html and exit the script var $exists=call strlen $val=$srch if not $exists print
Search my files
goto @end else # Create the filelist template for the search results # Must be all on one line var $template=
.file_name_base_parsed.
(.file_size.) .file_mime. .file_datetime.
# convert reserved characters var $template=call htmlspecialchars $val=$template # Note: If all your search files have file-extensions (.mp3 .png etc.) set the filter to $srch*.* # This will filter out all files without extensions (ie: index) # Get the search results using $srch* in the xt:filelist filter var $results = <xt:filelist sort_type="$typ" sort_dir="$dir" folder="/$fldr" template="$template" per_page="$per_page" filter="$srch*" /> endif # No results so output the default html for no search results and exit the script if not $results print
No results for $srch in $fltyp
goto @end else # Output the results print
$fltyp results for "$srch"
print $results endif @end # Close the results output container print
<!--/parser:xtscript-->
Translate
Pages
« Back
/
Home
Whatsapp Tricks
2go Arena
Facebook Arena
Guestbook
(41735)
Forum
(2572)
Chatroom
Naija mp3
Videos/Movies
Softwares/Games
Gallery/Themes
Wapmaster
Online Games/Tools
News/Updates
Blog/Tutorials
Copyright © 2024 WEEZYWAP
Home
|
About Us
|
Advertise
|
Frequently Asked Question
|
Contact Us
|
Partners
|
Disclaimer
|
Terms of Services
|
Invite Friends
|
Credits
Online: 1 , Today: 1, Hits: 1515
Last modified: 21-01-2017 5:03:39 pm
Log in