desktop_adjust.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.web.*" %>
  4. <%@ page import="cn.js.fan.util.*" %>
  5. <%@ page import="com.redmoon.oa.person.*" %>
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <LINK href="../common.css" type=text/css rel=stylesheet>
  11. <title>用户桌面设置</title>
  12. <script language=javascript>
  13. <!--
  14. //-->
  15. </script>
  16. </head>
  17. <body>
  18. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  19. <%
  20. String priv="read";
  21. if (!privilege.isUserPrivValid(request,priv))
  22. {
  23. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  24. return;
  25. }
  26. String strId = ParamUtil.get(request, "id");
  27. if (!StrUtil.isNumeric(strId))
  28. return;
  29. int id = ParamUtil.getInt(request, "id");
  30. UserDesktopSetupDb usd = new UserDesktopSetupDb();
  31. usd = usd.getUserDesktopSetupDb(id);
  32. String op = ParamUtil.get(request, "op");
  33. if (op.equals("del")) {
  34. usd.del();
  35. return;
  36. }
  37. int left = ParamUtil.getInt(request, "left");
  38. int top = ParamUtil.getInt(request, "top");
  39. int width = ParamUtil.getInt(request, "width");
  40. int height = ParamUtil.getInt(request, "height");
  41. int zIndex = ParamUtil.getInt(request, "zIndex");
  42. usd.setLeft(left);
  43. usd.setTop(top);
  44. usd.setWidth(width);
  45. usd.setHeight(height);
  46. usd.setZIndex(zIndex);
  47. out.print("id=" + strId);
  48. out.print(usd.save());
  49. %>
  50. </body>
  51. </html>