macro_ctl_sign_win.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import="java.util.*"%>
  3. <%@ page import="cn.js.fan.util.*"%>
  4. <%@ page import="cn.js.fan.db.*"%>
  5. <%@ page import="com.redmoon.oa.person.*"%>
  6. <%@ page import="com.redmoon.oa.flow.*"%>
  7. <%@ page import="com.redmoon.oa.dept.*"%>
  8. <html>
  9. <head>
  10. <title>签名</title>
  11. <link href="../common.css" rel="stylesheet" type="text/css">
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  13. <style type="text/css">
  14. <!--
  15. .style4 {
  16. color: #FFFFFF;
  17. font-weight: bold;
  18. }
  19. -->
  20. </style>
  21. </head>
  22. <body bgcolor="#FFFFFF" text="#000000" style="background-image:url()">
  23. <jsp:useBean id="docmanager" scope="page" class="cn.js.fan.module.cms.DocumentMgr"/>
  24. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  25. <%
  26. String priv="read";
  27. if (!privilege.isUserPrivValid(request,priv))
  28. {
  29. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  30. return;
  31. }
  32. // 窗口不能做成模式对话框,因为form及location.href都会弹出新窗口
  33. String op = ParamUtil.get(request, "op");
  34. if (op.equals("sign")) {
  35. String pwd = ParamUtil.get(request, "pwd");
  36. UserDb ud = new UserDb();
  37. ud = ud.getUserDb(privilege.getUser(request));
  38. if (ud.getPwdRaw().equals(pwd)) {
  39. %>
  40. <script>
  41. window.opener.setIntpuObjValue("<%=ud.getRealName() + "   " + cn.js.fan.util.DateUtil.format(new java.util.Date(), "yyyy年MM月dd日")%>");
  42. window.close();
  43. </script>
  44. <%
  45. return;
  46. }
  47. else {
  48. out.print(StrUtil.Alert("密码错误!"));
  49. }
  50. }
  51. %>
  52. <table width="100%" cellPadding="0" cellSpacing="0">
  53.   <tbody>
  54.     <tr>
  55.       <td height="28" class="right-title">&nbsp;请输入密码</td>
  56.     </tr>
  57.   <form name="form1" action="?op=sign" method="post">
  58.     <tr>
  59.       <td height="40" align="center" bgcolor="#FFFFFF" class="head">
  60.   <input name="pwd" type="password">
  61.   &nbsp;&nbsp;
  62.         <input type="submit" value="签名"></td></tr>
  63.   </form>
  64. </table>
  65. </body>
  66. </html>