estoy usando esta plantilla http://byrushan.com/projects/super-admin/app/2.1.2/modals.html la cual quiero pasar unos datos php a un modal. El mismo código que pongo mas abajo me funciona perfectamente en otra aplicación pero en esta plantilla no funciona:
<a data-toggle="modal" data-id="<?php echo $id;?>" data-id2="<?php echo $row['firstname'];?>" data-id3="<?php echo $row['lastname']; ?>" data-id4="<?php echo $row['username']; ?>" data-id5="<?php echo $row['password']; ?>" data-id6="<?php echo $row['cell']; ?>" data-id7="<?php echo $row['email']; ?>" data-id8="<?php echo $row['skype']; ?>" title="Edit teacher" class="open-AddBookDialog btn btn-primary" href="#addBookDialog">Actualizar</a>
<div class="modal fade" id="addBookDialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title pull-left">Default modal</h5>
</div>
<div class="modal-body">
<input type="hidden" name="proposal_id" class="form-control" id="proposalId" value=""/>
<label>Firstname:</label>
<input class="form-control" name="firstname" id="proposalId2" type="text" placeholder = "Firstname">
<label>Lastname:</label>
<input class="form-control" name="lastname" id="proposalId3" type="text" placeholder = "Lastname">
<label>Username:</label>
<input class="form-control" name="un" id="proposalId4" type="text" placeholder = "Username" readonly>
<label>Password:</label>
<input class="form-control" name="password" id="proposalId5" type="text" placeholder = "Password">
<label>Telephone:</label>
<input class="form-control" name="telephone" id="proposalId6" type="text" placeholder = "">
<label>Email:</label>
<input class="form-control" name="email" id="proposalId7" type="email" placeholder = "">
<label>Skype</label>
<input class="form-control" name="skype" id="proposalId8" type="text" placeholder = "">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-link">Save changes</button>
<button type="button" class="btn btn-link" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script>
$(document).on("click", ".open-AddBookDialog", function () {
var myproposalId = $(this).data('id');
var myproposalId2 = $(this).data('id2');
var myproposalId3 = $(this).data('id3');
var myproposalId4 = $(this).data('id4');
var myproposalId5 = $(this).data('id5');
var myproposalId6 = $(this).data('id6');
var myproposalId7 = $(this).data('id7');
var myproposalId8 = $(this).data('id8');
$(".modal-body #proposalId").val( myproposalId );
$(".modal-body #proposalId2").val( myproposalId2);
$(".modal-body #proposalId3").val( myproposalId3);
$(".modal-body #proposalId4").val( myproposalId4);
$(".modal-body #proposalId5").val( myproposalId5);
$(".modal-body #proposalId6").val( myproposalId6);
$(".modal-body #proposalId7").val( myproposalId7);
$(".modal-body #proposalId8").val( myproposalId8);
$('#addBookDialog').modal('show');
});
</script>