<%@ page language="java" contentType="text/html; charset=UTF-8"		%>
<%@ taglib uri="/WEB-INF/struts-bean.tld"		prefix="bean"		%>
<%@ taglib uri="/WEB-INF/struts-html.tld"		prefix="html"		%>
<%@ taglib uri="/WEB-INF/displaytag-12.tld"		prefix="display"	%>
<%@ taglib uri="/WEB-INF/struts-logic.tld"		prefix="logic" 		%>
<jsp:include page="/ampiere/jsp/common/includeYAHOOUI.jsp" flush="true" /> 
<html>
<head>
	<title><bean:write name="PaymentPrintForm" property="pageTitle"/></title>
	<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/ampiere/css/import.css" />
	<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/ampiere/css/window.css"/>
	<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/ampiere/css/displaytagWithFixedWidth.css" />
	<script type="text/javascript" src="${pageContext.request.contextPath}/ampiere/js/window.js"></script>
	<script type="text/javascript">
		top.document.title='<bean:write name="PaymentPrintForm" property="mainWindowTitle"/>';
	</script>
</head>

<body id="main" onload="" onunload="closeMyChildren();">

<html:form	style	= "margin:0;"
			target	= "_self"
			action	= "/ampiere/PaymentPrintAction.do"
			enctype	= "application/x-www-form-urlencoded"
			method	= "POST"
			onsubmit="document.getElementById('progressMsg').style.display='block'">

<html:hidden name="PaymentPrintForm" property="changedColumn"/>
<input type="hidden" name="PCommand" value="MenuOnOff">


	<table cellspacing="0" width="100%" border="0" cellpadding="0">
	<tr>
		<td>
		<div id="header">
			<h1><bean:write name="PaymentPrintForm" property="pageTitle"/></h1>
		</div>
		</td>

	    <td valign="top" width="18">
	    	<div id="progressMsg" style="padding-top:1px;display:none;">
				<html:img alt="Wait a moment..." align="right" page = "/ampiere/images/Loading-0.gif"/>
	    	</div>
	    </td>
    </tr>
    <tr>
		<td>
			<img	src="/compiere/ampiere/images/MenuOnOff24.gif"
					onmouseout="btnMouseOut('MenuOnOff');"
					class="imgButton"
					id="MenuOnOff"
					name="MenuOnOff"
					onclick="document.PaymentPrintForm.PCommand.value='MenuOnOff';menuSwitch();"
					alt="MenuOnOff"
					onmouseover="btnMouseOver('MenuOnOff');"/>
		</td>
    </tr>
	</table>
</td>
</tr>

<!-- body -->
<div id="body" >
    <table class="popupInfoTable">
    <tr>
    	<td>&nbsp;</td>
    </tr>
    <tr>
    	<td align="center">
		    <table class="windowTable" align="center" cellpadding="5" cellspacing="5">
		    <tr>
			    <td align="right" valign="middle">
			    	<bean:write name='PaymentPrintForm' property='paymentSelectionLabel'/>
			    </td>
			    <td align="left" valign="middle">
			    	<html:select property="paymentSelectionId"
			    				 styleClass="w240"
			    				 onchange="document.PaymentPrintForm.changedColumn.value=this.name;
			    				 		   document.PaymentPrintForm.submit();
			    				 		   ">
			    		<html:optionsCollection	name="PaymentPrintForm"
			    								property="paymentSelectionList"
			    								value="key"
			    								label="value"/>
			    	</html:select>
			    </td>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
			    <td>&nbsp;</td>
			    <td width="100">&nbsp;</td>
		    </tr>
		    <tr>
			    <td align="right" valign="middle">
			    	<bean:write name='PaymentPrintForm' property='bankAccountLabel'/>
			    </td>
			    <td align="right" valign="middle">
			    	<bean:write name='PaymentPrintForm' property='bankAccountName'/>
			    </td>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
			    <td align="right" valign="middle">
			    	<bean:write name='PaymentPrintForm' property='currentBalanceLabel'/>
			    </td>
			    <td align="right" valign="middle">
			    	<bean:write name='PaymentPrintForm' property='currentBalance'/>
			    	<html:hidden name='PaymentPrintForm' property='bankAccountId'/>
			    </td>
		    </tr>
		    <tr>
			    <td align="right" valign="middle">
			    	<bean:write name='PaymentPrintForm' property='paymentRuleLabel'/>
			    </td>
			    <td align="left" valign="middle">
			    	<html:select property="paymentRule"
			    				 styleClass="w240"
			    				 onchange="document.PaymentPrintForm.changedColumn.value=this.name;
			    				 		   document.PaymentPrintForm.submit();
			    				 		   ">
			    		<html:optionsCollection	name="PaymentPrintForm"
			    								property="paymentRuleList"
			    								value="key"
			    								label="value"/>
			    	</html:select>
			    </td>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
			    <td align="right" valign="middle">
			    	<bean:write name='PaymentPrintForm' property='currentCurrencyLabel'/>
			    </td>
			    <td align="right" valign="middle">
			    	<bean:write name='PaymentPrintForm' property='currentCurrency'/>
			    </td>
		    </tr>
		    <tr>
			    <td align="right" valign="middle">
			    	<bean:write name='PaymentPrintForm' property='documentNumberLabel'/>
			    </td>
			    <td align="left" valign="middle">
			    	<html:text	name="PaymentPrintForm"
			    				property="documentNumber"
			    				size="10"/>
			    </td>
			    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
			    <td align="right" valign="middle">
			    	<bean:write name='PaymentPrintForm' property='paymentNumberLabel'/>
			    </td>
			    <td align="right" valign="middle">
			    	<bean:write name='PaymentPrintForm' property='paymentNumber'/>
			    </td>
		    </tr>
		    <tr>
			    <td class="lbl" style="padding-right:5px;" colspan="5">
					<input	id="export"
							name="export"
							type="image"
							src="${pageContext.request.contextPath}/ampiere/images/Export32.png"
							alt="<bean:write name='PaymentPrintForm' property='exportLabel'/>"
							onclick="document.PaymentPrintForm.changedColumn.value=this.name;
	    				 		     document.PaymentPrintForm.submit();
									"/>
					<input	id="print"
							name="print"
							type="image"
							src="${pageContext.request.contextPath}/ampiere/images/Print32.png"
							alt="<bean:write name='PaymentPrintForm' property='printLabel'/>"
							onclick="document.PaymentPrintForm.changedColumn.value=this.name;
			    				 	 document.PaymentPrintForm.submit();
									"/>
					<logic:equal name="PaymentPrintForm" property="paymentRule" value="T">
					<input	id="process"
							name="process"
							type="image"
							src="${pageContext.request.contextPath}/ampiere/images/Process32.png"
							alt="<bean:write name='PaymentPrintForm' property='processLabel'/>"
							onclick="document.PaymentPrintForm.changedColumn.value=this.name;
			    				 	 document.PaymentPrintForm.submit();
									"/>
					</logic:equal>
					<logic:notEqual name="PaymentPrintForm" property="paymentRule" value="T">
					<img	id="process"
							src="${pageContext.request.contextPath}/ampiere/images/Process24D.gif"
							alt="<bean:write name='PaymentPrintForm' property='processLabel'/>
								"/>
					</logic:notEqual>
			    </td>
			</tr>
		    </table>
		</td>
    </tr>
    </table>
</div>
<!-- /body -->
</html:form>
<script type="text/javascript" language="JavaScript1.2">
	<bean:write name="PaymentPrintForm" property="resultInfo" filter="false"/>
</script>
</body>
</html>
