【发布时间】:2015-10-31 08:03:37
【问题描述】:
我使用引导模式打开弹出模式以设置我的帐户权限。当我点击第一个链接时,它会准确打开。但是当我点击任何其他链接时。再次显示之前的数据。我已经尝试了多次,但仍然不成功。
这是加载整个列表的表格代码:
<table class="table table-bordered table-striped table-hover">
<tr>
<th>Code</th>
<th>Name</th>
<th>Authorities</th>
<th>Password</th>
<th>Status</th>
</tr>
<?php
foreach($res as $data) {
?>
<tr>
<td><?php echo $data[INST_CODE]; ?></td>
<td><?php echo $data[INST_NAME]; ?><?php echo " ($insttype)"; ?></td>
<td><a data-toggle="modal" data-target="#myModal" class="btn btn-info" href="auth2.php?inst_code=<?php echo $data[INST_CODE]; ?> ">Authorities</a></td>
</tr>
<?php
}
?>
</table>
这是模式代码:
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal Header</h4>
</div>
<div class="modal-body">
<p>Some text in the modal.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
auth2.php 包含要显示的内容。请指导我
【问题讨论】:
标签: jquery twitter-bootstrap modal-dialog