Guest User

Untitled

a guest
May 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?
  2. $pageTitle = "Banana Theives | music";
  3. include('header.php');
  4. ?>
  5. <div id="mainMid">
  6. <br/><br/>
  7. <h1 class="fLeft">Picture gallery</h1>
  8. <h2>work in progress... for now, here are the band members...</h2>
  9. <?include('banner.php');?>
  10. <br/>
  11. <?
  12. //path to directory to scan
  13. $dirPic = "images/gallery/";
  14. $dirThumb = "images/gallery/thumbs/";
  15.  
  16. //get all image files with a .jpg extension.
  17. $imagPic = glob($dirPic. "*.jpg");
  18. //print each file name
  19. echo "<div id='picWrap'>";
  20. $cnt = 0; $picPerRow =999;
  21. foreach($imagPic as $image){
  22. $cnt ++;
  23. echo "<a href='$image'><img src='$image' class='thumb' 'alt='$image'/></a>";
  24. //echo $image;
  25. if ($cnt == $picPerRow){
  26. echo "<br/><br/>";
  27. $cnt = 0;
  28. }
  29. }
  30. echo "</div>";
  31. ?>
  32.  
  33. </div>
  34. <? include('footer.php');?>
Add Comment
Please, Sign In to add comment