You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.3 KiB
62 lines
2.3 KiB
<%@ page language="java" pageEncoding="UTF-8"%>
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
|
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
<%@ page isELIgnored="false" %>
|
|
|
|
<%
|
|
String path = request.getContextPath();
|
|
%>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<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="<%=path %>/css/base.css" />
|
|
|
|
<script language="javascript">
|
|
function c()//判断是否有菜品类别信息输入
|
|
{
|
|
if(document.formAdd.name.value=="")
|
|
{
|
|
alert("请输入类别名称");
|
|
return false;
|
|
}
|
|
|
|
document.formAdd.submit();//输入菜品类别信息,提交
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body leftmargin="2" topmargin="9" background='<%=path %>/img/allbg.gif'>
|
|
<form action="<%=path %>/catelog?type=catelogAdd" name="formAdd" method="post">
|
|
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
|
|
<tr bgcolor="#E7E7E7">
|
|
<td height="14" colspan="4" background="<%=path %>/img/tbg.gif"> </td>
|
|
</tr>
|
|
<tr align='center' bgcolor="#FFFFFF" height="22">
|
|
<td width="25%" bgcolor="#FFFFFF" align="right">
|
|
类别名称:
|
|
</td>
|
|
<td width="75%" bgcolor="#FFFFFF" align="left">
|
|
<input type="text" name="name" size="40"/>
|
|
</td>
|
|
</tr>
|
|
<tr align='center' bgcolor="#FFFFFF" height="22">
|
|
<td width="25%" bgcolor="#FFFFFF" align="right">
|
|
|
|
</td>
|
|
<td width="75%" bgcolor="#FFFFFF" align="left">
|
|
<input type="button" value="提交" onclick="c()"/>
|
|
<input type="reset" value="重置"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</body>
|
|
</html>
|