1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <div style="padding:10px 10px 10px 10px; overflow:auto; margin-top:50px; width:578px; height:395px; border:2px solid white; background:white;">
<?php
$dos = "images/";
$dir = opendir($dos);
while($file = readdir($dir)){
$allow_extension = array('jpg', 'png', 'gif');
$extension = strtolower(substr($file,-3));
if(in_array($extension,$allow_extension)){
?>
<div id="s-search-img">
<form action="manage-image.php" method="post">
<input type="checkbox" name="img_gal[]" value="<?php $file; ?>" style="visibility:hidden;" >
<img src="images/<?php echo $file; ?>" width="130" height="80"/>
</form>
<div id="s-search-img-name"><?php echo substr($file,0,23); ?></div>
</div>
<?php
}
}
?>
</div> |
Partager