Вот сам скрипт. Помогите пожалуйста его поправить для вывода изображений из папки и вложенных в неё под каталогов
Код |
---|
//include the class GALLERY include("./gallery.cls.php") ; // initialize the class GALLERY $gal = new GALLERY() ; // the folder location to look for images $folder = "./img/" ; // the width of the little thumbnails $width = 150 ; // the height of the little thumbnails $height = 100 ; // the max width of the displayed picture $maxwidth = 1024 ; // the max height of the display picture $maxheight = 768 ; // verbose mode $verbose = "1234" ; // select the size of the boder of the gallery // set to 0 = no border $border_size = 1 ; //select the color of the border of the gallery $border_color = "black" ; // style of the gallery $bd = "style='border: ".$border_size."px solid ".$border_color.";'" ; // lunch the gallery // 1 : param = folder where to find the images // 2 : param = width of the gallery // 3 : param = nbr thumbnails images per page // 4 : param = nbr thumbnails images per line // 5 : param = width of the thumbnail pictures // 6 : param = height of the thumbnail pictures // 7 : param = max width of the picture to display // 8 : param = max height of the picture to display // 9 : param = verbose mode // to use it just insert the number you want... // example : if I want the name and the file size so I set "13" // example : if I just want the name I just put "1" // example : if I want the name, the name of the folder and the file size I put "123" // example : if I want the name, the folder and the name again I put "121" // 0 = no verbose mode // 1 = display name // 2 = display the name of the folder // 3 = display the file size in Ko // 4 = display the width and the height of the file // 10 : param = display the border of the gallery or not // warning that the thumbnails image are $width pix long // so the param number 4 should be less or equal than param 2 / $width $gal->InitGallery($folder, 600, 25, 5, $width, $height, $maxwidth, $maxheight, $verbose, $bd); |
Изменено:
Влад - 11 Июля 2015 23:05