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

📄 index_jsp.java

📁 网上服装店 能让用户在该网站上对物品进行上传购买等操作。该设计为原版
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
      out.write("    <td width=\"626\" valign=\"top\">");
      out.write("\r\n");
      out.write("<table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\" bordercolorlight=\"#FCBE3F\" bordercolordark=\"#FFFFFF\" background=\"\"> \r\n");
      out.write("\t\t<tr>  \t\r\n");
      out.write("\t\t<form name=\"form3\" method=\"post\" action=\"user/forward.jsp\">   \r\n");
      out.write("          <td width=\"65%\" height=\"28\" align=\"center\" valign=\"middle\">商品搜索:\r\n");
      out.write("            <select name=\"wtype\" class=\"wenbenkuang\">\r\n");
      out.write("              <option>上衣</option>\r\n");
      out.write("              <option>裤子</option>\r\n");
      out.write("              <option>女裙</option>\r\n");
      out.write("              <option>内衣</option>\r\n");
      out.write("              <option>其它</option>\r\n");
      out.write("            </select>\r\n");
      out.write("          <input name=\"shop\" type=\"text\" class=\"txt_grey\">\r\n");
      out.write("          <input name=\"Submit\" type=\"submit\" class=\"btn_grey\" value=\"搜索\" onClick=\"return check()\">\r\n");
      out.write("          <input name=\"Submit2\" type=\"reset\" class=\"btn_grey\" value=\"重置\"></td> \r\n");
      out.write("\t\t  </form>  \r\n");
      out.write("          <td width=\"35%\" align=\"center\" valign=\"middle\" class=\"bgcolor\" id=\"time\"><script>ShowTime(time);</script></td>\r\n");
      out.write("        </tr>\t\r\n");
      out.write("      </table>");
      out.write("\r\n");
      out.write("        ");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"625\" height=\"\" align=\"center\"   >\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td><img name=\"cplist_01_01\" src=\"image/cplist_01.gif\" width=\"625\" height=\"69\" border=\"0\" alt=\"\" /></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=\"625\" background=\"image/usercenter_02.gif\">\r\n");
      out.write("\t\t<table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"\"> \r\n");
      out.write("      \r\n");
      out.write("\t    ");

		
		String sql="select * from tb_Ware order by Dattime";
		ResultSet rs=con.executeQuery(sql);
		int num=0;
		int count=0;
		int i=1;
		while(rs!=null && rs.next()){
		count++;
		if(count==7){
			break;
		}
		String warename=rs.getString(2);
		String wareprice=rs.getString(3);
		String waretype=rs.getString(4);
		String wareintro=rs.getString(5);
		String img=rs.getString(6);
		if(i%2!=0){
					
      out.write(" \r\n");
      out.write("        <tr> \r\n");
      out.write("          <td width=\"145\" height=\"184\" valign=\"top\"><img src=\"");
      out.print(img);
      out.write("\" width=\"145\" height=\"184\" border=\"0\"></td> \r\n");
      out.write("          <td width=\"167\" align=\"center\" valign=\"top\"> <table width=\"100%\" height=\"184\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" > \r\n");
      out.write("       <tr> \r\n");
      out.write("          <td width=\"49\" height=\"30\" align=\"left\">&nbsp;名称:</td> \r\n");
      out.write("          <td width=\"95\" align=\"left\">");
      out.print(warename);
      out.write("</td>\r\n");
      out.write("        </tr> \r\n");
      out.write("\t\t<tr> \r\n");
      out.write("          <td height=\"30\">&nbsp;类别:</td>\r\n");
      out.write("          <td height=\"30\">");
      out.print(waretype);
      out.write("</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("\t\t<tr> \r\n");
      out.write("          <td height=\"30\">&nbsp;原价:</td>\r\n");
      out.write("          <td height=\"30\">");
      out.print(wareprice);
      out.write("</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td height=\"30\">&nbsp;现价:</td>\r\n");
      out.write("          <td height=\"30\">");
      out.print(wareprice);
      out.write("</td>\r\n");
      out.write("        </tr> \r\n");
      out.write("\t\t <tr> \r\n");
      out.write("           <td height=\"30\"> &nbsp;介绍: </td>\r\n");
      out.write("\t\t   <td height=\"30\">");
      out.print(wareintro);
      out.write("</td>\r\n");
      out.write("\t\t </tr>\r\n");
      out.write("\t\t <tr> \r\n");
      out.write("          <td height=\"30\" colspan=\"2\"><center> \r\n");
      out.write("              <a href=\"user/look.jsp?buy1=");
      out.print(warename);
      out.write("\"><img src=\"images/buy.GIF\" width=\"45\" height=\"20\" class=\"btn_grey\"></a>\r\n");
      out.write("          </center></td> \r\n");
      out.write("        </tr>  \r\n");
      out.write("      </table>\t \t</td>\r\n");
      out.write("          ");

		}else{
		
      out.write("     \r\n");
      out.write("          <td width=\"145\" height=\"184\" valign=\"top\"><img src=\"");
      out.print(img);
      out.write("\" width=\"145\" height=\"184\" border=\"0\"></td> \r\n");
      out.write("          <td width=\"167\" align=\"center\" valign=\"top\"> <table width=\"100%\" height=\"184\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" > \r\n");
      out.write("       <tr> \r\n");
      out.write("          <td width=\"49\" height=\"30\" align=\"left\">&nbsp;名称:</td> \r\n");
      out.write("          <td width=\"95\" align=\"left\">");
      out.print(warename);
      out.write("</td>\r\n");
      out.write("        </tr> \r\n");
      out.write("\t\t<tr> \r\n");
      out.write("          <td height=\"30\">&nbsp;类别:</td>\r\n");
      out.write("          <td height=\"30\">");
      out.print(waretype);
      out.write("</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("\t\t<tr> \r\n");
      out.write("          <td height=\"30\">&nbsp;原价:</td>\r\n");
      out.write("          <td height=\"30\">");
      out.print(wareprice);
      out.write("</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr> \r\n");
      out.write("          <td height=\"30\">&nbsp;现价:</td>\r\n");
      out.write("          <td height=\"30\">");
      out.print(wareprice);
      out.write("</td>\r\n");
      out.write("        </tr> \r\n");
      out.write("\t\t <tr> \r\n");
      out.write("           <td height=\"30\"> &nbsp;介绍: </td>\r\n");
      out.write("\t\t   <td height=\"30\">");
      out.print(wareintro);
      out.write("</td>\r\n");
      out.write("\t\t </tr>\r\n");
      out.write("\t\t <tr> \r\n");
      out.write("          <td height=\"30\" colspan=\"2\"><center> \r\n");
      out.write("              <a href=\"user/look.jsp?buy1=");
      out.print(warename);
      out.write("\"><img src=\"images/buy.GIF\" width=\"45\" height=\"20\" class=\"btn_grey\"></a>\r\n");
      out.write("          </center></td> \r\n");
      out.write("        </tr>  \r\n");
      out.write("      </table>\t \t</td> \r\n");
      out.write("  </tr>\r\n");
      out.write("   ");

		}
		i++;
		}con.close();

      out.write(" \r\n");
      out.write("\t<tr align=\"right\">\r\n");
      out.write("      <td colspan=\"4\"><a href=\"middle.jsp\">更多....</a></td>\r\n");
      out.write("   </tr> \r\n");
      out.write("</table>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td><img name=\"usercenter_03\" src=\"image/usercenter_03.gif\" width=\"625\" height=\"4\" border=\"0\" alt=\"\"></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("</table>");
      out.write("</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<br/>\r\n");
      out.write("\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".tit {font-size: 14px;\r\n");
      out.write("}\r\n");
      out.write(".style1 {color: #000000}\r\n");
      out.write(".style3 {font-size: 14px; font-weight: bold; }\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<table width=\"800\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"30\"  align=\"center\" bgcolor=\"#f7f7f7\"><img src=\"image/pic3.gif\" align=\"absmiddle\" />  <a href=\"index.jsp\">站点首页</a> | <a href=\"about.jsp\">关于我们</a> | <a href=\"\">付款方式</a> | <a href=\"\">购物流程</a> | <a href=\"\">交易条款</a> | <a href=\"\">常见问题</a> | <a href=\"\">法律版权</a> | <a href=\"\">运输说明</a> |  <a href=\"\">售后服务</a> | <a href=\"\">送货方式</a> | <a href=\"\">新闻中心</a> | <a href=\"\">用户留言</a>\r\n");
      out.write("    </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td align=\"right\">联系QQ:267027873  329876120<br/>\r\n");
      out.write("            客服信箱:&nbsp;&nbsp;热线:<br />\r\n");
      out.write("            公司地址:&nbsp;&nbsp;邮编:<br />\r\n");
      out.write("          Copyright&copy;&nbsp;&nbsp;&nbsp;<b></b><br/>         \r\n");
      out.write("    <span class=\"style3\"><a href=\"admin/login.htm\">后台管理登录入口</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write(" \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 + -