⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendemail.aspx

📁 校友录的总体功能分为三个子功能模块:管理功能模块,用户注册功能模块,用户个性化服务
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SendEmail.aspx.cs" Inherits="SendMsg" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script language="javascript" type="text/javascript">
// <!CDATA[

     function MM_preloadImages() { //v3.0          var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();            var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)            if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}        }        function MM_swapImgRestore() { //v3.0          var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;        }        function MM_findObj(n, d) { //v4.01          var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {            d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}          if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];          for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);          if(!x && d.getElementById) x=d.getElementById(n); return x;        }        function MM_swapImage() { //v3.0          var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)           if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}        }
// ]]>
</script>
</head>
<body style="text-align: center; background-image: url(PICTURE/back.gif);">
  <form id="form1" runat="server">
   <table width="679" border="0" cellspacing="0" cellpadding="0"  style="text-align: center;">  <tr>     <td style="height: 59px; width: 197px;">
    <asp:Image ID="Image2" runat="server" Height="68px" ImageUrl="~/PICTURE/site.gif"
        Width="273px" /></td>    <td style="height: 59px"><img src="PICTURE/obj_head.gif" style="width: 726px; height: 71px"alt="" /></td>  </tr></table>
    <table border="0" cellpadding="0" cellspacing="0" style="background-image: url(PICTURE/obj_menu_01.gif);
        width: 937px">
        <tr> 
            <td style="background-image: url(PICTURE/obj_menu_02.gif); width: 79px; height: 25px">
                <img src="PICTURE/obj_menu_02.gif" style="width: 62px; height: 16px"  alt="" /></td>
            <td style="width: 100px; height: 25px"><a href="main.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('linka','','PICTURE/link_a2.gif',1)">
                <img src="PICTURE/link_a1.gif" style="height: 24px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;"  alt=""   id="linka" /></a></td>
            <td style="background-image: url(PICTURE/obj_menu_02.gif); width: 100px; height: 25px">
                <img src="PICTURE/obj_menu_02.gif" style="width: 62px; height: 16px"alt="" /></td>
            <td style="width: 100px; height: 25px"><a href="http://www.hqu.edu.cn" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('linkb','','PICTURE/link_b2.gif',1)">
                <img src="PICTURE/link_b1.gif" style="width: 76px; height: 30px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;" alt="" id="linkb" /></a></td>
            <td style="background-image: url(PICTURE/obj_menu_02.gif); width: 100px; height: 25px">
                <img src="PICTURE/obj_menu_02.gif" style="width: 62px; height: 16px"alt="" /></td>
            <td style="width: 100px; height: 25px"><a href="index.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('linkc','','PICTURE/link_c2.gif',1)">
                <img src="PICTURE/link_c1.gif" style="width: 75px; height: 29px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;" alt="" id="linkc" /></a></td>
            <td style="background-image: url(PICTURE/obj_menu_02.gif); width: 100px; height: 25px">
                <img src="PICTURE/obj_menu_02.gif" style="width: 62px; height: 16px"alt="" /></td>
            <td style="width: 100px; height: 25px"><a href="friend.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('linkd','','PICTURE/link_d2.gif',1)">
                <img src="PICTURE/link_d1.gif" style="height: 30px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;" alt="" id="linkd" /></a></td>
            <td style="background-image: url(PICTURE/obj_menu_02.gif); width: 100px; height: 25px">
                <img src="PICTURE/obj_menu_02.gif" style="width: 62px; height: 16px"alt="" /></td>
            <td style="width: 100px; height: 25px"><a href="UpdateMsg.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('linke','','PICTURE/link_e2.gif',1)">
                <img src="PICTURE/link_e1.gif" style="height: 29px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;"alt="" id="linke" /></a></td>
            <td style="background-image: url(PICTURE/obj_menu_02.gif); width: 100px; height: 25px">
                <img src="PICTURE/obj_menu_02.gif" style="width: 62px; height: 16px"alt="" /></td>
            <td style="width: 100px; height: 25px"><a href="MsgView.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('linkf','','PICTURE/link_f2.gif',1)">
                <img src="PICTURE/link_f1.gif" style="width: 88px; height: 30px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;" alt="" id="linkf" /></a></td>
            <td style="background-image: url(PICTURE/obj_menu_02.gif); width: 100px; height: 25px">
                <img src="PICTURE/obj_menu_02.gif" style="width: 62px; height: 16px"alt="" /></td>
            <td style="background-image: url(PICTURE/obj_menu_02.gif); width: 100px; height: 25px">
                <img src="PICTURE/obj_menu_02.gif" style="width: 49px; height: 16px"alt="" /></td>
        </tr> 
    </table>    
     <asp:Image ID="Image5" runat="server" Height="35px" ImageUrl="~/PICTURE/line.bmp"
            Width="996px" /><br />
        <table style="width: 813px; height: 234px; border-left-color: #66ccff; border-bottom-color: #66ccff; border-top-style: solid; border-top-color: #66ccff; border-right-style: solid; border-left-style: solid; border-right-color: #66ccff; border-bottom-style: solid;" border="1" cellpadding="1" cellspacing="1">
            <caption style="background-color: #bcddff">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/PICTURE/classmail.gif" /></caption>
            <tr>
                <td style="vertical-align: middle; width: 273px; text-align: left; height: 22px;" colspan="3">
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Larger" ForeColor="Navy"
                        Text="主题:" Width="60px"></asp:Label><asp:TextBox ID="ETitle" runat="server" ForeColor="#0000C0" Width="501px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="vertical-align: middle; width: 408px; height: 22px; text-align: left">
                    &nbsp;
                    <asp:Label ID="Label9" runat="server" Text="服务器:如smtp.gmail.com" Width="177px"></asp:Label>
                    <asp:TextBox ID="EmailServer" runat="server" Width="124px"></asp:TextBox></td>
                <td style="width: 53px; height: 22px">
                </td>
                <td style="vertical-align: middle; width: 273px; height: 22px; text-align: left">
                    <asp:Label ID="Label3" runat="server" Text="本人邮箱:" Width="89px"></asp:Label>
                    <asp:TextBox ID="EServer" runat="server" Width="158px">本人邮箱</asp:TextBox></td>
            </tr>
            <tr>
                <td style="vertical-align: middle; width: 408px; height: 22px; text-align: left">
                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="EmailServer"
                        ErrorMessage="邮箱服务器不为空" Width="313px"></asp:RequiredFieldValidator></td>
                <td style="width: 53px; height: 22px">
                </td>
                <td style="vertical-align: middle; width: 273px; height: 22px; text-align: left">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="EServer"
                        ErrorMessage="邮箱地址不为空" Width="332px"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td style="vertical-align: middle; width: 408px; height: 27px; text-align: left">
                    <asp:Label ID="Label4" runat="server" Text="全部邮件列表: "></asp:Label>
                    <asp:DropDownList ID="ClassList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ClassList_SelectedIndexChanged">
                    </asp:DropDownList></td>
                <td style="width: 53px; height: 27px">
                    <asp:Label ID="Label7" runat="server" Text=" "></asp:Label></td>
                <td style="vertical-align: middle; width: 273px; height: 27px; text-align: center">
                    <asp:Label ID="Label5" runat="server" Text="以下成员接收邮件(限20个内)"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 408px; height: 301px;">
                    &nbsp;
                    <asp:ListBox ID="AllList" runat="server" Height="307px" Width="229px" SelectionMode="Multiple" OnSelectedIndexChanged="AllList_SelectedIndexChanged"></asp:ListBox><br />
                    &nbsp;</td>
                <td style="width: 53px; height: 301px;">
                    <asp:Button ID="AddEmail" runat="server" Text=" >> " OnClick="AddEmail_Click" UseSubmitBehavior="False" Width="64px" CausesValidation="False" />
                    <asp:Button ID="DelEmail" runat="server" Height="26px" Text="  <<  " Width="67px" OnClick="DelEmail_Click" CausesValidation="False" />
                    <asp:Button ID="AllSelALL" runat="server" OnClick="AllSelALL_Click" Text=" 全添 " Width="68px" CausesValidation="False" />
                    <asp:Button ID="SelSelAll" runat="server" OnClick="SelSelAll_Click" Text=" 全删 " Width="68px" CausesValidation="False" />
                    </td>
                <td style="width: 273px; height: 301px;">
                    &nbsp; &nbsp;&nbsp;&nbsp;
                    <asp:ListBox ID="SelList"
                        runat="server" Height="303px" Width="220px" OnSelectedIndexChanged="SelList_SelectedIndexChanged" SelectionMode="Multiple"></asp:ListBox><br />
                    </td>
            </tr>
            <tr>
                <td colspan="3" style="width: 600px; background-color: #edfbfe; height: 29px;">
                    <asp:Label ID="Label6" runat="server" Text="添加收件人" Width="80px"></asp:Label>
                    <asp:TextBox ID="AddText" runat="server" Width="192px"></asp:TextBox>
                    <asp:Button ID="Add" runat="server" OnClick="Add_Click" Text="添加收件人:" Width="80px" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="AddText"
                        ErrorMessage="认真填写" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        Width="87px"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="AddText"
                        ErrorMessage="不为空" Width="92px"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td colspan="3" style="vertical-align: middle; width: 89px; text-align: left">
                    <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="XX-Large" ForeColor="Navy"
                        Text="内容 " Width="73px"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="3" style="width: 300px; vertical-align: top; text-align: left; height: 114px;">
                    <asp:TextBox ID="Econtent" runat="server" Height="125px" Width="798px" BorderColor="White" MaxLength="1000" TextMode="MultiLine"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="3" style="width: 300px">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 779px; height: 78px">
                        <tr>
                            <td style="width: 356px; text-align: left">
                                <asp:Label ID="Label8" runat="server" Font-Bold="True" ForeColor="Blue" Text="登录自己邮箱的密码"
                                    Width="164px"></asp:Label>
                                <asp:TextBox ID="EmailPwd" runat="server" Width="150px" TextMode="Password"></asp:TextBox></td>
                            <td style="width: 200px">
                    <asp:Button ID="EBtn" runat="server" OnClick="EmailBtn_Click" Text=" 发送 " Width="80px" CausesValidation="False" />
                    </td>
                            <td style="width: 200px">
                    <asp:Button ID="Button4" runat="server" Text=" 取消 " Width="80px" CausesValidation="False" /></td>
                        </tr>
                    </table>
                    &nbsp;<asp:Label ID="IsSend" runat="server" Height="28px" Width="372px" Font-Bold="True" ForeColor="Red"></asp:Label></td>
            </tr>
        </table>
        <br />
        <br />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
        <br />
        <asp:Image ID="Image6" runat="server" Height="35px" ImageUrl="~/PICTURE/line.bmp"
            Width="996px" />
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -