index.html 8.9 KB
Newer Older
G
gongfuxiang 已提交
1 2 3 4 5 6 7
{{include file="public/header" /}}

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <!-- operation start -->
        <div class="am-g">
D
devil_gong 已提交
8
            <a href="javascript:;" class="am-btn am-btn-secondary am-btn-xs m-l-10 am-icon-cloud-upload am-radius" data-am-modal="{target: '#payment-upload-win'}"> 上传</a>
G
gongfuxiang 已提交
9 10 11 12
        </div>
        <!-- operation end -->

        <!-- list start -->
D
devil_gong 已提交
13
        <table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
G
gongfuxiang 已提交
14 15
            <thead>
                <tr>
D
语言  
devil_gong 已提交
16 17 18 19 20 21
                    <th>名称</th>
                    <th class="am-hide-sm-only">LOGO</th>
                    <th class="am-hide-sm-only">适用版本</th>
                    <th>适用终端</th>
                    <th class="am-hide-sm-only">作者</th>
                    <th class="am-hide-sm-only th-desc">描述</th>
D
devil_gong 已提交
22
                    <th>是否启用</th>
D
语言  
devil_gong 已提交
23
                    <th>对用户放开</th>
D
devil_gong 已提交
24
                    <th>操作</th>
G
gongfuxiang 已提交
25 26 27
                </tr>
            </thead>
            <tbody>
D
devil_gong 已提交
28 29 30
                {{if !empty($data_list)}}
                    {{foreach $data_list as $v}}
                        <tr id="data-list-{{$v.payment}}" {{if $v['is_install'] eq 0}}class="am-warning"{{elseif $v['is_enable'] eq 0 /}}class="am-active"{{/if}} >
G
gongfuxiang 已提交
31 32 33 34 35 36 37 38 39 40 41 42
                            <td>
                                {{$v.name}}
                                {{if !empty($v['version'])}}
                                    <p class="td-version">v {{$v.version}}</p>
                                {{/if}}
                            </td>
                            <td class="am-hide-sm-only">
                                {{if !empty($v['logo'])}}
                                    <a href="{{$v['logo']}}" target="_blank">
                                        <img src="{{$v['logo']}}" class="am-radius" width="100" />
                                    </a>
                                {{else /}}
D
devil_gong 已提交
43
                                    <span class="cr-ddd">暂无LOGO</span>
G
gongfuxiang 已提交
44 45 46
                                {{/if}}
                            </td>
                            <td class="am-hide-sm-only">
D
devil_gong 已提交
47
                                {{if empty($v['apply_version'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.apply_version}}{{/if}}
G
gongfuxiang 已提交
48 49 50
                            </td>
                            <td>
                                {{if !empty($v['apply_terminal'])}}
D
devil_gong 已提交
51 52 53
                                    {{foreach $v.apply_terminal as $terminal_k=>$terminal_v}}
                                        {{$common_platform_type[$terminal_v]['name']}}
                                        {{if $terminal_k LT count($v['apply_terminal'])-1}}<br />{{/if}}
G
gongfuxiang 已提交
54 55
                                    {{/foreach}}
                                {{else /}}
D
devil_gong 已提交
56
                                    <span class="cr-ddd">未填写</span>
G
gongfuxiang 已提交
57 58 59 60
                                {{/if}}
                            </td>
                            <td class="am-hide-sm-only">
                                {{if empty($v['author'])}}
D
devil_gong 已提交
61
                                    <span class="cr-ddd">未填写</span>
G
gongfuxiang 已提交
62 63 64 65 66 67 68 69 70 71
                                {{else /}}
                                    {{$v.author}}
                                    {{if !empty($v['author_url'])}}
                                        <a href="{{$v.author_url}}" target="_blank">
                                            <i class="am-icon-external-link"></i>
                                        </a>
                                    {{/if}}
                                {{/if}}
                            </td>
                            <td class="am-hide-sm-only td-desc">
D
devil_gong 已提交
72
                                {{if empty($v['desc'])}}<span class="cr-ddd">未填写</span>{{else /}}{{$v.desc||raw}}{{/if}}
G
gongfuxiang 已提交
73 74
                            </td>
                            <td>
D
devil_gong 已提交
75 76
                                {{if $v['is_install'] eq 1}}
                                    <a href="javascript:;" class="am-icon-btn am-icon-check submit-state {{if $v['is_enable'] eq 1}}am-success{{else /}}am-default{{/if}}" data-url="{{:url('admin/payment/StatusUpdate')}}" data-id="{{$v.payment}}" data-field="is_enable" data-state="{{$v['is_enable']}}" data-is-update-status="1"></a>
G
gongfuxiang 已提交
77
                                {{else /}}
D
devil_gong 已提交
78
                                    <span class="cr-ddd">未安装</span>
G
gongfuxiang 已提交
79 80 81
                                {{/if}}
                            </td>
                            <td>
D
devil_gong 已提交
82 83
                                {{if $v['is_install'] eq 1}}
                                    <a href="javascript:;" class="am-icon-btn am-icon-check submit-state {{if $v['is_open_user'] eq 1}}am-success{{else /}}am-default{{/if}}" data-url="{{:url('admin/payment/StatusUpdate')}}" data-id="{{$v.payment}}" data-field="is_open_user" data-state="{{$v['is_open_user']}}"></a>
G
gongfuxiang 已提交
84
                                {{else /}}
D
devil_gong 已提交
85
                                    <span class="cr-ddd">未安装</span>
G
gongfuxiang 已提交
86 87 88
                                {{/if}}
                            </td>
                            <td class="view-operation">
D
devil_gong 已提交
89 90
                                {{if $v['is_install'] eq 0}}
                                    <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-cubes submit-ajax" data-url="{{:url('admin/payment/install')}}" data-id="{{$v.payment}}" data-view="reload" data-msg="安装进行中、确认操作吗?"> 安装</button>
G
gongfuxiang 已提交
91 92

                                    {{if !in_array($v['payment'], $cannot_deleted_list)}}
D
devil_gong 已提交
93
                                        <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:url('admin/payment/Delete')}}" data-id="{{$v.payment}}"> 删除</button>
