|
|
沙发

楼主 |
发表于 2007-8-2 09:22:25
|
只看该作者
<!--#include file="passinc.asp" -->
<%
Session("svcal") = ""
dim ischange
ischange = FALSE
if trim(request("mode")) <> "" then
dim pf
set pf = server.createobject("easymail.PerFolders")
pf.Load Session("wem")
if trim(request("mode")) = "del" then
if pf.DeleteFolderByName(trim(request("pfname"))) = FALSE then
response.write "*错误: 请先清空文件夹[" & server.htmlencode(trim(request("pfname"))) & "]后再删除."
else
ischange = TRUE
end if
elseif trim(request("mode")) = "add" then
if pf.MaxPerFolderNumber > pf.FolderCount then
NewName = trim(request("NewName"))
NewName = replace(NewName, Chr(9), " ")
NewName = replace(NewName, """", "")
NewName = replace(NewName, "'", "")
pf.AddFolder NewName
ischange = TRUE
else
response.write "*错误: 私人文件夹数已满."
end if
elseif trim(request("mode")) = "rename" then
NewName = trim(request("NewName"))
NewName = replace(NewName, """", "'")
if pf.CanSetWithReceiveOutMail(NewName) = false and pf.Get_EnableRecOutMail(trim(request("pfname"))) = true then
response.write "*错误: 修改允许接收外部邮件的私人文件夹名称时, 新名称不合法."
else
pf.RenameFolder trim(request("pfname")), NewName
ischange = TRUE
end if
end if
if ischange = TRUE then
pf.Save
end if
set pf = nothing
end if
noticemsg = trim(request("noticemsg"))
dim am
set am = server.createobject("easymail.Attachments")
am.Load Session("wem"), Session("tid")
am.RemoveAll
set am = nothing
'-----------------------------------------
dim eusers
set eusers = Application("em")
maxsize = eusers.GetMailBoxSize(Session("wem"))
set eusers = nothing
if maxsize < 0 then
maxsize = 10000
end if
dim ei
set ei = server.createobject("easymail.InfoList")
'-----------------------------------------
ei.LoadSizeInfo Session("wem")
cursize = ei.allMailSize
dim bf
if maxsize > 0 then
bf = CLng((100 * CLng(cursize / 1000)) / maxsize)
if bf = 0 then
if cursize > 0 then
bf = 1
else
bf = 0
end if
end if
else
bf = 100
end if
if bf > 100 then
bf = 100
end if
if bf < 0 then
bf = 0
end if
dim all_mailnum
dim all_mailnewnum
dim all_mailsize
all_mailnum = 0
all_mailnewnum = 0
all_mailsize = 0
%>
<HTML><HEAD><TITLE>电子邮局</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT language=javascript src="welcome/date.js"></SCRIPT>
<LINK href="welcome/hwem.css" rel=stylesheet>
<STYLE type=text/css>
A {
TEXT-DECORATION: none
}
BODY {
MARGIN: 0px
}
.STYLE1 {
FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #ffffff
}
.STYLE2 {
FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #000000
}
A:link {
}
.style3 {color: #990000}
</STYLE>
<SCRIPT language=javascript>
<!--
function window_onload() {
}
function deletepf() {
if (f1.pfName.selectedIndex != -1)
{
f1.mode.value = "del";
f1.submit();
}
}
function add() {
if (f1.NewName.value.indexOf("\"") != -1 || f1.NewName.value.indexOf("'") != -1)
{
alert("包含非法字符");
return;
}
if (f1.NewName.value != "")
{
f1.mode.value = "add";
f1.submit();
}
}
function rename() {
if (f1.NewName.value.indexOf("\"") != -1 || f1.NewName.value.indexOf("'") != -1)
{
alert("包含非法字符");
return;
}
if (f1.NewName.value != "")
{
f1.mode.value = "rename";
f1.submit();
}
}
//-->
</SCRIPT>
<META content="MSHTML 6.00.3790.2541" name=GENERATOR>
<base target="f2">
</HEAD>
<BODY language=javascript onLoad="return window_onload()">
<DIV align=center>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 bgcolor="#336699">
<TBODY>
<TR>
<TD width="2%"> </TD>
<TD vAlign=top width="98%">
<TABLE width="100%" height="56" border=0 cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD height=40 align="right" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30">
<p align="left"> <font color="#FFFFFF">当前用户 </font> <font class=s><span style="font-weight: bold">
<font color="#FFFFFF" style="font-size: 10pt; font-family:tahoma,san-serif"><%=Session("mail") %></font></span><font color="#FFFFFF">
[ </font><a href="logon.asp" target=f2><font color="blue">修改资料</font></a><font color="#FFFFFF">,</font><a target="_top" href="logout.asp?logout=true"><font color="red">安全退出</font></a><font color="#FFFFFF"> ]</font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><div align="left"><font color="#FFFFFF">今天是:
<SCRIPT language=JavaScript>
var today= new Date(); // 今天是2004-3-5
var SolarDateString = GetSolarDateString();
var LunarDateString = GetLunarDateString(today);
document.write(SolarDateString +" 农历" + LunarDateString)
</SCRIPT>
</font>
</div></td>
</tr>
</table></TD>
</TR></TBODY></TABLE>
</TD>
</TR>
<TR>
<TD colSpan=2 height=46>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 height="22">
<TBODY>
<TR>
<TD>
<DIV id=d11></DIV>
<DIV id=d12></DIV>
<DIV id=d13></DIV>
<DIV id=d14></DIV>
<DIV id=d15></DIV></TD></TR>
<TR class="STYLE2">
<TD id=bt11 style="CURSOR: hand" onclick=show1(1) align=middle
width=450 height=24 bgcolor="#DBEAF5">
<table border="1" width="720" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border-style: dotted; border-width: 1px" height="22">
<tr>
<TD id=bt17 style="CURSOR: hand" onclick=show1(5) align=center
width=80 bgcolor="#0099CC"><font color="#008000"><a href="info.asp">
<font color="#FFFFFF">首页</font></a></font></TD>
<TD id=bt16 style="CURSOR: hand" onclick=show1(1) align=center
width=80 height=16 bgcolor="#0099CC">
<font color="#008000"><a href="viewmailbox.asp">
<font color="#FFFFFF">电子邮件</font></a></font></TD>
<TD
width=80 align=center id=bt12 style="CURSOR: hand" onclick=show1(2) bgcolor="#0099CC">
<font color="#008000"><a href="ads_brow.asp"><font color="#FFFFFF">通讯录</font></a></font></TD>
<TD id=bt13 style="CURSOR: hand" onclick=show1(3) align=center
width=80 bgcolor="#0099CC"><font color="#008000">
<a href="nb_brow.asp"><font color="#FFFFFF">记事本</font></a></font></TD>
<TD id=bt14 style="CURSOR: hand" onclick=show1(4) align=center
width=80 bgcolor="#0099CC"><font color="#008000">
<a href="attfolders.asp"><font color="#FFFFFF">网络硬盘</font></a></font></TD>
<TD id=bt18 style="CURSOR: hand" onclick=show1(5) align=center
width=80 bgcolor="#0099CC"><font color="#008000">
<a href="findmail.asp"><font color="#FFFFFF">邮件搜索</font></a></font></TD>
<TD id=bt17 style="CURSOR: hand" onclick=show1(5) align=center
width=80 bgcolor="#0099CC"><a href="style.asp" target=f2><font color="#FFFFFF">
邮箱配置</font></a></TD>
<TD id=bt17 style="CURSOR: hand" onclick=show1(5) align=center
width=80 bgcolor="#0099CC"> <A href="help.asp" target=f2><font color="#FFFFFF">
邮箱帮助</font></A></TD>
</tr>
</table>
</TD>
<TD id=bt15 style="CURSOR: hand" onclick=show1(5) align=middle
width=296 bgcolor="#0099CC"><font color="red">
<span style="font-size: 10pt">版本1.0</span></font></TD></TR></TBODY></TABLE> </TD>
</TR></TBODY></TABLE></DIV>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=193 bgColor=#336699></TD>
<TD bgColor=#ffffff><font color="#FFFFFF"><IMG height=5 src="welcome/top/page_conn.jpg"
width=4></font></TD></TR></TBODY></TABLE></BODY></HTML> |
|