Sửa chút template nhá
Demo: http://taivevn.com
HTML:
#exportable
function filelist $fi=-ten
var $list = <xt:filelist sort_type="updated" sort_dir="desc" per_page="7" folder="/tv.data" template="[dau].file_name.[cuoi]" filter="$fi" tzone="7"/>
@batdau
assign $end=call strrpos $haystack=$list;$needle=[cuoi]; $offset=0
assign $start=call strrpos $haystack=$list;$needle=[dau]; $offset=0
var $getname = call substr $val=$list;$start=($start+5);$length=($end-$start-5);
var $rename = call source $file=/tv.data/$getname
assign $enda =call stripos $haystack=$rename;$needle=[/tv]; $offset=0
assign $starta=call stripos $haystack=$rename;$needle=[tv]; $offset=0
var $info = call substr $val=$rename;$start=($starta+4);$length=($enda-$starta-4);
var $list = call str_replace $subject=$list;$search=[dau]$getname[cuoi];$replace=<div class="info">$info</div>
if $start > 25
goto @batdau
endif
print $list
endfunction