0
我有链接的列表likte这样的:传递一个ID两个多模态对话框
<a data-target="changemodal" data-ds="'.$e['DS1'].'" href="#">Link 1</a>
<a data-target="changemodal" data-ds="'.$e['DS2'].'" href="#">Link 2</a>
<a data-target="changemodal" data-ds="'.$e['DS3'].'" href="#">Link 3</a>
...
如果您在点击链接的自举模式打开并显示一个确认文本。 最后是一个“接受”或“关闭”按钮。
的情态动词:
<div class="modal fade modal-content" role="basic" id="modal_changelayout" >
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
<h4 class="modal-title font-purple-soft"><i class="icon-layers"></i> <i class="fa fa-refresh"></i> '.APP4::SETTINGS_109.'</h4>
</div>
<div class="modal-body">
'.APP4::SETTINGS_110.'
<div class="alert alert-danger alert-dismissable hide" id="msg_box_modal_newsite">
<div id="msg_box_text_modal_newsite"></div>
</div>
</div>
<div class="modal-footer">
<input type="hidden" name="job" value="newsite">
<button class="btn default submitForm" type="button" ><i class="fa fa-remove"></i> CLOSE </button>
<button class="btn green-meadow submitForm" type="button" ><i class="fa fa-refresh"></i> ACCEPT </button>
</div>
</form>
</div>
如果关闭了,没有什么做的。
如果您接受,我必须将点击链接的“data-ds”的id发送到一个php文件。
我怎样才能做到这一点?
你使用AJAX和JSON吗?这是使用这些技术更容易 –
是它可能使用它,但我没有想法我怎么能做到这一点... – newbieRB
如何显示/隐藏此模式?使用javascript? – NnN