menu.zml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <#def designatedPath="/zhiqimOrdermeal/ordermeal.htm"/>
  2. ${zhiqim_manager_breadcrumb("菜单信息")}
  3. ${zhiqim_manager_content()}
  4. <#-- 导航 -->
  5. <div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  6. <nav>
  7. <ul>
  8. <li onclick="Z.L.href('designerSubscribe.htm');">我的点餐日历</li>
  9. <li class="z-active">菜单信息</li>
  10. </ul>
  11. <div class="z-float-left z-mg10">
  12. <form name="theForm" method="post">
  13. <span class="z-float-left">
  14. <select name="ordermealType" class="z-select z-w200" data-role="z-select" data-class="zi-bd-r-none ${zmr_color_class}" onchange="this.form.submit();">
  15. <option value="">全部类型</option>
  16. <option value="0" <#if ordermealType == 0>selected</#if>>中餐</option>
  17. <option value="1" <#if ordermealType == 1>selected</#if>>晚餐</option>
  18. </select>
  19. </span>
  20. <button class="z-float-left z-button z-w80 zi-bd-rd0 ${zmr_color_class}"><i class="z-font z-query"></i>查询</button>
  21. </form>
  22. </div>
  23. <div class="z-text-right z-mg-t10 z-mg-r5">
  24. <#if ZmrPathRule.check(request, "/zhiqimOrdermeal/menuAdd.htm")>
  25. <button class="z-button ${zmr_color_class}" onclick="Z.L.href('menuAdd.htm');"><i class="z-ico z-add"></i>增加菜单</button>
  26. </#if>
  27. <#if ZmrPathRule.check(request, "/zhiqimOrdermeal/menuModify.htm")>
  28. <button class="z-button ${zmr_color_class}" onclick="Z.L.check('menuModify.htm', 'ordermealMenuId');"><i class="z-ico z-modify"></i>修改菜单</button>
  29. </#if>
  30. <#if ZmrPathRule.check(request, "/zhiqimOrdermeal/menuDelete.htm")>
  31. <button class="z-button z-red" onclick="Z.L.confirm('menuDelete.htm', '是否删除该菜单?', 'ordermealMenuId', zCallFrame);"><i class="z-ico z-delete"></i>删除菜单</button>
  32. </#if>
  33. </div>
  34. </nav>
  35. </div>
  36. <#-- 列表 -->
  37. <table class="z-table z-bordered z-h40-tr z-pd4 z-bg-white z-text-center">
  38. <tr bgcolor="${zmr_thead_bgcolor}">
  39. <td width="50">选择</td>
  40. <td width="150">点餐日期</td>
  41. <td width="150">点餐星期</td>
  42. <td width="150">点餐类型</td>
  43. <td width="*">菜单</td>
  44. </tr>
  45. ${zhiqim_manager_tr_no_record(result, 5, "没有菜单信息")}
  46. <#for item : result.list()>
  47. <tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
  48. <td><input name="ordermealMenuId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getOrdermealMenuId()}"></td>
  49. <td class="z-samp">${item.getOrdermealMenuDate()}</td>
  50. <td>${DateTimes.getDateWeekString(item.getOrdermealMenuDate())}</td>
  51. <td>
  52. <#if item.getOrdermealType() == 0>中餐</#if>
  53. <#if item.getOrdermealType() == 1>晚餐</#if>
  54. </td>
  55. <td class="z-text-left">${item.getOrdermealMenu()}</td>
  56. </tr>
  57. </#for>
  58. </table>
  59. ${zhiqim_manager_paging (result, "menu.htm")}
  60. ${zhiqim_manager_content_end()}