" />
附录:源程序代码1).default.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default2" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="/1999/xhtml"><head id="Head1" runat="server"><title>无标题页</title><style type="text/css">#form1{height: 213px;}.style2{width: 100%;height: 211px;}.style6{width: 99px;}.style3{text-align: center;}</style></head><body bgcolor="#ccffcc"><form id="form1" runat="server"><table class="style2"><tr><td class="style4" colspan="2"><span class="Apple-style-span"style="color: rgb(0, 0, 0); font-family: 楷体_GB2312; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust:auto; -webkit-text-stroke-width: 0px; ">人事信息管理系统</span></td><td rowspan="5"><img alt="" src="images/4ce6a7a5e39e3e49156444f3e340dc21.jpg"style="width: 853px; height: 193px" /> </td></tr><tr><td class="style6">用户名:</td><td class="style3"><asp:TextBox ID="TextBox1" runat="server" Height="22px" Width="128px"></asp:TextBox></td></tr><tr><td class="style6">用户密码:</td><td class="style3"><asp:TextBox ID="TextBox2" runat="server" Height="22px" TextMode="Password"Width="128px"></asp:TextBox></td></tr><tr><td class="style5" colspan="2"><asp:CheckBox ID="CheckBox1" runat="server" Text="记住用户" /> </td></tr><tr><td class="style3" colspan="2"><asp:Button ID="Button1" runat="server" Height="31px" onclick="Button1_Click"style="text-align: center" Text="登录" Width="50px" /></td></tr></table></form></body></html>2)Default.aspx.csusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using System.Data.OleDb;public partial class Default2 : System.Web.UI.Page{protected void Page_Load(object sender, EventArgs e){this.Title = "学生信息管理系统-----登录";}protected void Button1_Click(object sender, EventArgs e){OleDbConnection conn = new OleDbConnection();string Id = TextBox1.Text;conn.ConnectionString = "provider=Microsoft.Jet.OleDb.4.0;" + "Data Source=" + Server.MapPath("App_Data/student.mdb");string StrSel = "Select * from message where id='" + TextBox1.Text + "'and pwd='" + TextBox2.Text + "'";conn.Open();OleDbCommand com = new OleDbCommand(StrSel, conn);OleDbDataReader dr = com.ExecuteReader();dr.Read();if (dr.HasRows){Session["pass"] = TextBox1.Text;Server.Transfer("glxt.aspx");Response.Redirect("glxt.aspx");}else{Response.Redirect("Default.aspx");}conn.Close();}}3)Glxt.aspx<%@ Page Language="C#" AutoEventWireup="true" CodeFile="glxt.aspx.cs" Inherits="glxt" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="/1999/xhtml"><head id="Head1" runat="server"><title>无标题页</title><style type="text/css">body {margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;background-color:#CCFFCC;}.STYLE1 {font-size: 12px;color: #FFFFFF;}.STYLE3 {font-size: 12px;color: #033d61;text-decoration:none;background-image:login_2.jpg;}#left{float:left;width:177px;}.STYLE4{float:left;clear:right;width:804px;background-image:content_1.jpg;height: 1032px;}.style2{width: 788px;height: 23px;}.style3{width: 817px;}.style4{height: 26px;}.style5{height: 91px;}p.p0{margin:0pt;margin-bottom:0.0001pt;margin-bottom:0pt;margin-top:0pt;text-align:justify;font-size:10.5000pt; font-family:'Times New Roman'; }.style6{width: 285px;height: 43px;}.style7{width: 100px;height: 43px;}.style9{width: 6px;}#form1{height: 307px;width: 1321px;}.style10{height: 43px;}</style></head><body bgcolor="White" ><form id="form1" runat="server"><div><table border="0" cellpadding="0" cellspacing="0"style="height: 303px; width: 130px"><tr><td height="70"><table bgcolor="#CCFFCC" border="0" cellpadding="0" cellspacing="0"width="100%"><tr><td bgcolor="White" class="style5"><table border="0" cellpadding="0" cellspacing="0"style="height: 265px; width: 1141px;"><tr><td bgcolor="White" style="width: 291px" width="270"><img alt="" src="images/6b5f60fc09e584574192f873acda8d85.jpg"style="width: 1392px; height: 252px; margin-top: 0px;" /><span class="STYLE3"><tableborder="0" cellpadding="0" cellspacing="0"style="height: 47px; width: 1389px;"><trbgcolor="#CCFFCC"><td class="style6" bgcolor="#CCFFCC"><spanclass="STYLE3"> <asp:Label ID="Label2" runat="server"></asp:Label><br /> <asp:Label ID="Label1" runat="server"></asp:Label></span></td><td class="style7" bgcolor="#CCFFCC"><spanclass="STYLE3"><asp:LinkButton ID="LinkButton6" runat="server" onclick="LinkButton6_Click"Font-Size="Large" Height="26px" Width="93px"><spanclass="style3">公司简介</span></spanclass="style3"></asp:LinkButton></span></td><tdclass="style10"><asp:LinkButton ID="LinkButton7" runat="server" onclick="LinkButton7_Click"Font-Size="Large" Height="26px" Width="72px"><spanclass="style3">信息查询</span></spanclass="style3"></asp:LinkButton><asp:LinkButton ID="LinkButton18" runat="server" onclick="LinkButton18_Click"Font-Size="Large" Height="26px" Width="80px"><spanclass="style3">信息修改</spanclass="style3"></asp:LinkButton><asp:LinkButton ID="LinkButton20" runat="server" Font-Size="Large"Height="26px" PostBackUrl="add.aspx" Width="80px" onclick="LinkButton20_Click">添加信息</asp:LinkButton><asp:LinkButton ID="LinkButton17" runat="server" onclick="LinkButton17_Click"Font-Size="Medium" Height="26px" Width="100px" style="margin-left: 108px">密码修改</asp:LinkButton> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx"Font-Size="Medium" Height="26px" Width="91px">退出</asp:HyperLink></td></tr></table></span></td></tr></table></td></tr><tr><td height="8" style="line-height: 8px;"> </td></tr></table></td></tr></table></div><div id="left"><table border="0" cellpadding="0" cellspacing="0" height="100%" width="165"> <tr><td height="28"><table border="0" cellpadding="0" cellspacing="0" width="100%"bgcolor="#CCFFCC"><tr><td width="19%"><spanclass="STYLE3"> <br /><br /></span></td></tr></table></td></tr><tr><td valign="top"><table align="center" bgcolor="White" border="0" cellpadding="0"cellspacing="0" width="151"><tr><td><table border="0" cellpadding="0" cellspacing="0"style="width: 118%; height: 379px"><tr><td height="23" bgcolor="#CCFFCC"><table border="0" cellpadding="0" cellspacing="0" width="100%"bgcolor="#CCFFCC"><tr><td class="style9"> </td><td class="STYLE3" width="82%"><tablealign="center" border="0" cellpadding="0" cellspacing="0"width="90%"style="height: 217px" bgcolor="#CCFFCC"><tr><td height="25"><div align="center"></div></td><td height="23" width="84%"><table border="0" cellpadding="0" cellspacing="0" style="width: 95%"><tr><td height="20"> </td></tr></table></td></tr><tr><td height="23"><div align="center"></div></td><td height="23"><table border="0" cellpadding="0" cellspacing="0"style="height: 40px; width: 122%"><tr><td height="20"> </td></tr></table></td></tr><tr><td height="23"><div align="center"></div></td><td height="23"><table border="0" cellpadding="0" cellspacing="0" width="95%"><tr><td height="20"> </td></tr></table></td></tr><tr><td height="23"><div align="center"></div></td><td height="23"><table border="0" cellpadding="0" cellspacing="0" width="95%"><tr><td height="20"></span></td></tr></table></td></tr></table><br /><br /><br /><br /><br /><br /><br /><br /></td></tr></table></td></tr><tr><td id="submenu1" bgcolor="#CCFFCC"><div class="sec_menu"></div></td></tr></table></td></tr><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td height="23" bgcolor="#CCFFCC"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="18%"> </td><td class="STYLE1" width="82%"><div align="center" style="width: 149px"></div></td></tr></table></td></tr><tr><td id="submenu2" bgcolor="#CCFFCC"><div></div></td></tr></table></td></tr><tr><td><table border="0" cellpadding="0" cellspacing="0" style="width: 118%"><tr><td height="23" bgcolor="#CCFFCC"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="18%"> </td><td class="STYLE1" width="82%"> </td></tr></table></td></tr><tr><td bgcolor="#CCFFCC"><div><asp:Panel ID="Panel3" runat="server"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><tablealign="center" border="0" cellpadding="0" cellspacing="0" width="90%"><tr><td height="25" style="width: 100%" width="16%"><div align="center"></div><table border="0" cellpadding="0" cellspacing="0" width="95%"><tr><td height="20"> </td></tr></table></td></tr></table></td></tr></table></asp:Panel></div></td></tr><tr><td class="style4" bgcolor="#CCFFCC"></td></tr><tr><td bgcolor="#CCFFCC"><div><table border="0" cellpadding="0" cellspacing="0" style="width: 100%"><tr><asp:Panel ID="Panel4" runat="server"><td><tablealign="center" border="0" cellpadding="0" cellspacing="0" width="90%"><tr><td height="25" width="16%"><div align="center"></div></td><td height="23" width="84%"><table border="0" cellpadding="0" cellspacing="0" width="95%"><tr><td height="20"><asp:LinkButton ID="LinkButton15" runat="server"><span class="STYLE3"></span></asp:LinkButton></td></tr></table></td></tr><tr><td height="23"><div align="center"></div></td><td height="23"><table border="0" cellpadding="0" cellspacing="0" width="95%"><tr><td height="20"><asp:LinkButton ID="LinkButton16" runat="server"><span class="STYLE3">登录记录</span></asp:LinkButton></td></tr></table></td></tr></table></td></asp:Panel></tr><tr><td height="5"> </td></tr></table></div></td></tr></table></td></tr></table></td></tr></table></div><div class="STYLE4"><asp:Panel ID="Panel5" runat="server" BackColor="#CCFFCC"><table bgcolor="Gray"><tr><td bgcolor="White" class="style3"><table><tr><td bgcolor="White" class="style2"><span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; "> xx<font face="宋体">商贸有限公司是国家外经贸局,海关总署批注的有进出口权的公司,公司有雄厚的经济基础,强大的关系网络,完备的技术和人员配置,随着我国加入</font><fontface="Times New Roman">WTO</font><font face="宋体">,进出口贸易的日益增长,为了进一步满足贸易商、进出口商的需求,我公司为商家精心打造了门到门的一站式服务。