📄 clubup.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ 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"%>
<%@ include file="../../common/common.jsp"%>
<%@ page import="com.dc.common.*"%>
<%
String RenCode = (String) session.getAttribute(SysConstant.RETCODE);
%>
<html:html>
<head>
<title>会员修改</title>
<link href="<%=request.getContextPath()%>/css/style.css"
rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<script language="javaScript"
src="<%=request.getContextPath()%>/scripts/check.js"></script>
</head>
<script language="javascript">
window.name="_window_hotel";
</script>
<%
if (RenCode != null) {
if (SysConstant.SUCRETCODE.equals(RenCode)) {
%>
<script language="javascript">
alert("会员信息修改成功!");
</script>
<%
} else {
%>
<script language="javascript">
alert("会员信息修改失败,请联系管理员!");
</script>
<%
}
session.removeAttribute(SysConstant.RETCODE);
}
%>
<body class="navtree">
<html:form action="/HoteOrderDetailAction" method="post"
target="_window_hotel">
<html:hidden property="HotelForm" property="clubinfo.clubId" />
<table cellpadding="1" cellspacing="0" class="nav01">
<tr>
<td>
<img src="<%=request.getContextPath()%>/images/b1.gif" width="12"
height="12" />
您现在的位置:酒店餐饮管理>>会员修改
<br>
</td>
</tr>
</table>
<html:errors />
<table id="info" border="1" bordercolor="#7FB0DE"
bordercolordark="#ffffff" cellpadding="1" cellspacing="0"
class="content01">
<tr class="listHead">
<td align=left colspan=8>
会员信息
</td>
</tr>
<tr class="listContent">
<td align=right>
<font color="red">*</font>会员名称:
</td>
<td>
<html:text name="HotelForm" property="clubinfo.clubName"
maxlength="29" />
</td>
<td align=right>
<font color="red">*</font>会员卡号:
</td>
<td>
<html:text name="HotelForm" property="clubinfo.clubCardid"
maxlength="25" />
</td>
<td align=right>
<font color="red">*</font>会员电话:
</td>
<td align=left>
<html:text name="HotelForm" property="clubinfo.clubPhone"
maxlength="20" />
</td>
<td align=right>
<font color="red">*</font>会员职业:
</td>
<td align=left>
<html:text name="HotelForm" property="clubinfo.clubcareer"
maxlength="30" />
</td>
</tr>
<tr class="listContent">
<td align=right>
会员性别:
</td>
<td colspan="1">
<html:select name="HotelForm" property="clubinfo.clubsex"
style="width:100">
<html:option value="0">男</html:option>
<html:option value="1">女</html:option>
</html:select>
</td>
<td align=right>
<font color="red">*</font>单位:
</td>
<td>
<html:text name="HotelForm" property="clubinfo.clubUnit"
maxlength="30" />
</td>
<td align=right>
<font color="red">*</font>级别名称:
</td>
<td>
<html:text name="HotelForm" property="clubinfo.clubLevelName"
maxlength="30" />
</td>
<td align=right>
<font color="red">*</font>爱好:
</td>
<td>
<html:text name="HotelForm" property="clubinfo.clubLove"
maxlength="30" />
</td>
</tr>
<tr>
<td align=right>
<font color="red">*</font>积分:
</td>
<td>
<html:text name="HotelForm" property="clubinfo.clubscroe"
maxlength="7" style="width:100" />
</td>
<td align=right>
其他信息:
</td>
<td align=left colspan=5>
<html:text name="HotelForm" property="clubinfo.remark"
maxlength="128" />
</td>
</tr>
<tr class="listContent">
<td align=left colspan=8>
<input type=button class=save onClick="doSave();" />
<input type=button class=cancel onClick="window.close();" />
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
<script language="javascript">
function doSave(){
var items = new CheckItem();
items.add("0|1|clubinfo.clubName|会员名称|-1");
items.add("0|1|clubinfo.clubCardid|会员卡号|-1");
items.add("5|1|clubinfo.clubPhone|会员电话|-1");
items.add("0|1|clubinfo.clubLevelName|级别名称|-1");
if(!checkForm(document.forms[0],items))
return false;
document.forms[0].action="HoteOrderDetailAction.do?method=ClubInfoUpdateInfo";
document.forms[0].submit();
}
var oldValue,oldText;
//select下拉框的onkeydown事件,修改下拉框的值
function catch_keydown(sel)
{
switch(event.keyCode)
{
case 13: //回车键
event.returnValue = false;
break;
case 27: //Esc键
sel.options[sel.selectedIndex].text = oldText;
sel.options[sel.selectedIndex].value = oldValue;
event.returnValue = false;
break;
case 8: //空格健
var s = sel.options[sel.selectedIndex].text;
s = s.substr(0,s.length-1);
if (sel.options[sel.selectedIndex].value==sel.options[sel.selectedIndex].text)
{
sel.options[sel.selectedIndex].value=s;
sel.options[sel.selectedIndex].text=s;
}
event.returnValue = false;
break;
}
if (!event.returnValue && sel.onchange)
sel.onchange(sel)
}
//select下拉框的onkeypress事件,修改下拉框的值
function catch_press(sel){
if(sel.selectedIndex>=0){
var s = sel.options[sel.selectedIndex].text + String.fromCharCode(event.keyCode);
if (sel.options[sel.selectedIndex].value==sel.options[sel.selectedIndex].text)
{
sel.options[sel.selectedIndex].value=s;
sel.options[sel.selectedIndex].text=s;
}
event.returnValue = false;
if (!event.returnValue && sel.onchange)
sel.onchange(sel)
}
}
//select下拉框的onfocus事件,保存下拉框原来的值
function catch_focus(sel) {
oldText = sel.options[sel.selectedIndex].value;
oldValue = sel.options[sel.selectedIndex].value;
}
//恢复select下拉列表当前选中的值
function LoadSelect(obj,value)
{
for (var i=0; i< obj.options.length; i++)
if (obj.options[i].value == value)
{
obj.selectedIndex = i;
break;
}
}
//select 选择框鼠标上移时提示选择的内容
function selMouseOver(obj)
{
with (document.all.div_hint)
{
innerText = obj.options[obj.selectedIndex].text;
if (innerText.length > 0)
{
innerText = " " + innerText + " ";
style.display = "block";
style.left = event.clientX + 16;
style.top = event.clientY;
}
}
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -