?? 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 + -