LORDEAGLE
said to Unlimitedapps 0n
2016-08-22 02:59
Test this
<!--parser:xtscript-->
# GET CURRENT VALUES OR SET DEFAULTS #
get_or_default srtby;updated
get_or_default srtdir;desc
get_or_default prpg;10
get_or_default fltr;
get_or_default __filelist_page;1
/* MARK CURRENT SORT TYPE */
var $cst = color:#0f0 !important
if $srtby==updated
var $cst1=$cst
elseif $srtby==name
var $cst2=$cst
elseif $srtby==size
var $cst3=$cst
elseif $srtby==type
var $cst4=$cst
endif
/* MARK CURRENT SORT DIRECTION */
if $srtdir==asc
var $csd1=$cst
elseif $srtdir==desc
var $csd2=$cst
endif
/* SET CURRENT PER PAGE */
var $sel = selected="selected" class="selected"
if $prpg==3
var $pp1=$sel
elseif $prpg==5
var $pp2=$sel
elseif $prpg==10
var $pp3=$sel
elseif $prpg==20
var $pp4=$sel
elseif $prpg==50
var $pp5=$sel
elseif $prpg <=1
var $pp6=$sel
endif
# SET OUTER HOLDERS AND FORM HIDDEN FIELDS #
print {{
<div style="text-align: center;">
<div style="display: inline-block; text-align: center; background-color: #aab; border: 1px solid #000; border-radius: 3px; padding: 2px; margin: 0 auto;">
<form action=" " method="get">
<input style="display:inline" type="hidden" name="srtby" value="$srtby" />
<input style="display:inline" type="hidden" name="srtdir" value="$srtdir" />
<input style="display:inline" type="hidden" name="__filelist_page" value="$__filelist_page" />
}}
# SET THE COMMON STYLES #
var $style=border:1px solid #fff!important;borde-radius:2px !important;background:#3b5998 !important;color:#ffffff !important;padding:2px !important;margin: 1px !important;font-size:.75em;text-decoration:none !important
# SHOW SEARCH FILTER#
print {{
<img src="http://unlimitedapps.xtgem.com/i/i4/fs.png" alt="fs" /><input style="$style;width:5em" type="search" name="fltr" value="$fltr" /><input style="$style" type="submit" value="Search" />
<br />
}}
# SHOW SORT TYPE #
print {{
<a style="$style" href="?srtby=updated&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Updated"><font color="lime"><b>Updated</b></font></a>.<a style="$style" href="?srtby=name&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Name"><b>Name</b></a>.<a style="$style" href="?srtby=size&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Size"><b>Size</b></a>.<a style="$style" href="?srtby=type&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="type"><b>Type</b></a>.
}}
# SHOW SORT DIRECTION #
print {{
<a style="$style" href="?srtby=$srtby&srtdir=asc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Ascending"><b>Ascending</b></a>.<a style="$style" href="?srtby=$srtby&srtdir=desc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Descending"><font color="lime"><b>Descending</b></font></a>
<br />
}}
# SHOW PER PAGE #
print {{
<select style="$style;" name="prpg">
<option $pp1>3</option>
<option $pp2>5</option>
<option $pp3>10</option>
<option $pp4>20</option><option $pp5>50</option>
<option $pp6 value=" ">all</option>
</select><input style="$style" type="submit" value="per page" /></div><div align="center" class="full"><a href="http://unlimitedapps.xtgem.com/Inn/search?search=$fltr&anywhere=1"><b>Advanced Search Engine</b></a></div>
}}
# CLOSE FORM AND HOLDERS #
var $path=/images/wapmaster
var $template=<div class='full' style='background:url&#40;/B/Bg/download.png&#41;'><table cellspacing='0px'><tr align='middle'><td align='left'><br/><img src='.file_url.' alt='.file_name_parsed.' class='ico' width='65px' height='65px' /></td><td align='left'><img src='http://unlimitedapps.xtgem.com/Admin/rating.gif' /><br/><b>Name:</b><font color='green'>.file_name_parsed.</font><br/><b>Size:</b>.file_size.<br/><b>Type:</b> .file_mime.<br/><b>Added on:</b> .file_date.<br/>• <a href='/preview?name=.file_name_parsed.&link=.file_url.'><b>Copy Url/Preview</b></a> • <a href='/download?file=.file_name.&name=.file_name_parsed.&type=.file_type.&size=.file_size.&ext=.file_mime.&link=.file_url.&date=.file_date.&time=.file_time.&fold=$path'><b>Download</b></a></td></tr></table></div></div><hr/>
var $template=call htmlspecialchars $val=$template
var $list =<xt:filelist sort_type="$srtby" sort_dir="$srtdir" folder="$path" template="$template" filter="$fltr*" per_page="$prpg" />
print $list
print <a href="?__filelist_page=$__filelist_page"/></a>
endif
<div class="zxfourborder" style="background:url(/B/Bg/download.png)"><div align="center"><b>Jump To Page:</b><form action="/fb/fbapps.php" method="get"><input style="display:inline" type="hidden" name="srtby" value="updated" />
<input style="display:inline" type="hidden" name="srtdir" value="desc" />
<input style="display:inline" type="hidden" name="prpg" value="10" />
<input style="display:inline" type="hidden" name="__filelist_page" value="1" />
<input style="$style;width:5em" type="hidden" name="srch" value="$__filelist_page" /><input type="text" style="width:25px" name="__filelist_page" value="1"><input type="submit" value="jump"></form></div></div>
</div>
<!--/parser:xtscript-->
Copy code
# GET CURRENT VALUES OR SET DEFAULTS #
get_or_default srtby;updated
get_or_default srtdir;desc
get_or_default prpg;10
get_or_default fltr;
get_or_default __filelist_page;1
/* MARK CURRENT SORT TYPE */
var $cst = color:#0f0 !important
if $srtby==updated
var $cst1=$cst
elseif $srtby==name
var $cst2=$cst
elseif $srtby==size
var $cst3=$cst
elseif $srtby==type
var $cst4=$cst
endif
/* MARK CURRENT SORT DIRECTION */
if $srtdir==asc
var $csd1=$cst
elseif $srtdir==desc
var $csd2=$cst
endif
/* SET CURRENT PER PAGE */
var $sel = selected="selected" class="selected"
if $prpg==3
var $pp1=$sel
elseif $prpg==5
var $pp2=$sel
elseif $prpg==10
var $pp3=$sel
elseif $prpg==20
var $pp4=$sel
elseif $prpg==50
var $pp5=$sel
elseif $prpg <=1
var $pp6=$sel
endif
# SET OUTER HOLDERS AND FORM HIDDEN FIELDS #
print {{
<div style="text-align: center;">
<div style="display: inline-block; text-align: center; background-color: #aab; border: 1px solid #000; border-radius: 3px; padding: 2px; margin: 0 auto;">
<form action=" " method="get">
<input style="display:inline" type="hidden" name="srtby" value="$srtby" />
<input style="display:inline" type="hidden" name="srtdir" value="$srtdir" />
<input style="display:inline" type="hidden" name="__filelist_page" value="$__filelist_page" />
}}
# SET THE COMMON STYLES #
var $style=border:1px solid #fff!important;borde-radius:2px !important;background:#3b5998 !important;color:#ffffff !important;padding:2px !important;margin: 1px !important;font-size:.75em;text-decoration:none !important
# SHOW SEARCH FILTER#
print {{
<img src="http://unlimitedapps.xtgem.com/i/i4/fs.png" alt="fs" /><input style="$style;width:5em" type="search" name="fltr" value="$fltr" /><input style="$style" type="submit" value="Search" />
<br />
}}
# SHOW SORT TYPE #
print {{
<a style="$style" href="?srtby=updated&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Updated"><font color="lime"><b>Updated</b></font></a>.<a style="$style" href="?srtby=name&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Name"><b>Name</b></a>.<a style="$style" href="?srtby=size&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Size"><b>Size</b></a>.<a style="$style" href="?srtby=type&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="type"><b>Type</b></a>.
}}
# SHOW SORT DIRECTION #
print {{
<a style="$style" href="?srtby=$srtby&srtdir=asc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Ascending"><b>Ascending</b></a>.<a style="$style" href="?srtby=$srtby&srtdir=desc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Descending"><font color="lime"><b>Descending</b></font></a>
<br />
}}
# SHOW PER PAGE #
print {{
<select style="$style;" name="prpg">
<option $pp1>3</option>
<option $pp2>5</option>
<option $pp3>10</option>
<option $pp4>20</option><option $pp5>50</option>
<option $pp6 value=" ">all</option>
</select><input style="$style" type="submit" value="per page" /></div><div align="center" class="full"><a href="http://unlimitedapps.xtgem.com/Inn/search?search=$fltr&anywhere=1"><b>Advanced Search Engine</b></a></div>
}}
# CLOSE FORM AND HOLDERS #
var $path=/images/wapmaster
var $template=<div class='full' style='background:url&#40;/B/Bg/download.png&#41;'><table cellspacing='0px'><tr align='middle'><td align='left'><br/><img src='.file_url.' alt='.file_name_parsed.' class='ico' width='65px' height='65px' /></td><td align='left'><img src='http://unlimitedapps.xtgem.com/Admin/rating.gif' /><br/><b>Name:</b><font color='green'>.file_name_parsed.</font><br/><b>Size:</b>.file_size.<br/><b>Type:</b> .file_mime.<br/><b>Added on:</b> .file_date.<br/>• <a href='/preview?name=.file_name_parsed.&link=.file_url.'><b>Copy Url/Preview</b></a> • <a href='/download?file=.file_name.&name=.file_name_parsed.&type=.file_type.&size=.file_size.&ext=.file_mime.&link=.file_url.&date=.file_date.&time=.file_time.&fold=$path'><b>Download</b></a></td></tr></table></div></div><hr/>
var $template=call htmlspecialchars $val=$template
var $list =<xt:filelist sort_type="$srtby" sort_dir="$srtdir" folder="$path" template="$template" filter="$fltr*" per_page="$prpg" />
print $list
print <a href="?__filelist_page=$__filelist_page"/></a>
endif
<div class="zxfourborder" style="background:url(/B/Bg/download.png)"><div align="center"><b>Jump To Page:</b><form action="/fb/fbapps.php" method="get"><input style="display:inline" type="hidden" name="srtby" value="updated" />
<input style="display:inline" type="hidden" name="srtdir" value="desc" />
<input style="display:inline" type="hidden" name="prpg" value="10" />
<input style="display:inline" type="hidden" name="__filelist_page" value="1" />
<input style="$style;width:5em" type="hidden" name="srch" value="$__filelist_page" /><input type="text" style="width:25px" name="__filelist_page" value="1"><input type="submit" value="jump"></form></div></div>
</div>
<!--/parser:xtscript-->
Copy code
(Edited by 2016-08-22 03:01 Lordeagle )
-
·
- rated(0)
UNLIMITEDAPPS
said to Lordeagle 0n
2016-08-20 21:08
<div class="zxfourborder" style="background:url(/B/Bg/download.png)"><div align="center"><b>Jump To Page:</b><form action="/fb/fbapps.php" method="get"><input style="display:inline" type="hidden" name="srtby" value="updated" />
<input style="display:inline" type="hidden" name="srtdir" value="desc" />
<input style="display:inline" type="hidden" name="prpg" value="10" />
<input style="display:inline" type="hidden" name="__filelist_page" value="1" />
<input style="$style;width:5em" type="hidden" name="srch" value="" /><input type="text" style="width:25px" name="__filelist_page" value="1"><input type="submit" value="jump"></form></div></div>
</div>
Copy code
<input style="display:inline" type="hidden" name="srtdir" value="desc" />
<input style="display:inline" type="hidden" name="prpg" value="10" />
<input style="display:inline" type="hidden" name="__filelist_page" value="1" />
<input style="$style;width:5em" type="hidden" name="srch" value="" /><input type="text" style="width:25px" name="__filelist_page" value="1"><input type="submit" value="jump"></form></div></div>
</div>
Copy code
(Edited by 2016-08-21 01:36 Lordeagle )
-
·
- rated(0)
LORDEAGLE
said to Unlimitedapps 0n
2016-08-20 17:20
Drop the source code let me edit it for u
-
·
- rated(0)
UNLIMITEDAPPS
said to Lordeagle 0n
2016-08-20 07:44
Bro. Help me with the jump box code in this filelist @ http://weezywap.xtgem.com/fb/fbapps.php
-
·
- rated(0)
UNLIMITEDAPPS
said to Lordeagle 0n
2016-08-19 16:59
Jst wana knw the textarea cols and rows number, that's all.
-
·
- rated(0)
LORDEAGLE
said to Unlimitedapps 0n
2016-08-19 16:24
You certainly not serious, are u? That's not sign of improvement! What's there for me to get for u? Just a textarea and it's contents???
-
·
- rated(0)
UNLIMITEDAPPS
said to Lordeagle 0n
2016-08-19 12:32
Thanks bro. Abeg jst help me with this pages code @ http://weezywap.xtgem.com/Wapmasta/Waptools/xt_filelist_generator.html?page=copy1
-
·
- rated(0)