jquery model 框设定
js
function searchiteminfo(conditionno,lotcd,itemkey) {
var conditionnos=conditionno+":"+itemkey;
$('#h5').html('<spring:message code="w030100040"></spring:message>');
//这里需要跳转响应的页面 写在controller
$('#detailmodel iframe').attr("src",
"${pagecontext.request.contextpath}/w04053iteminformations/initsearch?conditionno="+conditionnos+"&lotcd="+lotcd);
$('#detailmodel').modal('show');
}
<body>
<a onclick="searchiteminfo('${item.conditionno}','${item.lotcd}','${item.itemkey}');">
modol 页面
<!-- iframe?-->
<div class="modal fade" id="detailmodel" tabindex="-1" role="dialog" aria-labelledby="picseleclmodallabel" aria-hidden="true" data-backdrop="static">
<div class="modal-dialog" style="width :65%;"> <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="h5"></h4> </div> <div class="modal-body">
<iframe name="iframe" src="" frameborder="0" style="height:200px;width :80%;">
</iframe>
</div>
</div>
</div>
</div>
</body>
参考样式
上一篇: php学习笔记之面向对象