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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <%@ page import = "java.io.File"%>
  4. <%@ page import = "java.util.Calendar"%>
  5. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  6. <jsp:useBean id="plan" scope="page" class="com.redmoon.oa.person.PlanMgr"/>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  8. <HTML><HEAD><TITLE>日程安排</TITLE>
  9. <META http-equiv=Content-Type content="text/html; charset=utf-8">
  10. <link rel="stylesheet" href="common.css" type="text/css">
  11. <%@ include file="inc/nocache.jsp" %>
  12. <%
  13. out.print(plan.changeCld_Script("plan.jsp"));
  14. %>
  15. <META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
  16. <BODY bgColor=#ffffff leftMargin=0 topMargin=3 marginheight="3" marginwidth="0">
  17. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  18. <%
  19. if (!privilege.isUserLogin(request))
  20. {
  21. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  22. return;
  23. }
  24. %>
  25. <%@ include file="plan_inc_menu_top.jsp"%>
  26. <br>
  27. <table width="494" border="0" align="center" cellpadding="0" cellspacing="0" class="tableframe">
  28.   <tr> 
  29.     <td height="23" class="right-title">&nbsp;日 
  30.       程 安 排</td>
  31.   </tr>
  32.   <tr> 
  33.     <td align="center" valign="top"> <p><br>
  34. <%
  35. int displayYear = 0;
  36. int displayMonth = 0;
  37. String stryear = request.getParameter("displayYear");
  38. String strmonth = request.getParameter("displayMonth");
  39. try {
  40. if (stryear!=null)
  41. displayYear = Integer.parseInt(stryear);
  42. if (strmonth!=null)
  43. displayMonth = Integer.parseInt(strmonth);
  44. }
  45. catch (Exception e){
  46. out.println(e.getMessage());
  47. return;
  48. }
  49. Calendar cal = Calendar.getInstance();
  50. int year = 0;
  51. int month = 0;
  52. if (stryear==null)
  53. year = cal.get(cal.YEAR);
  54. else
  55. year = displayYear;
  56. if (strmonth==null)
  57. month = cal.get(cal.MONTH);
  58. else
  59. month = displayMonth;
  60. String caltable = plan.newCalendar(privilege.getUser(request),year,month);
  61. out.print(caltable);
  62. %>
  63.         <br>
  64.         &nbsp;&nbsp; 
  65.       </p></td>
  66.   </tr>
  67. </table>
  68. <div align="center"></div>
  69. </BODY>
  70. </HTML>