<?php /*a:5:{s:61:"D:\phpstudy\WWW\12xz\app\admin\view/default\users\detail.html";i:1782629701;s:87:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\detail.html";i:1782629701;s:95:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\detail_content.html";i:1782629701;s:99:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\detail_nav_operate.html";i:1782629701;s:112:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\form_state_operate_reason_modal.html";i:1782629701;}*/ ?>
<?php echo ModuleInclude('public/header'); ?>

<!-- content top hook -->
<?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
    <div class="plugins-tag">
        <span><?php echo htmlentities((string) $hook_name_detail_top); ?></span>
    </div>
<?php endif; 
    $hook_data = MyEventTrigger($hook_name_detail_top, ['hook_name'=>$hook_name_detail_top, 'is_backend'=>true]);
    if(!empty($hook_data) && is_array($hook_data))
    {
        foreach($hook_data as $hook)
        {
            if(is_string($hook) || is_int($hook))
            {
                echo htmlspecialchars_decode($hook);
            }
        }
    }
 ?>

<!-- content start  -->
<div class="am-form-table-data-container am-form-table-data-detail am-min-height am-background-white <?php if(isset($form_table['base']['is_detail_nav_operate']) and $form_table['base']['is_detail_nav_operate'] == 1): ?>form-table-navigation-present-operate<?php endif; ?>">
    <!-- content inside top hook -->
    <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
        <div class="plugins-tag">
            <span><?php echo htmlentities((string) $hook_name_detail_inside_top); ?></span>
        </div>
    <?php endif; 
        $hook_data = MyEventTrigger($hook_name_detail_inside_top, ['hook_name'=>$hook_name_detail_inside_top, 'is_backend'=>true]);
        if(!empty($hook_data) && is_array($hook_data))
        {
            foreach($hook_data as $hook)
            {
                if(is_string($hook) || is_int($hook))
                {
                    echo htmlspecialchars_decode($hook);
                }
            }
        }
     ?>

    <!-- data -->
    <?php $form_table_data_detail = empty($form_table_data_detail) ? (empty($data) ? [] : $data) : $form_table_data_detail; if(!empty($form_table_data_detail)): ?>
        
    <?php echo ModuleInclude('public/detail_nav_switch_tabs', [
        'nav_data' => [
            [
                'name' => MyLang('form_base_data_title'),
                'key'  => 'base',
            ],
            [
                'name' => MyLang('common_service.user.detail_platform_title'),
                'key'  => 'platform-data',
            ]
        ]
    ]); ?>
    <div class="detail-content-switch-data-item">
        <!-- 父级内容 -->
        <div class="item am-active" data-key="base">
            
            <?php if(!empty($form_table) and !empty($form_table['form']) and is_array($form_table['form'])): if(!empty($form_table['base']) and !empty($form_table['base']['detail_title'])): ?>
                    <div class="am-panel am-panel-default am-radius">
                    <div class="am-panel-hd"><?php echo htmlentities((string) $form_table['base']['detail_title']); ?></div>
                    <div class="am-panel-bd">
                <?php endif; ?>
                <dl class="dl-content am-padding-sm">
                    <?php foreach($form_table['form'] as $t): if(isset($t['label']) and isset($t['view_type']) and !in_array($t['view_type'], ['operate', 'radio', 'checkbox']) and (!isset($t['is_detail']) or $t['is_detail'] == 1)): ?>
                            <dt class="am-text-truncate"><strong><?php echo htmlentities((string) $t['label']); ?></strong></dt>
                            <dd>
                                <?php switch($t['view_type']): case "many_text": if(!empty($form_table_data_detail[$t['view_key']])): if(is_array($form_table_data_detail[$t['view_key']])): if(isset($form_table_data_detail[$t['view_key']][0]) and !is_array($form_table_data_detail[$t['view_key']][0])): ?>
                    <p class="am-text-truncate"><?php echo htmlentities((string) $form_table_data_detail[$t['view_key']][0]); ?></p>
                <?php endif; else: ?>
                <p class="am-text-truncate"><?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?></p>
            <?php endif; ?>
            <a href="javascript:;" class="am-text-blue" data-am-modal="{target: '#form-table-item-content-<?php echo htmlentities((string) $t['view_key']); ?>', width: 420}"><?php echo MyLang('view_title'); if(is_array($form_table_data_detail[$t['view_key']])): ?>(<?php echo count($form_table_data_detail[$t['view_key']]); ?>)<?php endif; ?> ></a>
            <div class="am-modal am-modal-no-btn" tabindex="-1" id="form-table-item-content-<?php echo htmlentities((string) $t['view_key']); ?>">
                <div class="am-modal-dialog am-radius">
                    <div class="am-modal-hd">
                        <span><?php echo htmlentities((string) $t['label']); ?></span>
                        <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
                    </div>
                    <div class="am-modal-bd am-text-left">
                        <ul class="am-padding-top-sm am-padding-horizontal-xs">
                            <?php if(is_array($form_table_data_detail[$t['view_key']])): foreach($form_table_data_detail[$t['view_key']] as $tlv): if(!is_array($tlv)): ?>
                                        <li class="am-nbfc am-padding-xs"><?php echo htmlentities((string) $tlv); ?></li>
                                    <?php endif; ?>
                                <?php endforeach; else: ?>
                                <li class="am-nbfc am-padding-xs"><?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?></li>
                            <?php endif; ?>
                        </ul>
                    </div>
                </div>
            </div>
        <?php endif; break; case "many_images": if(!empty($form_table_data_detail[$t['view_key']]) and is_array($form_table_data_detail[$t['view_key']])): ?>
            <div class="am-nbfc">
                <ul data-am-widget="gallery" class="am-gallery am-avg-sm-10 am-avg-md-10 am-avg-lg-10 am-gallery-default am-padding-0" data-am-gallery="{pureview: true}">
                    <?php foreach($form_table_data_detail[$t['view_key']] as $mik=>$miv): if(!empty($miv)): if(empty($t['view_data_key'])): if(!is_array($miv)): ?>
                                    <li class="am-padding-0">
                                        <div class="am-gallery-item am-nbfc am-padding-right-xs am-padding-bottom-xs">
                                            <img src="<?php echo htmlentities((string) $miv); ?>" class="am-block am-radius" />
                                        </div>
                                    </li>
                                <?php endif; else: if(is_array($miv) and !empty($miv[$t['view_data_key']])): ?>
                                    <li class="am-padding-0">
                                        <div class="am-gallery-item am-nbfc am-padding-right-xs am-padding-bottom-xs">
                                            <img src="<?php echo htmlentities((string) $miv[$t['view_data_key']]); ?>" class="am-block am-radius" />
                                        </div>
                                    </li>
                                <?php endif; ?>
                            <?php endif; ?>
                        <?php endif; ?>
                    <?php endforeach; ?>
                </ul>
            </div>
        <?php endif; break; case "images": if(!empty($form_table_data_detail[$t['view_key']])): ?>
            <img src="<?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?>" class="am-img-thumbnail <?php if(!empty($t['images_shape'])): ?>am-<?php echo htmlentities((string) $t['images_shape']); ?><?php endif; ?> common-annex-view-event" data-is-download="1" data-value="<?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?>" style="<?php if(!empty($t['images_width'])): ?>width:<?php echo htmlentities((string) $t['images_width']); ?>px;<?php endif; if(!empty($t['images_height'])): ?>height:<?php echo htmlentities((string) $t['images_height']); ?>px;<?php endif; ?>" />
        <?php endif; break; case "video": if(!empty($form_table_data_detail[$t['view_key']])): ?>
            <video src="<?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?>" class="am-img-thumbnail <?php if(!empty($t['video_shape'])): ?>am-<?php echo htmlentities((string) $t['video_shape']); ?><?php endif; ?> common-annex-view-event" data-type="video" data-is-download="1" data-value="<?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?>" style="<?php if(!empty($t['video_width'])): ?>width:<?php echo htmlentities((string) $t['video_width']); ?>px;<?php endif; if(!empty($t['video_height'])): ?>height:<?php echo htmlentities((string) $t['video_height']); ?>px;object-fit:fill;<?php endif; ?>">your browser does not support the video tag</video>
        <?php endif; break; case "qrcode": if(!empty($form_table_data_detail[$t['view_key']])): if(isset($t['qrcode_type']) and $t['qrcode_type'] == 1): ?>
                <a href="javascript:;" class="text-copy-submit" data-value="<?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?>">
                    <div class="view-qrcode-init <?php if(!empty($t['images_shape'])): ?>am-<?php echo htmlentities((string) $t['images_shape']); ?><?php endif; ?>" data-width="<?php if(empty($t['images_width'])): ?>45<?php else: ?><?php echo htmlentities((string) $t['images_width']); ?><?php endif; ?>" data-height="<?php if(empty($t['images_height'])): ?>45<?php else: ?><?php echo htmlentities((string) $t['images_height']); ?><?php endif; ?>"><?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?></div>
                    <?php if(isset($t['is_qrcode_text']) and $t['is_qrcode_text'] == 1): ?>
                        <p><?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?></p>
                    <?php endif; ?>
                </a>
            <?php else: ?>
                <div class="am-dropdown am-inline-block text-copy-submit" data-value="<?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?>" data-am-dropdown="{trigger: 'hover'}">
                    <a href="javascript:;" class="am-icon-qrcode am-dropdown-toggle"> <?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?></a>
                    <div class="am-dropdown-content am-radius am-padding-sm am-text-center">
                        <div class="view-qrcode-init" data-width="130" data-height="130"><?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?></div>
                    </div>
                </div>
            <?php endif; ?>
        <?php endif; break; case "progress": if((!empty($t['view_key']) and isset($form_table_data_detail[$t['view_key']])) or (!empty($t['progress_data_key']) and isset($form_table_data_detail[$t['progress_data_key']]))): ?>
            <div class="data-progress <?php if(!empty($t['progress_text_key'])): ?> data-progress-view-text<?php endif; ?>">
                <div class="am-progress am-margin-bottom-0 am-inline-block am-vertical-align-middle <?php if(isset($t['is_striped']) and $t['is_striped'] == 1): ?> am-progress-striped<?php endif; if(!empty($t['progress_size'])): ?> am-progress-<?php echo htmlentities((string) $t['progress_size']); ?><?php endif; if(isset($t['is_radius']) and $t['is_radius'] == 1): ?> am-radius<?php endif; if(isset($t['is_active']) and $t['is_active'] == 1): ?> am-active<?php endif; ?>">
                    <div class="am-progress-bar <?php if(!empty($t['color_style'])): ?> am-progress-bar-<?php echo htmlentities((string) $t['color_style']); ?><?php endif; ?>"  style="width: <?php if(!empty($t['progress_data_key']) and isset($form_table_data_detail[$t['progress_data_key']])): ?><?php echo htmlentities((string) $form_table_data_detail[$t['progress_data_key']]); else: ?><?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?><?php endif; ?>%"></div>
                </div>
                <?php if(!empty($t['progress_text_key'])): ?>
                    <span class="am-text-grey am-margin-left-xs am-vertical-align-middle"><?php if(isset($form_table_data_detail[$t['progress_text_key']])): ?><?php echo htmlentities((string) $form_table_data_detail[$t['progress_text_key']]); ?><?php endif; if(isset($t['progress_text_unit'])): ?><?php echo htmlentities((string) $t['progress_text_unit']); ?><?php endif; ?></span>
                <?php endif; ?>
            </div>
        <?php endif; break; case "star": 
            $temp_star_data_key_field = (!empty($t['view_key']) and isset($form_table_data_detail[$t['view_key']])) ? 'view_key' : 'star_data_key';
         if(!empty($temp_star_data_key_field) and isset($form_table_data_detail[$t[$temp_star_data_key_field]])): ?>
            <div class="am-text-grey am-inline-block am-vertical-align-middle">
                <?php $__FOR_START_762112052__=1;$__FOR_END_762112052__=empty($t['star_max']) ? 5 : $t['star_max'];for($star_i=$__FOR_START_762112052__;$star_i <= $__FOR_END_762112052__;$star_i+=1){ if($star_i > $form_table_data_detail[$t[$temp_star_data_key_field]]): ?>
                        <i class="am-icon-star-o"></i>
                    <?php else: ?>
                        <i class="am-icon-star <?php if(!empty($t['color_style'])): ?> am-text-<?php echo htmlentities((string) $t['color_style']); ?><?php endif; ?>" <?php if(!empty($t['color_value'])): ?> style="color:<?php echo htmlentities((string) $t['color_value']); ?>"<?php endif; ?>></i>
                    <?php endif; } ?>
            </div>
            <?php if(!empty($t['star_text_key'])): ?>
                <span class="am-text-grey am-margin-left-xs am-vertical-align-middle"><?php if(isset($form_table_data_detail[$t['star_text_key']])): ?><?php echo htmlentities((string) $form_table_data_detail[$t['star_text_key']]); ?><?php endif; if(isset($t['star_text_unit'])): ?><?php echo htmlentities((string) $t['star_text_unit']); ?><?php endif; ?></span>
            <?php endif; ?>
        <?php endif; break; case "field": ?>
        <div class="richtext 
            <?php if(isset($t['is_badge']) and $t['is_badge'] == 1): ?>
                am-badge <?php if(!empty($t['badge_key']) and !empty($t['badge_style']) and isset($form_table_data_detail[$t['badge_key']]) and isset($t['badge_style'][$form_table_data_detail[$t['badge_key']]]) and substr($t['badge_style'][$form_table_data_detail[$t['badge_key']]], 0, 1) != '#'): ?>am-badge-<?php echo htmlentities((string) $t['badge_style'][$form_table_data_detail[$t['badge_key']]]); ?> <?php endif; if(!empty($t['badge_shape'])): ?>am-<?php echo htmlentities((string) $t['badge_shape']); ?> <?php endif; ?> 
            <?php endif; if(isset($t['is_color']) and $t['is_color'] == 1 and !empty($t['color_key']) and !empty($t['color_style']) and isset($form_table_data_detail[$t['color_key']]) and isset($t['color_style'][$form_table_data_detail[$t['color_key']]]) and substr($t['color_style'][$form_table_data_detail[$t['color_key']]], 0, 1) != '#'): ?>am-text-<?php echo htmlentities((string) $t['color_style'][$form_table_data_detail[$t['color_key']]]); ?><?php endif; if(!empty($t['text_truncate']) and (!isset($t['is_truncate_detail']) or $t['is_truncate_detail'] == 1)): ?>am-text-truncate<?php if($t['text_truncate'] > 1): ?>-<?php echo htmlentities((string) $t['text_truncate']); ?><?php endif; ?><?php endif; if(isset($t['is_popup']) and $t['is_popup'] == 1 and (!empty($t['popup_url']) or (!empty($t['popup_url_key']) and !empty($form_table_data_detail[$t['popup_url_key']])))): ?>submit-popup<?php endif; if(isset($t['is_modal']) and $t['is_modal'] == 1 and (!empty($t['modal_url']) or (!empty($t['modal_url_key']) and !empty($form_table_data_detail[$t['modal_url_key']])))): ?>submit-modal<?php endif; ?>" 
            style="
            <?php if(isset($t['is_badge']) and $t['is_badge'] == 1 and !empty($t['badge_key']) and !empty($t['badge_style']) and is_array($t['badge_style']) and isset($form_table_data_detail[$t['badge_key']]) and isset($t['badge_style'][$form_table_data_detail[$t['badge_key']]]) and substr($t['badge_style'][$form_table_data_detail[$t['badge_key']]], 0, 1) == '#'): ?>background: <?php echo htmlentities((string) $t['badge_style'][$form_table_data_detail[$t['badge_key']]]); ?>;<?php endif; if(isset($t['is_color']) and $t['is_color'] == 1): if(!empty($t['color_key']) and !empty($t['color_style']) and is_array($t['color_style']) and isset($form_table_data_detail[$t['color_key']]) and isset($t['color_style'][$form_table_data_detail[$t['color_key']]]) and substr($t['color_style'][$form_table_data_detail[$t['color_key']]], 0, 1) == '#'): ?>color: <?php echo htmlentities((string) $t['color_style'][$form_table_data_detail[$t['color_key']]]); ?>;<?php endif; if(!empty($t['color_style']) and !is_array($t['color_style'])): ?>color: <?php echo htmlentities((string) $t['color_style']); ?>;<?php endif; if(!empty($t['color_field_key']) and !empty($form_table_data_detail[$t['color_field_key']])): ?>color: <?php echo htmlentities((string) $form_table_data_detail[$t['color_field_key']]); ?>;<?php endif; ?>
            <?php endif; ?>" 
            <?php if(isset($t['is_popover']) and $t['is_popover'] == 1 and !empty($t['popover_field']) and !empty($form_table_data_detail[$t['popover_field']])): ?>data-am-popover="{content: '<?php echo PopoverContentHandle($form_table_data_detail[$t['popover_field']]); ?>', trigger: 'hover focus', theme: 'sm'}"<?php endif; if(isset($t['is_popup']) and $t['is_popup'] == 1 and (!empty($t['popup_url']) or (!empty($t['popup_url_key']) and !empty($form_table_data_detail[$t['popup_url_key']])))): ?>
                data-url="<?php if(!empty($t['popup_url_key']) and !empty($form_table_data_detail[$t['popup_url_key']])): ?><?php echo htmlentities((string) $form_table_data_detail[$t['popup_url_key']]); else: if(!empty($t['popup_url'])): ?><?php echo htmlentities((string) $t['popup_url']); ?><?php endif; ?><?php endif; ?>" 
                <?php if(!empty($t['popup_title'])): ?>
                    data-title="<?php echo htmlentities((string) $t['popup_title']); ?>" 
                <?php endif; if(!empty($t['popup_class'])): ?>
                    data-class="<?php echo htmlentities((string) $t['popup_class']); ?>" 
                <?php endif; if(isset($t['popup_full'])): ?>
                    data-full="<?php echo htmlentities((string) $t['popup_full']); ?>" 
                <?php endif; if(isset($t['popup_full_max'])): ?>
                    data-full-max="<?php echo htmlentities((string) $t['popup_full_max']); ?>" 
                <?php endif; if(!empty($t['popup_full_max_size'])): ?>
                    data-full-max="1" 
                    data-full-max-size="<?php echo htmlentities((string) $t['popup_full_max_size']); ?>" 
                <?php endif; if(!empty($t['popup_offcanvas'])): ?>
                    data-offcanvas="<?php echo htmlentities((string) $t['popup_offcanvas']); ?>" 
                <?php endif; ?>
            <?php endif; if(isset($t['is_modal']) and $t['is_modal'] == 1 and (!empty($t['modal_url']) or (!empty($t['modal_url_key']) and !empty($form_table_data_detail[$t['modal_url_key']])))): ?>
                data-url="<?php if(!empty($t['modal_url_key']) and !empty($form_table_data_detail[$t['modal_url_key']])): ?><?php echo htmlentities((string) $form_table_data_detail[$t['modal_url_key']]); else: if(!empty($t['modal_url'])): ?><?php echo htmlentities((string) $t['modal_url']); ?><?php endif; ?><?php endif; ?>" 
                <?php if(!empty($t['modal_width'])): ?>
                    data-width="<?php echo htmlentities((string) $t['modal_width']); ?>" 
                <?php endif; if(!empty($t['modal_height'])): ?>
                    data-height="<?php echo htmlentities((string) $t['modal_height']); ?>" 
                <?php endif; ?>
            <?php endif; ?> 
        >
            <!-- 图标+提示 -->
            <?php if(isset($t['is_first_tips']) and $t['is_first_tips'] == 1 and ((!empty($t['first_tips_key']) and !empty($form_table_data_detail[$t['first_tips_key']])) or (!empty($t['first_tips_data'])))): ?>
                <span class="am-margin-right-xs <?php if(!empty($t['first_tips_style'])): ?>am-text-<?php echo htmlentities((string) $t['first_tips_style']); ?><?php endif; ?> am-icon-<?php if(empty($t['first_tips_icon'])): ?>exclamation-circle<?php else: ?><?php echo htmlentities((string) $t['first_tips_icon']); ?><?php endif; if(isset($t['is_first_tips_copy']) and $t['is_first_tips_copy'] == 1): ?> text-copy-submit<?php endif; ?>" data-value="<?php if(!empty($t['first_tips_key']) and !empty($form_table_data_detail[$t['first_tips_key']])): ?><?php echo PopoverContentHandle($form_table_data_detail[$t['first_tips_key']]); else: ?><?php echo PopoverContentHandle($t['first_tips_data']); ?><?php endif; ?>" data-am-popover="{content: '<?php if(!empty($t['first_tips_key']) and !empty($form_table_data_detail[$t['first_tips_key']])): ?><?php echo PopoverContentHandle($form_table_data_detail[$t['first_tips_key']]); else: ?><?php echo PopoverContentHandle($t['first_tips_data']); ?><?php endif; ?>', trigger: 'hover focus', theme: '<?php if(!empty($t['first_tips_style'])): ?><?php echo htmlentities((string) $t['first_tips_style']); ?><?php endif; ?> sm'}"></span>
            <?php endif; ?>

            <!-- 连接+提示 -->
            <?php if(isset($t['is_first_link']) and $t['is_first_link'] == 1 and ((!empty($t['first_link_key']) and !empty($form_table_data_detail[$t['first_link_key']])) or (!empty($t['first_link_data'])))): ?>
                <a href="<?php if(!empty($t['first_link_key']) and !empty($form_table_data_detail[$t['first_link_key']])): ?><?php echo htmlentities((string) $form_table_data_detail[$t['first_link_key']]); else: ?><?php echo htmlentities((string) $t['first_link_data']); ?><?php endif; ?>" class="am-margin-right-xs <?php if(!empty($t['first_link_style'])): ?>am-text-<?php echo htmlentities((string) $t['first_link_style']); ?><?php endif; ?> am-icon-<?php if(empty($t['first_link_icon'])): ?>external-link<?php else: ?><?php echo htmlentities((string) $t['first_link_icon']); ?><?php endif; ?>" target="_blank" rel="noopener noreferrer" <?php if(!empty($t['first_link_popover'])): ?>data-am-popover="{content: '<?php echo PopoverContentHandle($t['first_link_popover']); ?>', trigger: 'hover focus', theme: 'sm'}"<?php endif; ?>></a>
            <?php endif; ?>

            <!-- 圆点 -->
            <?php if(isset($t['is_round_point']) and $t['is_round_point'] == 1): ?>
                <i class="am-icon-circle am-margin-right-xs <?php if(!empty($t['round_point_key']) and !empty($t['round_point_style']) and is_array($t['round_point_style']) and isset($form_table_data_detail[$t['round_point_key']]) and isset($t['round_point_style'][$form_table_data_detail[$t['round_point_key']]]) and substr($t['round_point_style'][$form_table_data_detail[$t['round_point_key']]], 0, 1) != '#'): ?>am-text-<?php echo htmlentities((string) $t['round_point_style'][$form_table_data_detail[$t['round_point_key']]]); ?><?php endif; ?>" 
                style="<?php if(!empty($t['round_point_key']) and !empty($t['round_point_style']) and is_array($t['round_point_style']) and isset($form_table_data_detail[$t['round_point_key']]) and isset($t['round_point_style'][$form_table_data_detail[$t['round_point_key']]]) and substr($t['round_point_style'][$form_table_data_detail[$t['round_point_key']]], 0, 1) == '#'): ?>color: <?php echo htmlentities((string) $t['round_point_style'][$form_table_data_detail[$t['round_point_key']]]); ?>;<?php endif; ?>"></i>
            <?php endif; ?>

            <!-- 前后固定拼接的值 前面 -->
            <?php if(isset($t['view_join_first'])): ?>
                <span><?php echo htmlentities((string) $t['view_join_first']); ?></span>
            <?php endif; ?>

            <!-- 如果字段为数组则处理多个字段拼接数据 -->
            <?php if(is_array($t['view_key'])): foreach($t['view_key'] as $fk=>$fv): if(isset($form_table_data_detail[$fv])): ?>
                        <?php echo htmlentities((string) $form_table_data_detail[$fv]); ?>
                        <!-- 多个字段拼接数据的的拼接字符 -->
                        <?php if(isset($t['view_key_join']) and $fk < count($t['view_key'])-1): ?>
                            <?php echo $t['view_key_join']; ?>
                        <?php endif; ?>
                    <?php endif; ?>
                <?php endforeach; else: ?>
                <!-- 是否存在数据 key -->
                <?php if(isset($form_table_data_detail[$t['view_key']])): ?>
                    <!-- 是否指定数据转换 -->
                    <?php if(!empty($t['view_data']) and is_array($t['view_data'])): ?>
                        <!-- 不存在数组中则不显示 -->
                        <?php if(isset($t['view_data'][$form_table_data_detail[$t['view_key']]])): ?>
                            <!-- 是否指定二维数组key取值 -->
                            <?php if(!empty($t['view_data_key'])): if(isset($t['view_data'][$form_table_data_detail[$t['view_key']]][$t['view_data_key']])): ?>
                                    <span><?php echo htmlentities((string) $t['view_data'][$form_table_data_detail[$t['view_key']]][$t['view_data_key']]); ?></span>
                                    <?php if(isset($t['is_copy']) and $t['is_copy'] == 1 and !empty($t['view_data'][$form_table_data_detail[$t['view_key']]][$t['view_data_key']])): ?>
                                        <i class="iconfont icon-copy am-margin-left-xs am-color-grey text-copy-submit" data-value="<?php echo htmlentities((string) $t['view_data'][$form_table_data_detail[$t['view_key']]][$t['view_data_key']]); ?>"></i>
                                    <?php endif; ?>
                                <?php endif; else: ?>
                                <span><?php echo htmlentities((string) $t['view_data'][$form_table_data_detail[$t['view_key']]]); ?></span>
                                <?php if(isset($t['is_copy']) and $t['is_copy'] == 1 and !empty($t['view_data'][$form_table_data_detail[$t['view_key']]])): ?>
                                    <i class="iconfont icon-copy am-margin-left-xs am-color-grey text-copy-submit" data-value="<?php echo htmlentities((string) $t['view_data'][$form_table_data_detail[$t['view_key']]]); ?>"></i>
                                <?php endif; ?>
                            <?php endif; ?>
                        <?php endif; else: ?>
                        <!-- 直接展示数据 -->
                        <span><?php echo $form_table_data_detail[$t['view_key']]; ?></span>
                        <?php if(isset($t['is_copy']) and $t['is_copy'] == 1 and !empty($form_table_data_detail[$t['view_key']])): ?>
                            <i class="iconfont icon-copy am-margin-left-xs am-color-grey text-copy-submit" data-value="<?php echo $form_table_data_detail[$t['view_key']]; ?>"></i>
                        <?php endif; ?>
                    <?php endif; ?>
                <?php endif; ?>
            <?php endif; ?>
            <!-- 前后固定拼接的值 后面 -->
            <?php if(isset($t['view_join_last'])): ?>
                <span><?php echo htmlentities((string) $t['view_join_last']); ?></span>
            <?php endif; ?>
        </div>
    <?php break; case "module": ?>
        <!-- 从模块加载自定义模块数据 -->
        <?php echo ModuleInclude($t['view_key'], $form_table_data_detail, ['form_request_type'=>'detail']); break; case "status": ?>
        <!-- 数据状态操作按钮组件 -->
        <?php if(!empty($t['key_field']) and !empty($t['post_url'])): ?>
            <a href="javascript:;"
                class="am-icon-btn submit-state <?php if(isset($form_table_data_detail[$t['view_key']]) and $form_table_data_detail[$t['view_key']] == 1): ?>am-success<?php else: ?>am-default<?php endif; ?>"
                data-url="<?php echo htmlentities((string) $t['post_url']); ?>"
                data-id="<?php if(isset($form_table_data_detail[$t['key_field']])): ?><?php echo htmlentities((string) $form_table_data_detail[$t['key_field']]); ?><?php endif; ?>"
                data-state="<?php if(isset($form_table_data_detail[$t['view_key']])): ?><?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?><?php endif; ?>"
                data-field="<?php echo htmlentities((string) $t['view_key']); ?>"
                data-is-update-status="<?php if(isset($t['is_form_su'])): ?><?php echo htmlentities((string) $t['is_form_su']); else: ?>0<?php endif; ?>"
                data-is-update-status="<?php if(isset($t['is_form_su']) and $t['is_form_su'] == 1): ?>1<?php else: ?>0<?php endif; ?>"
                data-is-operate-reason="<?php if(isset($t['is_operate_reason']) and $t['is_operate_reason'] == 1): ?>1<?php else: ?>0<?php endif; ?>"
                data-operate-reason-where="<?php if(isset($t['operate_reason_where'])): ?><?php echo is_array($t['operate_reason_where']) ? implode(',', $t['operate_reason_where']) : $t['operate_reason_where']; ?><?php endif; ?>"
                data-is-loading="<?php if(isset($t['is_loading']) and $t['is_loading'] == 1): ?>1<?php else: ?>0<?php endif; ?>"
                data-loading-msg="<?php if(!empty($t['loading_msg'])): ?><?php echo htmlentities((string) $t['loading_msg']); ?><?php endif; ?>"
            ><i class="iconfont icon-enable top-md"></i></a>
        <?php endif; break; ?>