G
gongfuxiang 已提交
94 95
                                    {{/if}}
                                {{else /}}
D
devil_gong 已提交
96
                                    <a href="{{:url('admin/payment/saveinfo', array('id'=>$v['id']))}}">
D
devil_gong 已提交
97
                                        <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"> 编辑</button>
G
gongfuxiang 已提交
98 99
                                    </a>

D
devil_gong 已提交
100
                                    <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-genderless submit-ajax" data-url="{{:url('admin/payment/uninstall')}}" data-id="{{$v.payment}}" data-view="reload" data-msg="卸载后不可恢复、确认操作吗?"> 卸载</button>
G
gongfuxiang 已提交
101 102 103 104 105
                                {{/if}}
                            </td>
                        </tr>
                    {{/foreach}}
                {{else /}}
D
devil_gong 已提交
106
                    <tr><td colspan="20" class="table-no">没有相关数据</td></tr>
G
gongfuxiang 已提交
107 108 109 110 111 112 113 114 115
                {{/if}}
            </tbody>
        </table>
        <!-- list end -->

        <!-- upload start -->
        <div class="am-popup am-radius" id="payment-upload-win">
            <div class="am-popup-inner">
                <div class="am-popup-hd">
D
devil_gong 已提交
116
                    <h4 class="am-popup-title">上传</h4>
G
gongfuxiang 已提交
117 118 119 120
                    <span data-am-modal-close class="am-close">&times;</span>
                </div>
                <div class="am-popup-bd">
                    <!-- win form start -->
D
devil_gong 已提交
121
                    <form class="am-form form-validation" action="{{:url('admin/payment/upload')}}" method="POST" request-type="ajax-reload" enctype="multipart/form-data">
G
gongfuxiang 已提交
122 123
                        <input type="hidden" name="max_file_size" value="{{:MyC('home_max_limit_file', 51200000)}}" />
                        <div class="am-alert am-radius am-alert-tips m-t-0" data-am-alert>
D
语言  
devil_gong 已提交
124 125
                            <p class="m-t-1)}}1 类名必须于文件名一致(去除 .class.php ),如 Alipay.class.php 则取 Alipay <br />2 类必须定义三个方法<br />&nbsp;&nbsp;&nbsp; 2.1 Config 配置方法<br />&nbsp;&nbsp;&nbsp; 2.2 Pay 支付方法<br />&nbsp;&nbsp;&nbsp; 2.3 Respond 回调方法</p>
                            <p class="cr-red">PS:以上条件不满足则无法查看插件</p>
G
gongfuxiang 已提交
126 127
                        </div>
                        <div class="am-form-group am-form-file">
D
devil_gong 已提交
128 129
                            <button type="button" class="am-btn am-btn-default am-btn-sm am-radius"><i class="am-icon-cloud-upload"></i> 选择文件</button>
                            <input type="file" name="file" class="file-event" data-tips-tag="#form-payment-tips" multiple data-validation-message="请选择需要上传的文件" accept=".php" required />
G
gongfuxiang 已提交
130 131 132
                            <div id="form-payment-tips"></div>
                        </div>
                        <div class="am-form-group">
D
devil_gong 已提交
133
                            <button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'处理中...'}">确认</button>
G
gongfuxiang 已提交
134 135 136 137 138 139 140 141 142 143 144 145 146 147
                        </div>
                    </form>
                    <!-- win form end -->
                </div>
            </div>
        </div>
        <!-- upload end -->
    </div>
</div>
<!-- right content end  -->
        
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->