交友网课程设计报告_第1页
交友网课程设计报告_第2页
交友网课程设计报告_第3页
交友网课程设计报告_第4页
交友网课程设计报告_第5页
已阅读5页,还剩50页未读 继续免费阅读

下载本文档

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

文档简介

中国地质大学小学期项目题目:在线快捷交友系统的设计与实现专业班级:学生姓名:学生学号:指导教师姓名:2013年7月30日目录39/47for(inti=0;i<hello.length;i++){if(hello[i]==null){continue;}else{big=big+hello[i];}}%><divid="content"><pid="whereami"></p><tableclass="table"style="font-size:15px;"><tr><td><imgsrc="img/envelope.JPG"width二"25"height二"15"/><ahref二"javascript:;"id="a1">收件箱</a></td></tr><tr><td><divid="d1"><%=big%></div></td></tr><tr><td><imgsrc="img/gift.JPG"width="25"height二"15"/>礼物箱</td></tr></table><h3>已有用户</h3></div><center><tableborder='0'width='100%'cellpadding='1'cellspacing='0'align='center'><trclass="table_header"><td>ID</td><td>用户名</td><td>年龄</td><td>性另0</td><td>操作</td></tr><%List<Member>members=(List<Member>)request.getAttribute("members");intcount=0;for(Memberm:members){count++;Stringstr;if(count%2==0){%><trclass="form_table"style="background-color:#e0e0e0"><td><%=m.getId()%></td><td><%=m.getUsername()%></td><td><%=m.getAge()%></td><td><%=m.getGender()%></td><td><astyle="font-size:12px;"href='userDetail?username=<%=m.getUsername()%>'><%if(!m.getUsername().equals(username)){str="详细";}else{str="我的更多资料";}%><%=str%></a></td></tr><%}else{%><trclass="form_table"style="background-color:white"><td><%=m.getId()%></td><td><%=m.getUsername()%></td><td><%=m.getAge()%></td><td><%=m.getGender()%></td><td><astyle="font-size:12px;color:#6B8E23"href='userDetail?username=<%=m.getUsername()%>'><%if(!m.getUsername().equals(username)){str二"详细";}else{str="我的更多资料";}%><%=str%></a></td></tr><%}}%></table></center><ahref="check_attention"style="font-size:20px;color:#1E90FF;">我关注的人</a><palign二"right"><ahref二"find.jsp"class二"butt">高级查询</a></p><formaction="logout"method="post"><inputtype="submit"class="button"style二"font-size:15px"value二"退出系统7></form></div>4、

