WebRoot/shitangxinxi_listxls.jsp

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


<%@ page language="java"  pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
response.setContentType("application/vnd.ms-excel");
response.addHeader("Content-Disposition", "attachment;filename=shitangxinxi.xls");
%>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="connDbBean" scope="page" class="db.db"/>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>模块名称</title>
    

  </head>
<%
String sql;
ResultSet RS_result;
%>
  <body >
  <p>已有模块名称列表:</p>
  

<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="00FFFF" style="border-collapse:collapse">  
  <tr>
    <td width="30" align="center" bgcolor="CCFFFF">序号</td>
    <td bgcolor='#CCFFFF'>食堂编号</td>
    <td bgcolor='#CCFFFF'>食堂名称</td>
    <td bgcolor='#CCFFFF'>地址</td>
    <td bgcolor='#CCFFFF'>电话</td>
    <td bgcolor='#CCFFFF'>负责人</td>
    <td bgcolor='#CCFFFF' width='90' align='center'>照片</td>
    
    <td bgcolor='#CCFFFF'>评分</td>
    
    <td width="138" align="center" bgcolor="CCFFFF">添加时间</td>
    

  </tr>
  <%
 
   sql="";
  sql="select * from shitangxinxi  order by id desc";
  RS_result=connDbBean.executeQuery(sql);
 String id="";
 String shitangbianhao="";
 String shitangmingcheng="";
 String dizhi="";
 String dianhua="";
 String fuzeren="";
 String zhaopian="";
 String beizhu="";
 String pingfen="";
 
 String addtime="";
 int i=0;

后面还有 38 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。