index.html 7.9 KB
Newer Older
D
devil_gong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
{{include file="public/header" /}}

<!-- header top nav -->
{{include file="public/header_top_nav" /}}

<!-- search -->
{{include file="public/nav_search" /}}

<!-- header nav -->
{{include file="public/header_nav" /}}

<!-- goods category -->
{{include file="public/goods_category" /}}

<!-- content -->
<div class="am-container user-main">

    <!-- user menu start -->
    {{include file="public/user_menu" /}}
    <!-- user menu end -->

    <!-- content start -->
    <div class="user-content">
        <div class="user-content-body">
            <form class="am-form form-validation" method="post" action="{{:PluginsHomeUrl('petscms', 'pets', 'index')}}" request-type="form">
                <div class="thin">
                    <div class="am-input-group am-input-group-sm am-fl so">
                        <input type="text" autocomplete="off" name="keywords" class="am-radius" placeholder="其实搜索很简单 ^_^!" value="{{if !empty($params.keywords)}}{{$params.keywords}}{{/if}}" />
                        <span class="am-input-group-btn">
                            <button class="am-btn am-btn-default am-radius" type="submit" data-am-loading="{spinner:'circle-o-notch', loadingText:'搜索中...'}">搜索</button>
                        </span>
                    </div>
                    <label class="am-fl thin_sub more-submit">
                        更多筛选条件
                        <input type="checkbox" name="is_more" value="1" class="none am-field-valid" {{if isset($params['is_more'])}}checked{{/if}} />
                        <i class="am-icon-angle-up"></i>
                    </label>
                </div>
                <table class="so-list more-where {{if !isset($params['is_more'])}}none{{/if}}">
                    <tbody>
                        <tr>
                            <td>
                                <span>类型:</span>
                                <select name="type" class="chosen-select" data-placeholder="宠物类型...">
                                    <option value="-1">宠物类型...</option>
                                    {{if !empty($pets_attribute_type_list)}}
                                        {{foreach $pets_attribute_type_list as $v}}
                                            <option value="{{$v.value}}" {{if isset($params['type']) and $params['type'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
                                        {{/foreach}}
                                    {{/if}}
                                </select>
                            </td>
                            <td>
                                <span>性别:</span>
                                <select name="gender" class="chosen-select" data-placeholder="宠物性别...">
                                    <option value="-1">宠物性别...</option>
                                    {{if !empty($pets_attribute_gender_list)}}
                                        {{foreach $pets_attribute_gender_list as $v}}
                                            <option value="{{$v.value}}" {{if isset($params['gender']) and $params['gender'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
                                        {{/foreach}}
                                    {{/if}}
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span>绝育:</span>
                                <select name="sterilization" class="chosen-select" data-placeholder="是否绝育...">
                                    <option value="-1">是否绝育...</option>
                                    {{if !empty($pets_attribute_is_text_list)}}
                                        {{foreach $pets_attribute_is_text_list as $v}}
                                            <option value="{{$v.value}}" {{if isset($params['sterilization']) and $params['sterilization'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
                                        {{/foreach}}
                                    {{/if}}
                                </select>
                            </td>
                            <td>
                                <button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example" data-am-loading="{spinner:'circle-o-notch', loadingText:'搜索中...'}">搜索</button>
                                <a href="{{:PluginsHomeUrl('petscms', 'pets', 'index')}}" class="am-btn am-btn-warning am-radius am-btn-sm reset-submit">清除条件</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </form>

            <!-- operation start -->
            <div class="am-g operation-nav">
                <a href="{{:PluginsHomeUrl('petscms', 'pets', 'saveinfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> 新增</a>
            </div>
            <!-- operation end -->

            <!-- 列表 -->
            <div class="data-list">
                <table class="am-table">
                    <thead>
                        <tr>
                            <th>标题</th>
G
gongfuxiang 已提交
98 99 100 101 102 103 104
                            <th>姓名</th>
                            <th>类型</th>
                            <th class="am-hide-sm-only">性别</th>
                            <th class="am-hide-sm-only">品种</th>
                            <th class="am-hide-sm-only">是否绝育</th>
                            <th class="am-hide-sm-only">是否疫苗</th>
                            <th class="am-hide-sm-only">生日/年龄</th>
D
devil_gong 已提交
105
                            <th class="am-hide-sm-only">时间</th>
G
gongfuxiang 已提交
106
                            <th>操作</th>
D
devil_gong 已提交
107 108 109 110 111 112 113
                        </tr>
                    </thead>
                    <tbody>
                        {{if !empty($data_list)}}
                            {{foreach $data_list as $v}}
                                <tr>
                                    <td>{{$v.title}}</td>
G
gongfuxiang 已提交
114 115 116 117 118 119 120 121 122 123 124 125
                                    <td>{{$v.name}}</td>
                                    <td>{{$v.type_name}}</td>
                                    <td class="am-hide-sm-only">{{$v.gender_name}}</td>
                                    <td class="am-hide-sm-only">{{$v.varieties}}</td>
                                    <td class="am-hide-sm-only">{{$v.sterilization_name}}</td>
                                    <td class="am-hide-sm-only">{{$v.vaccine_name}}</td>
                                    <td class="am-hide-sm-only">
                                        {{if !empty($v['birthday_name'])}}
                                            {{$v.birthday_name}}<br />
                                        {{/if}}
                                        <span class="am-badge am-radius">{{$v.age}}</span>
                                    </td>
D
devil_gong 已提交
126
                                    <td class="am-hide-sm-only">{{$v.add_time_time}}</td>
G
gongfuxiang 已提交
127 128 129
                                    <td>
                                        edit
                                    </td>
D
devil_gong 已提交
130 131 132 133 134
                                </tr>
                            {{/foreach}}
                        {{/if}}
                        {{if empty($data_list)}}
                            <tr>
G
gongfuxiang 已提交
135
                                <td colspan="10">
D
devil_gong 已提交
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
                                    <div class="table-no"><i class="am-icon-warning"></i> 没有相关数据</div>
                                </td>
                            </tr>
                        {{/if}}
                    </tbody>
                </table>
            </div>

            <!-- 分页 -->
            {{if !empty($data_list)}}
                {{$page_html|raw}}
            {{/if}}
        </div>
    </div>
    <!-- content end -->
</div>

<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->