<?php endswitch; ?>

<!-- 底部提示文字 -->
<?php if(isset($t['is_bottom_text_tips']) and $t['is_bottom_text_tips'] == 1 and (
        (!empty($t['bottom_text_tips_key']) and !empty($form_table_data_detail[$t['bottom_text_tips_key']])) or
        !empty($t['bottom_text_tips_data'])
    ) and (
        (empty($t['bottom_text_tips_where_key']) or empty($t['bottom_text_tips_where_type']) or !isset($t['bottom_text_tips_where_value'])) or 
        (
            ($t['bottom_text_tips_where_type'] == 'eq' and $form_table_data_detail[$t['bottom_text_tips_where_key']] == $t['bottom_text_tips_where_value']) or 
            ($t['bottom_text_tips_where_type'] == 'gt' and $form_table_data_detail[$t['bottom_text_tips_where_key']] > $t['bottom_text_tips_where_value']) or 
            ($t['bottom_text_tips_where_type'] == 'neq' and $form_table_data_detail[$t['bottom_text_tips_where_key']] != $t['bottom_text_tips_where_value']) or 
            ($t['bottom_text_tips_where_type'] == 'lt' and $form_table_data_detail[$t['bottom_text_tips_where_key']] < $t['bottom_text_tips_where_value']) or 
            ($t['bottom_text_tips_where_type'] == 'in' and is_array($t['bottom_text_tips_where_value']) and in_array($form_table_data_detail[$t['bottom_text_tips_where_key']], $t['bottom_text_tips_where_value'])) or 
            ($t['bottom_text_tips_where_type'] == 'notin' and is_array($t['bottom_text_tips_where_value']) and !in_array($form_table_data_detail[$t['bottom_text_tips_where_key']], $t['bottom_text_tips_where_value']))
        )
    )): ?>
    <p class="am-margin-top-xs <?php if(!empty($t['bottom_text_tips_style'])): ?>am-text-<?php echo htmlentities((string) $t['bottom_text_tips_style']); ?><?php endif; if(!empty($t['bottom_text_tips_icon'])): ?>am-icon-<?php echo htmlentities((string) $t['bottom_text_tips_icon']); ?><?php endif; ?>"><?php if(!empty($t['bottom_text_tips_key']) and !empty($form_table_data_detail[$t['bottom_text_tips_key']])): ?><?php echo htmlentities((string) $form_table_data_detail[$t['bottom_text_tips_key']]); else: ?><?php echo htmlentities((string) $t['bottom_text_tips_data']); ?><?php endif; ?></p>
