ѡ̳

标题: 修复添加和修改内容时的跳转不变问题。 [打印本页]

作者: admin    时间: 2017-12-3 19:24
标题: 修复添加和修改内容时的跳转不变问题。


原版的是新打开页面,采用返回原地址,新版的使用当前地址导致找不到 返回地址,页面一直暂停。
修改
add  和 edit
  1. if(isset($_POST['dosubmit'])) {
  2.                                         //showmessage(L('add_success').L('2s_close'),'blank','','','function set_time() {$("#secondid").html(1);}setTimeout("set_time()", 500);setTimeout("window.close()", 1200);');
  3.                                    showmessage(L('update_success'),'index.php?m=content&c=content&a=init&menuid=0&catid='.$catid.'&pc_hash='.$_SESSION['pc_hash']);
  4.                                 } else {
  5.                                         //showmessage(L('add_success'),HTTP_REFERER);
  6.                                         showmessage(L('update_success'),'index.php?m=content&c=content&a=add&menuid=0&catid='.$catid.'&hash_page=&pc_hash='.$_SESSION['pc_hash']);
  7.                                 }
复制代码







欢迎光临 ѡ̳ (http://www.sunminxuan.cn/bbs/) Powered by Discuz! X3.4