147 lines
9.4 KiB
HTML
Executable File
147 lines
9.4 KiB
HTML
Executable File
{{include file="public/header" /}}
|
|
|
|
<!-- right content start -->
|
|
<div class="content-right">
|
|
<div class="content">
|
|
<!-- operation start -->
|
|
<div class="am-g">
|
|
<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'}"> {{:lang('common_operation_upload')}}</a>
|
|
</div>
|
|
<!-- operation end -->
|
|
|
|
<!-- list start -->
|
|
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-1)}}
|
|
<thead>
|
|
<tr>
|
|
<th>{{:lang('payment_name_text')}}</th>
|
|
<th class="am-hide-sm-only">{{:lang('payment_logo_text')}}</th>
|
|
<th class="am-hide-sm-only">{{:lang('payment_apply_version_text')}}</th>
|
|
<th>{{:lang('payment_apply_terminal_text')}}</th>
|
|
<th class="am-hide-sm-only">{{:lang('payment_author_text')}}</th>
|
|
<th class="am-hide-sm-only th-desc">{{:lang('payment_desc_text')}}</th>
|
|
<th>{{:lang('common_view_enable_title')}}</th>
|
|
<th>{{:lang('payment_is_open_user_text')}}</th>
|
|
<th>{{:lang('common_operation_name')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{if !empty($list)}}
|
|
<foreach name="list" item="v">
|
|
<tr id="data-list-{{$v.payment}}" {{if $v['is_install'] eq 0)}}class="am-warning"<elseif condition="$v['is_enable'] eq 0" />class="am-active"{{/if}} >
|
|
<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 /}}
|
|
<span class="cr-ddd">{{:lang('common_on_fill_in_images')}}</span>
|
|
{{/if}}
|
|
</td>
|
|
<td class="am-hide-sm-only">
|
|
{{if empty($v['apply_version'])}}<span class="cr-ddd">{{:lang('common_on_fill_in_the_text')}}</span>{{else /}}{{$v.apply_version}}{{/if}}
|
|
</td>
|
|
<td>
|
|
{{if !empty($v['apply_terminal'])}}
|
|
<foreach name="v.apply_terminal" key="terminal_k" item="terminal_v">
|
|
{{:lang('common_platform_type')[$terminal_v]['name']}}
|
|
{{if $terminal_k LT count($v['apply_terminal'])-1)}}<br />{{/if}}
|
|
{{/foreach}}
|
|
{{else /}}
|
|
<span class="cr-ddd">{{:lang('common_on_fill_in_the_text')}}</span>
|
|
{{/if}}
|
|
</td>
|
|
<td class="am-hide-sm-only">
|
|
{{if empty($v['author'])}}
|
|
<span class="cr-ddd">{{:lang('common_on_fill_in_the_text')}}</span>
|
|
{{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">
|
|
{{if empty($v['desc'])}}<span class="cr-ddd">{{:lang('common_on_fill_in_the_text')}}</span>{{else /}}{{$v.desc}}{{/if}}
|
|
</td>
|
|
<td>
|
|
{{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>
|
|
{{else /}}
|
|
<span class="cr-ddd">{{:lang('common_not_install_text')}}</span>
|
|
{{/if}}
|
|
</td>
|
|
<td>
|
|
{{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>
|
|
{{else /}}
|
|
<span class="cr-ddd">{{:lang('common_not_install_text')}}</span>
|
|
{{/if}}
|
|
</td>
|
|
<td class="view-operation">
|
|
{{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="{{:lang('common_install_msg')}}"> {{:lang('common_operation_install')}}</button>
|
|
|
|
{{if !in_array($v['payment'], $cannot_deleted_list)}}
|
|
<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}}"> {{:lang('common_operation_delete')}}</button>
|
|
{{/if}}
|
|
{{else /}}
|
|
<a href="{{:url('Admin/Payment/SaveInfo', array('id'=>$v['id']))}}">
|
|
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"> {{:lang('common_operation_edit')}}</button>
|
|
</a>
|
|
|
|
<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="{{:lang('common_uninstall_msg')}}"> {{:lang('common_operation_uninstall')}}</button>
|
|
{{/if}}
|
|
</td>
|
|
</tr>
|
|
{{/foreach}}
|
|
{{else /}}
|
|
<tr><td colspan="20" class="table-no">{{:lang('common_not_data_tips')}}</td></tr>
|
|
{{/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">
|
|
<h4 class="am-popup-title">{{:lang('common_operation_upload')}}</h4>
|
|
<span data-am-modal-close class="am-close">×</span>
|
|
</div>
|
|
<div class="am-popup-bd">
|
|
<!-- win form start -->
|
|
<form class="am-form form-validation" action="{{:url('Admin/Payment/Upload')}}" method="POST" request-type="ajax-reload" enctype="multipart/form-data">
|
|
<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>
|
|
<p class="m-t-1)}}{{:lang('payment_upload_tips')}}</p>
|
|
<p class="cr-red">{{:lang('payment_upload_ps')}}</p>
|
|
</div>
|
|
<div class="am-form-group am-form-file">
|
|
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius"><i class="am-icon-cloud-upload"></i> {{:lang('common_select_file_text')}}</button>
|
|
<input type="file" name="file" class="file-event" data-tips-tag="#form-payment-tips" multiple data-validation-message="{{:lang('common_select_file_tips')}}" accept=".php" required />
|
|
<div id="form-payment-tips"></div>
|
|
</div>
|
|
<div class="am-form-group">
|
|
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'{{:lang('common_form_loading_tips')}}'}">{{:lang('common_operation_confirm')}}</button>
|
|
</div>
|
|
</form>
|
|
<!-- win form end -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- upload end -->
|
|
</div>
|
|
</div>
|
|
<!-- right content end -->
|
|
|
|
<!-- footer start -->
|
|
{{include file="public/footer" /}}
|
|
<!-- footer end --> |