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

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <!-- form start -->
        <form class="am-form view-list" action="{{:url('Admin/Brand/Index')}}" method="POST">
            <div class="am-g">
                <input type="text" class="am-radius form-keyword" placeholder="{{:lang('brand_name_text')}}" name="keyword" <present name="param['keyword']"> value="{{$param.keyword}}"{{/if}} />
D
devil_gong 已提交
10
                <button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">查询</button>
G
gongfuxiang 已提交
11
                <label class="fs-12 m-l-5 c-p fw-100 more-submit">
D
devil_gong 已提交
12
                    更多筛选
G
gongfuxiang 已提交
13 14 15 16 17 18
                    <input type="checkbox" name="is_more" value="1" id="is_more" {{if 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 !isset($param['is_more']) or $param['is_more'] neq 1)}}none{{/if}}">
                    <select name="is_enable" class="am-radius c-p m-t-10 m-l-5 param-where">
D
devil_gong 已提交
19
                        <option value="-1)}}是否启用</option>
G
gongfuxiang 已提交
20 21 22 23 24 25 26 27 28 29 30
                        <foreach name="common_is_enable_list" item="v">
                            <option value="{{$v.id}}" {{if isset($param['is_enable']) and $param['is_enable'] eq $v['id']">selected{{/if}}>{{$v.name}}</option>
                        {{/foreach}}
                    </select>
                    <select name="brand_category_id" class="am-radius c-p m-t-10 m-l-5 param-where">
                        <option value="">{{:lang('brand_category_id_text')}}</option>
                        <foreach name="brand_category" item="v">
                            <option value="{{$v.id}}" {{if isset($param['brand_category_id']) and $param['brand_category_id'] eq $v['id']">selected{{/if}}>{{$v.name}}</option>
                        {{/foreach}}
                    </select>
                    <div class="param-date param-where m-l-5)}}
D
devil_gong 已提交
31
                        <input type="text" name="time_start" class="Wdate am-radius m-t-10" placeholder="起始时间" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($param['time_start'])}}value="{{$param.time_start}}"{{/if}}/>
G
gongfuxiang 已提交
32
                        <span>~</span>
D
devil_gong 已提交
33
                        <input type="text" class="Wdate am-radius m-t-10" placeholder="结束时间" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($param['time_end'])}}value="{{$param.time_end}}"{{/if}}/>
G
gongfuxiang 已提交
34 35 36 37 38 39 40 41
                    </div>
                </div>
            </div>
        </form>
        <!-- form end -->

        <!-- operation start -->
        <div class="am-g m-t-15)}}
D
devil_gong 已提交
42
            <a href="{{:url('Admin/Brand/SaveInfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> 新增</a>
G
gongfuxiang 已提交
43 44 45 46 47 48 49 50 51 52 53
        </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('brand_name_text')}}</th>
                    <th>{{:lang('brand_logo_text')}}</th>
                    <th class="am-hide-sm-only">{{:lang('brand_category_id_text')}}</th>
                    <th class="am-hide-sm-only">{{:lang('brand_website_url_text')}}</th>
D
devil_gong 已提交
54 55 56
                    <th>是否启用</th>
                    <th class="am-hide-sm-only">创建时间</th>
                    <th>操作</th>
G
gongfuxiang 已提交
57 58 59 60 61 62 63 64 65 66 67 68 69
                </tr>
            </thead>
            <tbody>
                {{if !empty($list)}}
                    <foreach name="list" item="v">
                        <tr id="data-list-{{$v.id}}" {{if $v['is_enable'] eq 0)}}class="am-active"{{/if}}>
                            <td>{{$v.name}}</td>
                            <td>
                                {{if !empty($v['logo'])}}
                                    <a href="{{$v['logo']}}" target="_blank">
                                        <img src="{{$v['logo']}}" class="am-radius" width="100" />
                                    </a>
                                {{else /}}
D
devil_gong 已提交
70
                                    <span class="cr-ddd">暂无图片</span>
G
gongfuxiang 已提交
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
                                {{/if}}
                            </td>
                            <td class="am-hide-sm-only">{{$v.brand_category_text}}</td>
                            <td class="am-hide-sm-only">
                                {{$v.website_url}}
                                {{if !empty($v['website_url'])}}
                                    <a href="{{$v.website_url}}" target="_blank">
                                        <i class="am-icon-external-link"></i>
                                    </a>
                                {{/if}}
                            </td>
                            <td>
                                <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/Brand/StateUpdate')}}" data-id="{{$v.id}}" data-state="{{$v['is_enable']}}" data-is-update-status="1)}}</a>
                            </td>
                            <td class="am-hide-sm-only">{{$v.add_time_text}}</td>
                            <td class="view-operation">
                                <a href="{{:url('Admin/Brand/SaveInfo', array('id'=>$v['id']))}}">
D
devil_gong 已提交
88
                                    <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"> 编辑</button>
G
gongfuxiang 已提交
89 90
                                </a>
                                {{if $v['is_enable'] eq 0)}}
D
devil_gong 已提交
91
                                    <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:url('Admin/Brand/Delete')}}" data-id="{{$v.id}}"> 删除</button>
G
gongfuxiang 已提交
92 93 94 95 96
                                {{/if}}
                            </td>
                        </tr>
                    {{/foreach}}
                {{else /}}
D
devil_gong 已提交
97
                    <tr><td colspan="7" class="table-no">没有相关数据</td></tr>
G
gongfuxiang 已提交
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
                {{/if}}
            </tbody>
        </table>
        <!-- list end -->

        <!-- page start -->
        {{if !empty($list)}}
            {{$page_html}}
        {{/if}}
        <!-- page end -->
    </div>
</div>
<!-- right content end  -->
        
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->