15621857753

phpcmsV9添加内容时改新窗口为浏览器标签页

来源:齐鲁CMS 栏目:PHPCMS 阅读: 日期:2025-07-04

其实这个修改很简单,在V9系统中找到admin_common.js中的openwinx方法改为下面的代码就可以了。

下面由齐鲁CMS小编来介绍下phpcmsV9添加内容时改新窗口为浏览器标签页的方法。

找到statics/js/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");
    }
}

更新下缓存就可以了~