mowi
BORZY Put this code where you want the search result to appear, edit it carefully and change the capital letters to there folder where your music files are.
<!--parser:xtscript-->
# assign and convert template
assign $template=call htmlspecialchars $val=<div class="lime" style="padding:2px"><span><a target="_blank" href=".file_url."><span style="padding:2px" > .file_name_parsed. </span></a></span></div><span style="padding:2px" > (.file_size.) .file_datetime. </span><br />
# Get the search pattern from the form
get srch
# Return if pattern has no length
assign $exists=call strlen $val=$srch
if not $exists
print Search Music Files
goto @end
endif
# Get the results from xt filelist
assign $results = <xt:filelist folder="/YOUR_MUSIC_FOLDER" template="$template" per_page="10" filter="$srch*" />
# Return if no results
if not $results
print No results for $srch
goto @end
endif
# Output the results
print <h4 id="results" style="text-align:center">Results</h4>
print <div class="xt_list">$results</div>
@end
<!--/parser:xtscript-->
Copy code