PHPCMS技巧

当前位置/ 首页/ V9教程/PHPCMS技巧/ 正文

PHPCMS 添加内容 弹出新窗口

PHPCMS v9添加内容弹出新窗口,找到admin_common.js中的openwinx方法改为下面这样既可

function openwinx(url,name,w,h) {
        if(!w) w=screen.width-4;
        if(!h) h=screen.height-95;
        url = url+'&pc_hash='+pc_hash;
    if(url.indexOf('m=content&c=content&a=add') > -1 || url.indexOf('m=content&c=content&a=edit') > -1) {
        window.open(url,'_blank');
    } else {
        window.open(url,name,"top=100,left=400,width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");
    }
}

保存文件上传,即可实现PHPCMS v9添加内容弹出新窗口。