⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add_jsp.java

📁 一个很不错的java实现的留言本程序
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
      out.write("{\r\n");
      out.write("   if( form.content.value.length>500 )\r\n");
      out.write("    {\r\n");
      out.write("       alert(\"\\您所添加内容太常了,应在500字符以内!!\")\r\n");
      out.write("    form.content.focus();\r\n");
      out.write("   return false;\r\n");
      out.write("    }\r\n");
      out.write("}\r\n");
      out.write("return true;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("// -->\r\n");
      out.write("</script>\r\n");
      out.write("<body background=\"img/beijing.gif\" text=\"#000000\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n");
      out.write("<table width=\"650\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tittle0\">\r\n");
      out.write("  <tr> \r\n");
      out.write("    <td width=\"389\"><img src=\"img/toplogo1.jpg\" width=\"389\" height=\"150\"></td>\r\n");
      out.write("    <td width=\"66\" background=\"img/toplogobg.jpg\">&nbsp;</td>\r\n");
      out.write("    <td width=\"195\"><img src=\"img/toplogo2.jpg\" width=\"203\" height=\"150\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"650\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tittle1\">\r\n");
      out.write("  <tr> \r\n");
      out.write("    <td height=\"26\" background=\"img/bg.gif\"><table width=\"100%\" height=\"15\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("        <tr align=\"center\"> \r\n");
      out.write("          <td width=\"41%\"><span class=\"font0\">版主:</span><span class=\"style2\"><font color=\"#006699\">");
      out.print(rs.getString("adminname"));
      out.write("</font></span></td>\r\n");
      out.write("          <td width=\"59%\"><a href=\"add.jsp\" class=\"font0\">给我留言</a> <span class=\"font0\">│</span> <a href=\"login.jsp\" class=\"font0\">管理登录</a><font color=\"#000099\"> </font><span class=\"font0\">│</span> <span><a href=\"system.jsp\" class=\"font0\">系统设定</a></span><font color=\"#000099\"> </font><span class=\"font0\">│</span><font color=\"#000099\"> </font><a href=\"");
      out.print(rs.getString("web"));
      out.write("\"><span class=\"font0\">网站首页</span></a></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<br>\r\n");
      out.write("<table width=\"650\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
      out.write("  <tr> \r\n");
      out.write("    <td></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr> \r\n");
      out.write("    <td valign=\"top\" bgcolor=\"#FFFFFF\">  \r\n");
      out.write("   <form action=\"operate_m.jsp\" method=\"POST\" name=\"form\" id=\"form\" onsubmit=\"return check()\">\r\n");
      out.write("        <table width=\"650\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("          <tr> \r\n");
      out.write("            <td><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tittle3\">\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td width=\"12%\"><img src=\"img/top1.gif\" width=\"81\" height=\"22\"></td>\r\n");
      out.write("                  <td width=\"86%\" background=\"img/top2.gif\">&nbsp;</td>\r\n");
      out.write("                  <td width=\"2%\"><img src=\"img/top3.gif\" width=\"47\" height=\"22\"></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("              </table></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr valign=\"top\"> \r\n");
      out.write("            <td height=\"162\"> <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"2\" class=\"tittle1\">\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td width=\"70\" height=\"21\" align=\"right\"><font color=\"#000099\"><img src=\"img/Forum_nav.gif\" width=\"15\" height=\"19\" align=\"absmiddle\"> \r\n");
      out.write("                    <span class=\"font0\">姓名:</span></font></td>\r\n");
      out.write("                  <td width=\"180\" height=\"30\"> <input name=\"name\" type=\"text\" id=\"name\" style=\"border:1px double rgb(187,185,185);font:9pt\"> \r\n");
      out.write("                    <font color=\"#FF0000\">*</font> </td>\r\n");
      out.write("                  <td rowspan=\"4\" valign=\"top\"> <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("                      <tr> \r\n");
      out.write("                        <td><font color=\"#000099\"><img src=\"img/shareforum.gif\" width=\"25\" height=\"25\" align=\"absmiddle\"> \r\n");
      out.write("                          <span class=\"font0\">留言内容:</span></font></td>\r\n");
      out.write("                      </tr>\r\n");
      out.write("                      <tr> \r\n");
      out.write("                        <td align=\"center\"> <textarea name=\"content\" cols=\"55\" rows=\"5\" id=\"content\" style=\"border:1px double rgb(187,185,185);font:9pt\"></textarea> \r\n");
      out.write("                          <font color=\"#FF0000\">*</font> </td>\r\n");
      out.write("                      </tr>\r\n");
      out.write("                    </table></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td align=\"right\"><font color=\"#000099\"><img src=\"img/topicnew.gif\" width=\"16\" height=\"18\" align=\"absmiddle\"><span class=\"font0\"> \r\n");
      out.write("                    性别:</span></font></td>\r\n");
      out.write("                  <td height=\"30\"> <span class=\"font0\">男孩</span> \r\n");
      out.write("                    <input type=\"radio\" name=\"sex\" value=\"0\" checked>\r\n");
      out.write("                    <span class=\"font0\">女孩</span> \r\n");
      out.write("                    <input type=\"radio\" name=\"sex\" value=\"1\"> \r\n");
      out.write("                  </td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"21\" align=\"right\"><font color=\"#000099\"><img src=\"img/topichot2.gif\" width=\"16\" height=\"18\" align=\"absmiddle\"><span class=\"font0\"> \r\n");
      out.write("                    OICQ:</span></font></td>\r\n");
      out.write("                  <td height=\"30\"> <input name=\"qq\" type=\"text\" id=\"qq\" style=\"border:1px double rgb(187,185,185);font:9pt\"> \r\n");
      out.write("                  </td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"21\" align=\"right\"><font color=\"#000099\"><img src=\"img/topichotnonew.gif\" width=\"16\" height=\"18\" align=\"absmiddle\"><span class=\"font0\">Email:</span></font></td>\r\n");
      out.write("                  <td height=\"30\"> <input name=\"email\" type=\"text\" id=\"email\" style=\"border:1px double rgb(187,185,185);font:9pt\"> \r\n");
      out.write("                  </td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td height=\"21\" align=\"right\"><font color=\"#000099\"><img src=\"img/topicnonew.gif\" width=\"16\" height=\"18\" align=\"absmiddle\"> \r\n");
      out.write("                    <span class=\"font0\">主页:</span></font></td>\r\n");
      out.write("                  <td height=\"30\"> <input name=\"http\" type=\"text\" id=\"http\" style=\"border:1px double rgb(187,185,185);font:9pt\" value=\"http://\"> \r\n");
      out.write("                  </td>\r\n");
      out.write("                  <td align=\"center\"> <input type=\"submit\" name=\"Submit\" value=\"提交留言\" style=\"border:1 solid #BBB9B9;background:#ffffff\" class=\"button\"> \r\n");
      out.write("                    <input type=\"reset\" name=\"Submit2\" value=\"取消重写\" style=\"border:1 solid #BBB9B9;background:#ffffff\" class=\"button\"> \r\n");
      out.write("                  </td>\r\n");
      out.write("                </tr>\r\n");
      out.write("              </table></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr valign=\"top\"> \r\n");
      out.write("            <td><table border=\"0\" width=\"650\" cellspacing=\"0\" cellpadding=\"0\" height=\"7\" align=\"center\">\r\n");
      out.write("                <tr> \r\n");
      out.write("                  <td width=\"2%\" align=\"center\"><img src=\"img/end1.gif\" width=\"12\" height=\"14\"></td>\r\n");
      out.write("                  <td width=\"89%\" align=\"center\" background=\"img/end2.gif\"></td>\r\n");
      out.write("                  <td width=\"9%\" align=\"center\"><img src=\"img/end3.gif\" width=\"65\" height=\"14\"></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("              </table></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table>\r\n");
      out.write("        \r\n");
      out.write("      </form></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<br>\r\n");
      out.write("<table width=\"650\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" class=\"tittle0\">\r\n");
      out.write("  <tr> \r\n");
      out.write("    <td height=\"28\" align=\"center\" background=\"img/bg.gif\" class=\"font0\">欢迎使用巧悟留言板</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -