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>

posted on 2015-07-03 15:23  勤奋者努力着  阅读(631)  评论(0编辑  收藏  举报

导航