<?php endif; ?>

<!-- 列表格子钩子 -->
<?php if(!empty($t['unique_key']) and $t['view_type'] != 'operate'): if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
        <div class="plugins-tag">
            <span><?php echo htmlentities((string) $hook_name_form_grid); ?>_<?php echo htmlentities((string) $t['unique_key']); ?></span>
        </div>
    <?php endif; 
        $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_detail[$form_table['base']['key_field']]) ? $form_table_data_detail[$form_table['base']['key_field']] : 0,
            'data'          => $form_table_data_detail,
        ]);
        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 endif; ?>
                            </dd>
                        <?php endif; ?>
                    <?php endforeach; ?>
                </dl>
                <?php if(!empty($form_table['base']) and !empty($form_table['base']['detail_title'])): ?>
                    </div>
                    </div>
                <?php endif; ?>
            <?php endif; ?>
        
        </div>

        <!-- 用户平台信息 -->
        <div class="item" data-key="platform-data">
            <?php if(!empty($data['user_platform_data'])): ?>
                <div class="am-scrollable-horizontal">
                    <table class="am-table am-table-bordered am-table-striped am-text-nowrap am-margin-bottom-0">
                        <head>
                            <tr>
                                <th><?php echo MyLang('common_service.user.detail_system_type'); ?></th>
                                <th><?php echo MyLang('common_service.user.detail_platform'); ?></th>
                                <th><?php echo MyLang('common_service.user.detail_alipay_openid'); ?></th>
                                <th><?php echo MyLang('common_service.user.detail_baidu_openid'); ?></th>
                                <th><?php echo MyLang('common_service.user.detail_toutiao_openid'); ?></th>
                                <th><?php echo MyLang('common_service.user.detail_toutiao_unionid'); ?></th>
                                <th><?php echo MyLang('common_service.user.detail_qq_openid'); ?></th>
                                <th><?php echo MyLang('common_service.user.detail_qq_unionid'); ?></th>
                                <th><?php echo MyLang('common_service.user.detail_weixin_openid'); ?></th>
                                <th><?php echo MyLang('common_service.user.detail_weixin_unionid'); ?></th>
                                <th><?php echo MyLang('common_service.user.detail_weixin_web_openid'); ?></th>
                                <th><?php echo MyLang('common_service.user.detail_kuaishou_openid'); ?></th>
                            </tr>
                        </head>
                        <tbody>
                            <?php foreach($data['user_platform_data'] as $v): ?>
                                <tr>
                                    <td><?php echo htmlentities((string) $v['system_type']); ?></td>
                                    <td><?php echo htmlentities((string) $v['platform_name']); ?></td>
                                    <td><?php echo htmlentities((string) $v['alipay_openid']); ?></td>
                                    <td><?php echo htmlentities((string) $v['baidu_openid']); ?></td>
                                    <td><?php echo htmlentities((string) $v['toutiao_openid']); ?></td>
                                    <td><?php echo htmlentities((string) $v['toutiao_unionid']); ?></td>
                                    <td><?php echo htmlentities((string) $v['qq_openid']); ?></td>
                                    <td><?php echo htmlentities((string) $v['qq_unionid']); ?></td>
                                    <td><?php echo htmlentities((string) $v['weixin_openid']); ?></td>
                                    <td><?php echo htmlentities((string) $v['weixin_unionid']); ?></td>
                                    <td><?php echo htmlentities((string) $v['weixin_web_openid']); ?></td>
                                    <td><?php echo htmlentities((string) $v['kuaishou_openid']); ?></td>
                                </tr>
                            <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>
            <?php else: ?>
                <?php echo ModuleInclude('public/not_data'); ?>
            <?php endif; ?>
        </div>
    </div>

    <?php else: ?>
        
            <?php echo ModuleInclude('public/not_data'); ?>
        
    <?php endif; ?>

    <!-- content inside top hook -->
    <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
        <div class="plugins-tag">
            <span><?php echo htmlentities((string) $hook_name_detail_inside_bottom); ?></span>
        </div>
    <?php endif; 
        $hook_data = MyEventTrigger($hook_name_detail_inside_bottom, ['hook_name'=>$hook_name_detail_inside_bottom, 'is_backend'=>true]);
        if(!empty($hook_data) && is_array($hook_data))
        {
            foreach($hook_data as $hook)
            {
                if(is_string($hook) || is_int($hook))
                {
                    echo htmlspecialchars_decode($hook);
                }
            }
        }
     ?>
