本科毕业设计(源代码) 电子商务中租房信用评价系统的设计与实现.doc
-
资源ID:3945330
资源大小:123KB
全文页数:33页
- 资源格式: DOC
下载积分:8金币
友情提示
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
|
本科毕业设计(源代码) 电子商务中租房信用评价系统的设计与实现.doc
本科毕业设计(源代码)电子商务中租房信用评价系统的设计与实现学 院: 里仁学院 专 业:计算机科学与技术 学生 姓名: 学 号: 指导 教师: 答辩 日期:2012年6月17日 1.用户登录模块代码用户登录模块部分代码如下。<% Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Web.Login" %><!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 id="Head1" runat="server"> <title>租房网站信用评价系统</title> <script type="text/javascript"> function CheckNull() if(document.getElementById("<%=txtAccount.ClientID %>").value = "") alert("请输入账号!"); return false; if(document.getElementById("<%=txtPassword.ClientID %>").value = "") alert("请输入密码!"); return false; function btnReg_Click() window.location.href="Reg.aspx" </script></head><body> <form id="form1" runat="server"> <div id="div1" style="height: 50px;"> </div> <div style="width: 1002px; margin: 0 auto; height: 580px; background-image: url(/images/bgLogin.jpg); background-repeat: no-repeat; text-align: left;"> <div style="padding-top: 250px; padding-left: 620px;"> <div style="font-size: 12px; height: 50px;"> 账 号:<asp:TextBox ID="txtAccount" runat="server" Width="150" Height="20"></asp:TextBox> </div> <div style="font-size: 12px; height: 40px;"> 密 码:<asp:TextBox ID="txtPassword" runat="server" Width="150" Height="20" TextMode="Password"></asp:TextBox> </div> <div style="padding-left: 50px;"> <asp:ImageButton ID="btnLogin" runat="server" ImageUrl="/images/btnLogin.jpg" OnClick="btnLogin_Click" OnClientClick="return CheckNull()" /> <img src="/Images/btnReg.jpg" alt="" onclick="btnReg_Click()" style="cursor: pointer;" /> </div> </div> </div> </form></body></html>2.用户注册模块代码用户注册模块部分代码如下。<% Page Language="C#" Theme="Default" MasterPageFile="/MasterPage/Default.master" AutoEventWireup="true" CodeBehind="Reg.aspx.cs" Inherits="Web.Reg" %><asp:Content ID="ContentHeader" ContentPlaceHolderID="HeaderScript" runat="server"> <script type="text/javascript"> function CheckNull() if(document.getElementById("<%=txtAccount.ClientID %>").value = "") alert("帐号不能为空!"); document.getElementById("<%=txtAccount.ClientID %>").focus(); return false; if(document.getElementById("<%=txtPassword.ClientID %>").value = "") alert("密码不能为空!");document.getElementById("<%=txtPassword.ClientID %>").focus(); return false; if(document.getElementById("<%=txtTruePassword.ClientID %>").value = "") alert("确认密码不能为空!");document.getElementById("<%=txtTruePassword.ClientID %>").focus(); return false; if(document.getElementById("<%=txtTruePassword.ClientID %>").value != document.getElementById("<%=txtPassword.ClientID %>").value) alert("确认密码不正确!");document.getElementById("<%=txtTruePassword.ClientID %>").focus(); return false; function CheckAccount() if(document.getElementById("<%=txtAccount.ClientID %>").value = "") alert("账号不能为空!"); document.getElementById("<%=txtAccount.ClientID %>").focus(); return false; else url ="" var account = document.getElementById("<%=txtAccount.ClientID %>").value; url = encodeURI("SyncCheck.aspx?TableName=UserInfo&Account="+ account +""); result = syncEvent(url); if(result = "true") alert("账号不能重复!");document.getElementById("<%=txtAccount.ClientID %>").focus(); return false; function syncEvent(url) var Result="" xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlHttp.open("POST", url, false);xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); xmlHttp.send(""); Result=xmlHttp.responseText; return Result; function btnReset_Click() window.location.href="Login.aspx" </script></asp:Content><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_Bar" runat="server">管理首页 > 用户信息维护</asp:Content><asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="server"> <div style="height: 10px;"> </div> <table cellspacing="0" cellpadding="0" width="100%" border="0" style="line-height: 40px;"> <tr> <td height="25" width="30%" align="right"> 账号 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtAccount" runat="server" Width="200px" onblur="return CheckAccount();"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 密码 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtPassword" runat="server" Width="200px" TextMode="Password"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 确认密码 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtTruePassword" runat="server" Width="200px" TextMode="Password"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 姓名 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 性别 : </td> <td height="25" width="*" align="left"> <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Value="男" Selected="True">男</asp:ListItem> <asp:ListItem Value="女">女</asp:ListItem> </asp:RadioButtonList> </td> </tr> <tr> <td height="25" width="30%" align="right"> 电话 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtPhone" runat="server" Width="200px"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 公司 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtCompany" runat="server" Width="200px"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 类型 : </td> <td height="25" width="*" align="left"> <asp:DropDownList ID="ddlType" runat="server"> <asp:ListItem Value="租客">租客</asp:ListItem> <asp:ListItem Value="经纪人">经纪人</asp:ListItem> </asp:DropDownList> </td> </tr> </table> <div style="height: 10px;"> </div> <table style="width: 100%;" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="bottom"> <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" OnClientClick="return CheckNull()" CssClass="BtnStyle"></asp:Button> <input id="btnReset" type="reset" value="取消" style="cursor: pointer;" onclick="btnReset_Click();" /> </td> </tr> <tr> <td colspan="2" height="10"> </td> </tr> </table></asp:Content>3.用户管理模块代码用户管理模块部分代码如下。<% Page Language="C#" Theme="Default" MasterPageFile="/MasterPage/Default.master" AutoEventWireup="true" CodeBehind="UserDetail.aspx.cs" Inherits="Web.UserDetail" %><asp:Content ID="ContentHeader" ContentPlaceHolderID="HeaderScript" runat="server"> <script type="text/javascript"> function CheckNull() if(document.getElementById("<%=txtName.ClientID %>").value = "") alert("姓名不能为空!"); return false; function btnReset_Click() window.location.href="UserList.aspx" </script></asp:Content><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_Bar" runat="server"> 管理首页 > 用户信息维护</asp:Content><asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="server"> <div style="height: 10px;"> </div> <table cellspacing="0" cellpadding="0" width="100%" border="0" style="line-height: 40px;"> <tr> <td height="25" width="30%" align="right"> 帐号 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtAccount" runat="server" Width="200px" Enabled="false"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 密码 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtPassword" runat="server" Width="200px" TextMode="Password"></asp:TextBox><span style="padding-left: 10px; color: #666666;">(非空即为修改)</span> </td> </tr> <tr> <td height="25" width="30%" align="right"> 姓名 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 性别 : </td> <td height="25" width="*" align="left"> <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Value="男" Selected="True">男</asp:ListItem> <asp:ListItem Value="女">女</asp:ListItem> </asp:RadioButtonList> </td> </tr> <tr> <td height="25" width="30%" align="right"> 电话 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtPhone" runat="server" Width="200px"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 公司 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtCompany" runat="server" Width="200px"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 类型 : </td> <td height="25" width="*" align="left"> <asp:DropDownList ID="ddlType" runat="server"> <asp:ListItem Value="租客">租客</asp:ListItem> <asp:ListItem Value="经纪人">经纪人</asp:ListItem> <asp:ListItem Value="管理员">管理员</asp:ListItem> </asp:DropDownList> </td> </tr> </table> <div style="height: 10px;"> </div> <table style="width: 100%;" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="bottom"> <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" OnClientClick="return CheckNull()" CssClass="BtnStyle"></asp:Button> <input id="btnReset" type="reset" value="取消" style="cursor: pointer;" onclick="btnReset_Click();" /> </td> </tr> <tr> <td colspan="2" height="10"> </td> </tr> </table></asp:Content>4.用户基本信息模块代码用户基本信息模块部分代码如下。<% Page Language="C#" AutoEventWireup="true" Theme="Default" MasterPageFile="/MasterPage/Default.master" CodeBehind="UserInfoInfo.aspx.cs" Inherits="Web.UserInfoInfo" %><asp:Content ID="ContentHeader" ContentPlaceHolderID="HeaderScript" runat="server"> <script type="text/javascript"> function CheckNull() if(document.getElementById("<%=txtName.ClientID %>").value ="") alert("姓名不能为空!"); document.getElementById("<%=txtName.ClientID %>").focus(); return false; </script></asp:Content><asp:Content ID="ContentToolBar" ContentPlaceHolderID="ContentPlaceHolder_Bar" runat="server"> 基本信息修改</asp:Content><asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="server"> <div style="height: 10px;"> </div> <table cellspacing="0" cellpadding="0" width="100%" border="0" style="line-height: 40px;"> <tr> <td height="25" width="30%" align="right"> 账号 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtAccount" runat="server" Width="200px" Enabled="false"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 姓名 : </td> <td height="25" width="*" align="left"> <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox> </td> </tr> <tr> <td height="25" width="30%" align="right"> 性别 : </td> <td height="25" width="*" align="left"> <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Value="男" Selected="True">男</asp:ListItem> <asp:ListItem Value="女">女</asp:ListItem> </asp:RadioButtonList> </td> </tr> <tr> <td height="25" width="30%" align="right"> 电话 : </td> <td height="25" width="*" ali