<table class="tbl_list" width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr class="thead" style="border:1px solid #CCCCCC;"><td colspan="6"><!--{$harvest_date}-->&nbsp;广告明细</tr>
	<!--{assign var=incomeSum value=0}-->
	<tr class="thead" style="border:1px solid #CCCCCC;">
		<td width="5%">序号</td>
		<td width="30%">广告名称</td>
		<td width="10%">结算方式</td>
		<td width="15%">广告单价(元)</td>
		<td width="15%">成果数</td>
		<td width="15%">收入(元)</td>
	</tr>
	<!--{foreach from=$income_detail_by_date item=data name=foo}-->
	<tr onMouseOver="chgTrColor(this);" onMouseOut="chgTrColor(this);">
		<td><!--{$smarty.foreach.foo.index+1}--></td>
		<td><!--{$data.adName}--></td>
		<td><!--{$data.balanceTypeName}--></td>
		<td><!--{$data.exportPrice|string_format:"%.3f"}--></td>
		<td><!--{$data.harvestTotal}--></td>
		<td><!--{$data.income|string_format:"%.3f"}--></td>
	</tr>
	<!--{math equation="x+y" x=$incomeSum y=$data.income assign=incomeSum}-->
	<!--{foreachelse}-->
	<tr><td colspan="9">没有对应数据</td></tr>
	<!--{/foreach}-->
	<tr>
		<td colspan="5">总计</td>
		<td><!--{$incomeSum|string_format:"%.3f"}--></td>
	</tr>		
</table>