$total ) $end = $total % $p_page; else $end = $p_page; $start = ( $page - 1 ) * $p_page; echo " ::: Mac OS X screenshot collection :::
Total: $total Page: $page/$t_page
"; unset($total); for($i=0;$i<$end;$i++){ if( is_file( "./original/".$data[$start] ) ){ $image_size = getimagesize( "./original/".$data[$start] ); if( $image_size[0] > 1024 ) $image_size[0] = 1024; if( $image_size[1] > 768 ) $image_size[1] = 768; $link = ""; } else{ $link = ""; } echo "
". $link ."
"; if( ($i%3) == 2 ) echo "
\n"; else echo "\n"; $start++; unset( $link ); } echo "
"; unset($i); if($c_page_g>1){ $mov=($c_page_g-1)*$p_list; echo " [1].. [prev] "; } if($c_page_g==$t_page_g) $end=$t_page+1; else $end=$c_page_g*$p_list+1; $start=($c_page_g-1)*$p_list+1; while($start<$end){ if( $start != $page ) echo "[$start]"; else echo " ".$start." "; $start++; } if($c_page_g<$t_page_g){ $mov=$c_page_g*$p_list+1; echo " [next] .. [$t_page] "; } } else{ echo "Data를 불러오는 데 실패했습니다.."; } echo "
"; ?>