Index.html 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!-- header start -->
  2. <include file="Public/Header" />
  3. <!-- header end -->
  4. <!-- right content start -->
  5. <div class="content-right">
  6. <div class="content">
  7. <!-- form start -->
  8. <form class="am-form view-list" action="{{:U('Admin/CulturePet/Index')}}" method="POST">
  9. <div class="am-g">
  10. <input type="text" class="am-radius form-keyword" placeholder="{{:L('pet_so_keyword_tips')}}" name="keyword" <present name="param['keyword']"> value="{{$param.keyword}}"</present> />
  11. <button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">{{:L('common_operation_query')}}</button>
  12. <label class="fs-12 m-l-5 c-p fw-100 more-submit">
  13. {{:L('common_more_screening')}}
  14. <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> />
  15. <i class="am-icon-angle-down"></i>
  16. </label>
  17. <div class="more-where <if condition="!isset($param['is_more']) or $param['is_more'] neq 1">none</if>">
  18. <div class="param-date param-where m-l-5">
  19. <input type="text" name="time_start" readonly="readonly" class="am-radius m-t-10" placeholder="{{:L('pet_time_start_text')}}" id="time_start" <if condition="isset($param['time_start'])">value="{{$param.time_start}}"</if>/>
  20. <span>~</span>
  21. <input type="text" readonly="readonly" class="am-radius m-t-10" placeholder="{{:L('pet_time_end_text')}}" name="time_end" id="time_end" <if condition="isset($param['time_end'])">value="{{$param.time_end}}"</if>/>
  22. </div>
  23. </div>
  24. </div>
  25. </form>
  26. <!-- form end -->
  27. <!-- operation start -->
  28. <div class="am-g m-t-15">
  29. <a href="{{:U('Admin/CulturePet/SaveInfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> {{:L('common_operation_add')}}</a>
  30. </div>
  31. <!-- operation end -->
  32. <!-- list start -->
  33. <table class="am-table am-table-striped am-table-hover am-text-middle m-t-10 m-l-5">
  34. <thead>
  35. <tr>
  36. <th>{{:L('pet_id')}}</th>
  37. <th>{{:L('pet_name')}}</th>
  38. <th>{{:L('thumb')}}</th>
  39. <th>{{:L('pet_type_name')}}</th>
  40. <th>{{:L('description')}}</th>
  41. <th>{{:L('sale_price')}}</th>
  42. <th>{{:L('created_at')}}</th>
  43. <th>{{:L('updated_at')}}</th>
  44. <th>{{:L('common_operation_name')}}</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. <if condition="!empty($list)">
  49. <foreach name="list" item="v">
  50. <tr id="data-list-{{$v.pet_id}}">
  51. <td><if condition="empty($v['pet_id'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.pet_id}}</if></td>
  52. <td><if condition="empty($v['pet_name'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.pet_name}}</if></td>
  53. <td><img style="width: 160px;height: 90px;" src="{{$v.thumb}}" onerror="this.src='__PUBLIC__/Common/images/imgerror.png';this.onerror=null"></td>
  54. <td class="am-hide-sm-only">{{$v.pet_type_name}}</td>
  55. <td class="am-hide-sm-only">{{$v.description}}</td>
  56. <td class="am-hide-sm-only">{{$v.sale_price}}</td>
  57. <td class="am-hide-sm-only">{{$v.created_at}}</td>
  58. <td class="am-hide-sm-only">{{$v.updated_at}}</td>
  59. <td class="view-operation">
  60. <a href="{{:U('Admin/CulturePet/SaveInfo', array('pet_id'=>$v['pet_id']))}}">
  61. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit" data-am-popover="{content: '{{:L('common_operation_edit')}}', trigger: 'hover focus'}"></button>
  62. </a>
  63. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/CulturePet/Delete')}}" data-am-popover="{content: '{{:L('common_operation_delete')}}', trigger: 'hover focus'}" data-id="{{$v.pet_id}}"></button>
  64. </td>
  65. </tr>
  66. </foreach>
  67. <else />
  68. <tr><td colspan="10" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
  69. </if>
  70. </tbody>
  71. </table>
  72. <!-- list end -->
  73. <!-- page start -->
  74. <if condition="!empty($list)">
  75. {{$page_html}}
  76. </if>
  77. <!-- page end -->
  78. </div>
  79. </div>
  80. <!-- right content end -->
  81. <!-- footer start -->
  82. <include file="Public/Footer" />
  83. <!-- footer end -->