计算机3-班网络工程师综合实训-2.4eclipse_第1页
计算机3-班网络工程师综合实训-2.4eclipse_第2页
计算机3-班网络工程师综合实训-2.4eclipse_第3页
计算机3-班网络工程师综合实训-2.4eclipse_第4页
计算机3-班网络工程师综合实训-2.4eclipse_第5页
免费预览已结束,剩余27页可下载查看

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

《计算机网络系统实践》报设计题目:基于web的发布系统 号专业班级:计算机科学与技术13-320161一、设计要分析已有的基于Web的发布系统,进行需求分析和功能设计二、开发环境与工Windows,Eclipse,三.,设计管理界面管理员有三种功能,可以修改自己的账号,,四、系统功能描述及模块划 管理者可以修改自己的账 ,,, 类型路径正文,提交之后,只要格式正确 会自动将其保存到数据库中,,,。 住看到新加入。管理着增 之后自己可以直接点击查 ,可直首页有六种可供选择浏览可以随意选择自己喜欢的新首页点击进去为各主页主页下方为今天该类得最新可点集上方的其他查看也可点击下方的查看全文。五、设计步该网页首先要进行数据库设计,咋这个网页中,有六种新闻,每个有两个表,再加管理员,总共有13个表,每个有六个表,因为每个有两种形式,分别为文字模式和模式,每种模式的都用一个表保存,所以有12个表,再加上管理员的表,总共为13个表中有,,全文和num(无用。在管理员表中,由管理员账号和。主要有首页(首页中可跳转到任意一个主页<divclass="wrapper"><a <imgsrc="img/logo.png"class="logo"alt=""<li><ahref="yuan.jsp">工大后院儿<li><ahref="evening.jsp">合肥晚报<li><ahref="eat.jsp">合肥吃货哥<li><ahref="youth.jsp">合工大团委<li><ahref="xin.jsp">新浪<li><a和六个主页,各主页间可相互跳转<div<divstyle="background:<ahref="yuan.jsp"="_blank"accesskey="4">工大后院 <divstyle="background:<ahref="evening.jsp"="_blank">合肥晚报<divstyle="background:<ahref="eat.jsp"="_blank">合肥吃货哥<divstyle="background:<ahref="youth.jsp"="_blank">合肥工业大学团委<divstyle="background:<ahref="xin.jsp"="_blank">新浪<divstyle="background:<ahref="one.jsp"

在主页中的展现的是的与部分,有两种形式分别为和文字,两者都可以点进去查看全文。他们在主中以一比三的比例展现在页面中。可通过点击或标题跳转来查看新闻。<td><ahref="yuanread.jsp?titles=<%=rss.getString("ytitles")%>&imags=<%=="_blank"><imgsrc="<%=rss.getString("yimags")%>/0.jpg"width="340"height="150"/></a></td><td><ahref="yuanread.jsp?titles=<%=rss.getString("ytitles")%>&imags=<%=="_blank"><imgsrc="<%=rss.getString("yimags")%>/1.jpg"width="340"height="150"/></a></td><td><ahref="yuanread.jsp?titles=<%=rss.getString("ytitles")%>&imags=<%=="_blank"><imgsrc="<%=rss.getString("yimags")%>/2.jpg"width="340"height="150"/></a></td><tdcolspan="3"style="width:1020"<hrstyle="height:5px;border:none;border-top:1pxsolid<%while(n>0&&rs.next()){intnum=<tdwidth="340"><imgsrc="<%=rs.getString("yimag")%>/0.jpg"width="340"height="150"/></td><tdcolspan="2"style="background-color:#eeeeee;text-<h2><%=rs.getString("ytitle")<p><ahref="readyuan.jsp?title=<%=rs.getString("ytitle")%>&imag=<%=rs.getString("yimag")%>&content=<%=rs.getString("ycontent")%>" <script <script <script :1000, :<tablewidth="1020"<tr<divstyle="float:center;text-<h1id="site_nav_title""><%=title<tr<divstyle="float:center;text-<td<imgsrc="<%=imag%>/0.jpg"width="1020"height="500"<tr<divstyle="float:center;text-<tdstyle="background-color:#eeeeee;<P><%=content<formname="form1"method="post"action="check<tdstyle="float:center;text-<inputtype="text"<inputname="password"type="password"<divdata-scroll-reveal="enterbottombutwait<divdata-scroll-reveal="entertopover0.7safterclass="top-grid"><aclass="icon1"href="add<h4><ahref="addnews.jsp">ADD dolorsitconsecteturnibhablan.</p><aclass="btn"href="addnews.jsp">add</a><divdata-scroll-reveal="entertopover0.7safterclass="top-grid"><aclass="icon2"href="change<h4><ahref="changepassword.jsp">PASSWORD dolorsitconsecteturnibhablan.</p><aclass="btn"href="changepassword.jsp">change</a><divdata-scroll-reveal="entertopover0.7safterclass="top-grid"><aclass="icon3"href="head.jsp"><span><h4><ahref="head.jsp">SEE<p>Loremipsumdolorsitamet,consecteturadipiscing.Aliquam dolorsitconsecteturnibhablan.</p><aclass="btn"href="head.jsp">go</a><divdata-scroll-reveal="entertopover0.7safterclass="top-grid"><aclass="icon4"href="add<h4><ahref="addone.jsp"><p>Loremipsumdolorsitamet,consecteturadipiscing.Aliquam dolorsitconsecteturnibhablan.</p><aclass="btn"href="addone.jsp">add</a>

增加界面主要用的是input作为输入将其到数据库中<formname="form1"method="post"action="check<table<tdstyle="float:center;text-<inputtype="text"<tdstyle="float:center;text-or:#404040"name="num"><option<option<tdstyle="float:center;text-<inputd-color:#404040"></td><tdstyle="float:center;text-or:#404040"name="style"><optionvalue="complexyuan">complex<optionvalue="simpleyuan">simple<optionvalue="complexevening">complex<optionvalue="simpleevening">simple<optionvalue="simplexin">simple<optionvalue="comolexxin">comolex<optionvalue="simpleyouth">simple<optionvalue="complexyouth">complex<optionvalue="simpleeat">simple<optionvalue="complexeat">complex:100px"><inputtype="text"404040"></td>在中进行检验然后再加Connectionconn=DriverManager.getConnection("jdbc:sqlserver://localhost;DatabaseName=webnews;user=sa;password=020807");String;Stringnums=request.getParameter("num");Stringimage=request.getParameter("image");Stringstyle=request.getParameter("style");Stringcontent=newif(!image.equals("")&&!nums.equals("")&&!style.equals("")&&!title.equals("")){intnum=Stringsql="insertintoyuan(ytitle,yimag,ynum,ycontent)values('"+title+"','"+image+"',"+num+",'"+content+"')";}elseif(style.equals("complexintnum=Stringsqls="insertintovalues('"+title+"','"+image+"',"+num+",'"+content+"')";}elseif(style.equals("complexintnum=Stringsql1="insertintoevenings(titles,imags,nums,contents)values('"+title+"','"+image+"',"+num+",'"+content+"')";}elseif(style.equals("simpleintnum=Stringsql2="insertintoevening(title,imag,num,content)values('"+title+"','"+image+"',"+num+",'"+content+"')";}elseif(style.equals("simpleintnum=Stringsql3="insertintoyouth(ytitle,yimag,ynum,ycontent)values('"+title+"','"+image+"',"+num+",'"+content+"')";}elseif(style.equals("complexintnum=Stringsql4="insertintovalues('"+title+"','"+image+"',"+num+",'"+content+"')";}elseif(style.equals("simpleintnum=Stringsql5="insertintoeat(etitle,eimag,enum,econtent)values('"+title+"','"+image+"',"+num+",'"+content+"')";}elseif(style.equals("complexintnum=Stringsql5="insertintoeats(etitles,eimags,enums,econtents)values('"+title+"','"+image+"',"+num+",'"+content+"')";}elseif(style.equals("simpleintnum=Stringsql6="insertintoxin(xtitle,ximag,xnum,xcontent)values('"+title+"','"+image+"',"+num+",'"+content+"')";}elseif(style.equals("complexintnum=Stringsql7="insertintoxins(xtitles,ximags,xnums,xcontents)values('"+title+"','"+image+"',"+num+",'"+content+"')";}}else

response.setHeader("Refresh","5;url=addnews.jsp");}<formname="form1"method="post"action="check<tdstyle="float:center;text-<inputtype="text"检验加入的数据是否正确,提交之后进入,进入检Connectionconn=DriverManager.getConnection("jdbc:sqlserver://localhost;DatabaseName=webnews;user=sa;password=020807");Stringcontent=newStringbooleanif(!image.equals("")&&!content.equals("")Stringsql="insertintoone(nimag,ncontent)values('"+image+"','"+content+"')";}elseresponse.setHeader("Refresh","5;url=addone.jsp");}修改为普通修改账号界面,提交之后在验证更改<formname="form1"method="post"action="chenck<tdstyle="float:center;text-<inputtype="text"<inputname="oldpassword"type="text"<inputname="nessword"type="password"Connectionconn=DriverManager.getConnection("jdbc:sqlserver://localhost;DatabaseName=webnews;user=sa;password=020807");StringStringoldpassword=request.getParameter("oldpassword");Stringnessword=request.getParameter("nessword");booleanbsuccess=false;Stringsql="select*fromuserswherename='"+name+"'andStringsqls="updateuserssetpasswords='"+nessword+"'whereResultSetrs=stmt.executeQuery(sql);}response.setHeader("Refres

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论