macro_ctl_idea_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("idea")) {
  35. String idea = ParamUtil.get(request, "idea");
  36. UserDb ud = new UserDb();
  37. ud = ud.getUserDb(privilege.getUser(request));
  38. String str = "rnrn" + idea + "rn                                     " + ud.getRealName() + "   " + cn.js.fan.util.DateUtil.format(new java.util.Date(), "yyyy年MM月dd日");
  39. %>
  40. <textarea name="idea" style="display:none"><%=str%></textarea>
  41. <script>
  42. window.opener.setIntpuObjValue(idea.value);
  43. window.close();
  44. </script>
  45. <%
  46. }
  47. %>
  48. <table width="100%" cellPadding="0" cellSpacing="0">
  49.   <tbody>
  50.     <tr>
  51.       <td height="28" class="right-title">&nbsp;请输入意见</td>
  52.     </tr>
  53.   <form name="form1" action="?op=idea" method="post">
  54.     <tr>
  55.       <td height="20" align="center" bgcolor="#FFFFFF" class="head">&nbsp;</td></tr>
  56.     <tr>
  57.       <td height="20" align="center" bgcolor="#FFFFFF" class="head"><textarea name="idea" cols="50" rows="8"></textarea>
  58. &nbsp;&nbsp; <br>
  59. <input name="submit" type="submit" value=" 确 定 ">
  60. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  61. <input name="submit2" type="button" value=" 取 消 " onClick="window.close()"></td>
  62.     </tr>
  63.   </form>
  64. </table>
  65. </body>
  66. </html>