{literal} {/literal}
关键字: 自定义报告:
{include file="module/maintain_bill_search.html"}
{$time_range_string} {if $smarty.request.subaction==""}{toolsbar options=$select_action_array extend=$extend_action_array}{/if}
{foreach from=$list_fields_array item=name key=key} {strparse var=fmt value=$name} {/foreach} {php} unset($_total_);{/php} {foreach from=$ls item=row} {foreach from=$list_fields_array item=name key=key} {assign var=v value=$row.$key} {assign var=k value=$key} {php} $v = $this->_tpl_vars['v']; $k = $this->_tpl_vars['k']; $_total_[$k] +=$v; {/php} {strparse var=fmt value=$name} {if $key =="warranty"} {elseif $key == "current_branch_id"} {elseif $key == "_group_value_"} {elseif $fmt.rate} {else} {/if} {*合计字段处理开始*} {if $fmt.sum} {php} $key = $this->_tpl_vars["key"]; $value = $this->_tpl_vars["row"][$key]; $_total_list_array[$key] += $value +0; $this->_tpl_vars["_total_list_array"] = $_total_list_array; {/php} {/if} {*合计字段处理结束*} {/foreach} {/foreach} {if $ls|@count==0} {else} {foreach from=$list_fields_array item=name key=key name="listeach"} {strparse var=fmt value=$name} {if $smarty.foreach.listeach.first} {elseif $fmt.sum} {else} {/if} {/foreach} {/if}
{$sort.$key|default:$fmt.title}
{$warranty_array[$row._group_value_]}{$branch_array[$row._group_value_]}{$row._group_value_}{$row.$key}%{$row.$key}
 
合计{$_total_list_array.$key|default:'0'|string_format:'%.02f'} 

 

{$_FusionCharts_}