毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 课程设计 >> 正文

JSP留言簿系统无版权 第3页

更新时间:2008-7-19:  来源:毕业论文

JSP留言簿系统没有版权

              top.jsp

 

<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>

<jsp:useBean id="connBean" scope="page" class="beans.connDB"/>

<%

ResultSet rs_user=connBean.executeQuery("select * from tb_user where username='"+session.getAttribute("username")+"'and status='版主'");

boolean eof=rs_user.next();

%>

<script language="javascript">

function clockon(){

       var date=new Date();

       var YY=date.getYear();

       var MM=date.getMonth()+1;

       var DD=date.getDate();

       var KK=date.getDay();

       var HH=date.getHours();

       var mm=date.getMinutes();

       var SS=date.getSeconds();

       if (MM<10) MM="0"+MM;

       if (DD<10) DD="0"+DD;

       if (HH<10) HH="0"+HH;

       if (mm<10) mm="0"+mm;

       if (SS<10) SS="0"+SS;

       switch (KK){

              case 1:

                     KK="星期一";

                     break;

              case 2:

                     KK="星期二";

                     break;

              case 3:

                     KK="星期三";

                     break;

              case 4:

                     KK="星期四";

                     break;

              case 5:

                     KK="星期五";

                     break;

              case 6:

                     KK="星期辣";

                     break;

              case 0:

                     KK="星期日";

                     break;

       }

       var str_date=" 系统公告:"+YY+""+MM+""+DD+" "+KK+" "+HH+":"+mm+":"+SS;

       if(document.all){

       div_date.innerHTML=str_date;

       }

       var timer=setTimeout("clockon()",200);

}

</script>

<table width="777" height="124"  border="0" align="center" cellpadding="0" cellspacing="0" class="table">

  <tr>

    <td align="center" valign="top" height="10"  bgcolor="#07AFBE"></td>

  </tr>

  <tr>

    <td width="790" align="center" valign="top">      <img src="images/banner.gif" width="550" height="124"></td>

  </tr>

  <tr>

    <td align="center" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0" class="table_T">

      <tr>

        <td height="5"></td>

      </tr>

    </td>

  </tr>

</table>

<table width="777" height="21"  border="0" align="center" cellpadding="0" cellspacing="0" background="images/revigate.gif">

  <tr align="center" valign="middle">

  <%if(session.getAttribute("username")!=null){%>

       <td width="104"><a href="Topic_add.jsp">签写留言</a></td>

        <td width="101"><a href="modify.jsp">修改资料</a></td>

       <%}else{%>

       <td width="104"><a href="reg.jsp">用户注册</a></td>

       <%}%>

      <% if(eof){%>

     <td width="104"> <a href="Logout_User.jsp">注销版主登录</a>

           <%}else{

        if(session.getAttribute("username")!=null){%>

             <td width="104">  

<a href="Logout_User.jsp">注销用户</a>

            <%}else{%>

              <td width="104"> <a href="#" onClick="window.open('Login_User.jsp','','width=300,height=200');">用户登录</a>

          <%}}%>

       </td>

    <td width="104"><a href="index.jsp">查看留言</a></td>

    <td width="104"><a href="#" onClick="window.location.reload();">刷新页面</a></td>

  <%if(!eof){%>

     <td width="104"><a href="#" onClick="window.open('Login_manager.jsp','','width=300,height=200');">版主登录</a></td><%}

     else{%>

    <td width="104"> <a href="#" onClick="window.open('Login_User.jsp','','width=300,height=200');">用户登录</a></td><%}%>

  </tr>

</table>

<table width="777" height="47"  border="0" align="center" cellpadding="0" cellspacing="0">

  <tr align="center" valign="middle">

    <td height="2" colspan="6"></td>

  </tr>

  <tr align="center" valign="middle">

<td width="18" height="17" align="left">

<img src="images/speaker.GIF" width="16" height="16"></td>

<td width="290" align="left">

<div id="div_date">系统公告:</div></td>

    <td width="469" align="right" class="word">

       <%if(session.getAttribute("username")!=null){

       out.println("[ "+session.getAttribute("username")+" ]您好!欢迎您来到“蓝天一色”留言簿!留言请点击“签写留言”!");

       }else{

       out.println("您好!如果您想说点什么,请先注册或登录!");

       }%>

       </td>

  </tr>

</table>

   

                index.jsp

<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>

<jsp:useBean id="connBean" scope="page" class="beans.connDB"/>

<%

ResultSet rs=connBean.executeQuery("select * from v_board");

ResultSet rs_user=connBean.executeQuery("select * from tb_user where username='"+session.getAttribute("username")+"'and status='版主'");

需要完整内容的请联系QQ752018766,JSP留言簿系统没有版权免费,转发请注明源于www.751com.cn

<table width="777" height="197"  border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>

  <td  width="53%" height="5" valign="top"></td>

  </tr>

  <tr>

    <td valign="top"><table width="100%" height="171"  border="0" cellpadding="0" cellspacing="0" class="table">

      <tr>

        <td width="2%" height="26"

上一页  [1] [2] [3] [4] [5] [6] [7] [8] 下一页

JSP留言簿系统无版权 第3页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。