frameset加载出现空白页面!~急急急

sw227538398 2012-09-12 06:11:06
最近用oecms做了个企业网站,在本地测试的时候一切都很正常,上传到服务器后火狐下也是正常显示,但是IE和谷歌的后台却是空白页面。以下是代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<!--{$page_charset}-->" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>管理中心-[<!--{$config.sitename}-->]</title>
</head>
<frameset frameborder="10" framespacing="0" border="0" rows="70, *,32">
<frame name="top" src="admincp.php?mod=top" frameborder=0 NORESIZE SCROLLING='no' marginwidth=0 marginheight=0></frame>
<frameset frameborder=0 framespacing=0 border=0 cols="200,7, *" id="frame-body">
<frame frameborder=0 id="menu-frame" name="menu" src="admincp.php?mod=left" scrolling="auto" marginwidth="0"></frame>
<frame name="drag-frame" src="admincp.php?mod=drag" id="drag-frame" frameborder="no" scrolling="no"></frame>
<frame frameborder=0 id="main-frame" name="main" src="admincp.php?mod=main"></frame>
</frameset>
<frame name="footer" src="admincp.php?mod=footer" frameborder=0 NORESIZE SCROLLING='no' marginwidth=0 marginheight=0></frame>
</frameset>
<noframes>
</noframes>
</html>




<?php
/**
* @CopyRight (C)2006-2011 OE Development team Inc.
* @WebSite www.phpcoo.com��www.oecms.cn
* @Author XiangFeng <phpzac@foxmail.com>
* @Brief OEcms v3.x
* @Update 2011.09.01
**/
require_once '../source/core/run.php';
require_once 'admin.inc.php';
$mod = Core_Fun::rec_get("mod");
if($mod == "drag"){
$tpl->display(ADMIN_TEMPLATE."frm_drag.tpl");
} elseif($mod == "left"){
$tpl->display(ADMIN_TEMPLATE."frm_left.tpl");

} elseif($mod == "top"){
$tpl->display(ADMIN_TEMPLATE."frm_top.tpl");
} elseif($mod == "footer"){
$tpl->display(ADMIN_TEMPLATE."frm_footer.tpl");
} elseif($mod == "main"){
$tpl->display(ADMIN_TEMPLATE."frm_main.tpl");
}else{
$tpl->display(ADMIN_TEMPLATE."admincp.tpl");
}
?>


上网查了下:关于frameset加载出现空白的有以下几个原因:
1.utf-8的bom问题(我把编码改成GBK和gb2312试了下,还是只有火狐正常显示)
2.路径问题(src里面的路径我改成了绝对路径,或者百度的URL还是只能在火狐下显示)

页面加载后查看源代码是有的,而且我换frm_main.tpl这个页面就可以显示内容,但是一到admincp.tpl页面就空白了。。。求高手解决,非常急,本人已经纠结了好几天了
...全文
1633 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
sw227538398 2012-09-14
  • 打赏
  • 举报
回复
= =不是我不发。。。这几天我查看的时候 老是显示不出你们回复的内容。。。

public static function rec_get($name,$type=2){
return self::request($name,$type,1,0);
}

public static function request($name,$posttype=0,$recbad=0,$strip=0){
if($posttype==1){
$post = isset($_POST[$name]) ? $_POST[$name] : '';
}elseif($posttype==2){
$post = isset($_GET[$name]) ? $_GET[$name] : '';
}else{
$post = isset($_REQUEST[$name]) ? $_REQUEST[$name] : '';
}
if((int)$recbad==1){
$post = self::replacebadchar($post);
}
if((int)$strip==1){
$post = self::strip_array($post);
}
return trim($post);
}


echo 出来的是空值
xuzuning 2012-09-14
  • 打赏
  • 举报
回复
让你
echo $mod = Core_Fun::rec_get("mod");
在每个框架中查看源代码,然后报告结果

你回复
echo 出来的是空白

让你
贴出 Core_Fun::rec_get 的代码

你不肯!

那么还能怎么办呢?人家又不知道 $mod 是如何算出的
急也是白急
sw227538398 2012-09-14
  • 打赏
  • 举报
回复
有没有 高手能帮我解决下 急急急!~
xuzuning 2012-09-12
  • 打赏
  • 举报
回复
溯根求源
贴出 Core_Fun::rec_get 的代码
sw227538398 2012-09-12
  • 打赏
  • 举报
回复
在火狐下 是有数据的
sw227538398 2012-09-12
  • 打赏
  • 举报
回复
echo 出来的是空白
xuzuning 2012-09-12
  • 打赏
  • 举报
回复
echo $mod = Core_Fun::rec_get("mod");
在每个框架中查看源代码,然后报告结果
一起混吧 2012-09-12
  • 打赏
  • 举报
回复
打开php错误提示看看

4,250

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