首页论坛

各位还要来看看这个问题

投稿人:zengdddd

  1. <%@ page language="java" contentType="text/html;charset=GBK"%>
  2. <%@page import="com.gmtoa.util.Token"%>
  3. <html>
  4.   <head>
  5.     <title>职位授权</title>
  6.     <meta http-equiv="pragma" content="no-cache">
  7.     <meta http-equiv="cache-control" content="no-cache">
  8.     <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/theme/9/style.css">
  9.   </head>
  10.   <body>
  11.       <form action="" name="form1" method="post">
  12.           <input type="button" value="ddddd" onclick="addPositionPermit();return false;"/>
  13.       </form>
  14.       <form action="" name="form2" method="post">
  15.           <input type="hidden" name="<%=Token.TOKEN_STRING_NAME %>" value="<%=Token.getTokenString(session)%>" />
  16.         <table width="100%" class="TableBlock">
  17.             <tr>
  18.                 <td width="60" height="30" class="TableData" align="center">权限代码</td>
  19.                 <td height="20" width="300" align="left" class="TableData">
  20.                     <input type="text" name="permit_code" id="permit_code" class="BigInput" value=""/>
  21.                     <input type="hidden" name="action" id="action" value="" class="BigInput"/>
  22.                     <a href="javascript:void(0)" onclick="selectedPri();return false;">选择</a>
  23.                 </td>
  24.             </tr>
  25.             <tr>
  26.                 <td width="60" height="30" class="TableData" align="center">职位代码</td>
  27.                 <td height="20" width="300" align="left" class="TableData">
  28.                     <input type="text" name="position_code_name" id="position_code_name" class="BigInput" value=""/>
  29.                     <input type="hidden" name="position_code" id="position_code" class="BigInput" value=""/>
  30.                     <a href="javascript:void(0)" onclick="selectedPosition();return false;">选择</a>
  31.                 </td>
  32.             </tr>
  33.             <tr>
  34.                 <td colspan="2">
  35.                     <input type="button" value="提交" class="SmallButtonA" onclick="addPositionPermit();return false;"/>
  36.                     &nbsp;
  37.                     <input type="button" value="返回" class="SmallButtonA" onclick="javascript:history.go(-1);return false;"/>
  38.                 </td>
  39.             </tr>
  40.         </table>
  41.     </form>
  42. <table class="MessageBox" align="center" width="400" style="display:none" id="tableId">
  43.   <tr>
  44.     <td >
  45.       <h4 ><br>所选权限</h4>
  46.       <div  style="font-size:12pt;color:blue;" id="sxqx">
  47.          
  48.       </div>
  49.     </td>
  50.   </tr>
  51. </table>
  52.   </body>
  53.   <script type="text/javascript">
  54.       <!--
  55.           //职位授权.
  56.           function addPositionPermit(){

  57.               /*var permit_code = document.getElementById("permit_code");
  58.               var position_code_name = document.getElementById("position_code_name");

  59.               if(permit_code.value == ""){
  60.                   alert("权限代码不能为空.");
  61.                   return false;
  62.               }

  63.               if(position_code_name.value == ""){
  64.                   alert("职位代码不能为空.");
  65.                   return false;
  66.               }*/
  67.             //alert(document.form2.action);
  68.               //document.form2.action = "<%=request.getContextPath()%>/newPri.do?status=addPositionPermit";
  69. //就在这里报错...提示对象不支持此属性或方法...
  70.               document.form2.action = "<%=request.getContextPath()%>/newPri.do?status=addPositionPermit";
  71.               document.form2.submit();
  72.           }
  73.   
  74.       -->
  75.   </script>
  76. </html>

最新评论
更多评论...