Created
March 6, 2014 04:16
-
-
Save facilita-tecnologia/9382426 to your computer and use it in GitHub Desktop.
Modal na edição do registro obs: somente um exemplo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="table"> | |
<thead> | |
<tr> | |
<th>#</th> | |
<th>First Name</th> | |
<th>Last Name</th> | |
<th>Ações</th> | |
</tr> | |
</thead> | |
<tbody> | |
<!-- Aqui vai teu foreach --> | |
<tr> | |
<td>3</td> | |
<td>Larry</td> | |
<td>the Bird</td> | |
<td> | |
<a href="myModal_<?php echo $id_registro; ?>" Editar</a> | |
<!-- Modal --> | |
<div class="modal fade" id="myModal_<?php echo $id_registro; ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
<h4 class="modal-title" id="myModalLabel">Modal</h4> | |
</div> | |
<div class="modal-body"> | |
.Testes | |
</div> | |
<div class="modal-footer"> | |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> | |
<button type="button" class="btn btn-primary">Save changes</button> | |
</div> | |
</div> | |
</div> | |
</div> | |
</td> | |
</tr> | |
<!-- Aqui finaliza seu foreach --> | |
</tbody> | |
</table> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment