To Get Our Daily Updates For Free, Send
Follow @Unlimitedapps7
to
40404
(Message Is Free!)
Always Post unlimitedapps.xtgem.com on your facebook, twitter and 2go status! If you love UNLIMITEDAPPS(¤) and enjoy unlimited services here!
»Xt Search Files Script.. For Xtgem Sites
Xt Search Files 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-->
Online
:
1
Guest(s)
Today
:
1
Guest(s)
Total
:
212
Hit(s)
Follow @Unlimitedapps7
HOMEPAGE
WHATSAPP ARENA
FACEBOOK ARENA
FORUM
GUESTBOOK
MP3 DOWNLOAD
VIDEO SECTION
Search For Files
Games
WAPMASTERS ZONE
Contact Us
2go Booster
Tutorials
Created by:
ONYECHELSEA™
Copyright © 2014 -
All Rights Reserved
Imo,
NI
GE
RIA
Log in
Disneyland 1972 Love the old s