ygr的个人信息亡毛:--屯住:12345576901身蒿■_:.-■U■7—:本科圧专科鱷赵:未指Sr<-:5000.0■iv:-bi.研:面京居:心匚'石迅:两轮的王躺.朮市:I:廿:F,■洱T抽』汁覧:社打招呼炭信|•关注返回堆埋査看Quickanddatin口VGRfilL2Hude^]CPaiO(HLlL2实现代码:<%=username1%>的个人信息</h1><%if(username1.equals(username)){%><h2>上传图片</h2>method="post"name="file"<formaction="upload"method="post"name="file"enctype="multipart/form-data"><inputtype="file"onchange="previewImage(this)"/>vinputtype二"submit"value二"确认7></form><h2>预览图片</h2><divid="preview"><imgid="imghead"border=0src=''></div><%}%><br/><br/><%Connectionconn=null;request.setCharacterEncoding("utf-8");conn=DBUtils_Mysql.getConnection();Stringsql="select*fromfriend_picwhereusername='"+username1+"'";PreparedStatementps=conn.prepareStatement(sql);ResultSetrs=ps.executeQuery();List<Pic>pics=newArrayList<Pic>();while(rs.next())Picpic=newPic();pic.setUsername(rs.getString(1));pic.setPath1(rs.getString(2));pics.add(pic);}for(Picp:pics){p.getPath1();String[]str=newString[6];str=p.getPath1().split("\\\\");%><imgheight="300px"width="200px"src="upload/<%=str[5]%>"/><%}DBUtils_Mysql.close(conn);%><br/><br/><center><tableborder='0'width='100%'cellpadding='1'cellspacing='0'align='center'style="font-size:15px"><%List<Member>members=(List<Member>)request.getAttribute("members");%><%Membertest=newMember();for(Memberm:members){if(m.getUsername().equals(username1)){test=m;break;}}%><trclass="form_table"style="background-color:#e0e0e0;color:#1E90FF;font-size:14px"><td>详细资料:<%if(username1.equals(usemame)){%><ahref二"#">修改</a><%}%></td></tr><trclass="form_table"style="background-color:white;font-size:12px"><td><tableborder='0'width='100%'cellpadding='1'cellspacing='0'align='center'style="font-size:15px"><trclass="form_table"style="background-color:white;font-size:12px"><tdstyle="color:#EEA9B8">姓名:</td><td><%=test.getName()%></td><tdstyle="color:#EEA9B8">电话:</td><td><%=test.getTel()%></td></tr><trclass="form_table"style="background-color:white;font-size:12px"><tdstyle="color:#EEA9B8">身高:</td><td><%=test.getHeight()%></td><tdstyle="color:#EEA9B8">学历:</td><td><%=test.getStudy()%></td></tr><trclass="form_table"style="background-color:white;font-size:12px"><tr<tdstyle="color:#EEA9B8">婚姻状况:</td><td><%=test.getMarriage()%></td><tdstyle="color:#EEA9B8">薪水:</td><td><%=test.getSalary()%></td></tr><trclass="form_table"style="background-color:white;font-size:12px"><tdstyle="color:#EEA9B8">省份:</td><td><%=test.getProvince()%></td><tdstyle="color:#EEA9B8">城市:</td><td><%=test.getCity()%></td></tr><trclass="form_table"style="background-color:white;font-size:12px"><tdstyle="color:#EEA9B8">居住情况:</td><td><%=test.getHouse()%></td><tdstyle="color:#EEA9B8">购车情况:</td><td><%=test.getVehicle()%></td></tr></table></td></tr><trclass="form_table"style="background-color:#e0e0e0;color:#1E90FF;font-size:14px"><td>内心独白:<%if(username1.equals(usemame)){%><ahref二"#">修改</a><%}%></td></tr><trclass="form_table"style="background-color:white;font-size:12px"><td><%=test.getInnerword()%></td></tr><trclass="form_table"style="background-color:#e0e0e0;color:#1E90FF;font-size:14px"><td>择友条件:<%if(username1.equals(username)){%><ahref="#">修改</a><%}%></td></tr><trclass="form_table"style="background-color:white;font-size:12px"><td><tableborder='0'width='100%'cellpadding='1'cellspacing='0'align='center'style="font-size:15px"><trclass="form_table"style="background-color:white;font-size:12px"><tdstyle="color:#EEA9B8">身高:</td><td><%=test.getCheight()%></td><tdstyle="color:#EEA9B8">学历:</td><td><%=test.getCstudy()%></td></tr><trclass="form_table"style="background-color:white;font-size:12px"><tdstyle="color:#EEA9B8">省份:</td><td><%=test.getCprovince()%></td><tdstyle="color:#EEA9B8">城市:</td><td><%=test.getCcity()%></td></tr><trclass="form_table"style="background-color:white;font-size:12px"><tdstyle="color:#EEA9B8">婚姻状况:</td><td><%=test.getCmarriage()%></td></tr>5<h1style二"color:#8DB6CD">高级查询</h1><formaction="find"method="post"><tablecellpadding="0"cellspacing="0"border="0"align="center"class="s1"><tr><tdstyle二"font-size:20px">性别:</td><td><selectclass="inputgri"id="gender"name="gender"><optionvalue="m"selected二"selected"〉男</option>voptionvalue二"f">女</option〉</select></td><tdstyle二"font-size:20px">身高:</td><td><selectclass="inputgri"id="height"name="height"><optionvalue="plz"selected="selected">--请选择--</option><optionvalue="160">160cm以上</option><optionvalue="170">170cm以上</option><optionvalue="180">180cm以上</option><optionvalue="190">190cm以上</option></select></td></tr>AtrVAtdV<fdv<trvAtrvAtdSty-en=font—size20p><-v^a;、tdvctdvAse-ectc-assH・_.nputg-=idHustudwnameH=study・v〈optionva-ueH=p-N=se-ectedH=se-ected-V——aK®——〈'optionV〈optionva-ueHU兰召龙T・v^召FT<optionv〈optionva-ueH・a-^va[召<optionv〈optionva-ueH=^^^<^・v^^^<^<optionv〈optionVIS^Jz<optionv<se-ectv<tdvAtdsty-eH=font—size20p><-v耳ffls冈;、tdvAtdv39_4740/4740/4740/4740/47<selectclass="inputgri"id="province"name="province"onchange="located()"><optionvalue="plz"selected="selected">--请选择--</option>voptionvalue二"山东"〉山东</option〉voptionvalue二"广东"〉广东</option〉voptionvalue二"辽宁"〉辽宁</option〉voptionvalue="黑龙江"〉黑龙江v/option〉v/select〉vselectclass="inputgri"id="city"name="city"〉voptionvalue="plz"selected="selected"〉--请选择--v/option〉voptionvalue=""〉v/option〉voptionvalue=""〉v/option〉voptionvalue=""〉v/option〉v/select〉v/td〉v/tr〉vtr〉vtd〉v/td〉v/tr〉vtr〉<tdstyle二"font-size:20px">购房情况:</td><td><selectclass="inputgri"id="house"name="house"><optionvalue="plz"selected="selected">--请选择--</option>voptionvalue二"买房"〉买房</option〉voptionvalue二"租房"〉租房</option〉</select>v/td><tdstyle二"font-size:20px">购车情况</td>vtd>vselectclass="inputgri"id="vehicle"name="vehicle">voptionvalue="plz"selected="selected">--请选择--v/option>voptionvalue="两轮的">两轮的v/option>voptionvalue="四轮的">四轮的</option></select></td></tr>6实现代码:<td>ID</td><td>用户名</td><td>年龄</td><td>性别</td><td>操作</td></tr><%List<Member>members1=(List<Member>)request.getAttribute("members1");intcount=0;for(Memberm:members1){count++;if(count%2==0){%><trclass="form_table"style="background-color:#e0e0e0"><td><%=m.getId()%></td><td><%=m.getUsername()%></td><td><%=m.getAge()%></td><td><%=m.getGender()%></td><td><astyle="font-size:12px"href='userdetail?username=<%=m.getUsername()%>'>详细</a></td></tr><%}else{%><trclass="form_table"style="background-color:white"><td><%=m.getId()%></td><td><%=m.getUsername()%></td><td><%=m.getAge()%></td><td><%=m.getGender()%></td><td><astyle="font-size:12px"href='userdetail?username=<%=m.getUsername()%>'>详细</a></td></tr>7、快捷交友欢迎您迹馳则QuickjnddabnqVGR@]2匚com耳IG口d10041112实现代码:<h1>登录</h1><formaction="login"met

温馨提示

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

评论

0/150

提交评论