[原创]有个问题请教,十分火急!!!!!!!!!!! |
我买个程序,有个地方老是显示不出来,不知道什么原因,尤其是标示*的地方,就是把其中的变量换成常数,也显示不了。大家帮忙看看,急!!
<?
include "user.id.inc.php";
if($user_id){
if(!$year) $year=date(Y);
if(!$month) $month=date(m);
?>
<form name=lines action=spends.inc.php method=post>
<input type=hidden name=plid value="<?=$plid?>">
<input type=hidden name=id value="<?=$id?>">
<TABLE cellSpacing=0 cellPadding=0 border=0 width=100%>
<TBODY>
<TR>
<TD colSpan=5 class=tablecontentbewel>
<?
include "month.input.inc.php";
?>
</TD>
</TR>
<TR>
<TD colSpan=5 class=tableheadharddark>
<P>
<?=($plid==$PLAN_ID_PERIOD)?$def_fast_plan:""?>
Spent records of "<?=$user_name?>"
<?=(!$plid)?"- Note that amount in red indicates $def_fast_plan":""?>
</P>
</TD>
</TR>
<TR>
<TD class=tablesubheaddark height=21>Transaction</TD>
<TD class=tablesubheaddark height=21>Date</TD>
<TD class=tablesubheaddark height=21>Days</TD>
<TD class=tablesubheaddark height=21>Note</TD>
<TD class=tablesubheaddark height=21 align=right>Amount</TD>
</TR>
/********************这上面的还可以显示****************/
<?
if($plid) $c_plan_type = "and plan_type='$plid'";
$date_field = "date";
include "month.clause.inc.php";
$query = "select id, plan_type, pmt_id, date_format($date_field,'%Y-%m-%d') as day,
to_days(now())-to_days($date_field) as days, pmt_note, exchange
from hyip_lines where uid=$user_id and status='$STATUS_ENUM_ENABLE'
and pmt_type='$TRANS_ENUM_SPEND'
$c_plan_type $c_month $c_year order by $date_field desc";
$result = mysql_query($query) or die(" ");
$sum = 0;
while($line=mysql_fetch_array($result)){
$amount = number_format($row[exchange],2);
$sum += $amount;
$pmt_id = "<a href=transaction.php?id=$line[pmt_id]>$line[pmt_id]</a>";
/*******************这里面的不能显示************************/
echo "<TR>
<TD class=tablecontentbeweldark height=20>$pmt_id</TD>
<TD class=tablecontentbeweldark height=20>$line[day]</TD>
<TD class=tablecontentbeweldark height=20>$line[days]</TD>
<TD class=tablecontentbeweldark height=20>$line[pmt_note] </TD>
<TD class=tablecontentbeweldark height=20 align=right>$amount</TD>
</TR>";
}
?>
<TR>
/********************************************************/
<TD colspan=4 class=tablecontentbeweldark height=7 align=right>Page Total</TD>
<TD class=tablecontentbeweldark height=7 align=right><b><?=$sum?></b></TD>
</TR>
</TBODY>
</TABLE>
</form>
<?}?> |
|
|