<table class="tbl_list" width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr class="thead" style="border:1px solid #CCCCCC;"><td colspan="4"><!--{$ad_name}-->&nbsp;广告明细</tr>
	<!--{assign var=incomeSum value=0}-->
	<tr class="thead" style="border:1px solid #CCCCCC;">
		<td width="10%">序号</td>
		<td width="35%">日期</td>
		<td width="20%">成果数</td>
		<td width="20%">收入(元)</td>
	</tr>
	<!--{foreach from=$income_detail_by_ad item=data name=foo}-->
	<tr onMouseOver="chgTrColor(this);" onMouseOut="chgTrColor(this);">
		<td><!--{$smarty.foreach.foo.index+1}--></td>
		<td><!--{$data.harvestDate}--></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="5">没有对应数据</td></tr>
	<!--{/foreach}-->
	<tr>
		<td colspan="3">总计</td>
		<td><!--{$incomeSum|string_format:"%.3f"}--></td>
	</tr>
</table>