jBox 弹框内容交互

js中的代码

//弹窗显示界面
        function CallJbox(url,title,width,height){
            $.jBox("iframe:" + url, {
                title: title,
                width: width,
                height: height,
                iframeScrolling:'no',
                buttons: { }
            });
       
        }

html 中的代码

<div class="table-operate ue-clear">
            <a href="javascript:CallJbox('<?php echo "/company/companycontact/create/".(isset($keyId)?$keyId:"");?>','添加企业联系人',800,300)" class="add">添加</a>
        </div>

<div class="table-box">
            <table>
                <thead>
                    <tr>
                        <th class="name">人员类型</th>
                        <th class="name">姓名</th>
                        <th class="name">手机号码</th>
                        <th class="operate">操作</th>
                    </tr>
                </thead>
                <tbody>
                <?php if(isset($contacts)):foreach($contacts as $person):?>
                    <tr>
                        <td class="name"><?php echo isset($person["type"])?$person["type"]:"";?></td>
                        <td class="name"><?php echo isset($person["fullname"])?$person["fullname"]:"";?></td>
                        <td class="name"><?php echo isset($person["phone"])?$person["phone"]:"";?></td>
                        <td class="operate"><a href="javascript:CallJbox('<?php echo "/".$url_module."/companycontact/view/".$person["id"];?>','企业联系人明细',800,250)">明细</a>
                        <a href="javascript:CallJbox('<?php echo "/".$url_module."/companycontact/edit/".$person["id"];?>','企业联系人明细',800,300)">编辑</a>
                        <a href="javascript:deletedata('<?php echo "/".$url_module."/companycontact/delete/".$person["id"];?>')">删除</a></td>
                    </tr>
                <?php endforeach;endif;?>
                </tbody>
            </table>
        </div>

转载于:https://www.cnblogs.com/lqw4/p/4618760.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值