form.html 5.8 KB
Newer Older
D
devil 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{{include file="public/header" /}}

<!-- header top nav -->
{{include file="public/header_top_nav" /}}

<!-- search -->
{{include file="public/nav_search" /}}

<!-- header nav -->
{{include file="public/header_nav" /}}

<!-- goods category -->
{{include file="public/goods_category" /}}

<!-- content -->
D
devil 已提交
16 17 18 19 20 21 22 23 24 25 26 27 28 29
<div class="am-container">
    <!-- content top hook -->
    {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
        <div class="plugins-tag">
            <span>{{$hook_name_content_top}}</span>
        </div>
    {{/if}}
    {{php}}
        $hook_data = Hook::listen($hook_name_content_top, ['hook_name'=>$hook_name_content_top, 'is_backend'=>true]);
        if(!empty($hook_data) && is_array($hook_data))
        {
            foreach($hook_data as $hook)
            {
                if(is_string($hook) || is_int($hook))
D
devil 已提交
30
                {
D
devil 已提交
31
                    echo htmlspecialchars_decode($hook);
D
devil 已提交
32
                }
D
devil 已提交
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
            }
        }
    {{/php}}

    <!-- content start  -->
    <div class="form-table-content">
        <!-- content inside top hook -->
        {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
            <div class="plugins-tag">
                <span>{{$hook_name_content_inside_top}}</span>
            </div>
        {{/if}}
        {{php}}
            $hook_data = Hook::listen($hook_name_content_inside_top, ['hook_name'=>$hook_name_content_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))
D
devil 已提交
52
                    {
D
devil 已提交
53
                        echo htmlspecialchars_decode($hook);
D
devil 已提交
54
                    }
D
devil 已提交
55 56 57 58 59 60 61 62
                }
            }
        {{/php}}

        <!-- form -->
        {{if !empty($form_table) and !empty($form_table['base']) and !empty($form_table['form']) and is_array($form_table['base']) and is_array($form_table['form'])}}
            <form class="form-validation-search" method="post" action="{{if isset($form_table['base']['is_search']) and $form_table['base']['is_search'] eq 1 and !empty($form_table['base']['search_url'])}}{{$form_table.base.search_url}}{{/if}}" request-type="jump" request-value="{{if isset($form_table['base']['is_search']) and $form_table['base']['is_search'] eq 1 and !empty($form_table['base']['search_url'])}}{{$form_table.base.search_url}}{{/if}}">
                <!-- nav start -->
D
devil 已提交
63
                <div class="form-table-navigation">
D
devil 已提交
64 65 66
                    {{block name="form_navigation"}}{{/block}}
                </div>
                <!-- nav end -->
D
devil 已提交
67

D
devil 已提交
68
                <!-- top operate start -->
D
Devil 已提交
69
                <div class="form-table-operate-top am-nbfc">
D
devil 已提交
70 71 72 73 74
                    {{block name="form_operate_top"}}
                       {{include file="public/module/form_operate_top" /}}
                    {{/block}}
                </div>
                <!-- top operate end -->
D
devil 已提交
75

D
devil 已提交
76 77 78
                <!-- form table start -->
                {{include file="public/module/form_table" /}}
                <!-- form table end -->
D
devil 已提交
79

D
devil 已提交
80
                <!-- bottom operate start -->
D
Devil 已提交
81
                <div class="form-table-operate-bottom am-nbfc am-margin-top-sm">
D
devil 已提交
82 83 84 85 86 87
                    {{block name="form_operate_bottom"}}
                        {{include file="public/module/form_operate_bottom" /}}
                    {{/block}}
                </div>
                <!-- bottom operate end -->
            </form>
D
devil 已提交
88 89 90

            <!-- 字段选择 -->
            {{include file="public/module/form_fields_select" /}}
D
devil 已提交
91 92 93 94 95 96 97 98 99 100 101
        {{else /}}
            <div class="table-no"><i class="am-icon-warning"></i> {{if empty($form_error)}}动态表格配置有误{{else /}}{{$form_error}}{{/if}}</div>
        {{/if}}

        <!-- page start -->
        {{block name="form_page"}}
            {{if !empty($data_list) and isset($page_html)}}
                {{$page_html|raw}}
            {{/if}}
        {{/block}}
        <!-- page end -->
D
devil 已提交
102

D
devil 已提交
103 104 105
        <!-- extend start -->
        {{block name="form_extend"}}{{/block}}
        <!-- extend end -->
D
devil 已提交
106

D
devil 已提交
107 108 109 110
        <!-- content inside top hook -->
        {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
            <div class="plugins-tag">
                <span>{{$hook_name_content_inside_bottom}}</span>
D
devil 已提交
111
            </div>
D
devil 已提交
112 113 114 115 116 117
        {{/if}}
        {{php}}
            $hook_data = Hook::listen($hook_name_content_inside_bottom, ['hook_name'=>$hook_name_content_inside_bottom, 'is_backend'=>true]);
            if(!empty($hook_data) && is_array($hook_data))
            {
                foreach($hook_data as $hook)
D
devil 已提交
118
                {
D
devil 已提交
119
                    if(is_string($hook) || is_int($hook))
D
devil 已提交
120
                    {
D
devil 已提交
121
                        echo htmlspecialchars_decode($hook);
D
devil 已提交
122 123
                    }
                }
D
devil 已提交
124 125
            }
        {{/php}}
D
devil 已提交
126
    </div>
D
devil 已提交
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
    <!-- content end  -->

    <!-- content bottom hook -->
    {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
        <div class="plugins-tag">
            <span>{{$hook_name_content_bottom}}</span>
        </div>
    {{/if}}
    {{php}}
        $hook_data = Hook::listen($hook_name_content_bottom, ['hook_name'=>$hook_name_content_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);
                }
            }
        }
    {{/php}}
D
devil 已提交
148 149 150 151
</div>

<!-- footer start -->
{{include file="public/footer" /}}
D
devil 已提交
152 153 154 155
<!-- footer end -->

<!-- page buttom -->
{{block name="form_page_bottom"}}{{/block}}