123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- [#ftl]
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>修改角色信息</title>
- <!--框架必需start-->
- <script type="text/javascript" src="${ctx}/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="${ctx}/qui/libs/js/framework.js"></script>
- <link href="${ctx}/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <link rel="stylesheet" type="text/css" id="skin" prePath="${ctx}/qui/"/>
- <link rel="stylesheet" type="text/css" id="customSkin"/>
- <!--框架必需end-->
- <!-- 表单验证start -->
- <link rel="stylesheet" href="${ctx}/qui/libs/js/form/validform/css/style.css" type="text/css" media="all" />
- <script src="${ctx}/qui/libs/js/form/validform/validform.js" type="text/javascript"></script>
- <!-- 表单验证end -->
- <!--表单异步提交start-->
- <script src="${ctx}/qui/libs/js/form/form.js" type="text/javascript"></script>
- <!--表单异步提交end-->
- </head>
- <body>
- <form id="myFormId" action="${ctx}/role/updateData.do" method="post" target="frmright">
- <div class="box1" id="formContent" whiteBg="true">
- <input type="hidden" name="roleId" value="${role.roleId}"/>
- <table class="tableStyle" formMode="transparent">
- <tr>
- <td width="150"><span class="star">*</span>角色名称:</td>
- <td><input type="text" name="roleName" value="${role.roleName}" watermark="请输入角色名称" datatype="*" ajaxurl="validateRoleName.do?rid=${role.roleId}" /></td>
- </tr>
- <tr>
- <td> 角色描述:</td>
- <td><textarea name="roleDesc">${role.roleDesc}</textarea></td>
- </tr>
- <tr>
- <td>状态:</td>
- <td>
- <input type="radio" id="radio-1" name="state" value="1" [#if role.state==1] checked="checked" [/#if] /><label for="radio-1" class="hand">启用</label>
- <input type="radio" id="radio-2" name="state" value="0" [#if role.state==0] checked="checked" [/#if] /><label for="radio-2" class="hand">禁用</label>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <input type="submit" value="提交"/>
- <input type="button" value="取消" onclick="top.Dialog.close()"/>
- </td>
- </tr>
- </table>
- </div>
- </form>
- <!-- 异步提交start -->
- <script type="text/javascript">
- function initComplete(){
-
- //表单提交
- $("#myFormId").Validform({
- tiptype:3,//表示在右边显示
- ajaxPost:true,
- showAllError:true,
- callback:function(responseText){
- $.Hidemsg();
- if(responseText.status=="y"){
- top.Dialog.alert(responseText.info,function(){
- closeWin();
- });
- }else{
- top.Dialog.alert(responseText.info,function(){
- return false;
- });
- }
-
- }
- });
- }
- //重置
- function closeWin(){
- //刷新数据
- top.frmright.resetSearch();
- //关闭窗口
- top.Dialog.close();
- }
- </script>
- <!-- 异步提交end -->
- </body>
- </html>
|