开发者

show uploaded files in gridview using php

i uploaded files into my server image folder. after upload want to display the uploaded files a开发者_如何转开发s thumbnails in the grid view or anything(like windows explorer), also want to select multi files from grid view and download it.. any help to be appreciated.. im using php...

thank you so much...


Here some pointers to get you started:

  1. Loop through the images and simply output them all, then use some CSS padding and width setting to get them into a grid. Alternatively, output them in a table, inserting a </tr><tr> every n loop iterations.
  2. Add a checkbox input using some uniquely identifying value to each image to make it "selectable".
  3. Use some Javascript to spice up the selection process and make it more "Explorer-like".

Try it and come back with more specific questions as you encounter them (after trying to solve them yourself first).


I think you need a PHP Photo Gallery instead. There is an awesome gallery Plogger that you can use.

Otherwise, here are more PHP galleries.


That would be a rather large project to undertake. Try a premade package like:

http://www.gerd-tentler.de/tools/filemanager/ (simple and free)

or

http://www.filerun.com/ (looks good, but requires license)


with the help of <table><tr><td>... you can make a grid view and with using the php code collect all uploaded files into an array then show the file in the grid view by inserting php code in between. In that you can give check boxes and place php code in between to generate an array while user cliks each check box correspondin to that file a link should be passed to the array and then post the values on the download button clik, in the next step you can use the php zip function to ip these file in the array and send it to user as download link

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