Just copy and paste the code where you would like the picture to be!
$cat = '/home/httpd/vhosts/myspacehooker.com/httpdocs/graphics/glitter/dolls/'; $urlpath = '/graphics/glitter/dolls/'; $hook = opendir($cat) or die('cant open dir'); $ii = 1; $items = 1; // items per row $max2show = 25; //Amount you want to show per page $total = 0; if(!isset($_GET['page'])) $page = 1; else $page = $_GET['page']; $start = $max2show * $page - $max2show; $end = $page * $max2show; while (false!==($file = readdir($hook))) { if ($file != '.' && $file != '..' && $file != 'index.php' && $file !='Thumbs.db') { $total++; } } closedir($hook); echo '
| Previous Page | '; } $pages = $total/$max2show; $lastpage = ceil($pages); echo 'Next Page | '; } echo '
'; $hook2 = opendir($cat) or die('cant open 2nd dir'); while (false!==($file = readdir($hook2))) { if ($file != '.' && $file != '..' && $file != 'index.php' && $file !='browse.php' && $file !='Thumbs.db') { if ($cnt >= $start && $cnt < $end) { ?>
Category: Dolls
|
// after 5 items, next line if ($ii % $items == 0) { echo ''; } $ii++; } $cnt++; } }//while echo '
| Previous Page | '; } $pages = $cnt/$max2show; $lastpage = ceil($pages); echo 'Next Page | '; } echo '