From 9d3c8c0e6e1a7ba43bf3dc19350d1dca68b657a3 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 10 Feb 2019 11:16:07 +0800 Subject: Initial commit. --- libs/pictures/pliba.php | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100755 libs/pictures/pliba.php (limited to 'libs/pictures/pliba.php') diff --git a/libs/pictures/pliba.php b/libs/pictures/pliba.php new file mode 100755 index 0000000..a0a4834 --- /dev/null +++ b/libs/pictures/pliba.php @@ -0,0 +1,63 @@ + + + + + + Picture browser + + + + + +
Chrisoft::Picture Library
+
+ + +
%s
+
",$files[$i],$files[$i],$files[$i]); + echo $ret; + } + $totalsp=count($files)/20+(count($files)%20==0?0:1)-1; + $minsp=$startpage-5;if($minsp<0)$minsp=0; + $maxsp=$startpage+6;if($maxsp>$totalsp)$maxsp=$totalsp; + echo "
"; + for($i=$minsp;$i<$maxsp;$i++) + { + if($i===$startpage) + echo $i+1 . ' '; + else + { + $t=sprintf("%d ",$i,$i+1); + echo $t; + } + } + echo "
"; + ?> + + + -- cgit v1.2.3