153 lines
6.9 KiB
HTML
Executable File
153 lines
6.9 KiB
HTML
Executable File
<include file="Public/Header" />
|
|
|
|
<!-- right content start -->
|
|
<div class="content-right">
|
|
<div class="content">
|
|
<!-- form start -->
|
|
<form class="am-form view-list" action="{{:U('Admin/Coupon/User', ['coupon_id'=>I('request.coupon_id')])}}" method="POST">
|
|
<div class="am-g">
|
|
<input type="text" class="am-radius form-keyword" placeholder="{{:L('coupon_send_search_input_text')}}" name="keyword" <present name="param['keyword']"> value="{{$param.keyword}}"</present> />
|
|
<button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">{{:L('common_operation_query')}}</button>
|
|
<label class="fs-12 m-l-5 c-p fw-100 more-submit">
|
|
{{:L('common_more_screening')}}
|
|
<input type="checkbox" name="is_more" value="1" id="is_more" <if condition="isset($param['is_more']) and $param['is_more'] eq 1">checked</if> />
|
|
<i class="am-icon-angle-down"></i>
|
|
</label>
|
|
|
|
<div class="more-where <if condition="!isset($param['is_more']) or $param['is_more'] neq 1">none</if>">
|
|
<select name="status" class="am-radius c-p m-t-10 m-l-5 param-where">
|
|
<option value="-1">{{:L('coupon_user_status_text')}}</option>
|
|
<foreach name="common_user_coupon_status" item="v">
|
|
<option value="{{$v.id}}" <if condition="isset($param['status']) and $param['status'] eq $v['id']">selected</if>>{{$v.name}}</option>
|
|
</foreach>
|
|
</select>
|
|
<div class="param-date param-where m-l-5">
|
|
<input type="text" name="time_start" class="Wdate am-radius m-t-10" placeholder="{{:L('coupon_valid_text')}}" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <if condition="isset($param['time_start'])">value="{{$param.time_start}}"</if>/>
|
|
<span>~</span>
|
|
<input type="text" class="Wdate am-radius m-t-10" placeholder="{{:L('coupon_valid_text')}}" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <if condition="isset($param['time_end'])">value="{{$param.time_end}}"</if>/>
|
|
</div>
|
|
</div>
|
|
<a href="{{:U('Admin/Coupon/Index')}}" class="fr fs-14 am-icon-mail-reply"> {{:L('coupon_list_name')}}</a>
|
|
</div>
|
|
</form>
|
|
<!-- form end -->
|
|
|
|
<!-- list start -->
|
|
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
|
|
<thead>
|
|
<tr>
|
|
<th>{{:L('coupon_user_username_text')}}</th>
|
|
<th>{{:L('coupon_user_nickname_text')}}</th>
|
|
<th>{{:L('coupon_price_text')}}</th>
|
|
<th>{{:L('coupon_use_where_price_text')}}</th>
|
|
<th class="am-hide-sm-only">{{:L('coupon_valid_text')}}</th>
|
|
<th class="am-hide-sm-only">{{:L('coupon_user_status_text')}}</th>
|
|
<th>{{:L('common_more_name')}}</th>
|
|
<th>{{:L('common_operation_name')}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<if condition="!empty($list)">
|
|
<foreach name="list" item="v">
|
|
<tr id="data-list-{{$v.id}}">
|
|
<td>
|
|
<if condition="empty($v['username'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.username}}</if>
|
|
</td>
|
|
<td>
|
|
<if condition="empty($v['nickname'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.nickname}}</if>
|
|
</td>
|
|
<td>{{$v.price}}</td>
|
|
<td>
|
|
<if condition="empty($v['use_where_price'])">
|
|
<span class="cr-ddd">{{:L('common_unlimited_text')}}</span>
|
|
<else />
|
|
{{$v.use_where_price}}
|
|
</if>
|
|
</td>
|
|
<td class="am-hide-sm-only">
|
|
<if condition="!empty($v['valid_start_time_text'])">
|
|
{{$v.valid_start_time_text}}<br />
|
|
</if>
|
|
<if condition="!empty($v['valid_end_time_text'])">
|
|
{{$v.valid_end_time_text}}
|
|
</if>
|
|
<if condition="empty($v['valid_start_time_text']) and empty($v['valid_end_time_text'])">
|
|
<span class="cr-ccc">{{:L('common_unlimited_text')}}</span>
|
|
</if>
|
|
</td>
|
|
<td>{{$v.status_text}}</td>
|
|
<td>
|
|
<span class="am-icon-caret-down c-p" data-am-modal="{target: '#my-popup{{$v.id}}'}"> {{:L('common_see_more_name')}}</span>
|
|
<div class="am-popup am-radius" id="my-popup{{$v.id}}">
|
|
<div class="am-popup-inner">
|
|
<div class="am-popup-hd">
|
|
<h4 class="am-popup-title">{{:L('common_detail_content')}}</h4>
|
|
<span data-am-modal-close
|
|
class="am-close">×</span>
|
|
</div>
|
|
<div class="am-popup-bd">
|
|
<dl class="dl-content">
|
|
<dt>{{:L('coupon_user_username_text')}}</dt>
|
|
<dd><if condition="empty($v['username'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.username}}</if></dd>
|
|
|
|
<dt>{{:L('coupon_user_nickname_text')}}</dt>
|
|
<dd><if condition="empty($v['nickname'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.nickname}}</if></dd>
|
|
|
|
<dt>{{:L('coupon_price_text')}}</dt>
|
|
<dd><if condition="empty($v['price'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.price}}</if></dd>
|
|
|
|
<dt>{{:L('coupon_use_where_price_text')}}</dt>
|
|
<dd><if condition="empty($v['use_where_price'])"><span class="cr-ddd">{{:L('common_unlimited_text')}}</span><else />{{$v.use_where_price}}</if></dd>
|
|
|
|
<dt>{{:L('coupon_valid_text')}}</dt>
|
|
<dd>
|
|
<if condition="!empty($v['valid_start_time_text'])">
|
|
{{$v.valid_start_time_text}}<br />
|
|
</if>
|
|
<if condition="!empty($v['valid_end_time_text'])">
|
|
{{$v.valid_end_time_text}}
|
|
</if>
|
|
<if condition="empty($v['valid_start_time_text']) and empty($v['valid_end_time_text'])">
|
|
<span class="cr-ccc">{{:L('common_on_fill_in_the_text')}}</span>
|
|
</if>
|
|
</dd>
|
|
|
|
<dt>{{:L('coupon_user_status_text')}}</dt>
|
|
<dd><if condition="empty($v['status_text'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.status_text}}</if></dd>
|
|
|
|
<dt>{{:L('common_create_time_name')}}</dt>
|
|
<dd>{{$v.add_time_text}}</dd>
|
|
|
|
<dt>{{:L('common_upd_time_name')}}</dt>
|
|
<dd>{{$v.upd_time_text}}</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="view-operation">
|
|
<if condition="$v['status'] neq 1">
|
|
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/Coupon/Delete')}}" data-id="{{$v.id}}"> {{:L('common_operation_delete')}}</button>
|
|
</if>
|
|
</td>
|
|
</tr>
|
|
</foreach>
|
|
<else />
|
|
<tr><td colspan="20" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
|
|
</if>
|
|
</tbody>
|
|
</table>
|
|
<!-- list end -->
|
|
|
|
<!-- page start -->
|
|
<if condition="!empty($list)">
|
|
{{$page_html}}
|
|
</if>
|
|
<!-- page end -->
|
|
</div>
|
|
</div>
|
|
<!-- right content end -->
|
|
|
|
<!-- footer start -->
|
|
<include file="Public/Footer" />
|
|
<!-- footer end --> |