</div>
<!-- content end  -->

<!-- detail nav operate start -->
<?php if(isset($form_table['base']['is_detail_nav_operate']) and $form_table['base']['is_detail_nav_operate'] == 1): ?>
    <div class="form-table-detail-nav-operate am-cf"
        <?php if(!empty($form_table_data_detail)): ?>
            data-original-form-table-detail-data="<?php echo urlencode(base64_encode(json_encode($form_table_data_detail, JSON_UNESCAPED_UNICODE))); ?>"
        <?php endif; ?>
    >
        <?php if(!empty($form_table['base']) and !empty($form_table['base']['detail_nav_operate_module'])): ?>
            <div class="am-dropdown am-dropdown-up am-margin-right-sm form-table-detail-nav-operate-base" data-am-dropdown>
                <button class="am-btn am-btn-primary am-radius am-btn-xs am-dropdown-toggle" data-am-dropdown-toggle>
                    <span><?php echo MyLang('data_operate_title'); ?></span>
                    <i class="am-icon-angle-up"></i>
                </button>
                <div class="am-dropdown-content am-radius am-padding">
                    <?php echo ModuleInclude($form_table['base']['detail_nav_operate_module'], $form_table_data_detail, [
                        'params' => isset($form_params) ? $form_params : [],
                    ]); ?>

                    <!-- 详情操作钩子 -->
                    <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                        <div class="plugins-tag">
                            <span><?php echo htmlentities((string) $hook_name_detail_operate); ?></span>
                        </div>
                    <?php endif; 
                        $hook_data = MyEventTrigger($hook_name_detail_operate, [
                            'hook_name'     => $hook_name_detail_operate,
                            'is_backend'    => true,
                            'id'            => isset($form_table_data_detail[$form_table['base']['key_field']]) ? $form_table_data_detail[$form_table['base']['key_field']] : 0,
                            'data'          => $form_table_data_detail,
                        ]);
                        if(!empty($hook_data) && is_array($hook_data))
                        {
                            foreach($hook_data as $hook)
                            {
                                if(is_string($hook) || is_int($hook))
                                {
                                    echo htmlspecialchars_decode($hook);
                                }
                            }
                        }
                     ?>
                </div>
            </div>
        <?php endif; ?>

        <!-- 是否开启数据打印操作 -->
        <?php if(isset($form_table['base']['is_data_print']) and $form_table['base']['is_data_print'] == 1): ?>
            <button type="button" class="am-btn am-btn-primary am-radius am-btn-xs am-icon-print form-table-operate-top-data-print-submit" data-am-popover="{content: '<?php echo MyLang('form_table_nav_operate_data_print_tips'); ?>', trigger: 'hover focus', theme: 'warning sm'}"> <?php echo MyLang('form_table_nav_operate_data_print_name'); ?></button>
        <?php endif; ?>

        <!-- 是否开启数据导出pdf操作 -->
        <?php if(isset($form_table['base']['is_data_export_pdf']) and $form_table['base']['is_data_export_pdf'] == 1): ?>
            <button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-file-pdf-o form-table-operate-top-data-print-submit" data-is-pdf="1" data-am-popover="{content: '<?php echo MyLang('form_table_nav_operate_data_export_tips'); ?>', trigger: 'hover focus', theme: 'warning sm'}"> <?php echo MyLang('form_table_nav_operate_data_export_pdf_name'); ?></button>
        <?php endif; ?>

        <!-- 是否开启数据导出excel操作 -->
        <?php if(isset($form_table['base']['is_data_export_excel']) and $form_table['base']['is_data_export_excel'] == 1): ?>
            <button type="button" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-file-excel-o form-table-operate-top-export-excel-submit" data-am-popover="{content: '<?php echo MyLang('form_table_nav_operate_data_export_tips'); ?>', trigger: 'hover focus', theme: 'warning sm'}"> <?php echo MyLang('form_table_nav_operate_data_export_excel_name'); ?></button>
        <?php endif; ?>
    </div>
    <!-- 是否开启数据打印操作 -->
    <?php if((isset($form_table['base']['is_data_print']) and $form_table['base']['is_data_print'] == 1) or (isset($form_table['base']['is_data_export_pdf']) and $form_table['base']['is_data_export_pdf'] == 1) or (isset($form_table['base']['is_data_export_excel']) and $form_table['base']['is_data_export_excel'] == 1)): ?>
        <script type="text/javascript">
            // 定义打印配置
            var print_is_list_choice = 0;
            // 打印模板
            var print_template = <?php if(empty($form_table['base']['data_print_template'])): ?>{}<?php else: if(is_array($form_table['base']['data_print_template'])): ?><?php echo json_encode($form_table['base']['data_print_template'], JSON_UNESCAPED_UNICODE); else: ?><?php echo $form_table['base']['data_print_template']; ?><?php endif; ?><?php endif; ?>;
        </script>
    <?php endif; ?>
