{{if !empty($form_table_data_list) and !empty($form_table['base']['key_field'])}} {{for start="0" end="count($form_table_data_list)"}} {{foreach $form_table['form'] as $t}} {{if !isset($t['is_list']) or $t['is_list'] eq 1}} {{if isset($form_table_data_list[$i]) and !empty($t['view_type']) and !empty($t['view_key'])}} {{switch $t.view_type}} {{case images}} {{if !empty($form_table_data_list[$i][$t['view_key']])}}
{{/if}} {{/case}} {{case qrcode}} {{if !empty($form_table_data_list[$i][$t['view_key']])}} {{if isset($t['qrcode_type']) and $t['qrcode_type'] eq 1}}
{{$form_table_data_list[$i][$t['view_key']]}}
{{if isset($t['is_qrcode_text']) and $t['is_qrcode_text'] eq 1}}

{{$form_table_data_list[$i][$t['view_key']]}}

{{/if}}
{{else /}}
{{$form_table_data_list[$i][$t['view_key']]}}
{{$form_table_data_list[$i][$t['view_key']]}}
{{/if}} {{/if}} {{/case}} {{case progress}} {{if (!empty($t['view_key']) and isset($form_table_data_list[$i][$t['view_key']])) or (!empty($t['progress_data_key']) and isset($form_table_data_list[$i][$t['progress_data_key']]))}}
{{if !empty($t['progress_text_key'])}} {{if isset($form_table_data_list[$i][$t['progress_text_key']])}}{{$form_table_data_list[$i][$t['progress_text_key']]}}{{/if}}{{if isset($t['progress_text_unit'])}}{{$t.progress_text_unit}}{{/if}} {{/if}}
{{/if}} {{/case}} {{case star}} {{php}} $temp_star_data_key_field = (!empty($t['view_key']) and isset($form_table_data_list[$i][$t['view_key']])) ? 'view_key' : 'star_data_key'; {{/php}} {{if !empty($t[$temp_star_data_key_field]) and isset($form_table_data_list[$i][$t[$temp_star_data_key_field]])}}
{{for start="1" end="empty($t['star_max']) ? 5 : $t['star_max']" comparison="elt" name="star_i"}} {{if $star_i gt $form_table_data_list[$i][$t[$temp_star_data_key_field]]}} {{else /}} {{/if}} {{/for}}
{{if !empty($t['star_text_key'])}} {{if isset($form_table_data_list[$i][$t['star_text_key']])}}{{$form_table_data_list[$i][$t['star_text_key']]}}{{/if}}{{if isset($t['star_text_unit'])}}{{$t.star_text_unit}}{{/if}} {{/if}} {{/if}} {{/case}} {{case field}}

{{if isset($t['is_first_tips']) and $t['is_first_tips'] eq 1 and ((!empty($t['first_tips_key']) and !empty($form_table_data_list[$i][$t['first_tips_key']])) or (!empty($t['first_tips_data'])))}} {{/if}} {{if isset($t['is_first_link']) and $t['is_first_link'] eq 1 and ((!empty($t['first_link_key']) and !empty($form_table_data_list[$i][$t['first_link_key']])) or (!empty($t['first_link_data'])))}} {{/if}} {{if isset($t['is_round_point']) and $t['is_round_point'] eq 1}} {{/if}} {{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($form_table_data_list[$i][$fv])}} {{$form_table_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($form_table_data_list[$i][$t['view_key']])}} {{if !empty($t['view_data']) and is_array($t['view_data'])}} {{if isset($t['view_data'][$form_table_data_list[$i][$t['view_key']]])}} {{if !empty($t['view_data_key'])}} {{if isset($t['view_data'][$form_table_data_list[$i][$t['view_key']]][$t['view_data_key']])}} {{$t['view_data'][$form_table_data_list[$i][$t['view_key']]][$t['view_data_key']]}} {{/if}} {{else /}} {{$t['view_data'][$form_table_data_list[$i][$t['view_key']]]}} {{/if}} {{/if}} {{else /}} {{$form_table_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(empty($t['template']) ? $t['view_key'] : $t['template'], $form_table_data_list[$i], [ 'form' => $t, 'params' => isset($form_params) ? $form_params : [], ])}} {{/case}} {{case status}} {{if !empty($t['key_field']) and !empty($t['post_url']) and !empty($form_table_data_list[$i][$t['key_field']]) and array_key_exists($t['view_key'], $form_table_data_list[$i])}} {{/if}} {{/case}} {{case operate}} {{:ModuleInclude($t['view_key'], $form_table_data_list[$i], [ 'form' => $t, 'params' => isset($form_params) ? $form_params : [], ])}} {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
{{$hook_name_form_list_operate}}
{{/if}} {{php}} $hook_data = MyEventTrigger($hook_name_form_list_operate, [ 'hook_name' => $hook_name_form_list_operate, 'is_backend' => true, 'id' => isset($form_table_data_list[$i][$form_table['base']['key_field']]) ? $form_table_data_list[$i][$form_table['base']['key_field']] : 0, 'data' => $form_table_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($form_table_data_list[$i][$form_table['base']['key_field']])}} {{if !isset($t['not_show_data']) or empty($t['not_show_key']) or (is_array($t['not_show_data']) and isset($form_table_data_list[$i][$t['not_show_key']]) and !in_array($form_table_data_list[$i][$t['not_show_key']], $t['not_show_data'])) or (isset($t['not_show_type']) and isset($form_table_data_list[$i][$t['not_show_key']]) and ( ($t['not_show_type'] eq 0 and $form_table_data_list[$i][$t['not_show_key']] eq $t['not_show_data']) or ($t['not_show_type'] eq 1 and $form_table_data_list[$i][$t['not_show_key']] gt $t['not_show_data']) or ($t['not_show_type'] eq 2 and $form_table_data_list[$i][$t['not_show_key']] lt $t['not_show_data']) )) }}
{{/if}} {{/if}} {{/case}} {{case checkbox}} {{if isset($form_table_data_list[$i][$form_table['base']['key_field']])}} {{if !isset($t['not_show_data']) or empty($t['not_show_key']) or (is_array($t['not_show_data']) and isset($form_table_data_list[$i][$t['not_show_key']]) and !in_array($form_table_data_list[$i][$t['not_show_key']], $t['not_show_data'])) or (isset($t['not_show_type']) and isset($form_table_data_list[$i][$t['not_show_key']]) and ( ($t['not_show_type'] eq 0 and $form_table_data_list[$i][$t['not_show_key']] eq $t['not_show_data']) or ($t['not_show_type'] eq 1 and $form_table_data_list[$i][$t['not_show_key']] gt $t['not_show_data']) or ($t['not_show_type'] eq 2 and $form_table_data_list[$i][$t['not_show_key']] lt $t['not_show_data']) )) }}
{{/if}} {{/if}} {{/case}} {{/switch}} {{if !empty($t['unique_key']) and $t['view_type'] neq 'operate'}} {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
{{$hook_name_form_grid}}_{{$t.unique_key}}
{{/if}} {{php}} $hook_data = MyEventTrigger($hook_name_form_grid.'_'.$t['unique_key'], [ 'hook_name' => $hook_name_form_grid.'_'.$t['unique_key'], 'is_backend' => true, 'id' => isset($form_table_data_list[$i][$form_table['base']['key_field']]) ? $form_table_data_list[$i][$form_table['base']['key_field']] : 0, 'data' => $form_table_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}} {{/if}} {{/if}} {{/if}} {{/foreach}} {{/for}} {{/if}}