搬砖仔

  • {{ item.name }}
  • 首页
  • 作品
  • 代码
  • GO
  • 随笔
  • 关于博主
  • 友情链接
  • 文章归档
  • 榜上有名
  • Mail
  • GitHub

Onex ecstore前台页面dialog的调用

  • 小酱沫
  • 2016-02-15
  • 0

在需调用dialog的html页面中插入本段代码。

link='<{link app=test ctl=site_test act=abc}>';
var dialog = new Dialog(link, {
     title: '前台弹框_标题',
     width: 658,              ///Dialog框的宽度
     height: 460,             ///Dialog框的高度
     modal:true,
     async: 'ajax'
});

相应的php文件 test.php

<?php
class test_ctl_site_test extends site_controller{
    #..code
    $this->pagedata['name'] = '我要显示在前台';
    echo $this->fetch('site/test.html');
    #..code
}

dialog框内的html

测试测试测试。弹框弹框。<{$name}>

测试效果如下:
1

© 2023 搬砖仔
Theme by Wing
沪ICP备2021031606号-1 沪公网安备31010402004615号