<!--#include file="../checkLoginPhone.asp"-->
<html>
<head>
<title>发信件</title>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>
<style type="text/css">
<!--
.STYLE2 {color: #000000}
body {
	background-color: #FFFFFF;
}
-->
</style>
</head>
<link rel="stylesheet" href="../kindeditor3/themes/default/default.css" />
<script charset="utf-8" src="../kindeditor3/kindeditor.js"></script>
<script charset="utf-8" src="../kindeditor3/lang/zh_CN.js"></script>
<script>
		
			KindEditor.ready(function(K) {
			var editor = K.create('textarea[name="content"]', {
				cssPath : '../kindeditor3/plugins/code/prettify.css',
				uploadJson : '../kindeditor3/asp/upload_json.asp',
				fileManagerJson : '../kindeditor3/asp/file_manager_json.asp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
				}
			});
		});
	</script>
		
		
<script language="javascript"> 
function divshow(n) 
{
  var filePath=document.getElementById("file1").value; //取文件域中本地文件路径
  var thisFileName=""
  if(filePath!=""){
     getFileName=filePath.split("\\");                     //在window系统中，本地文件夹用“\”号分隔
  len=getFileName.length
  thisFileName=getFileName[len-1].split(".")[0]        //取文件名，并过滤掉后缀
  }
  if(thisFileName!=""){
    if(document.form3.title.value.length<1){ 
     document.getElementById("title").value=thisFileName  //把文件名赋值给指定文本框
  }}
  
document.getElementById(n).style.display="block";

}
</script>    

 

<script Language="JavaScript">
function right(mainStr,lngLen) {
// alert(mainStr.length)
if (mainStr.length-lngLen>=0 && mainStr.length>=0 && mainStr.length-lngLen<=mainStr.length) {
return mainStr.substring(mainStr.length-lngLen,mainStr.length)}
else{return null}
}

function form_check(){ 

if(document.form3.sendto.value.length<1){window.alert("请选择收件人");document.form3.sendto.focus();return (false);}
if(document.form3.title.value.length<1){window.alert("请输入标题");document.form3.title.focus();return (false);}
document.getElementById('good').style.display = "block"; 
}

</script>

<body topmargin="10" leftmargin="10">



<table width="100%" height="495" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="27">
	<div class="header">
	<div class="nav">
        <ul>
            <li class="on">发送邮件</li>
            <li><a href="Havesended.asp">已发邮件</a></li>
            <li><a href="Received.asp">收邮件箱</a></li>
			<li><a href="caogao.asp">草稿件箱</a></li>
			<li><a href="lajixiang.asp">垃圾件箱</a></li>
        </ul>
    </div>	
	</td>
  </tr>
  <tr>
   <td height="400" valign="top"   class="NemuMainBox">
   
  
   <table  border="0" align="center" cellpadding="10" cellspacing="0" bgcolor="#F7FCFF" style="border-collapse:collapse">
		<tr>
		<td width="79" height="295"><p align="center">
		
		 <div id="good" style="display:none;">   <div align="center">
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td><div align="right"><img src="../images/img/GongGao/dengdai.gif" width="100" height="100"></div></td>
       <td>正在上传，请等待……</td>
     </tr>
   </table>
   </div></div> </div>
   
   <form method="post" ENCTYPE="multipart/form-data" name="form3" action="savefile.asp" onSubmit="return form_check();">
<% 
sendtoname=request("sendtoname")
title=request("title")
dim strID
strId=request("id")
  
 
 Set MyOAASPObj = Server.CreateObject("YFSchoolOApro.YFSchoolDll")
call	MyOAASPObj. EmailSendFile(sendtoname,title,strId,request.cookies("tname"))
set MyOAASPObj=nothing 
  
%>	 
  
</form>
		
		</p></td>
		<td width="79">	<Iframe src="../selectName.asp?inputname=inputnamemessage"; width="200" height=455  frameborder="0"></iframe></td>
		</tr>
</table>



    </td>
  </tr>
</table>
 
</body>  
</html>  


