PHP调用路径正确,但显示不出来,请问是怎么回事?

lottery66 2012-12-19 09:21:11
这是INDEX.PHP主页代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $this->display('inc_skin.php',0,'首页'); ?>
<script type="text/javascript" src="/skin/main/game.js"></script>
<script type="text/javascript" src="/skin/js/jquery.simplemodal.src.js"></script>
<script type='text/javascript'>
function kf51(){
var newWin=window.open("http://www17.53kf.com/webCompany.php?arg=xiexing790834&style=1","","height=600, width=800, top=0, left=0,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=n o, status=no");
if(!newWin||!newWin.open||newWin.closed){newWin=window.open('about:blank');}else{return false;}
}
</script>

</head>
<body>

<div class="all">
<?php $this->display('index/inc_header.php'); ?>
<div class="kgl img-bj">
<div class="user">
<?php
// 用户栏
$this->display('index/inc_user.php');
?>
</div>
<div class="kaijiang" id="kaijiang" type="<?=$this->type?>">
<?php
// 开奖栏
$this->display('index/inc_data_current.php');
?>
</div>
<?php
// 近期开奖栏
$this->display('index/inc_data_history.php');

// 中奖栏
$this->display('index/inc_data_winner.php');
?>
</div>

<div class="game">
<!--游戏body-->
<?php $this->display('index/inc_game.php'); ?>
<!--游戏body end-->
<div class="game-right">

<!--庄内庄-->
<div class="playt img01" id="switch-znz-bet" data-status="<?=$this->settings['switchMaster']?>"></div>
<!--公告+消息-->
<?php $this->display('user/inc_bulletin.php'); ?>
<!--公告+消息 end-->

<!--聊天与客服系统-->
<div class="talk">
<?php $this->display('chat/chat.php'); ?>
</div>
<!--聊天与客服系统 end-->
</div>
</div>
</div>
<?php
// 图片公告
if(!$_COOKIE['pic-gg'] && $this->settings['picGG']){
$this->display('index/pic-gg.php');
}
?>
<script type="text/javascript">
var game={
type:<?=json_encode($this->type)?>,
played:<?=json_encode($this->played)?>,
groupId:<?=json_encode($this->groupId)?>
},
user="<?=$this->user['username']?>",
aflag=<?=json_encode($this->user['admin']==1)?>;
</script>
<!--签到有奖浮动-->
<?php
$liqType=50;
$sql="select count(*) from {$this->prename}coin_log where actionTime>=? and liqType=$liqType and `uid`={$this->user['uid']}";
if(!$this->getValue($sql, strtotime('00:00'))){
?>
<!--签到有奖浮动 end-->
<?php
if(floatval($this->settings['huoDongSign'])){
?>
<div id=sign >
<a href="/index.php/display/sign" dataType="json" call="indexSign" target="ajax"><img src="/skin/main/images/qd.jpg" border="0" /></a>
</div>
<style type="text/css">
#sign{Z-INDEX: 9999; WIDTH: 120px; position:fixed;top:185px;left:0;_POSITION: absolute; HEIGHT: 120px;}
</style>
<!--[if IE 6]>
<style type="text/css">
#sign{position:absolute;top:expression(eval(document.body.scrollTop + 185));}
</style>
<![endif]-->
<?php
}}?>
</body>
</html>


下面是能显示出来的网页代码
<?php
// 用户栏
$this->display('index/inc_user.php');
?>
</div>
<div class="kaijiang" id="kaijiang" type="<?=$this->type?>">
<?php
// 开奖栏
$this->display('index/inc_data_current.php');
?>
</div>
<?php
// 近期开奖栏
$this->display('index/inc_data_history.php');

// 中奖栏
$this->display('index/inc_data_winner.php');
?>
</div>


下面代码不能显示出来
<div class="game">
<!--游戏body-->
<?php $this->display('index/inc_game.php'); ?>
<!--游戏body end-->
<div class="game-right">

<!--庄内庄-->
<div class="playt img01" id="switch-znz-bet" data-status="<?=$this->settings['switchMaster']?>"></div>
<!--公告+消息-->
<?php $this->display('user/inc_bulletin.php'); ?>
<!--公告+消息 end-->

