{literal} {/literal}
关键字:
{if $smarty.request.subaction==""}{toolsbar options=$select_action_array extend=$extend_action_array}{/if}
{if $smarty.request.t_create_type==""}
{/if}
{foreach from=$list_fields_array item=name key=key} {strparse var=fmt value=$name} {/foreach} {foreach from=$ls item=row} {foreach from=$list_fields_array item=name key=key} {strparse var=fmt value=$name} {if $key == "list_no"} {elseif $key == "approved"} {elseif in_array($key,array("create_date","checkin_date","check_date"))} {elseif $key == "branch_id"} {elseif $key == "payment_history_day"} {elseif $key == "description"} {elseif $key == "subject_name"} {elseif $key == "list_status"} {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}
{$row.$key}{assign var="tmpval" value=$row.$key}{$approved_status_array[$tmpval]|del:$row.disabled}{$row.$key|local_date:8:5|del:$row.close}{$branch_array[$row.branch_id]}{$row.$key}天{$row.$key|msubstr:50}{$subject_array[$row.subject_id]} {if $row.approved==0}待审核{elseif $row.checkin}已入账{elseif $row.approved}已审核{/if} {$row.$key|del:$row.disabled}
 
 合计{$_total_list_array.$key|default:'0'|string_format:'%.02f'} 
{$listpage}
{if check_acl("system.custom")} {/if}