如何解决 PHPCMS 添加内容 弹出新窗口

其实这个修改很简单,在V9系统中找到admin_common.js中的openwinx方法改为下面的即可:

  1. function openwinx(url,name,w,h) {

  2.         if(!w) w=screen.width-4;

  3.         if(!h) h=screen.height-95;

  4.         url = url+'&pc_hash='+pc_hash;

  5.     if(url.indexOf('m=content&c=content&a=add') > -1 || url.indexOf('m=content&c=content&a=edit') > -1) {

  6.         window.open(url,'_blank');

  7.     } else {

  8.         window.open(url,name,"top=100,left=400,width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");

  9.     }

  10. }