<!--聊天与客服系统-->
<div class="talk">
<?php $this->display('chat/chat.php'); ?>
</div>
<!--聊天与客服系统 end-->
</div>
</div>
</div>
<?php
// 图片公告
if(!$_COOKIE['pic-gg'] && $this->settings['picGG']){
$this->display('index/pic-gg.php');
}
?>
<script type="text/javascript">
var game={
type:<?=json_encode($this->type)?>,
played:<?=json_encode($this->played)?>,
groupId:<?=json_encode($this->groupId)?>
},
user="<?=$this->user['username']?>",
aflag=<?=json_encode($this->user['admin']==1)?>;
</script>
<!--签到有奖浮动-->
<?php
$liqType=50;
$sql="select count(*) from {$this->prename}coin_log where actionTime>=? and liqType=$liqType and `uid`={$this->user['uid']}";
if(!$this->getValue($sql, strtotime('00:00'))){
?>
<!--签到有奖浮动 end-->
<?php
if(floatval($this->settings['huoDongSign'])){
?>
<div id=sign >
<a href="/index.php/display/sign" dataType="json" call="indexSign" target="ajax"><img src="/skin/main/images/qd.jpg" border="0" /></a>
</div>
<style type="text/css">
#sign{Z-INDEX: 9999; WIDTH: 120px; position:fixed;top:185px;left:0;_POSITION: absolute; HEIGHT: 120px;}
</style>
<!--[if IE 6]>
<style type="text/css">
#sign{position:absolute;top:expression(eval(document.body.scrollTop + 185));}
</style>
<![endif]-->
<?php
}}?>

我查了,也试了,所有文件路径都对的,这段调用代码怎么显示不出来呢?



下面是index/inc_game.php文件的代码,为什么显示不出来呢?
<div class="game-left img-bj">
<div id="bet-game">
<div class="game-btn img02">
<?php
if($_COOKIE['mode']){
$mode=$_COOKIE['mode'];
}else{
$mode=2.00;
}

$this->getTypes();

$sql="select id, groupName, enable from {$this->prename}played_group where enable=1 and type=?";
$groups=$this->getObject($sql, 'id', $this->types[$this->type]['type']);
//var_dump($this->types[$this->type]['type']);

if($this->groupId && !$groups[$this->groupId]) unset($this->groupId);

if($groups) foreach($groups as $key=>$group){
if(!$this->groupId) $this->groupId=$group['id'];
//if($group['enable']){
?>
<div class="ul-li<?=($this->groupId==$group['id'])?' current img01':''?>">
<a class="cai" href="/index.php/index/group/<?=$this->type .'/'.$group['id']?>"><?=$group['groupName']?></a>
<a class="wfline img01"></a>
</div>
<?php } ?>
</div>
<div class="game-cont img02">
<?php $this->display('index/inc_game_played.php'); ?>
<div class="num-table" style="height:auto;" id="game-dom">
<div class="fandian">
<div class="fandian-k">
<span class="spn8">奖金/返点:</span>
<div class="fandian-box img02">
<input type="button" class="min" value="" step="-0.1"/>
<div id="slider" class="slider" value="<?=$this->ifs($_COOKIE['fanDian'], 0)?>" data-bet-count="<?=$this->settings['betMaxCount']?>" data-bet-zj-amount="<?=$this->settings['betMaxZjAmount']?>" max="<?=$this->user['fanDian']?>" game-fan-dian="<?=$this->settings['fanDianMax']?>" fan-dian="<?=$this->user['fanDian']?>" game-fan-dian-bdw="<?=$this->settings['fanDianBdwMax']?>" fan-dian-bdw="<?=$this->user['fanDianBdw']?>" min="0" step="0.1" slideCallBack="gameSetFanDian"></div>
<input type="button" class="max" value="" step="0.1"/>
</div>
<span id="fandian-value"><?=$maxPl?>/0%</span>
</div>
<div class="danwei">
<span class="spn8">模式:</span>
<label>元<input type="radio" value="2.00" data-max-fan-dian="<?=$this->settings['betModeMaxFanDian0']?>" name="danwei" <?=$this->iff($mode=='2.00','checked')?> /></label>
<label>角<input type="radio" value="0.20" data-max-fan-dian="<?=$this->settings['betModeMaxFanDian1']?>" name="danwei" <?=$this->iff($mode=='0.20','checked')?> /></label>
<label>分<input type="radio" value="0.02" data-max-fan-dian="<?=$this->settings['betModeMaxFanDian2']?>" name="danwei" <?=$this->iff($mode=='0.02','checked')?> /></label>
</div>
<div class="beishu"><span class="spn8">倍数:</span><input id="beishu" value="<?=$this->ifs($_COOKIE['beishu'],1)?>"/></div>
<div class="btn-preserve img01" onclick="setBeiShuCookie('#beishu')">保 存</div>
</div>

