membersSelector.zml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ${Styles.htmlOverflowHidden()}
  2. <script>
  3. Z.onload(function()
  4. {
  5. Z(document.forms[0].operatorKey).focusEnd();
  6. });
  7. function doSelector()
  8. {
  9. var operatorCode = "";
  10. <#if multiSelect>
  11. operatorCode = Z.FM.getCheckeds("operatorCode");
  12. <#else>
  13. operatorCode = Z.FM.getChecked("operatorCode");
  14. </#if>
  15. Z.FM.getChecked("operatorCode");
  16. parent.doSelectorCallback(operatorCode);
  17. parent.Z.Dialog.close(location.hash);
  18. }
  19. </script>
  20. <#-- 查询 -->
  21. <div class="z-fixed z-t0 z-l0 z-w100p z-pd10 z-bg-gray">
  22. <form method="post">
  23. <input name="operatorKey" class="z-float-left z-input z-w300 zi-h35 zi-bd-r-none" placeholder="操作员编码或名称" value="${operatorKey}" maxlength="20">
  24. <button type="submit" class="z-float-left z-button z-w70 z-h35 zi-bd-rd0 ${zmr_color_class}"><i class="z-font z-query"></i></button>
  25. </form>
  26. </div>
  27. <#-- 列表 -->
  28. <div class="z-w100p z-pd10 z-overflow-auto" style="margin-top:55px;height:306px;">
  29. <table class="z-table z-bordered z-pd5 z-text-center">
  30. <tr class="z-h40 z-bg-gray">
  31. <td width="60"><#if multiSelect><input type="checkbox" onclick="Z.E.stop();Z.FM.doSelectCheckBox('operatorCode', this.checked ? 1 : 2);" data-role="z-checkbox" data-class="z-blue"> <span class="z-pointer" onclick="Z(this).parent().find('zcover>i.z-checkbox').click()">全选</span><#else>选择</#if></td>
  32. <td width="90">操作员头像</td>
  33. <td width="110">操作员编码</td>
  34. <td width="*">操作员姓名</td>
  35. </tr>
  36. ${zhiqim_manager_tr_no_record(list, 4, "没有可选择的操作员")}
  37. <#for item : list>
  38. <tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} <#if multiSelect>${zhiqim_manager_tr_click_checkbox()}<#else>${zhiqim_manager_tr_click_radio()}</#if> >
  39. <td><input name="operatorCode" type="<#if multiSelect>checkbox<#else>radio</#if>" data-role="<#if multiSelect>z-checkbox<#else>z-radio</#if>" data-class="z-blue" value="${item.getOperatorCode()}"></td>
  40. <td><img class="z-w50 z-h50 z-bd-rd50p" src="${sessionUser.getAvatarUrl(item.getOperatorAvatar(), 50)}"></td>
  41. <td>${item.getOperatorCode()}</td>
  42. <td>${item.getOperatorName()}</td>
  43. </tr>
  44. </#for>
  45. </tale>
  46. </div>
  47. <#-- 操作 -->
  48. <div class="z-fixed z-b0 z-l0 z-w100p z-h60 z-pd10 z-bg-gray z-text-center">
  49. <button class="z-button z-large z-w150 ${zmr_color_class}" onclick="doSelector();">确定</button>
  50. <button class="z-button z-large z-w70 z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">取消</button>
  51. </div>