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

OA系统

开发平台:

C#

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