</div>
<div class="touzhu img02">
<div class="touzhu-top">
<!--<button class="tz-top-btn img02" onclick="gameActionRandom(1)">机选一注</button>
<button class="tz-top-btn img02" onclick="gameActionRandom(5)" >机选五注</button>-->
<button class="tz-top-btn img02" onclick="gameActionRemoveCode()">清空号码</button>
<div class="prompt" id="game-tip-dom"><!--提示:必须选满三位数再投注!--></div>
<div class="tztj-btn img02"><div class="tztj-hover img01" onclick="gameActionAddCode()"></div></div>
</div>
<!--<select size="7" class="touzhu-cont" id="select-code" ></select>-->
<div class="touzhu-cont">
<table width="100%">

</table>
</div>
<div class="touzhu-bottom">
<div class="tz-tongji">总投注数:<span class="spn10" id="all-count">0</span> 注    购买金额:<span class="spn10" id="all-amount">0.00</span> 元</div>
<div class="tz-buytype">
<label><input type="checkbox" name="qzEnable" value="1" checked="checked" />庄内庄</label>
<!-- <input type="checkbox" name="buy_type" /><label for="type-hm">合买</label> -->
<label><input type="checkbox" name="zhuiHao" value="1" />追号</label>
</div>
<div class="tz-true-btn img02"><div class="tz-true-hover img01" id="btnPostBet"></div></div>
</div>
</div>
<div class="touzhu-true">
<table width="100%">
<thead>
<tr>
<td width="5%">单号</td>
<td width="10%">投注时间</td>
<td width="10%">彩种</td>
<td width="10%">玩法</td>
<td width="10%">期号</td>
<td width="15%">投注号码</td>
<td width="5%">注数</td>
<td width="5%">倍数</td>
<td width="10%">金额</td>
<td width="5%">模式</td>
<td width="15%">奖-返</td>
<td width="5%">操作</td>
</tr>
</thead>
<tbody id="order-history"><?php $this->display('index/inc_game_order_history.php'); ?></tbody>
</table>
</div>
</div>
</div>
<div id="znz-game" style="display:none;"></div>
</div>

...全文
384 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xuzuning 2012-12-20
  • 打赏
  • 举报
回复
这是你的系统自定义的错误信息,别人如何知道?
lottery66 2012-12-20
  • 打赏
  • 举报
回复
引用 2 楼 xuzuning 的回复:
打开 php 的短标记功能 php.ini 中 short_open_tag = on 或将 <?= 改为 <?php echo 你的这些代码都是在某个对象的方法中运行的,你如何知道这些代码一定会被执行到?
上面问题解决了,谢谢版主。 不过新的问题又来了,点确认出现PROCEDURE ssc.setCoin does not exist 请问是怎么回事?
xuzuning 2012-12-20
  • 打赏
  • 举报
回复
打开 php 的短标记功能 php.ini 中 short_open_tag = on 或将 <?= 改为 <?php echo 你的这些代码都是在某个对象的方法中运行的,你如何知道这些代码一定会被执行到?
ImN1 2012-12-20
  • 打赏
  • 举报
回复
->display方法具有运行php的能力么? 你这是需要解析运行另外一个php啊,而不是仅仅插入

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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