web课程设计Word文档格式.docx

上传人:b****7 文档编号:22038788 上传时间:2023-02-02 格式:DOCX 页数:30 大小:173.14KB
下载 相关 举报
web课程设计Word文档格式.docx_第1页
第1页 / 共30页
web课程设计Word文档格式.docx_第2页
第2页 / 共30页
web课程设计Word文档格式.docx_第3页
第3页 / 共30页
web课程设计Word文档格式.docx_第4页
第4页 / 共30页
web课程设计Word文档格式.docx_第5页
第5页 / 共30页
点击查看更多>>
下载资源
资源描述

web课程设计Word文档格式.docx

《web课程设计Word文档格式.docx》由会员分享,可在线阅读,更多相关《web课程设计Word文档格式.docx(30页珍藏版)》请在冰豆网上搜索。

web课程设计Word文档格式.docx

年龄表:

收入表:

体育表:

学历表:

用户表:

娱乐表:

四、系统的核心代码

首页核心代码:

<

%@pagelanguage="

java"

contentType="

text/html;

charset=gbk"

pageEncoding="

gbk"

%>

!

DOCTYPEhtmlPUBLIC"

-//W3C//DTDHTML4.01Transitional//EN"

"

http:

//www.w3.org/TR/html4/loose.dtd"

>

html>

head>

metahttp-equiv="

Content-Type"

content="

title>

无标题文档<

/title>

styletype="

text/css"

--

#Layer1{

position:

absolute;

left:

297px;

top:

31px;

width:

719px;

height:

583px;

z-index:

1;

}

#Layer2{

384px;

481px;

127px;

46px;

12;

body,td,th{

color:

#000000;

#Layer3{

150px;

14px;

628px;

539px;

body{

background-color:

#00FF00;

.STYLE2{

font-size:

36px;

font-weight:

bold;

.STYLE5{font-size:

x-large;

}

.STYLE6{font-size:

x-large}

#Layer4{

360px;

94px;

626px;

269px;

2;

-->

/style>

/head>

body>

divid="

Layer3"

<

formid="

form1"

name="

method="

post"

action="

"

h1align="

center"

class="

STYLE2"

欢迎光临我的在线投票系统<

/h1>

palign="

&

nbsp;

/p>

STYLE5"

preclass="

STYLE6"

ahref="

login.jsp"

target="

_parent"

用户登录<

/a>

register.jsp"

用户注册<

/pre>

/form>

/div>

/body>

/html>

问卷统计结果页面

charset=utf-8"

import="

java.sql.ResultSet,com.yunshui.service.*"

utf-8"

%

Integera=(Integer)request.getSession().getAttribute("

yunshui"

);

if(a==null||a==0){

response.sendRedirect("

ResultSetage,money,culture,play,sport,movie;

conndbcs=newconndb();

age=cs.getConn().prepareStatement("

select*fromnianlingwhereid=1"

).executeQuery();

money=cs.getConn().prepareStatement("

select*fromshouruwhereid=1"

culture=cs.getConn().prepareStatement("

select*fromxueliwhereid=1"

play=cs.getConn().prepareStatement("

select*fromyulewhereid=1"

sport=cs.getConn().prepareStatement("

select*fromtiyuwhereid=1"

movie=cs.getConn().prepareStatement("

select*fromdianyingwhereid=1"

问卷统计结果页面<

bodybgcolor="

#00FF00"

tablealign="

width="

50%"

tr>

tdalign="

colspan="

2"

h2>

fontstyle="

font-family:

楷体"

问卷统计结果<

/font>

/h2>

/td>

/tr>

td>

b>

题目<

/b>

人数<

tdcolspan="

1、您的年龄是多少?

%if(age.next()){%>

20岁及以下<

%=age.getInt("

age1"

)%>

21-35岁<

age2"

36-50岁<

age3"

50岁<

age4"

%}%>

2、您的收入是多少?

%if(money.next()){%>

3000元以下<

%=money.getInt("

income1"

)%>

3000-5000元<

income2"

5000-8000元<

income3"

8000-10000元<

income4"

10000元以上<

income5"

3、您的文化程度是什么?

%if(culture.next()){%>

高中以及以下<

%=culture.getInt("

wenhua1"

大专<

wenhua2"

本科<

wenhua3"

研究生<

wenhua4"

4、您喜欢的娱乐方式有哪些?

%if(play.next()){%>

看电影<

%=play.getInt("

dianying"

看电视<

dianshi"

上网<

shangwang"

体育运动<

tiyu"

其他<

qita"

5、您喜欢的体育运动有哪些?

%if(sport.next()){%>

跑步<

%=sport.getInt("

paobu"

骑单车<

danche"

器械<

qixie"

瑜伽<

yujia"

6、您喜欢的电影类型有哪些?

%if(movie.next()){%>

科幻片<

%=movie.getInt("

kehuan"

剧情片<

juqing"

悬疑片<

xuanyi"

动作片<

dongzuo"

index.jsp"

关闭,返回首页<

/table>

用户登录页面

欢迎你登录问卷系统<

divalign="

formaction="

denglu.jsp"

欢迎登陆<

tablewidth="

377"

border="

0"

align="

bordercolor=red>

tralign="

>

用户名<

inputtype="

text"

username"

/>

密码<

password"

submit"

value="

登录"

class="

button"

reset"

重置"

楷体"

重新注册<

注册页面

欢迎你的注册<

h2align="

欢迎注册<

zhuce.jsp"

1"

欢迎用户注册<

用户名:

密码:

真实姓名:

realname"

性别:

radio"

sex"

男"

女"

女<

省份<

selectname="

shengfen"

option>

河南<

/option>

黑龙江<

吉林<

辽宁<

<

天津<

内蒙古<

山西<

山东<

重庆<

安徽<

江苏<

浙江<

上海<

广西<

广东<

福建<

北京<

云南<

宁夏<

陕西<

河北<

新疆<

甘肃<

江西<

湖北<

西藏<

青海<

贵州<

四川<

海南<

湖南<

/select>

height="

50"

提交"

重新登录<

跳转页面

com.yunshui.service.*"

Stringage=request.getParameter("

age"

Stringmoney=request.getParameter("

money"

Stringculture=request.getParameter("

culture"

Stringplay[]=request.getParameterValues("

play"

Stringsport[]=request.getParameterValues("

sport"

Stringmovie[]=request.getParameterValues("

movie"

conndbconndb=newconndb();

conndb.update(a,age,money,culture,play,sport,movie);

request.getSession().setAttribute("

isCheck"

"

Y"

charset=ISO-8859-1"

跳转页面<

问卷提交成功!

spanid="

time"

style="

color:

red"

5<

/span>

秒种后自动调转到统计结果界面,<

jieguo.jsp"

统计结果页面<

scriptlanguage="

JavaScript1.2"

type="

text/javascript"

functiondelayURL(url){

vartime=document.getElementById("

).inne

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 工程科技 > 建筑土木

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1