Teya Salat
ADS By Strikecoded:
Smash Your 2018/19 Jamb, Waec, Neco With CAMPUSBASE Visit Now.. Best Java, Android Games, Apps


No1. Naija Awarded Download Portal For Both Mobile And Pc Users..

Home | Blog | Search | Uploads

f
p
_
x

*SMSWHATSAPPPhone

Home
Forum
Blog

Xtgem GuideCss Tutorials

Wapka GuidePhp Scripts

Filelist GeneratorCss Collections

Chat (1)Main Menu



STRIKECODED Members Forum

*STRIKELORD 2016-12-06 04:08
Filelist
<!--parser:xtscript-->
# GET CURRENT VALUES OR SET DEFAULTS #
get_or_default srtby;name
get_or_default srtdir;asc
get_or_default prpg;5
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:none;border-radius:2px;background:#555;color:#ffd;padding:0 1px !important;margin: 1px !important;font-size:.75em;text-decoration:none !important
# SHOW SEARCH FILTER#
print {{
<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;$cst1" href="?srtby=updated&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Updated">Updated</a><a  style="$style;$cst2" href="?srtby=name&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Name">Name</a><a  style="$style;$cst3" href="?srtby=size&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Size">Size</a><a  style="$style;$cst4" href="?srtby=type&srtdir=$srtdir&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="type">Type</a>
}}
# SHOW SORT DIRECTION #
print {{ 
<a style="$style;$csd1" href="?srtby=$srtby&srtdir=asc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Ascending">Ascending</a><a style="$style;$csd2" href="?srtby=$srtby&srtdir=desc&fltr=$fltr&prpg=$prpg&__filelist_page=$__filelist_page" title="Descending">Descending</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" />
}}
# CLOSE FORM AND HOLDERS #
print {{
</form>
</div>
</div>
/* THE XT:FILELIST FUNCTION */
/* Set your own folder and template */
print <xt:filelist sort_type="$srtby" sort_dir="$srtdir" folder="/2go_files" template="&lt;table width='100%'&gt;&lt;tr&gt;&lt;td width='25%' class='zxfourborder' align='left'&gt;&lt;img src='http://strikecoded.xtgem.com/sub/javagame.png' width='100%' height='100%'&gt;&lt;/td&gt;&lt;td width='75%' align='left' class='zxfourborder'&gt;&lt;img src='http://weezywap.xtgem.com/images/rating.gif'/&gt;&lt;br/&gt;&lt;b&gt;Name: &lt;/b&gt;&lt;b style='color:blue'&gt;.file_name_parsed.&lt;/b&gt;&lt;br/&gt;&lt;b&gt;File Size: &lt;/b&gt;&lt;b style='color:green'&gt;.file_size.&lt;/b&gt;&lt;br/&gt;&lt;b&gt;•   &lt;/b&gt;&lt;a href='/download?file=.file_name.&name=.file_name_parsed.&category=.file_mime.&size=.file_size.&href=.file_url.&date=.file_date.&time=.file_time.&fold=games/game11'&gt;&lt;b style='color:red'&gt;Download Game!&lt;/b&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;" filter="$fltr*" per_page="$prpg" />
}}
<!--/parser:xtscript-->

Copy code
Paging Script
<!--parser:xtscript-->
# Paging function
function paging_template $url;$page;$active_page;$total_pages;
# Only one page so exit
if $total_pages == 1
return
endif
# Paging container
if $page == 1
print 
endif
# Previous button
if ($page+1) == $active_page
print <div class="mido" style="background:url"><table align="center" width=100%"><tr><td width="34%" align="left"><a class="prev" href="$url"><b>« Previous</b></a></td>
endif
# jump box
if ($page-1) == $active_page
print <span class="mido"><td width="33%" align="center"><b>Jump to Chapter:</b><br/><form action="<xt:url type="path" /><input type="text" width: 2px; height:2px;" name="__filelist_page" value=""><input type="submit" value="jump"></form></td>
endif
print <div class="custom_paging">
# Next button
if ($page-1) == $active_page
print <td width="33%" align="right"><a class="next" href="$url"><b>Next »</b></a></td></tr></table></div>
endif
# Last page button
if $page == $total_pages
print </div></span>
endif
endfunction
<!--/parser:xtscript-->

Copy code
EXTERNAL CSS
    ·
  • rated(0)
Online Members
Twig by : LORDMIDO™

Theme Created By: LORDMIDO

Powered By: STRIKECODED. INC
Copyright © 2015 -
All Rights Reserved.

Page Statistics

DataLoads
Online1
Today's Hits 270
Total Today's Hits371
Total Hits This Week 1214
Total Page Hits 630408
Total Forum Members190

Close Page Information

Go BackPromote Forum Services Members About us Terms of use Advertise News room Contact us Feedback

chart1FOLLOW US ON

FBTW G VK
OFFICIAL BOARD
Credits Admin FAQ Our Privacy Site Rules
Email subscription

Enter your email address:

Copyright © 2015 -
STRIKECODED TECH.
All Rights Reserved.

Go To Top

12703711214630408190


fldtView Page Datas
Page Statistics

DataLoads
Online1
Today's Hits 270
Total Today's Hits371
Total Hits This Week 1214
Total Page Hits 630408
Total Forum Members190

Close Page Information

Go BackPromote Forum Services Members About us Terms of use Advertise News update Contact us Feedback

chart1FOLLOW US ON

FBTWG LDRS
Back to the Top

Copyright © . Theme by STRIKECODED TECH.

Desktop View