⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendbox.jsp

📁 JiveJdon 3.0不只是一个论坛程序
💻 JSP
字号:
<%@ taglib uri="struts-logic" prefix="logic"%>
<%@ taglib uri="struts-bean" prefix="bean"%>
<%@ taglib uri="struts-html" prefix="html"%>
<%@ taglib uri="struts-tiles" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/MultiPages.tld" prefix="MultiPages"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<bean:define id="title" value="系统消息" />
<link rel="stylesheet" href="<html:rewrite page="/shortmsg_css.jsp"/>"
	type="text/css">
<script language="JavaScript" type="text/javascript">
	<!-- 
		function delAction(radioName){
   		 var isChecked = false;

  		 if (eval("document.forms[0]."+radioName).checked){
          	isChecked = true;
    	 }else{
      	     for (i=0;i<eval("document.forms[0]."+radioName).length;i++){
               if (eval("document.forms[0]."+radioName+ "["+i+"]").checked){
                 isChecked = true;
                 break;
               }
            }
          }
    	if (!isChecked){
      		alert("请选择一个条目");
      		return;
    	}else{
       		if (confirm( 'Delete this order ! \n\nAre you sure ? '))
        	{
              document.forms[0].action="<%=request.getContextPath()%>/account/protected/deletemsgAction.shtml?method=delete"
              document.forms[0].submit();
              return true;
         	}else{
             	 return false;
         	}
   		 }
   	}
	//-->
	</script>
	<center><h3>发件箱</h3></center>
<form action="">
<input type="hidden" name="method" value="delete"/>
	<table class="contacts" cellspacing="0">
		<tr>
			<td class="contactDept"></td>
			<td class="contactDept" align="center">
				标题
			</td>
			<td class="contactDept" align="center">
				发往
			</td>
			<td class="contactDept" align="center">
				时间
			</td>
		</tr>
		<logic:iterate id="message" name="sendListForm" property="list"
			indexId="i">
			<tr>
				<td class="contact" align="center" width="5%">
					<input type="radio" name="msgId"
						value="<bean:write name="message" property="msgId" />">
				</td>
				<td class="contact" align="center" width="30%">
					<html:link
						page="/account/protected/shortmsgInSendBoxAction.shtml?action=edit"
						paramId="msgId" paramName="message" paramProperty="msgId">
						<bean:write name="message" property="messageTitle" />
					</html:link>
				</td>
				<td class="contact" align="center" width="40%">
					<bean:write name="message" property="messageTo" />
				</td>
				<td class="contact" align="center" width="25%">
					<bean:write name="message" property="shortMessageState.sendTime" />
				</td>
			</tr>
		</logic:iterate>
	</table>
	<table cellpadding="4" cellspacing="0" border="0" width="580px">
		<tr>
			<td width="562px">
				<MultiPages:pager actionFormName="sendListForm"
					page="/account/protected/sendListAction.shtml">
					<MultiPages:prev name="[Prev ]" />
					<MultiPages:index />
					<MultiPages:next name="[Next ]" />
				</MultiPages:pager>
			</td>
			<td>
				<logic:notEqual name="sendListForm" property="allCount" value="0">
					<input type="button" name="delete" value="删 除"
						onclick="delAction('msgId')">
				</logic:notEqual>
			</td>
		</tr>
	</table>
</form>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -