rc_writecalendar.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:7k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="rc_writecalendar.aspx.cs" Inherits="rc_rc_writecalendar" validateRequest="false"%>
  2. <%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" >
  5. <head runat="server">
  6. <script type="text/javascript"language="JavaScript">
  7. function check() {
  8.    var time = document.getElementById("control_date").value;
  9.    if(time==""||time==null){
  10.         alert("请选择日程日期");
  11.         return false;
  12.    }
  13.    var title = document.getElementById("zhuti").value;
  14.    if(title==""||title==null){
  15.         alert("请输入日程主题");
  16.         return false;
  17.    }
  18.    var content = document.getElementById("ftboxcontent").value;
  19.    if(content==""||content==null){
  20.         alert("请输入日程内容");
  21.         return false;
  22.    }
  23. }
  24. </script>
  25. <script type="text/javascript" src="../js/calendar.js"></script>
  26. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
  27. <title>撰写日程</title>
  28. <style type="text/css">
  29. <!--
  30. .style1 {
  31. color: #FFFFFF;
  32. font-weight: bold;
  33. }
  34. -->
  35. </style>
  36. <link href="../css/link.css" rel="stylesheet" type="text/css"/>
  37. <link href="../css/input.css" rel="stylesheet" type="text/css"/>
  38. <style type="text/css">
  39. <!--
  40. .style9 {font-size: 12px}
  41. -->
  42. </style>
  43. </head>
  44. <body>
  45. <table width="100%"  border="0">
  46.   <tr>
  47.     <td><div align="center">
  48.       <form name="form1" method="post" action="" runat="server"  onsubmit="return check()">
  49.         <table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../images/sj/line.gif">
  50.           <tr>
  51.             <td background="../images/sj/line.gif"><div align="center" class="style1">撰 写 日 程</div></td>
  52.           </tr>
  53.         </table>
  54.                 <table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
  55.           <tr>
  56.             <td valign="top" bgcolor="#FFFFFF" style="height: 544px"><table width="99%"  border="0" cellpadding="3" cellspacing="0">
  57.               <tr bgcolor="#FFFFFF">
  58.                 <td height="8" colspan="2"></td>
  59.                 </tr>
  60.               <tr bgcolor="#FFFFFF">
  61.                 <td><div align="right">日程日期:</div></td>
  62.                 <td style="text-align: left">
  63.                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  64.                     <input name="control_date" type="text" id="control_date" maxlength="10" readonly="readonly" style="width: 122px"/>
  65.                     <input type="button" name="button" id="button" value="选择日期" onclick="new Calendar().show(this.form.control_date);" />
  66.                     </td>
  67.               </tr>
  68.               <tr bgcolor="#FFFFFF">
  69.                 <td width="11%"><div align="right">主题:</div></td>
  70.                 <td width="89%" style="text-align: left">
  71.                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  72.                     <input name="zhuti" type="text" id="zhuti" maxlength="40" style="width: 356px"/></td>
  73.               </tr>
  74.               <tr bgcolor="#FFFFFF">
  75.                 <td><div align="right"><img alt src="../images/sj/1.gif" width="78" height="46"/><br/>
  76.          内容:</div></td>
  77.                 <td>
  78.                     <ftb:freetextbox id="ftboxcontent" runat="server"></ftb:freetextbox>
  79.                     </td>
  80.               </tr>
  81.               <tr bgcolor="#FFFFFF">
  82.                 <td>&nbsp;</td>
  83.                 <td>
  84.               <%
  85.                   COM.OA.Entity.users loginuser = Session["loginuser"] as COM.OA.Entity.users;
  86.                   if (loginuser == null)
  87.                   {
  88.                     Response.Write("<script language='javascript'>parent.document.location.href='../login.aspx'</script>");  
  89.                       return;
  90.                   }
  91.                   string username = loginuser.u_username;
  92.             %>
  93.                     <input id="txtusername" name="txtusername" type="hidden" value="<%=username %>" />
  94.                     <% string d = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); %>
  95.                     <input id="txtsendtime" name="txtsendtime" type="hidden" value="<%=d %>" />
  96.             </td>
  97.               </tr>
  98.               <tr bgcolor="#FFFFFF">
  99.                 <td style="height: 33px">&nbsp;</td>
  100.                 <td style="height: 33px"><span class="style9"><span class="bg"><span class="bg style2"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  101.                   <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><STRONG><font color="#ffffff"><strong><font color="#ffffff"><STRONG><font color="#ffffff"><strong><font color="#ffffff">
  102.                       &nbsp;<asp:Button ID="Button1" runat="server" Height="27px" Text="发 送" Width="61px" OnClick="Button1_Click" /></font></strong></font></strong></font></strong></font></strong> <STRONG><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><STRONG><font color="#ffffff"><strong><font color="#ffffff"><STRONG><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><STRONG><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><STRONG><font color="#ffffff"><strong><font color="#ffffff"><STRONG><font color="#ffffff"><strong><font color="#ffffff"><STRONG><font color="#ffffff"><strong><font color="#ffffff">
  103.                   <input name="重置" type="reset" style="font-SIZE: 12px; HEIGHT: 27px"  value= " 重 写 " />
  104.                   </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong> </font></strong></font></strong></font></strong> </font></strong></font></strong> </font></strong> <STRONG><font color="#ffffff"> <strong><font color="#ffffff">  
  105.                   <input name="按钮" type="button" style="font-SIZE: 12px; HEIGHT: 27px"   onclick="javascript:history.go(-1)" value= " 取 消 " />
  106.                   </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></span></span></span></td>
  107.               </tr>
  108.               <tr bgcolor="#FFFFFF">
  109.                 <td colspan="2" style="height: 10px"></td>
  110.                 </tr>
  111.             </table></td>
  112.           </tr>
  113.         </table>        
  114.         </form>
  115.     </div></td>
  116.   </tr>
  117. </table>
  118. </body>
  119. </html>