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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <html>
  4. <head>
  5. <title>增加日程</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7. <link rel="stylesheet" href="common.css" type="text/css">
  8. <script language=javascript>
  9. <!--
  10. function findObj(theObj, theDoc)
  11. {
  12.   var p, i, foundObj;
  13.   
  14.   if(!theDoc) theDoc = document;
  15.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  16.   {
  17.     theDoc = parent.frames[theObj.substring(p+1)].document;
  18.     theObj = theObj.substring(0,p);
  19.   }
  20.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  21.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  22.     foundObj = theDoc.forms[i][theObj];
  23.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  24.     foundObj = findObj(theObj,theDoc.layers[i].document);
  25.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  26.   
  27.   return foundObj;
  28. }
  29. function openWin(url,width,height)
  30. {
  31.   var newwin=window.open(url,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=120,width="+width+",height="+height);
  32. }
  33. var GetDate=""; 
  34. function SelectDate(ObjName,FormatDate){
  35. var PostAtt = new Array;
  36. PostAtt[0]= FormatDate;
  37. PostAtt[1]= findObj(ObjName);
  38. GetDate = showModalDialog("util/calendar/calendar.htm", PostAtt ,"dialogWidth:286px;dialogHeight:195px;status:no;help:no;");
  39. }
  40. function SetDate()
  41. findObj(ObjName).value = GetDate; 
  42. }
  43. function SelectDateTime(objName) {
  44. var dt = showModalDialog("util/calendar/time.htm", "" ,"dialogWidth:266px;dialogHeight:125px;status:no;help:no;");
  45. if (dt!=null)
  46. findObj(objName).value = dt;
  47. }
  48. //-->
  49. </script>
  50. <style type="text/css">
  51. <!--
  52. .STYLE1 { color: #FFFFFF;
  53. font-weight: bold;
  54. }
  55. -->
  56. </style>
  57. </head>
  58. <body bgcolor="#FFFFFF" text="#000000" topmargin="5">
  59. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  60. <%@ include file="inc/inc.jsp"%>
  61. <%@ include file="plan_inc_menu_top.jsp"%>
  62. <br>
  63. <table width="494" border="0" align="center" cellpadding="0" cellspacing="0" class="tableframe">
  64.   <tr> 
  65.     <td height="23" valign="middle" class="right-title">&nbsp;增 
  66.       加 日 程</td>
  67.   </tr>
  68.   <tr> 
  69.     <td height="293" valign="top" bgcolor="#FFFFFF">
  70. <table width="90%" border="0" align="center">
  71.         <tr> 
  72.           <td height="5"></td>
  73.         </tr>
  74.       </table> 
  75.       <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="stable">
  76.         <tr class="stable"> 
  77.           <td width="16%" height="21" align="center" bgcolor="#C4DAFF" class="stable">&nbsp;</td>
  78.           <td width="84%" height="21" bgcolor="#C4DAFF" class="stable">增加日程</td>
  79.         </tr>
  80.         <form name="form1" action="plan_add_do.jsp" method="post" onSubmit="">
  81.           <tr> 
  82.             <td width="16%" height="19" align="center" bgcolor="#eeeeee" class="stable">标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题</td>
  83.             <td height="19"><input name="title" class="singleboarder" size=35></td>
  84.           </tr>
  85.           <tr> 
  86.             <td width="16%" height="19" align="center" bgcolor="#eeeeee" class="stable">待办日期            </td>
  87.             <td width="84%" height="19"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  88.         
  89.         <tr>
  90.           <td><input name=mydate size="10" readonly="">
  91.             <img style="CURSOR: hand" onClick="SelectDate('mydate','yyyy-mm-dd')" src="images/form/calendar.gif" align="absMiddle" width="26" height="26">
  92. <input style="WIDTH: 50px" value="12:00:00" name="time" size="20">&nbsp;<img style="CURSOR: hand" onClick="SelectDateTime('time')" src="images/form/clock.gif" align="absMiddle" width="18" height="18"> </td>
  93.           </tr>
  94.       </table></td>
  95.           </tr>
  96.           <tr>
  97.             <td height="17" align="center" bgcolor="#eeeeee" class="stable">是否提醒</td>
  98.             <td height="17"><input type="checkbox" name="isRemind" value="1" checked>
  99.             &nbsp;&nbsp;
  100. <select name="before">
  101. <option value="10">十分钟</option>
  102. <option value="20">二十分钟</option>
  103. <option value="30">三十分钟</option>
  104. <option value="45">四十五分钟</option>
  105. <option value="60">一小时</option>
  106. <option value="120">二小时</option>
  107. <option value="180">三小时</option>
  108. <option value="360">六小时</option>
  109. <option value="720">十二小时</option>
  110. </select>之前
  111. <%
  112. if (com.redmoon.oa.sms.SMSFactory.isUseSMS()) {
  113. %>
  114.             <input name="isToMobile" value="true" type="checkbox" checked />
  115. 短讯提醒
  116. <%}%></td>
  117.           </tr>
  118.           <tr> 
  119.             <td width="16%" height="17" align="center" bgcolor="#eeeeee" class="stable">内&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;容</td>
  120.             <td width="84%" height="17"> <textarea name=content cols="50" class="singleboarder" rows="12"></textarea>            </td>
  121.           </tr>
  122.           <tr> 
  123.             <td colspan="2" align="center">&nbsp; </td>
  124.           </tr>
  125.           <tr> 
  126.             <td colspan="2" align="center"> <input name="submit" type=submit class="singleboarder" value=" 发 送 "> 
  127.               &nbsp;&nbsp;&nbsp; <input name="reset" type=reset class="singleboarder" value=" 取 消 ">            </td>
  128.           </tr>
  129.         </form>
  130.       </table>    </td>
  131.   </tr>
  132. </table>
  133. </body>
  134. </html>