| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <%@ page language="java" pageEncoding="UTF-8"%>
- <%@ taglib uri="/ssTag" prefix="ss"%>
- <html>
- <head>
- <script>
- // 封装方法,修改表单的action属性并提交
- function changeFormActionAndSubmit(formId, newActionUrl) {
- // 获取表单元素
- var form = document.getElementById(formId);
- if (form) {
- // 修改表单的 action 属性
- form.action = newActionUrl;
- // 提交表单
- form.submit();
- } else {
- console.error("Form with ID '" + formId + "' not found.");
- }
- }
- </script>
- </head>
- <body>
- <form method="post" id="myForm">
- <div class='content-div' ssFith='{max:300,min:100,lvl:1,fixHeight:150}'>
- ${objMsg}
- </div>
- <input type='text' name='shsm'/> <%-- 最后会写到 审核 表里的 说明 字段。Lin --%>
- <div class="bottom-div" >
- <div class="bottom-down-div">
- <input type="submit" value="同意" class="bottom-button"
- <%-- onclick='<serv@ss subm="true" name="ss.agrTask" parm="{shid:"${shid}"}"/>'/> --%>
- onclick='changeFormActionAndSubmit("myForm",
- "http://localhost:8080<ss:serv name='ss.agrTask' dest='ext_info' parm='{shid:"${shid}",userId:"${userId}"}'/>");'/>
- <input type="submit" value="退回" class="bottom-button"
- <%-- onclick='<serv@ss subm="true" name="ss.rejTask" parm="{shid:"${shid}"}"/>'/> --%>
- onclick='changeFormActionAndSubmit("myForm",
- "http://localhost:8080<ss:serv name='ss.rejTask' dest='ext_info' parm='{shid:"${shid}",userId:"${userId}"}'/>",this);'/>
- <input type="button" onclick="wd.display.closeDialog();" class="bottom-button" value="关闭" />
- </div>
- </div>
- </form>
- </body>
- </html>
|