4、系统设计 4.1 主要功能 本人主要负责的是社区共享模块,本模块的主要功能有:会员上传文件、前台的文件浏览、对以上传的文件进行修改以及管理员对上传文件的审核等功能。 paper51.com
4.2系统流程图 内容来自论文无忧网 www.paper51.com
http://www.paper51.com
paper51.com 4.3 主要功能模块设计 内容来自www.paper51.com
4.3.1会员登陆 paper51.com
内容来自www.paper51.com 具体实现代码如下: 内容来自论文无忧网 www.paper51.com
<SCRIPT language=javascript> http://www.paper51.com //检验表单的合法性 copyright paper51.com function checklogin() { paper51.com if(document.form1.username.value.replace(/\s+$|^\s+/g,"").length<=0){ http://www.paper51.com alert("\请输入您的用户名!"); paper51.com
document.form1.username.focus(); http://www.paper51.com
} copyright paper51.com elseif(document.form1.password.value.replace(/\s+$|^\s+/g,"").length<=0){ 内容来自www.paper51.com
alert("\请输入您的密码!"); 内容来自www.paper51.com document.form1.password.focus(); http://www.paper51.com } paper51.com elseif(document.form1.checkcode.value.replace(/\s+$|^\s+/g,"").length<=0){ 内容来自论文无忧网 www.paper51.com
alert("\请输入验证码!"); paper51.com
document.form1.checkcode.focus(); http://www.paper51.com
} paper51.com elseif (document.form1.checkcode.value != document.form1.yzm.value) { paper51.com alert("\验证码错误!"); copyright paper51.com
document.form1.checkcode.focus(); copyright paper51.com } 内容来自www.paper51.com
else{ http://www.paper51.com
form1.submit(); 内容来自www.paper51.com } 内容来自www.paper51.com } 内容来自论文无忧网 www.paper51.com </SCRIPT> paper51.com <% http://www.paper51.com
String message =(String)request.getAttribute("message"); http://www.paper51.com if(message== null){ paper51.com message= ""; copyright paper51.com } copyright paper51.com
if(!message.trim().equals("")){ paper51.com out.println("<scriptlanguage='javascript'>"); http://www.paper51.com out.println("alert('"+message+"');"); copyright paper51.com
out.println("</script>"); copyright paper51.com } http://www.paper51.com request.removeAttribute("message"); paper51.com
Stringyzm=code.getCheckCode(); copyright paper51.com
%> 内容来自论文无忧网 www.paper51.com <TABLE id=Table7 width=400 border=0> http://www.paper51.com <TBODY> paper51.com <TRheight=40> 内容来自论文无忧网 www.paper51.com <TD vAlign=center align=middle colSpan=3> paper51.com <FONTface=宋体></FONT><BR><FONTcolor=#ff7700><STRONG>欢迎登陆<%=sysList.get(0).toString() %></STRONG></FONT> 内容来自www.paper51.com </TD></TR> 内容来自www.paper51.com <TR> copyright paper51.com <TD colSpan=3> 内容来自论文无忧网 www.paper51.com <HRclass=hui align=center width="98%" SIZE=1> 内容来自论文无忧网 www.paper51.com </TD></TR> http://www.paper51.com <TR height=60> 内容来自论文无忧网 www.paper51.com <TD align=right width=84 height=110> 内容来自www.paper51.com <IMG height=52 src="<%=basePath%>images/Key.gif" width=49> http://www.paper51.com
</TD> paper51.com <TD noWrap align=middle width=171> http://www.paper51.com <TABLE width="100%" border=0> paper51.com <TBODY> 内容来自www.paper51.com <TR> paper51.com <TD width="35%" height=24>用户名:</TD> 内容来自论文无忧网 www.paper51.com
<TD> http://www.paper51.com <INPUT class=input_new id=usernamestyle="WIDTH: 110px" size=15 maxLength=10 name=usernameonbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" 内容来自论文无忧网 www.paper51.com onkeyup="value=value.replace(/[\W]/g,'')" value=<%=request.getAttribute("reg_user")==null?"":request.getAttribute("reg_user")%>> copyright paper51.com </TD> paper51.com </TR> paper51.com <TR> 内容来自论文无忧网 www.paper51.com
<TD height=25> 内容来自论文无忧网 www.paper51.com <INPUT class=input_new id=passwordstyle="WIDTH: 110px" type=password size=15 maxLength=16 name=passwordonbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" copyright paper51.com
onkeyup="value=value.replace(/[\W]/g,'')"> 内容来自www.paper51.com </TD> 内容来自论文无忧网 www.paper51.com </TR> 内容来自论文无忧网 www.paper51.com <TR> copyright paper51.com <TDheight=25>验证码:</TD> http://www.paper51.com <TD height=25><input type="hidden"name="yzm" value="<%=yzm %>" > 内容来自论文无忧网 www.paper51.com <INPUT class=input_new id=checkcodesize=5 maxlength="4" name=checkcodeonKeyUp="this.value=this.value.replace(/\D/gi,'')"> <%=yzm%> 内容来自www.paper51.com 内容来自论文无忧网 www.paper51.com 4.3.2 会员注册 copyright paper51.com
内容来自www.paper51.com 具体实现代码如下: paper51.com <TBODY> copyright paper51.com <FORM name="regbb"action="<%=basePath%>Member.shtml" method="post"> paper51.com <INPUT type=hidden name="method"> 内容来自论文无忧网 www.paper51.com
<TR > paper51.com
<TD align=right width="38%" height=30>用 户 名:</TD> paper51.com
<TD width="62%" height=30 align=left><font color=red><%=request.getAttribute("message")==null?"":request.getAttribute("message")+"<br>"%></font> paper51.com <INPUTclass=inputb id=username maxLength=10 size=21 name=usernamevalue='<%=request.getAttribute("username")==null?"":request.getAttribute("username")%>'onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" 内容来自www.paper51.com onkeyup="value=value.replace(/[\W]/g,'')" > <input type=button value="查看是否重名" onClick="sameREGcheck()" > 不小于4位 内容来自论文无忧网 www.paper51.com
</TD> paper51.com </TR> http://www.paper51.com <TR class=black > copyright paper51.com <TD align=right width="38%" height=30>登陆密码:</TD> 内容来自www.paper51.com <TD width="62%" height=30 align=left> copyright paper51.com <INPUTclass=inputb id=password type=password maxLength=16 size=22 name=passwordonbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" 内容来自www.paper51.com onkeyup="value=value.replace(/[\W]/g,'')" > 6位以上 内容来自www.paper51.com </TD> 内容来自www.paper51.com </TR> paper51.com <TR class=black > http://www.paper51.com <TD align=right width="38%" height=30>密码确认:<input type=hiddenname=reg_type value=person></TD> 内容来自www.paper51.com <TD width="62%" height=30 align=left> 内容来自论文无忧网 www.paper51.com
<INPUTclass=inputb id=reg_pwd2 type=password maxLength=16 size=22 name=reg_pwd2onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" 内容来自www.paper51.com onkeyup="value=value.replace(/[\W]/g,'')" > paper51.com </TD> paper51.com </TR> copyright paper51.com <TR class=black > 内容来自论文无忧网 www.paper51.com <TD align=middle colSpan=2 height=40> 内容来自论文无忧网 www.paper51.com <imgsrc=<%=basePath %>images/sub.gif onclick="checkREG()"border=0> <imgsrc=<%=basePath %>images/back.gifonclick="window.location='<%=basePath %>'" border=0> http://www.paper51.com paper51.com </TD> 内容来自www.paper51.com </TR> 内容来自www.paper51.com </FORM> 内容来自www.paper51.com </TBODY> 内容来自论文无忧网 www.paper51.com </TABLE> http://www.paper51.com |