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

📄 afteroperationformcomponentheader.vm

📁 一个webwork+spring+ibatis的小例子
💻 VM
字号:
#set ($afterOperationTitle = $parameters.get('afterOperationTitle'))
#if((!$afterOperationTitle)||($afterOperationTitle==""))
	#set($afterOperationTitle=$action.getText('global.content.process')) 
#end
	
#set ($operationType = $parameters.get('operationType'))
#if(!$operationType) 
	#set($operationType="edit") 
#end

#set ($tableWidth = $parameters.get('tableWidth'))
#if(!$tableWidth) 
	#set($tableWidth="75%") 
#end

#set ($addAction = $parameters.get('addAction'))
#if(!$addAction) 
	#set($addAction="addForm.action") 
#end

#set ($actionName = $parameters.get('actionName'))
#if((!$actionName)||($actionName=="")) 
	#set($actionName="showList.action") 
#end

#set ($returnLabel = $parameters.get('returnLabel'))
#if((!$returnLabel)||($returnLabel=="")) 
	#set($returnLabel = $action.getText('global.operation.returnList')) 
#end

#set ($stop = $parameters.get('stop'))
#if((!$stop)||($stop=="")) 
	#set($stop = 0) 
#end

#set ($formid = $parameters.get('formid'))

#set ($winClose = $parameters.get('winClose'))

#set ($needHiddenParams = $parameters.get('needHiddenParams'))



##-------------------------------------------------------------
##隐藏表单
#bodytag( Component "template=FormComponentHeader.vm" )                          
	#param( "actionName" "$!actionName" ) 
	#param( "formName" "frmHidden" )
	#param( "methodName" "post" )
	#param( "needHiddenParams" "$!needHiddenParams" )
#end
#include("$action.getText('config.templatePath')/FormFooter.vm")

##隐藏表单
#if($operationType=="add")
    #bodytag( Component "template=FormComponentHeader.vm" )                          
    	#param( "actionName" "$!addAction" ) 
    	#param( "formName" "frmHiddenAdd" )
    	#param( "methodName" "post" )
    	#param( "needHiddenParams" "$!needHiddenParams" )
		#param( "formid" "$!formid" )
    #end
#end
#include("$action.getText('config.templatePath')/FormFooter.vm")	


#set($img = $action.getText('config.imgPath'))
	#set ($img = "$img/oa")

#if($winClose == "true")
<SCRIPT LANGUAGE="JavaScript">
<!--
function winClose()
{
	self.opener.location.reload();
	window.close();
}
winClose();
//-->
</SCRIPT>
#end
<TABLE  width=100%  height=100% border="0" cellpadding="0" cellspacing="0">
<TR><TD>
	<table width="400" ALIGN='center' VALIGN='middle'  border="0" cellpadding="0" cellspacing="0">
	  <tr>
		<td width="9" height="8" valign="top"><img src="$img/border_01.gif" width="9" height="8"></td>
		<td height="8" valign="top" background="$img/border_02.gif"></td>
		<td width="7" height="8" valign="top"><img src="$img/border_03.gif" width="7" height="8"></td>
	  </tr>
	  <tr>
		<td width="9" valign="top" background="$img/border_04.gif"></td>
		<td valign="top">
		
		

			<TABLE  border="0" cellpadding="0" cellspacing="0">
			<TR>
				<TD width=150>
					<img src="$img/alert-ok.gif" border=0>
				</TD><TD>
					<span>
						<ol>
						</ol>
						<div align='center'>

#if($operationType=="edit")
	#if($stop != 1)
		<SCRIPT LANGUAGE="JavaScript">
		<!--
		setTimeout("document.frmHidden.submit()",$action.getText('config.refreshTime')); 
		//-->
		</SCRIPT>
	#end
		$afterOperationTitle
		<br>
		<input type="button" class='button' name="btnReturn" value="$!returnLabel"
		#if(($actionName)&&($actionName!=""))
			onclick="document.frmHidden.submit()"
		#else
			onclick="history.back()"
		#end
		>


#elseif($operationType=="add")
	$afterOperationTitle
	<br>
	<input type="button" class='button'  name="btnReturn"  value="$!returnLabel"
	#if(($actionName)&&($actionName!=""))
		onclick="document.frmHidden.submit()"
	#else
		onclick="history.back()"
	#end
	>&nbsp;&nbsp;&nbsp;&nbsp;
	<input type="button" class='button'  name="btnGoOn"  value="$action.getText('global.operation.goOnAdd')" onclick="document.frmHiddenAdd.submit()">
#elseif($operationType=="delete")
	#if($stop != 1)
		<SCRIPT LANGUAGE="JavaScript">
		<!--
		setTimeout("document.frmHidden.submit()",$action.getText('config.refreshTime')); 
		//-->
		</SCRIPT>
	#end
	$afterOperationTitle
	<br>
	<input type="button" class='button' name="btnReturn"  value="$!returnLabel"
	#if(($actionName)&&($actionName!=""))
		onclick="document.frmHidden.submit()"
	#else
		onclick="history.back()"
	#end
	>
#end
					</div>
				</span>
			</TD>
			</TR>
			</TABLE>


		</td>
		<td width="7" valign="top" background="$img/border_04.gif"></td>
	  </tr>
	  <tr>
		<td width="9" height="8" valign="top"><img src="$img/border_05.gif" width="9" height="8"></td>
		<td height="8" valign="top" background="$img/border_02.gif"></td>
		<td width="7" height="8" valign="top"><img src="$img/border_06.gif" width="7" height="8"></td>
	  </tr>
	</table>
  </td></tr>
</table>

⌨️ 快捷键说明

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