1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <script type="text/javascript">
- $(function(){
- $('#p_id_update').combotree({
- url: 'menuAction_forMenu'
- });
- });
- var showIcons = function() {
- $('#iconDialog').dialog({
- title: '浏览小图标',
- href : whzl.basePath + '/icons.html',
- width: 600,
- height: 400,
- buttons : [ {
- text : '确定',
- handler : function() {
- //var radio = $(window.frames[0].document).find("input[name='r']:checked");
- var radio = $("input[name='r']:checked");
- $("#iconCls").val(radio.val());
- $("#iconCls").attr('class',"iconImg "+radio.val());
- $('#iconDialog').dialog("close");
- }
- } ]
- });
- };
- </script>
- <form id="updateMenuForm" method="post">
- <table class="mytable" style="width: 100%;">
- <tr>
- <th width="40%">用户组名称</th>
- <td width="60%">
- <input type="hidden" id="id_update" name="menu.id">
- <input type="text" id="text_update" name="menu.text">
- </td>
- </tr>
- <tr>
- <td>图标</td>
- <td>
- <input type="text" id="iconCls" name="menu.iconCls" readonly="readonly" style="padding-left: 20px;float: left;"/>
- <div class="iconImg ext-icon-zoom" onclick="showIcons();" style="margin-left: 5px;float: left;padding-left: 20px;width: 60px;" title="浏览图标">选择</div>
- </td>
- </tr>
- <tr>
- <td>父节点</td>
- <td>
- <input type="text" id="p_id_update" name="menu.parent.id">
- </td>
- </tr>
- <tr>
- <th>地址</th>
- <td><input type="text" id="href_update" name="menu.href"></td>
- </tr>
- </table>
- </form>
- <div id="iconDialog"></div>
|