📄 employlist.jsp
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!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>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>所有方剂列表</title>
<link href="<%=basePath %>skin/default/default.css" rel="stylesheet" type="text/css" />
<script src="<%=basePath %>js/util.js" language="javascript" type="text/javascript"></script>
<script>
function updateState(state,id){
var str = "";
if(state == '1'){
str = "确定要停止该客户的服务吗?";
}else if(state == '2'){
str = "确定要将该客户加入到会名单中?";
}
if(confirm(str)){
location.href='<%=basePath %>manage/custinfo.do?paramtype=updateState&state=' + state + '&id=' + id;
}
}
</script>
</head>
<body class="mainbody">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td class="tdgriud">首页 >> 客户管理 >> 客户列表</td>
<td class="tdgriud" align="right">
<html:link action="/manage/custinfo?paramtype=initinsert" target="mainframe">新增客户信息</html:link></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tdborder">
<tr>
<td width="8%" class="tdtitle">编号</td>
<td width="10%" class="tdtitle">方名</td>
<td width="10%" class="tdtitle">方源</td>
<td width="10%" class="tdtitle">组方</td>
<td width="10%" class="tdtitle">功用</td>
<td width="10%" class="tdtitle">主治</td>
<td width="10%" class="tdtitle">类别</td>
<td width="24%" class="tdtitle">成分</td>
<td width="8%" class="tdtitle">修改/删除</td>
</tr>
<logic:notEmpty name="custinfolist">
<logic:iterate id="custinfo" name="custinfolist" indexId="index">
<tr onmouseover="TdMouseOver(this);" onmouseout="TdMouseOver(this);">
<td align="center" class="tdbg">
<bean:write name="index"/>
</td>
<td class="tdbg"><bean:write name="custinfo" property="cust_name" /></td>
<td class="tdbg"><bean:write name="custinfo" property="sex_name" /></td>
<td class="tdbg"><bean:write name="custinfo" property="address" /></td>
<td class="tdbg"><bean:write name="custinfo" property="zip" /></td>
<td class="tdbg"><bean:write name="custinfo" property="email" /></td>
<td class="tdbg"><bean:write name="custinfo" property="pay_method" /></td>
<td class="tdbg"><bean:write name="custinfo" property="pay_method" /></td>
<td align="center" class="tdbg">
<button class="btn_detailA" title="详细" onclick="location.href='<%=basePath %>manage/custinfo.do?paramtype=detail&id=<bean:write property="id" name="custinfo"/>'"/>
<button class="btn_updateA" title="编辑" onclick="location.href='<%=basePath %>manage/custinfo.do?paramtype=initupdate&id=<bean:write property="id" name="custinfo"/>'"/>
<button class="btn_updateA" title="停止服务" onclick="updateState('1','<bean:write property="id" name="custinfo"/>')"/>
<button class="btn_detailA" title="加入黑名单" onclick="updateState('2','<bean:write property="id" name="custinfo"/>')"/>
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
</table>
<logic:present name="pagetool">
<bean:write name="pagetool" filter="false"/>
</logic:present>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -