WebRoot/admin/foodsearch.jsp

(开头部分) 4KB

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

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="t.o.bean.foodBean" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	if(session.getAttribute("adminName")==null){
	response.getWriter().write("<script language='JavaScript'>" +
			"window.open('login.jsp',target='_top');" + 
			"</script>"
			);
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'foodchange.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
    <LINK href="admin/css/admin.css" type="text/css" rel="stylesheet">
    <script type="text/javascript">
    	function searchf(){
	    	var foodtype = document.getElementById("foodtype").value;
	    	var food = document.getElementById("foodsearch").value;
	    	if(food==""){
	    		alert("查找信息不能为空!!!");
	    	}
	    	else{
	    		document.form1.action =  "<%=basePath %>foodchange";  
	    		document.form1.submit();
	    	}
    	}
    	function searchfood(object){
    		window.location.href("<%=basePath %>foodchange?food_type="+object.id);
    	}
    	function change(object){
  			window.location.href("foodchange?foodno=" + object.id); 
  			//alert("修改"+object.id);
	  	}
	  	function deletea(object){
	  		if (confirm('确定删除'+object.id)){
	  			window.location.href("<%=basePath %>foodchange?delete="+object.id);
	  		}
	  	}
    </script>
<body>
<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
  <TR height="28">
后面还有 55 行代码,购买后查看完整代码

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

AI 解读

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

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