欧美色欧美亚洲高清在线观看,国产特黄特色a级在线视频,国产一区视频一区欧美,亚洲成a 人在线观看中文

  1. <ul id="fwlom"></ul>

    <object id="fwlom"></object>

    <span id="fwlom"></span><dfn id="fwlom"></dfn>

      <object id="fwlom"></object>

      基于JAVA WEB技術(shù)的旅行社網(wǎng)站系統(tǒng)設(shè)計(jì)(含源文件)

      時(shí)間:2019-05-14 01:45:16下載本文作者:會(huì)員上傳
      簡(jiǎn)介:寫(xiě)寫(xiě)幫文庫(kù)小編為你整理了多篇相關(guān)的《基于JAVA WEB技術(shù)的旅行社網(wǎng)站系統(tǒng)設(shè)計(jì)(含源文件)》,但愿對(duì)你工作學(xué)習(xí)有幫助,當(dāng)然你在寫(xiě)寫(xiě)幫文庫(kù)還可以找到更多《基于JAVA WEB技術(shù)的旅行社網(wǎng)站系統(tǒng)設(shè)計(jì)(含源文件)》。

      第一篇:基于JAVA WEB技術(shù)的旅行社網(wǎng)站系統(tǒng)設(shè)計(jì)(含源文件)

      【網(wǎng)站源代碼】

      旅游系統(tǒng)數(shù)據(jù)庫(kù)部分代碼:

      Static conn = DriverManager.getConnection(“jdbc:odbc:sql:sqlserver://localhost:1433/travel?useUnicode=true&characterEncoding =gb2312”, “ ”, “ ”);String password=“";Connection conn= DriverManager.getConnection(url,user,password);Statement stmt=conn.createStatement();executeQuery()方法對(duì)數(shù)據(jù)庫(kù)進(jìn)行查詢操作。

      sql=”SELECT count(*)c FROM `hotpoint` where `id`=0 and `hotelID`=“+hotel_Id;rs=stmt.executeQuery(sql);while(rs.next()){ count1 = rs.getInt(”c“);}

      模塊中關(guān)鍵代碼(實(shí)現(xiàn)表單的驗(yàn)證并提交到數(shù)據(jù)庫(kù)的代碼): sql=”select ID from Users where UserName='“+username+”'“;ResultSet rs=statement.executeQuery(sql);if(rs.next()){ err+=”該用戶名己經(jīng)存在,請(qǐng)更換用戶名!“;valid=false;} else{ String id=”select max(ID)as xxx from Users“;ResultSet a=statement.executeQuery(id);next();sql=”insertintoUsers(UserName,Password,Email,Sex,Phone,Address,Age,PostNumber, Rank,Face)values('“+username+”','“+password1+”','“+email+”','“+sex+”', '“+phone+”','“+address+”','“+age+”', '“+postnumber+”','“+rank+”','“+face+”')“;

      用 exe 傳遞所要執(zhí)行的操作: if(exe.equals(”write“)){ if(reid!=0){ rs.close();sql=”select ReplyNum from Articles where ID=“+reid;rs=statement.executeQuery(sql);rs.next();renum=rs.getInt(”ReplyNum“);renum++;//可以將上面的值進(jìn)行自增 rs.close();//注意 close 的位置

      sql=”updateArticlessetReplyNum='“+renum+”'whereID=“+reid;statement.executeUpdate(sql);} //此用戶的 PostNumber 加一

      sql=”selectPostNumberfromUserswhereUserName='“+username+”'“;rs=statement.executeQuery(sql);rs.next();int postnum=rs.getInt(”P(pán)ostNumber“);System.out.println(postnum);postnum++;rs.close();

      sql=”updateUserssetPostNumber='“+postnum+”'whereUserName='“+username+”'“;statement.executeUpdate(sql);//將文章信息存入數(shù)據(jù)庫(kù) renum=0;//在 上 面 的 內(nèi) 容 中 可 以 得 到 authorid,title,content,bid,reid,posttime,emotion,renum sql=”insert into Articles(AuthorID,Title,Content,BoardID,ReplyID,Posttime,Emotion, ReplyNum)values('“+authorid+”','“+title+”','“+content+”','“+bid+”','“+ reid+”', '“+posttime+”','“+emotion+”','“+renum+”')“;} else if(exe.equals(”modify“)){ String id=request.getParameter(”id“);sql=”updateArticlessetPostTime='“+posttime+”',Content='“+content+”'whe re ID=“+id;}

      網(wǎng)站頁(yè)面HTML代碼:

      XX旅游總社--旅游網(wǎng)

      name=description>

      content=XX旅游,XX旅游,旅游網(wǎng),旅行社,國(guó)內(nèi)旅游,出境旅游,旅游,周邊游,休閑,會(huì)議,度假,自由人,簽證,機(jī)票,出差,酒店,訂房,在線預(yù)定,特色旅游,專題旅游,夕陽(yáng)紅旅游,紅色旅游

      name=keywords>

      onload=”MM_preloadImages('5555.jpg')“ marginheight=”0“ marginwidth=”0“>