WebRoot/admin/updatepros.jsp

(开头部分) 5KB

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

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.itbaizhan.dao.CommDAO"%>
<%@page import="com.itbaizhan.util.Info"%>
 
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="/foodemarket/admin/commfiles/css/common.css" /> 
	<link rel="stylesheet" type="text/css" href="/foodemarket/admin/commfiles/css/style.css" /> 
	
  </head>
  <%
  
  
    List<HashMap> list = new CommDAO().select("select * from splb where pid='-1' order by id");
    
    HashMap ext = new HashMap();
  ext.put("utype","管理员");
  ext.put("proshop",Info.getUser(request).get("uname").toString());
  String extbei = "";
  for(HashMap mmm:list)
  {
  extbei+=mmm.get("lbname")+"-"+(request.getParameter(mmm.get("lbname").toString())==null?" ":request.getParameter(mmm.get("lbname").toString()))+"@";
  }
  if(extbei.length()>0)extbei=extbei.substring(0,extbei.length()-1);
  ext.put("extbei",extbei);
  new CommDAO().update(request,response,"pros",ext,true,false);
  
  String id = request.getParameter("id");
  HashMap pro = new CommDAO().getmap(id,"pros");
  for(String str:pro.get("extbei").toString().split("@"))
  {
    pro.put(str.split("-")[0],str.split("-")[1]);
  }
   %>
  <body>
  <form name="f1" method="post" action="updatepros.jsp?f=f&id=<%=id %>"  >
  	<!-- cellspacing 是单元格之间的距离、cesspadding 是单元格中内容与边框的距离 -->
  	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="mytab" id="table1">
        <tr align="center">
          <td colspan="3"  background="/foodemarket/admin/commfiles/images/bg.gif"
				bgcolor="#FFFFFF" class="STYLE3">添加商品</td>
        </tr>
        <tr align="center">
          <td width="18%" align="center"> 商品名称</td>
        <td width="62%" align="left"><span class="style1">
      <input name="proname" id="proname"  type="text" size="20"  maxlength="20" /> &nbsp;</span></td>
        <td width="20%" rowspan="4" align="center">
        
        <%=Info.getImgUpInfo2(95) %>        </td>
      </tr>
        <tr align="center">
          <td align="center"> 价格</td>
          <td align="left"><span class="style1">
            <input name="price" id="price"  type="text" size="20" maxlength="20"  />
          </span> </td>
        </tr>
        <tr align="center">
后面还有 76 行代码,购买后查看完整代码

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

AI 解读

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

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