menuUpdate.jsp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <script type="text/javascript">
  3. $(function(){
  4. $('#p_id_update').combotree({
  5. url: 'menuAction_forMenu'
  6. });
  7. });
  8. var showIcons = function() {
  9. $('#iconDialog').dialog({
  10. title: '浏览小图标',
  11. href : whzl.basePath + '/icons.html',
  12. width: 600,
  13. height: 400,
  14. buttons : [ {
  15. text : '确定',
  16. handler : function() {
  17. //var radio = $(window.frames[0].document).find("input[name='r']:checked");
  18. var radio = $("input[name='r']:checked");
  19. $("#iconCls").val(radio.val());
  20. $("#iconCls").attr('class',"iconImg "+radio.val());
  21. $('#iconDialog').dialog("close");
  22. }
  23. } ]
  24. });
  25. };
  26. </script>
  27. <form id="updateMenuForm" method="post">
  28. <table class="mytable" style="width: 100%;">
  29. <tr>
  30. <th width="40%">用户组名称</th>
  31. <td width="60%">
  32. <input type="hidden" id="id_update" name="menu.id">
  33. <input type="text" id="text_update" name="menu.text">
  34. </td>
  35. </tr>
  36. <tr>
  37. <td>图标</td>
  38. <td>
  39. <input type="text" id="iconCls" name="menu.iconCls" readonly="readonly" style="padding-left: 20px;float: left;"/>
  40. <div class="iconImg ext-icon-zoom" onclick="showIcons();" style="margin-left: 5px;float: left;padding-left: 20px;width: 60px;" title="浏览图标">选择</div>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td>父节点</td>
  45. <td>
  46. <input type="text" id="p_id_update" name="menu.parent.id">
  47. </td>
  48. </tr>
  49. <tr>
  50. <th>地址</th>
  51. <td><input type="text" id="href_update" name="menu.href"></td>
  52. </tr>
  53. </table>
  54. </form>
  55. <div id="iconDialog"></div>