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

📄 noticegamewinnerlist.jsp

📁 学习dwr+struts2+spring进行开发的好例子
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec"%>
<!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>
<title>Notice Game Result List</title>
<link href="../styles/extremeTable.css" rel="stylesheet" type="text/css">
<link href="../styles/extremecomponents.css" rel="stylesheet" type="text/css">
<link href="../styles/global.css" rel="stylesheet" type="text/css">
<script language="javascript">  
  function cuNoticeGameWinner(url){
  	var retValue=new Array();  
  	
  	retValue = window.showModalDialog (url,'','dialogHeight:400px;dialogWidth:600px;center:yes;status:no');
   
    if(retValue == null)
        return ;
    
    with(document){  
    	getElementById('action').value = retValue[0];    
    	getElementById('noticeGameWinner.id').value = retValue[1];   
    	getElementById('noticeGameWinner.name').value = retValue[2];   
    	getElementById('noticeGameWinner.gameId').value = retValue[3];   
    	getElementById('noticeGameWinner.bonus').value = retValue[4];   
    	getElementById('noticeGameWinner.bonusTime').value = retValue[5];   
  	
  		forms[1].submit();  
  	}
  }
  
  function searchNoticeGameWinner(){
    var retValue=new Array();
    
    retValue = window.showModalDialog('NoticeGameWinnerSearch.jsp','','dialogHeight:400px;dialogWidth:600px;center:yes;status:no'); 
    if(retValue == null)
        return ;
    
    with(document.forms[0]){
    	parameter_name.value=retValue[0];    
    	parameter_gameId.value=retValue[1];
    	parameter_fromBonus.value=retValue[2];
    	parameter_toBonus.value=retValue[3];
    	parameter_fromBonusTime.value=retValue[4];
    	parameter_toBonusTime.value=retValue[5];    
    
    	submit();  
    }
  }
</script>
<script type="text/javascript" src="../scripts/extremecomponents.js"></script>
</head>
<body>
<ec:table items="noticeGameWinners" var="item" 
	action="${pageContext.request.contextPath}/NoticeGameWinner/NoticeGameWinnerList.lotteryWeb"
	imagePath="${pageContext.request.contextPath}/images/table/*.gif"
	title="table.noticeGameWinner.head" retrieveRowsCallback="limit" width="600px" rowsDisplayed="10" filterable="true"
	locale="zh_CN">
	<ec:parameter name="parameter_name" />
	<ec:parameter name="parameter_gameId" />
	<ec:parameter name="parameter_fromBonus" />
	<ec:parameter name="parameter_toBonus" />
	<ec:parameter name="parameter_fromBonusTime" />	
	<ec:parameter name="parameter_toBonusTime" />		
	<ec:row highlightRow="true">
		<ec:column property="name" title="table.noticeGameWinner.colum.name" />
		<ec:column property="gameId" title="table.noticeGameWinner.colum.gameId" />
		<ec:column property="bonus" title="table.noticeGameWinner.colum.bonus"  cell="currency" format="###,###,##0.00"/>
		<ec:column property="bonusTime" title="table.noticeGameWinner.colum.bonusTime" cell="date"  format="yyyy-MM-dd HH:mm:ss" />
		<ec:column property="Operate" title="table.noticeGameWinner.colum.Operate" filterable="false" sortable="false" viewsAllowed="html">&nbsp;<a
				href='javascript:cuNoticeGameWinner("NoticeGameWinnerEdit.lotteryWeb?id="+${item.id})'>
			<s:property value="%{getText('global.edit')}" /></a>&nbsp;<a
				href='${pageContext.request.contextPath}/NoticeGameWinner/NoticeGameWinnerRemove.lotteryWeb?id=${item.id}'>
			<s:property value="%{getText('global.delete')}" /></a>&nbsp;</ec:column>
	</ec:row>	
</ec:table>
<a href="javascript:cuNoticeGameWinner('NoticeGameWinnerEdit.jsp');"><s:property value="%{getText('global.add')}" /></a> | <a href="javascript:searchNoticeGameWinner();"><s:property value="%{getText('global.advancedSearch')}" /></a>

<div style="display: none;">
<s:form action="NoticeGameWinnerStore"  method="POST"
	name="noticeGameWinnerStoreForm">	
	<s:hidden name="action" />
	<s:hidden name="noticeGameWinner.id" />
	<s:hidden name="noticeGameWinner.name" />
	<s:hidden name="noticeGameWinner.gameId" />
	<s:hidden name="noticeGameWinner.bonus" />
	<s:hidden name="noticeGameWinner.bonusTime" />
</s:form>
</div>
</body>
</html>

⌨️ 快捷键说明

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