📄 userlist.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"
contentType="text/html; charset=UTF-8"%>
<%@ include file="/taglibs.inc.jsp" %>
<html>
<head>
<title>通讯录</title>
</head>
<body>
<form action="searchUser.cst" method="post">
<script language="javascript">
<!--
function doGroupSend() {
var theform = document.forms[0];
var sum=0;
if(theform.chkGroup.length)
{
for(var i=0;i<theform.chkGroup.length;i++)
{
if(theform.chkGroup[i].checked==true)
sum=sum+1;
}
}
else
{
if(theform.chkGroup.checked)
sum=1;
}
if(sum==0)
{
alert("最少选择一项!");
return;
}
else
{
if(confirm("确认?"))
{
theform.action="groupSend.cst";
theform.submit();
}
}
}
// -->
</script>
<div align="center">
<table width="646" border="0">
<caption>通讯录</caption>
<tr>
<td colspan="6">
<input type="button" name="btnGroupSend" value="群发" onclick="doGroupSend()" /></td>
</tr>
<tr>
<td width="65" align="center" bgcolor="#CCFFFF"><strong>选择</strong></td>
<td width="88" align="center" bgcolor="#CCFFFF"><strong>联系人</strong></td>
<td width="213" align="center" bgcolor="#CCFFFF"><strong>邮箱</strong></td>
<td width="213" align="center" bgcolor="#CCFFFF"><strong>手机</strong></td>
</tr>
<c:if test="${contacts!=null}">
<c:forEach items="${contacts}" var="contact">
<tr>
<td><input type="checkbox" name="chkGroup" value="${contact.email}" /></td>
<td>${contact.contactName }</td>
<td>${contact.email }</td>
<td>${contact.mobile }</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${contacts==null}">
<tr><td align="center" colspan="6">没有联系人!</td></tr>
</c:if>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -