<%@ Page CodeBehind="send.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.send" %>
<!DOCTYPE HTML >
<HTML>
  <HEAD>
		<META http-equiv="Content-Type" content="text/html; charset=gb2312">
		<% @ Import Namespace="Webdisk" %>
		<link href="<%=xml.GetStyle()%>" type=text/css rel=stylesheet>
		<link href="css/webdialog.css" type=text/css rel=stylesheet>
			<script language="javascript">
				function shareuser(url)
				{
				window.open(url+'?send=1','','scrollbars=yes,resizable=no,status=no,toolbar=no,menubar=no,location=no,width=800,height=650');
				}
				function closeWindow(flag){
					if(window.top.closeWindow ){
						if(flag){
							window.top.closeWindow("转发文件成功！");
						}else{
							window.top.closeWindow();
						}
					}else{
						history.go(-1)
					}
                }
//                function sendEmail() {
//                    $.ajax({
//                        type: "post",
//                        url: "FileSpaceHandler.ashx?cmd=SendEmail",
//                        data: { mailurl: $("#mailurl").val(), title: $("#title").val(), memo:$("#memo").val(), totalpath:$("#totalpath").val() },
//                        success: function () {
//                            closeWindow(true);
//                        }
//                    });
//                }
			</script>
  </HEAD>
	<body>
		<form id="Form1" name="Form1" runat="server">
			<table class="wfrom-table">
				<tbody>
					<tr>
						<td colspan="2">
						<span class="prompt">以下是您选中的文件：</span><br>
						<font color="red"><%=ToLager%></font>
							<asp:listbox id="ListBox1" class="input-select multiple" runat="server" Width="100%" Height="160px"></asp:listbox>
							<br><span class="wtc-999" style="float: right">总共文件大小：<%=filesize%></span>
						</td>
					</tr>
					<tr>
						<td class="label" style="width: 120px;">
							需发送的电子邮件：
						</td>
						<td>
							<input class="input-text" id="mailurl" type="text" size="70" name="mailurl" runat="server" style="width:500px;" autofocus="autofocus"><span class="wtc-999">(多个邮件用,分隔)</span><br>
							<asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" ErrorMessage="*请输入要发送到的电子邮件" ControlToValidate="mailurl" Display="Dynamic"></asp:requiredfieldvalidator>
						</td>
					</tr>
					<tr>
						<td class="label">
						</td>
						<td>
							<a class="wbtn-4" onClick="javascript:shareuser('sel_dept.aspx');">选择部门</a>
							<%--<a class="wbtn-4" onClick="javascript:shareuser('sel_workgroup.aspx');">选择科室</a>--%>
							<a class="wbtn-4" onClick="javascript:shareuser('searchAdd_user.aspx');">选择用户</a>
						</td>
					</tr>
					<tr>
						<td class="label">
							发送标题：
						</td>
						<td>
							<input class="input-text" id="title" type="text" size="70" name="pickcode2" runat="server" style="width:500px;"><br>
							<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="*请输入标题" ControlToValidate="title"></asp:requiredfieldvalidator>
						</td>
					</tr>
					<tr>
						<td class="label">
							附加内容：
						</td>
						<td>
							<textarea class="input-textarea" id="memo" name="memo" rows="10" cols="70" runat="server" style="width:505px;"></textarea>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<div class="wtips"><img src="images/icon2.gif"> 此处可以将选中的文件以邮件附加的形式进行发送，仅限于3M以下大小，过大的文件建议使用提取方式。
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<input class="wbtn-1" id="Button3" type="button" value=" 发  送 " name="Button3" runat="server" onserverclick="Button3_ServerClick">
							<input class="wbtn-2" onClick="closeWindow();" type="button" value="取消" name="Submit">
						</td>
					</tr>
					</tbody></table>
		</form>
		<script type="text/javascript">
			document.getElementById("mailurl").focus();
		</script>
	</body>
</HTML>
