网页设计实验报告_网页设计实验报告一
网页设计实验报告由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“网页设计实验报告一”。
一:设计题目:图书管理系统 二:设计目的:
通过本门课程设计的练习,巩固掌握网页设计中普遍使用的一门语言——HTML、一个环境——ASP、一个工具软件——Dreamweaver,初步建立系统的网页设计理念,具备独立开发一个小型网站或者协同开发大型站点的能力。
三:设计内容
功能模块:设置用户名,密码。登陆上去。
Index.asp代码
校园图书管理 function checklogin(){ if(document.form1.username.value==''){ alert('请输入用户名');document.form1.username.focus()document.form1.username.select();return false;} if(document.form1.paword.value==''){
alert('请输入密码');document.form1.paword.focus()document.form1.paword.select();return false;} }
校园图书管理--系统登录
用户名:
密码:
onclick=“window.close();” />
<%
//asp dim action action=trim(request.QueryString(“action”))if action=“chkuser” then dim paword,username username=request.Form(“username”)paword=request.Form(“paword”)paword=md5(paword,16)set rs=conn.execute(“select * from manager paword='”&paword&“'”)if not rs.eof then seion(“username”)=rs(“userid”)seion(“userid”)=rs(“id”)
if rs(“isadmin”)=true then
seion(“isadmin”)=“admin”
end if
response.Write “alert('登录成功');window.location.href='main.asp';” else response.Write “alert('密码错误');window.location.href='index.asp';” end if end if %>