freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于struts架構(gòu)的辦公自動(dòng)化系統(tǒng)畢業(yè)論文-資料下載頁

2025-06-27 19:33本頁面
  

【正文】 轉(zhuǎn)發(fā)到 findMenuAction}else{return new ActionForward(/)。 //當(dāng)用戶名或密碼輸入錯(cuò)誤是轉(zhuǎn)發(fā)到 頁面}}}登錄頁面的設(shè)計(jì)(1)在登錄頁面中不僅添加了用戶名和密碼文本框,為了保護(hù)系統(tǒng)的安全性還添加了驗(yàn)證碼文本框,關(guān)鍵代碼如下:form name=form1 method=POST action=?method=findUsertable width=410 height=198 border=0 align=right cellpadding=0 cellspacing=0trtd height=2 colspan=2/td/tr基于 Struts 架構(gòu)的 OA 系統(tǒng)畢業(yè)論文30 trtd height=2 colspan=2 valign=top/td/trtrbrbrbrbrbrbrbrbrbrbrbr td width=54 height=22 valign=bottomspan class=STYLE15 用戶名:/span/tdtd width=356 valign=bottom input name=UserName type=text class=input2 onKeyDown=if(==13){()。}onMouseOver==39。F0DAF339。onMouseOut==39。FFFFFF39。 /td/trtrtd height=4 colspan=2 valign=bottom/td/trtrtd height=31 colspan=2 valign=top class=STYLE15密 碼:input name=PWD type=password class=input2 align=bottomonKeyDown=if(==13){()。}onMouseOver==39。F0DAF339。onMouseOut==39。FFFFFF39。 /td/trtr td height=31 colspan=2 valign=top class=STYLE15 ondragstart=return 2022 屆蘇州經(jīng)貿(mào)職業(yè)技術(shù)學(xué)院畢業(yè)論文31false onselectstart=return false驗(yàn)證碼:input name=yanzheng type=text class=input2 onKeyDown=if(==13){()。}size=8 align=bottomonMouseOver==39。F0DAF339。onMouseOut==39。FFFFFF39。% int intmethod = (int)( (((())*11))1)。 int intmethod2 = (int)( (((())*11))1)。 int intmethod3 = (int)( (((())*11))1)。 int intmethod4 = (int)( (((())*11))1)。 String intsum = intmethod++intmethod2+intmethod3+intmethod4。 //將得到的隨機(jī)數(shù)進(jìn)行連接%input type=hidden name=verifycode2 value=%=intsum% ! 設(shè)置隱藏域,用來做驗(yàn)證比較span class=STYLE12font size=+3 color=FF0000img src=Images/num/%=intmethod %.gif img src=Images/num/%=intmethod2 %.gif! 將圖片名稱與得到的隨機(jī)數(shù)相同的圖片顯示在頁面上 img src=Images/num/%=intmethod3%.gif img src=Images/num/%=intmethod4 %.gif/font/span/td/trtrtd colspan=2 valign=top input name=Submit type=button class=submit1 value=登錄 onClick=mycheck() input name=Submit2 type=reset class=submit1 value=重置基于 Struts 架構(gòu)的 OA 系統(tǒng)畢業(yè)論文32/td /tr /table/form(2)登錄界面還添加了 JavaScript,保證用戶在輸入用戶名和密碼后才能登錄系統(tǒng),代碼如下:script language=javascript function mycheck(){ if (==) {alert(請輸入用戶名!)。()。return。} if(==) {alert(請輸入密碼!)。()。return。} if(==) {alert(請輸入驗(yàn)證碼!)。()。return。} if( != ) {alert(請輸入正確的驗(yàn)證碼 !!)。()。return。} ()。 } /script 主界面設(shè)計(jì) 主界面概述 用戶登錄成功后進(jìn)入系統(tǒng)主界面,主界面的頁頭部分顯示登錄用戶的具體信息,側(cè)欄部分顯示樹狀導(dǎo)航菜單,內(nèi)容顯示區(qū)顯示滾動(dòng)文字。2022 屆蘇州經(jīng)貿(mào)職業(yè)技術(shù)學(xué)院畢業(yè)論文33 主界面技術(shù)分析 本系統(tǒng)主界面是通過 iframe 浮動(dòng)框架將其組合在一起,浮動(dòng)框架是一種特殊的框架頁面,在瀏覽器窗口中嵌套子窗口,在其中顯示頁面的內(nèi)容,iframe 浮動(dòng)框架的主要語法格式如下:iframe src=”file_url” width=value height=value name=”IFRAME_name” align=”value”/iframe 主界面的實(shí)現(xiàn)過程主界面中設(shè)計(jì)了樹狀導(dǎo)航菜單的顯示,樹狀導(dǎo)航菜單不僅可以節(jié)省頁面空間,而且可以方便瀏覽者操作。實(shí)現(xiàn)樹狀導(dǎo)航菜單顯示的步驟如下:顯示樹狀導(dǎo)航菜單 (1)在 HibernateUtil 類中編寫查找菜單方法,在 tb_Menu 表中主菜單的 modeId值是 0。每個(gè)主菜單對應(yīng)的子菜單的 modeId 值與主菜單的 id 相同。所以在編寫 HQL語句時(shí)只需要綁定 modeId 就可以完成對菜單的查找工作,代碼如下:public static List findMenu(int intMendId) {Transaction tx = null。List list = null。try {session = ()。 //利用公共類開啟 sessiontx = (Transaction) ()。 //開啟事務(wù)Query query = session.createQuery(from Menu as m where =:intMedeId)。(intMedeId, intMendId)。 //綁定查詢參數(shù)list = ()。()。(session)。 //利用公共類關(guān)閉 session} catch (Exception e) {()。()。 } return list。}(2)在 FindMenuAction 中調(diào)用 findMenu()方法,并完成頁面的轉(zhuǎn)發(fā)工作,代碼如下:public class FindMenuAction extends DispatchAction {基于 Struts 架構(gòu)的 OA 系統(tǒng)畢業(yè)論文34 public ActionForward findMenu(ActionMapping arg0, ActionForm arg1, HttpServletRequest arg2, HttpServletResponse arg3) throws Exception {List list = (0)。 //由于主菜單的 menuid 為0綁定參數(shù)0查找主菜單List menuIdlist = null。if(!() amp。amp。 ()0){ for(int i= 0。i()。i++){Menu menu =(Menu) (i)。menuIdlist = ((()).intValue())。 //查找子菜單().setAttribute(menuNameid+i+, menuIdlist)。 //將字菜單集合保存在 session 中 }}().setAttribute(menulist, list)。 //將主菜單集合保存在 session 中return new ActionForward(/)。 //轉(zhuǎn)發(fā)致 頁面} }(3)樹狀導(dǎo)航菜單需要使用 JavaScript 腳本函數(shù) ShowTR()進(jìn)行編寫。ShowTR()函數(shù)的代碼如下:script language=javascript ShowTR(img1,OpenRep1) //設(shè)置第 1 個(gè)結(jié)點(diǎn)為展開狀態(tài) function ShowTR(objImg,objTr) //應(yīng)用 javascript 完成頁面顯示效果 {if( == block){ = none。 = Images/。 = 展開。}else2022 屆蘇州經(jīng)貿(mào)職業(yè)技術(shù)學(xué)院畢業(yè)論文35{ = block。 = Images/。 = 折疊。} }/script(4)在 頁面中完成樹狀導(dǎo)航菜單顯示的代碼如下:table width=100% border=0 cellpadding=0 cellspacing=0% List listfather = (List)(menulist)。 //獲得主菜單集合 if(()){ //判斷主菜單是否為空%trtd align=center暫無功能分類信息!/td/tr%}else{ //如果主菜單不為空,進(jìn)行以下操作int m=1。 for(int j=0。j()。j++){Menu menufather = (Menu)(j)。List listsun = (List)(menuNameid+j+)。//獲得子菜單集合%trtd height=27 valign=top% if(()){ for(int i=1。i()。i++){% img src=Images/ width=38 height=16 border=0基于 Struts 架構(gòu)的 OA 系統(tǒng)畢業(yè)論文36%=()%! 如果子菜單集合為空,顯示主菜單項(xiàng) %}}else{% ! 如果子菜單集合不為空,采用數(shù)狀導(dǎo)航圖 a href=Javascript:ShowTR(img%=m%,OpenRep%=m%)imgsrc=Images/ border=0 alt=展開 id=img%=m% /aa href=Javascript:ShowTR(img%=m%,OpenRep%=m%)%=()%! 將主菜單項(xiàng)顯示在頁面上 /a%}% /td% if(()0){ // 判斷子菜單集合的長度是否大于0 % tr id=OpenRep%=m% style=display:none。 ! 數(shù)狀導(dǎo)航圖顯示子菜單 td colspan=6% for(int k=0。k()。k++){Menu menusun = (Menu)(k)。 //利用循環(huán)將子菜單顯示在頁面上 %table width=94% border=0 cellspacing=0 cellpadding=0trtd height=25 align=centertable width=90% border=0 cellspacing=0 cellpadding=0trtd width=7% align=left img src=Images/ width=16 height=16 border=0 /tdtd width=93% align=left a href=%=()% target=mainFrame%=()% ! 得到子菜單名字 /a/td/tr2022 屆蘇州經(jīng)貿(mào)職業(yè)技術(shù)學(xué)院畢業(yè)論文37/table/td/tr/table%m=m+1。}%/td%}%/tr%}}%/table 完成頁面組合當(dāng) 、 設(shè)計(jì)完成后,通過 %@include%指令和 iframe 浮動(dòng)框架將其組合成 頁面。完成組合的關(guān)鍵代碼如下:%@ include file=%body table width=1003 border=0 align=center cellpadding=0 cellspacing=0 height=590
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1