版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、 系統(tǒng)建設(shè)詳細(xì)設(shè)計(jì)1.數(shù)據(jù)庫(kù)設(shè)計(jì)管理員用戶表信息:字段名稱類 型大 小字段描述管理員ID自動(dòng)編號(hào)長(zhǎng)整型管理員身份識(shí)別管理員名稱文本50管理員登陸名稱密碼文本50管理員登陸的密碼身份文本50有別于學(xué)生登陸界面學(xué)生用戶表:字段名稱類 型大 小字段描述學(xué)生ID自動(dòng)編號(hào)長(zhǎng)整型學(xué)生學(xué)號(hào)學(xué)生名稱文本50學(xué)生名稱密碼文本50學(xué)生登陸的密碼身份文本50有別于管理員登陸界面 學(xué)生信息表:字段名稱類 型大 小字段描述學(xué)生ID自動(dòng)編號(hào)長(zhǎng)整型學(xué)生學(xué)號(hào)學(xué)生名稱文本50學(xué)生名稱電子文本50學(xué)生的電子備注/學(xué)生的其他信息性別文本50性別入學(xué)時(shí)間文本50學(xué)生入學(xué)的時(shí)間班級(jí)文本50所在班級(jí)專業(yè)文本50所學(xué)專業(yè)2 系統(tǒng)程序文件設(shè)
2、計(jì)與編寫與數(shù)據(jù)庫(kù)連接的代碼:<%db="message.mdb"set Conn=server.createobject("adodb.Connection")conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&server.mappath(db)%>登陸界面代碼:代碼為:<!-#include file="conn.inc" -><%if request("Submit")<>&q
3、uot;" then set rs=server.createobject("adodb.recordset") sql="SELECT username,password from users where username='"&request("username")&"'" rs.open sql,conn,1,3 if rs.bof and rs.eof then msg="錯(cuò)誤:用戶名不存在" else if rs("password&
4、quot;)=request("password") then Session("admin")=true response.redirect "index.asp?users=admin"else msg="錯(cuò)誤:密碼不正確"end if end if rs.close set rs=nothing Conn.close Set conn = Nothingend if%><html><head> <title>管理員</title><script la
5、nguage="JavaScript" type="text/JavaScript"><!-function MM_jumpMenu(targ,selObj,restore) /v3.0eval(targ+".location='"+selObj.optionsselObj.selectedIndex.value+"'"); if (restore) selObj.selectedIndex=0;/-></script><LINK href="style
6、.css" rel=Stylesheet type=text/css></head><center><span class="style1”>學(xué)生信息管理系統(tǒng)</span></center></td></tr><tr><td colspan="2"> <center>管理員:<input name="username" type="text" maxlength="10&qu
7、ot;> 密碼:<inputname="password" type="password" > <input type="submit" name="Submit" value="登錄"> <input type="reset" name="Submit2" value="重置"> 用戶類型:<select name="menu1" onChange="MM_
8、jumpMenu('parent',this,0)"> <option value="admin_login.asp" selected>管理員</option><option value="student_login.asp">學(xué)生</option> </select> <br><fontcolor=red><%=msg%></font> </center> </td></tr>
9、</table></form></body></html>顯示信息:代碼為:<!-#include file=”conn.inc” à<%if Session(“admin”)<>true and Session(“student”)<>true then Response.Redirect “student_login.asp” end if%><!doctype html public “-/W3C/DTD HTML 4.0 Transitional/EN”><html&g
10、t;<head><title>學(xué)生信息</title><LINK href=”style.css” rel=Stylesheet type=text/css></style></head> <table align=center> <tr><td colspan=”2”><center><span class=”style1”>學(xué)生信息管理系統(tǒng)</span></center></td></tr> <tr>
11、<td colspan=”5”><a href=”#”><b>首頁(yè)</b></a><a href=”search.asp”>查詢</a><a title=”需要管理員權(quán)限”href=”post.asp”>添加</a><a href=”admin_login.asp”>管理</a><a href=”logout.asp”>退出</a></td></tr></table><%users = Reques
12、t(“users”)If request(“PageNo”)=” thenPageNo=1ElsePageNo=int(request(“PageNo”)End Ifsql=”SELECT * from liuyan order by ID desc”set rs=server.createobject(“adodb.recordset”)rs.open sql,conn,1,3if not(rs.eof and rs.bof) thenrs.Pagesize=3rs.absolutepage=PageNox = 0 For x = 1 to rs.Pagesizeif x mod 2 the
13、ntr_color=”#EBEBEB”elsetr_color=”#ffffff”end ifIf rs.eof then Exit For Elseif isNull(Rs(“Dateandtime”) thenstrDateandtime = “”elsestrDateandtime = Cstr(Rs(“Dateandtime”)end ifUsername,Email,Content,Sex,DateandtimeResponse.Write “<table width=50% border=0 align=center cellpadding=0 cellspacing=0 b
14、gcolor=” + tr_color+ “>”Response.Write “<tr>”Response.Write “<td width=20% nowrap>:</td>”Response.Write “<td width=60% class=Tab>” + Rs(“Username”) + “</td>”修改 刪除 if users = “admin” thenResponse.Write “<td width=20% class=Tab align=right>” + “<a href=post.as
15、p?users=” + users + “&id=” + cstr(Rs(“ID”) + “><font color=blue>修改</font></a> <a href=delete.asp?users=” + users + “&id=” + cstr(Rs(“ID”) + “><font color=blue>刪除</font></a>” + “</td>”elseResponse.Write “<td width=20% class=Tab></td&
16、gt;”end ifResponse.Write “</tr>”Response.Write “<tr>”Response.Write “<td>性別:</td>”Response.Write “<td colspan=2>” + Rs(“Sex”) + “</td>”Response.Write “</tr>”Response.Write “<tr>”Response.Write “<td>班級(jí):</td>”Response.Write “<td colspan=2&
17、gt;” + Rs(“Class”) + “</td>”Response.Write “</tr>”Response.Write “<tr>”Response.Write “<td>專業(yè):</td>”Response.Write “<td colspan=2>” + Rs(“Major”) + “</td>”Response.Write “</tr>”Response.Write “<tr>”Response.Write “<td>入學(xué)時(shí)間:</td>”Respo
18、nse.Write “<td colspan=2>” + strDateandtime + “</td>”Response.Write “</tr>”Response.Write “<tr>”Response.Write “<td>評(píng)語(yǔ):</td>”Response.Write “<td colspan=2>” + Rs(“Content”) + “</td>”Response.Write “</tr>”Response.Write “<tr>”Response.Write
19、“<td>:</td>”Response.Write “<td colspan=2>” + Rs(“Email”) + “</td>”Response.Write “</tr>”Response.Write “</table>”Response.Write “<table border=0 align=center>”if users = “admin” thenResponse.Write “<tr>”Response.Write “<td align=right bgcolor=” + t
20、r_color+ “><a href=delete.asp?users=” + users + “&id=” + cstr(Rs(“ID”) + “><font color=red>刪除</font></a></td>”Response.Write “</tr>”end ifResponse.Write “<tr>”Response.Write “<td height=1></td>”Response.Write “</tr>”Response.Write “&
21、lt;/table>”rs.MoveNext End If Nextend ifif rs.recordcount > 0 then<tr><td>共有<%=rs.recordcount%>條學(xué)生信息 <%=rs.pagesize%>條/頁(yè) 共<%=rs.pagecount%>頁(yè)</td> <td align=”right” class=”Tab”>分頁(yè):<%for i=1 to rs.pagecountif pageno <> I thenResponse.Write “<A href=index.asp?users=” + users + “&pageno=” + cstr(i) + “>”&i&”</a> ”elseResponse.Write “<b>” & I & “</
溫馨提示
- 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年石油鉆采井口裝備項(xiàng)目發(fā)展計(jì)劃
- 2024年中心供應(yīng)室項(xiàng)目發(fā)展計(jì)劃
- 2024年分步重復(fù)光刻機(jī)項(xiàng)目建議書
- 2024年溫室灌溉營(yíng)養(yǎng)液自動(dòng)配置與施肥設(shè)備項(xiàng)目發(fā)展計(jì)劃
- 2024年注射用血塞通合作協(xié)議書
- 2023年石墨及炭素制品項(xiàng)目分析評(píng)估報(bào)告
- 2023年棉花生產(chǎn)項(xiàng)目需求分析報(bào)告
- 2024年偶氮化合物項(xiàng)目發(fā)展計(jì)劃
- 2024年數(shù)控超精密磨床合作協(xié)議書
- 《歸去來兮辭(并序)》說課課件 2023-2024學(xué)年統(tǒng)編版高中語(yǔ)文選擇性必修下冊(cè)
- 2024二十屆三中全會(huì)知識(shí)競(jìng)賽題庫(kù)及答案
- 部編人教版道德與法治五年級(jí)上冊(cè)全冊(cè)課件設(shè)計(jì)
- (高清版)JTG 5142-2019 公路瀝青路面養(yǎng)護(hù)技術(shù)規(guī)范
- 《電力建設(shè)土建工程施工技術(shù)檢驗(yàn)規(guī)范》
- 檔案整理及數(shù)字化服務(wù)方案
- 電梯使用單位安全風(fēng)險(xiǎn)日管控、周排查、月調(diào)度管理制度
- 《色彩基礎(chǔ)知識(shí)》PPT課件(詳解)
- A4橫線稿紙模板(可直接打印)-a4線條紙
- 主題班會(huì)流言止于智者PPT課件
- 《禮器碑》《張遷碑》《曹全碑》《乙瑛碑》原文、譯文
- 最新蘇教版科學(xué)四年級(jí)上冊(cè)《第2單元物體的運(yùn)動(dòng)8力與運(yùn)動(dòng)》精品PPT優(yōu)質(zhì)課件
評(píng)論
0/150
提交評(píng)論