Index.html 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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/CultureFood/Index')}}" method="POST">
  9. <div class="am-g">
  10. <input type="text" class="am-radius form-keyword" placeholder="{{:L('food_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('food_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('food_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/CultureFood/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('food_id')}}</th>
  37. <th>{{:L('food_name')}}</th>
  38. <th>{{:L('thumb')}}</th>
  39. <th>{{:L('pet_type_name')}}</th>
  40. <th>{{:L('pet_name')}}</th>
  41. <th>{{:L('description')}}</th>
  42. <th>{{:L('sale_price')}}</th>
  43. <th>{{:L('created_at')}}</th>
  44. <th>{{:L('updated_at')}}</th>
  45. <th>{{:L('common_operation_name')}}</th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. <if condition="!empty($list)">
  50. <foreach name="list" item="v">
  51. <tr id="data-list-{{$v.food_id}}">
  52. <td><if condition="empty($v['food_id'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.food_id}}</if></td>
  53. <td><if condition="empty($v['food_name'])"><span class="cr-ddd">{{:L('common_on_fill_in_the_text')}}</span><else />{{$v.food_name}}</if></td>
  54. <td><img style="width: 160px;height: 90px;" src="{{$v.thumb}}" onerror="this.src='__PUBLIC__/Common/images/imgerror.png';this.onerror=null"></td>
  55. <td class="am-hide-sm-only">{{$v.pet_type_name}}</td>
  56. <td class="am-hide-sm-only">{{$v.pet_name}}</td>
  57. <td class="am-hide-sm-only">{{$v.description}}</td>
  58. <td class="am-hide-sm-only">{{$v.sale_price}}</td>
  59. <td class="am-hide-sm-only">{{$v.created_at}}</td>
  60. <td class="am-hide-sm-only">{{$v.updated_at}}</td>
  61. <td class="view-operation">
  62. <a href="{{:U('Admin/CultureFood/SaveInfo', array('food_id'=>$v['food_id']))}}">
  63. <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>
  64. </a>
  65. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/CultureFood/Delete')}}" data-am-popover="{content: '{{:L('common_operation_delete')}}', trigger: 'hover focus'}" data-id="{{$v.food_id}}"></button>
  66. </td>
  67. </tr>
  68. </foreach>
  69. <else />
  70. <tr><td colspan="10" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
  71. </if>
  72. </tbody>
  73. </table>
  74. <!-- list end -->
  75. <!-- page start -->
  76. <if condition="!empty($list)">
  77. {{$page_html}}
  78. </if>
  79. <!-- page end -->
  80. </div>
  81. </div>
  82. <!-- right content end -->
  83. <!-- footer start -->
  84. <include file="Public/Footer" />
  85. <!-- footer end -->