📄 clubinsert.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="Wed, 26 Feb 1970 08:21:57 GMT" />
<link href="${pageContext.request.contextPath}/image/main.css" rel="stylesheet" type="text/css">
<title>俱乐部添加</title>
<style type="text/css">
<!--
.STYLE1 {
font-size: 14px;
font-weight: bold;
font-family: "宋体";
}
.STYLE2 {color: #FF0000}
-->
</style>
<script type="text/javascript">
function returns(){
location.href="${pageContext.request.contextPath}/clubmanageAction.do?tag=showclub";
}
function check(){
var tag = true;
if(document.theform.clubname.value == ""){
alert("俱乐部名称不能为空!");
theform.clubname.focus();
tag=false;
return false;
}
if(document.theform.manage.value == ""){
alert("网点管理员不能为空!");
theform.manage.focus();
tag=false;
return false;
}
var num_two = document.theform.phone.value.replace(/\s/g,"");
var numtwo = num_two.replace(/[0-9]/g,"");
if(numtwo.length>0){
alert("您输入的电话号码有误,请重输!");
document.theform.phone.focus();
return false;
}
var phone = document.theform.phone.value.replace(/\s/g,"");
if(phone.length<8){
alert("联系电话不能少于8位数!");
theform.phone.focus();
tag=false;
return false;
}
if(document.theform.servicetype.value == ""){
alert("服务类型不能为空!");
theform.servicetype.focus();
tag=false;
return false;
}
if(tag){
theform.submit();
}
}
</script>
</head>
<body>
<table width="83%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="415" align="center" valign="middle">
<table width="51%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="34" align="center" valign="middle"><span class="STYLE1"> 俱乐部服务体验网点资料添加 </span></td>
</tr>
</table>
<table width="52%" height="319" border="1" cellpadding="0" cellspacing="0" bordercolor="#D71920">
<tr>
<td height="317" align="center" valign="middle">
<html:form action="/clubmanageAction.do?tag=insert" styleId="theform" method="post">
<table width="104%" height="359" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="32%" height="30" align="right" ><span class="STYLE2">*</span>俱乐部名称:</td>
<td width="63%" align="left" >
<html:text property="clubname" styleId="clubname"></html:text> </td>
<td width="5%" > </td>
</tr>
<tr>
<td height="31" align="right" valign="middle" nowrap ><span class="STYLE2">*</span>网点管理员:</td>
<td align="left" valign="middle" nowrap >
<html:text property="manage" styleId="manage"></html:text></td>
<td align="center" valign="middle" nowrap > </td>
</tr>
<tr>
<td height="29" align="right" valign="middle" nowrap >网点地址:</td>
<td align="left" valign="middle" nowrap >
<html:text property="address"></html:text></td>
<td align="center" valign="middle" nowrap> </td>
</tr>
<tr>
<td height="25" align="right" valign="middle" nowrap><span class="STYLE2">*</span> 联系电话:</td>
<td align="left" valign="middle" nowrap >
<html:text property="phone" styleId="phone"></html:text></td>
<td align="center" valign="middle" nowrap> </td>
</tr>
<tr>
<td height="29" align="right" valign="middle" nowrap ><span class="STYLE2">*</span> 服务类型:</td>
<td align="left" valign="middle" nowrap >
<html:select property="servicetype" styleId="servicetype" style="width:150px;">
<html:option value="运动/健身"></html:option>
<html:option value="娱乐/休闲"></html:option>
<html:option value="郊游/旅游"></html:option>
<html:option value="公益/慈善"></html:option>
</html:select></td>
<td align="center" valign="middle" nowrap > </td>
</tr>
<tr>
<td height="34" align="right" valign="middle" nowrap>网点级别:</td>
<td align="left" valign="middle" nowrap >
<html:select property="levels" style="width:150px;">
<html:option value="初出茅庐">初出茅庐</html:option>
<html:option value="初入江湖">初入江湖</html:option>
<html:option value="武林高手">武林高手</html:option>
<html:option value="一代宗师">一代宗师</html:option>
</html:select></td>
<td align="center" valign="middle" nowrap > </td>
</tr>
<tr>
<td height="36" align="right" valign="middle" nowrap >服务内容:</td>
<td rowspan="2" align="left" valign="top" nowrap>
<html:textarea property="function" rows="4"></html:textarea></td>
<td rowspan="2" align="center" valign="middle" nowrap > </td>
</tr>
<tr>
<td height="48" align="center" valign="middle" nowrap> </td>
</tr>
<tr>
<td height="40" colspan="3" align="center" valign="middle" nowrap >
<input type="button" name="Submit" value="提 交" onClick="check();">
<input type="reset" name="Submit2" value="重 置">
<input type="button" name="Submit3" value="返 回" onClick="returns()"></td>
</tr>
</table>
</html:form>
</td>
</tr>
</table></td>
</tr>${requestScope.manage}
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -