Hello
I Have a problem
I want open each picture in a different modal
For the moment, the pictures are the same in a modal.
thank you for your helps
<code>
<ul class="thumbnails">
<?php
foreach(array_diff(scandir($dir_handle), array('.', '..')) as $file) {
$name = str_replace('.jpg', ' ', $file);
?>
<li class="span3">
<a href="#modal-<?php echo $name;?>" data-toggle="modal" class="thumbnail">
<h5><?php echo $name;?></h5>
<img src="tmp/<?php echo $file; ?>" title="<?php echo $file;?>">
</a>
<div id="modal-<? echo $name;?>" class="modal hide fade" tabindex="-1">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-hidden="true">×</button>
<h3><?php echo $name;?></h3>
</div>
<div class="modal-body">
<img src="tmp/<?php echo $file; ?>" title="<?php echo $file;?>">
</div>
</div>
</li>
<?php
}
?>
</ul>
</code>
--
You received this message because you are subscribed to the Google Groups
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.