<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page isELIgnored="false" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title>
<script language="javascript">
function checkAddForm(){ var text = document.getElementById("merchantType.typeName").value; if(text==""){ alert("请输入发贴内容!"); return false; }else{ document.AddForm.action="AddMerchantType.action"; document.AddForm.submit(); } }
</script>
</head>
<body> <form action="" method="post" name="AddForm"> <table cellpadding="0" cellspacing="0" width="317" height="53"> <tr> <th class="first" colspan=3>添加广告主分组类型</th> </tr> <tr> </tr> <tr> <td>分组名称:</td> <td><input type="text" name="merchantType.typeName" id="" /></td> <td><input type="button" name="" id="" value=" 添加 " onclick="checkAddForm();"/></td> </tr> </table> </form> </body> </html>