<?php endif; ?>
<!-- detail nav operate end -->

<!-- content bottom hook -->
<?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
    <div class="plugins-tag">
        <span><?php echo htmlentities((string) $hook_name_detail_bottom); ?></span>
    </div>
<?php endif; 
    $hook_data = MyEventTrigger($hook_name_detail_bottom, ['hook_name'=>$hook_name_detail_bottom, 'is_backend'=>true]);
    if(!empty($hook_data) && is_array($hook_data))
    {
        foreach($hook_data as $hook)
        {
            if(is_string($hook) || is_int($hook))
            {
                echo htmlspecialchars_decode($hook);
            }
        }
    }
 ?>

<!-- 状态操作原因 -->
<div class="am-modal am-modal-no-btn" tabindex="-1" id="form-table-state-operate-reason-modal">
    <div class="am-modal-dialog am-radius am-nbfc">
        <div class="am-modal-hd">
            <span><?php echo MyLang('form_operate_reason'); ?></span>
            <a href="javascript: void(0)" class="am-close" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd">
            <form class="am-form am-form-popup-fixed">
                <div class="am-form-group am-margin-top">
                    <input type="text" autocomplete="off" placeholder="<?php echo MyLang('form_operate_reason_message'); ?>" maxlength="230" data-validation-message="<?php echo MyLang('form_operate_reason_message'); ?>" class="am-radius am-form-field" />
                </div>
                <div class="am-form-popup-submit">
                    <button type="button" class="am-btn am-btn-warning am-radius am-btn-xs" data-am-modal-close>
                        <i class="am-icon-paint-brush"></i>
                        <span><?php echo MyLang('cancel_title'); ?></span>
                    </button>
                    <button type="button" class="am-btn am-btn-primary am-radius am-btn-xs state-operate-confirm-submit">
                        <i class="am-icon-check"></i>
                        <span><?php echo MyLang('confirm_title'); ?></span>
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
        
<!-- footer start -->
<?php echo ModuleInclude('public/footer'); ?>

<!-- page buttom -->
