我想在四个链接的一个区域上传数据,当我单击链接1时,它将加载特定区域的数据,当我单击链接2时,它将在第一个链接打开的同一区域加载页面,怎么能我这样做?
<div class="container">
<div class="span-5">
<ul>
<li><?php echo $this->Manager->link('Ecommerce',array('controller'=>'associations','action'=>"view_report"),array('id'=> 'home','class'=>'nav'));?></li>
<li><a href="#" id="home" class="nav">Home</a></li>
<li><a href="#" id="about" class="nav">About</a></li>
<li><a href="#" id="contact" class="nav">Contact Us</a></li>
</ul>
</div>
</div>
我想从电子商务链接打开的数据是 int newfile.ctp 这样的
<?php v_start($this);?>
<h1><?php echo __l('View Report');?></h1>
<div class="firsttable">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<thead>
<tr class="heading">
<td><?php echo __l('Financials');?></td>
<td><?php echo __l('Payment Methods');?></td>
<td><?php echo __l('By Credit Card');?></td>
</tr>
</thead>
<tbody>
<tr>
<td>
<?php
echo __l("YTD \t ");
$ytd_total=0;
foreach ($YTD as $yearData)
{
$ytd_total +=$yearData['AssocPaymentDetail']['membership_fee'] - $yearData['AssociationDiscount']['amount'];
}
echo $ytd_total."<br />";
?>
<?php
echo __l("Last 5days ");
$fda_total= 0;
foreach ($fiveDays as $fiveDaysData)
{
$fda_total += $fiveDaysData['AssocPaymentDetail']['membership_fee'] - $fiveDaysData['AssociationDiscount']['amount'];
}
echo $fda_total ."<br />";
?>
</td>
<td><?php echo __l('creditcard');?> <?php echo __l($ccSum) ?> </td>
<td>
<?php
// debug($paymentRecord);
// debug($ccIndex);
foreach($paymentRecord as $data =>$key){
foreach($ccIndex as $index){
if($data== $index)
{
echo "$data \t\t\t";
if(is_array($key))
echo array_sum($key);
else
echo "\t\t $key";
}
echo "<br/>";
}
}
?>
</td>
</tr>
</tbody>
</table>
</div>
请帮我这样做,在此先感谢