177 lines
8.2 KiB
HTML
Executable File
177 lines
8.2 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/Goods/Index')}}" method="POST">
|
|
<div class="am-g">
|
|
<input type="text" class="am-radius form-keyword" placeholder="{{:L('goods_so_keyword_tips')}}" 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="is_shelves" class="am-radius c-p m-t-10 m-l-5 param-where">
|
|
<option value="-1">{{:L('goods_is_shelves_text')}}</option>
|
|
<foreach name="common_goods_is_shelves_list" item="v">
|
|
<option value="{{$v.id}}" <if condition="isset($param['is_shelves']) and $param['is_shelves'] eq $v['id']">selected</if>>{{$v.name}}</option>
|
|
</foreach>
|
|
</select>
|
|
<select name="is_home_recommended" class="am-radius c-p m-t-10 m-l-5 param-where">
|
|
<option value="-1">{{:L('goods_is_home_recommended_text')}}</option>
|
|
<foreach name="common_is_text_list" item="v">
|
|
<option value="{{$v.id}}" <if condition="isset($param['is_home_recommended']) and $param['is_home_recommended'] 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('common_time_start_name')}}" 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('common_time_end_name')}}" 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>
|
|
</div>
|
|
</form>
|
|
<!-- form end -->
|
|
|
|
<!-- operation start -->
|
|
<div class="am-g m-t-15">
|
|
<a href="{{:U('Admin/Goods/SaveInfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> {{:L('common_operation_add')}}</a>
|
|
</div>
|
|
<!-- operation end -->
|
|
|
|
<!-- list start -->
|
|
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
|
|
<thead>
|
|
<tr>
|
|
<th>{{:L('goods_title_text')}}</th>
|
|
<th>{{:L('goods_price_text')}}</th>
|
|
<th>{{:L('goods_is_shelves_text')}}</th>
|
|
<th class="am-hide-sm-only">{{:L('goods_is_home_recommended_text')}}</th>
|
|
<th class="am-hide-sm-only">{{:L('goods_inventory_text')}}</th>
|
|
<th class="am-hide-sm-only">{{:L('goods_model_text')}}</th>
|
|
<th class="am-hide-sm-only">{{:L('goods_brand_id_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}}" <if condition="$v['is_shelves'] eq 0">class="am-active"</if>>
|
|
<td>
|
|
<a href="{{$v.goods_url}}" target="_blank" title="{{$v.title}}">
|
|
<img src="{{$image_host}}{{$v['images']}}" class="am-img-thumbnail am-radius goods-images am-hide-sm-only" />
|
|
</a>
|
|
<a href="{{$v.goods_url}}" target="_blank" title="{{$v.title}}" <if condition="!empty($v['title_color'])"> style="color:{{$v.title_color}};" </if> >{{$v.title}}</a>
|
|
</td>
|
|
<td>
|
|
{{$v.price}}
|
|
<if condition="!empty($v['original_price']) and $v['original_price'] gt 0">
|
|
<br /><span class="am-badge am-radius">{{:L('goods_original_price_icon')}} {{$v.original_price}}</span>
|
|
</if>
|
|
</td>
|
|
<td>
|
|
<a href="javascript:;" class="am-icon-btn am-icon-check submit-state <if condition="$v['is_shelves'] eq 1">am-success<else />am-default</if>" data-url="{{:U('Admin/Goods/StatusShelves')}}" data-id="{{$v.id}}" data-state="{{$v['is_shelves']}}" data-is-update-status="1"></a>
|
|
</td>
|
|
<td class="am-hide-sm-only">
|
|
<a href="javascript:;" class="am-icon-btn am-icon-check submit-state <if condition="$v['is_home_recommended'] eq 1">am-success<else />am-default</if>" data-url="{{:U('Admin/Goods/StatusHomeRecommended')}}" data-id="{{$v.id}}" data-state="{{$v['is_home_recommended']}}" data-is-update-status="0"></a>
|
|
</td>
|
|
<td class="am-hide-sm-only">{{$v.inventory}} {{$v.inventory_unit}}</td>
|
|
<td class="am-hide-sm-only">{{$v.model}}</td>
|
|
<td class="am-hide-sm-only">{{$v.brand_name}}</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('goods_title_text')}}</dt>
|
|
<dd>{{$v.title}}</dd>
|
|
|
|
<dt>{{:L('goods_price_text')}}</dt>
|
|
<dd>
|
|
{{$v.price}}
|
|
<if condition="!empty($v['original_price']) and $v['original_price'] gt 0">
|
|
<br /><span class="am-badge am-radius">{{:L('goods_original_price_icon')}} {{$v.original_price}}</span>
|
|
</if>
|
|
</dd>
|
|
|
|
<dt>{{:L('goods_is_shelves_text')}}</dt>
|
|
<dd>{{:L('common_goods_is_shelves_list')[$v['is_shelves']]['name']}}</dd>
|
|
|
|
<dt>{{:L('goods_inventory_text')}}</dt>
|
|
<dd>{{$v.inventory}} {{$v.inventory_unit}}</dd>
|
|
|
|
<dt>{{:L('goods_buy_min_number_text')}}</dt>
|
|
<dd>{{$v.buy_min_number}} {{$v.inventory_unit}}</dd>
|
|
|
|
<dt>{{:L('goods_buy_max_number_text')}}</dt>
|
|
<dd><if condition="$v['buy_max_number'] eq 0"><span class="cr-ddd">{{:L('common_unlimited_text')}}</span><else />{{$v.buy_max_number}} {{$v.inventory_unit}}</if></dd>
|
|
|
|
<dt>{{:L('goods_model_text')}}</dt>
|
|
<dd>{{$v.model}}</dd>
|
|
|
|
<dt>{{:L('goods_brand_id_text')}}</dt>
|
|
<dd>{{$v.brand_name}}</dd>
|
|
|
|
<dt>{{:L('goods_place_origin_text')}}</dt>
|
|
<dd>{{$v.place_origin_text}}</dd>
|
|
|
|
<dt>{{:L('goods_category_id_text')}}</dt>
|
|
<dd>{{$v.category_text}}</dd>
|
|
|
|
<dt>{{:L('goods_give_integral_text')}}</dt>
|
|
<dd>{{$v.give_integral}}</dd>
|
|
|
|
<dt>{{:L('goods_is_deduction_inventory_text')}}</dt>
|
|
<dd>{{:L('common_is_text_list')[$v['is_deduction_inventory']]['name']}}</dd>
|
|
|
|
<dt>{{:L('common_view_access_count_text')}}</dt>
|
|
<dd>{{$v.access_count}}</dd>
|
|
|
|
<dt>{{:L('common_create_time_name')}}</dt>
|
|
<dd>{{$v.add_time}}</dd>
|
|
|
|
<dt>{{:L('common_upd_time_name')}}</dt>
|
|
<dd>{{$v.upd_time}}</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="view-operation">
|
|
<a href="{{:U('Admin/Goods/SaveInfo', array('id'=>$v['id']))}}">
|
|
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"></button>
|
|
</a>
|
|
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/Goods/Delete')}}" data-id="{{$v.id}}"></button>
|
|
</td>
|
|
</tr>
|
|
</foreach>
|
|
<else />
|
|
<tr><td colspan="10" 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 --> |