123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- [#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-->
- <!-- 树组件start -->
- <script type="text/javascript" src="${ctx}/qui/libs/js/tree/ztree/ztree.js"></script>
- <link type="text/css" rel="stylesheet" href="${ctx}/qui/libs/js/tree/ztree/ztree.css"></link>
- <!-- 树组件end -->
- <!-- 树形下拉框start -->
- <script type="text/javascript" src="${ctx}/qui/libs/js/form/selectTree.js"></script>
- <!-- 树形下拉框end -->
- </head>
- <body>
- <form id="editFormId" action="${ctx}/quota/updateData.do" method="post" target="frmright">
- <div class="box1" id="formContent" whiteBg="true">
- <input type="hidden" name="quotaId" value="${res.quotaId}"/>
- <table class="tableStyle" formMode="transparent">
- <tr>
- <td>上级资源:</td>
- <td>
- <div class="selectTree" name="parentId" id="parentId" selectedValue="${res.getParentId()!0}" data='${treeData}'></div>
- </td>
- </tr>
- <tr>
- <td width="150">资源名称:</td>
- <td><input type="text" name="descName" value="${res.descName}" datatype="*"/><span class="star">*</span></td>
- </tr>
- <tr>
- <td width="150">值:</td>
- <td>
- <input type="text" name="unitValue" value="${res.unitValue!""}" watermark="请输入数字" /><span class="star"></span>
- </td>
- </tr>
- <tr>
- <td width="150">单位:</td>
- <td>
- <input type="text" name="unit0" value="${res.unit0!""}" /><span class="star"></span>
- </td>
- </tr>
- <tr>
- <td width="150">定额单位:</td>
- <td>
- <input type="text" name="unit" value="${res.unit!""}"/><span class="star"></span>
- </td>
- </tr>
- <tr>
- <td width="150">计时单位:</td>
- <td><input type="text" name="timing" value="${res.timing!""}"/></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(){
- //表单提交
- $("#editFormId").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.refresh();
- //关闭窗口
- top.Dialog.close();
- }
- </script>
- <!-- 异步提交end -->
- </body>
- </html>
|