WebRoot/shangpin/shangpinadd.jsp

(开头部分) 3KB

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

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

<%@ taglib uri="/struts-tags" prefix="s" %>
<%
request.setCharacterEncoding("gb2312");
String path=request.getContextPath();
%>
<html>
<head>
<link href="<%=request.getContextPath()%>/skins/css/main.css" rel="stylesheet" type="text/css">
<title>商品添加</title>
 <script type="text/javascript" src="<%=path %>/js/popup.js"></script>
<script language="javascript">
 function up()
		    {
		        var pop=new Popup({ contentType:1,isReloadOnClose:false,width:400,height:200});
	            pop.setContent("contentUrl","<%=path %>/upload/upload.jsp?name=tp");
	            pop.setContent("title","文件上传");
	            pop.build();
	            pop.show();
	            
		    }
			</script>
<body>
<script language="javascript">
function checkDo(){
if(document.getElementById("sp").value==""){
alert("商品不能为空");
return false;
}

if(document.getElementById("splb").value==""){
alert("商品类别不能为空");
return false;
}

if(document.getElementById("cd").value==""){
alert("产地不能为空");
return false;
}

if(document.getElementById("jg").value==""){
alert("价格不能为空");
return false;
}

if(document.getElementById("ms").value==""){
alert("描述不能为空");
return false;
}

if(document.getElementById("tp").value==""){
alert("图片不能为空");
return false;
}

if(document.getElementById("sftj").value==""){
alert("是否推荐不能为空");
return false;
}
后面还有 93 行代码,购买后查看完整代码

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

AI 解读 AI

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

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