{{if isset($data_list[$i]) and !empty($t['view_type']) and !empty($t['view_key'])}}
{{switch $t.view_type}}
{{case field}}
{{if isset($t['view_join_first'])}}
{{$t.view_join_first}}
{{/if}}
{{if is_array($t['view_key'])}}
{{foreach $t['view_key'] as $fk=>$fv}}
{{if isset($data_list[$i][$fv])}}
{{$data_list[$i][$fv]}}
{{if isset($t['view_key_join']) and $fk lt count($t['view_key'])-1}}
{{$t.view_key_join|raw}}
{{/if}}
{{/if}}
{{/foreach}}
{{else /}}
{{if isset($data_list[$i][$t['view_key']])}}
{{if !empty($t['view_data']) and is_array($t['view_data'])}}
{{if isset($t['view_data'][$data_list[$i][$t['view_key']]])}}
{{if !empty($t['view_data_key'])}}
{{if isset($t['view_data'][$data_list[$i][$t['view_key']]][$t['view_data_key']])}}
{{$t['view_data'][$data_list[$i][$t['view_key']]][$t['view_data_key']]}}
{{/if}}
{{else /}}
{{$t['view_data'][$data_list[$i][$t['view_key']]]}}
{{/if}}
{{/if}}
{{else /}}
{{$data_list[$i][$t['view_key']]|raw}}
{{/if}}
{{/if}}
{{/if}}
{{if isset($t['view_join_last'])}}
{{$t.view_join_last}}
{{/if}}
{{/case}}
{{case module}}
{{:ModuleInclude($t['view_key'], $data_list[$i], isset($params) ? $params : [])}}
{{/case}}
{{case status}}
{{if !empty($t['key_field']) and !empty($t['post_url']) and !empty($data_list[$i][$t['key_field']])}}
{{/if}}
{{/case}}
{{case operate}}
{{:ModuleInclude($t['view_key'], $data_list[$i])}}
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
{{$hook_name_form_list_operate}}
{{/if}}
{{php}}
$hook_data = Hook::listen($hook_name_form_list_operate, [
'hook_name' => $hook_name_form_list_operate,
'is_backend' => true,
'id' => isset($data_list[$i][$form_table['base']['key_field']]) ? $data_list[$i][$form_table['base']['key_field']] : 0,
'data' => $data_list[$i],
]);
if(!empty($hook_data) && is_array($hook_data))
{
foreach($hook_data as $hook)
{
if(is_string($hook) || is_int($hook))
{
echo htmlspecialchars_decode($hook);
}
}
}
{{/php}}
{{/case}}
{{case radio}}
{{if isset($data_list[$i][$form_table['base']['key_field']])}}
{{/if}}
{{/case}}
{{case checkbox}}
{{if isset($data_list[$i][$form_table['base']['key_field']])}}
{{if empty($t['not_show_data']) or empty($t['not_show_key']) or !in_array($data_list[$i][$form_table['base']['key_field']], $t['not_show_data'])}}
{{/if}}
{{/if}}
{{/case}}
{{/switch}}
{{/if}}
|
{{/if}}
{{/foreach}}