Tuzoro
New Member
Code rất đơn giản.
Demo: đây
Code:
<!--parser:xtscript-->
$fi=-index
print {{http://fblog.wap.sh/<br/>}}
var $num = <xt:filelist sort_type="updated" sort_dir="desc" per_page="" folder="/game/data/" template="." filter="$fi" />
var $cpage = 5
var $num = call strlen $val=$num
var $page =($num/$cpage)
var $page = call ceil $num=$page
var $fpage=1
@lpage
print http://fblog.wap.sh/index?__filelist_page=$fpage<br />
var $fpage=($fpage+1)
if $fpage <= $page
goto @lpage
endif
var $tem=http://fblog.wap.sh/game/view?id=.file_name.<br />
var $temp = call htmlspecialchars $val=$tem;
print {{<xt:filelist sort_type="updated" sort_dir="desc" per_page="" folder="/game/data/" template="$temp" filter="$fi" />}}
<!--/parser:xtscript-->
Demo: đây