JSP+SQL留言板源程序_第1頁
JSP+SQL留言板源程序_第2頁
JSP+SQL留言板源程序_第3頁
JSP+SQL留言板源程序_第4頁
JSP+SQL留言板源程序_第5頁
已閱讀5頁,還剩23頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、留言板留言板:普通用戶、管理員1. 普通用戶登陸后個人密碼修改,個人信息修改,用戶留言,注銷退出2. 管理員可以對普通用戶的留言進(jìn)行回復(fù)、刪除普通用戶源代碼:index.jsp userinfoedit.jsp!-function checksubmit() if( document.editform.username.value = ) alert(請輸入真實姓名!); document.editform.username.focus(); return false; if( document.editform.address.value = ) alert(請輸入住址!); documen

2、t.editform.address.focus(); return false; if( document.editform.postcode.value = ) alert(請輸入郵編!); document.editform.postcode.focus(); return false; if( document.editform.phone.value = ) alert(請輸入聯(lián)系電話!); document.editform.phone.focus(); return false; return true;   以下資料請如實填寫,對外嚴(yán)格保密。(帶 *號的為必

3、填項,其它的可以不填) 用戶名 真實姓名 input name=username type=text size=20 value=* 性別 option value=男 男option value=女 女 住址 input name=address type=text size=20 value= *(請您提供盡可能詳細(xì)的地址) 郵編 input name=postcode type=text size=20 value=* 聯(lián)系電話 input name=phone type=text size=20 value=* e-mail input name=email type=text siz

4、e=20 value=        恭喜,個人信息成功修改.返回首頁 checklogin.jsp 出錯了! 對不起,你還沒有登錄,不能查看當(dāng)前頁面!請回到首頁登錄/注冊. error.jsp   返回 leaveword.jsp=100 ) alert(留言內(nèi)容不能大于100字!); document.form.context.focus(); return false; return true; 返回 留言 最近的留言共條,分頁顯示,每頁顯示條 第頁 1)% 首頁首頁 1)% a href=leav

5、eword.jsp?op=previous¤tpage=上一頁 上一頁  a href=leaveword.jsp?op=next¤tpage=下一頁下一頁  末頁末頁   留言日期 留言人 主題 內(nèi)容 處理日期 處理意見i_totalpage) i_currentpage=i_totalpage; int i_position=(i_currentpage-1)*i_pagenum; if(i_position=0) rs.beforefirst(); else rs.absolute(i_position); for(int i=0;i

6、   主題 留言 input name=userid type=hidden value= /   您還沒有登錄,登錄用戶可以發(fā)表留言! leave2word.jsplogin.jsp!-function checksubmit() /focus()方法,將光標(biāo)定位于輸出欄目 if( document.loginform.userid.value = ) alert(請輸入用戶名!); document.loginform.userid.focus(); return false; if( document.loginform.password.value = ) aler

7、t(請輸入密碼!); document.loginform.password.focus(); return false; if(document.loginform.userid.value.indexof() != -1) alert(用戶名不能包含單引號,空格等字符!); document.loginform.userid.focus(); return false; return true;   用戶名   密碼   新用戶注冊 ,您好!   您可以:   修改登陸密碼   維護(hù)個人信息   給管理員留言  

8、; 注銷退出 passwordedit.jsp!-function checksubmit() if( document.passwordform.password.value = ) alert(請輸入新密碼!); document.passwordform.password.focus(); return false; if( document.passwordform.password2.value = ) alert(請驗證新密碼!); document.passwordform.password2.focus(); return false; if( document.passwordform.password2.value != document.passwordform.password.v

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論