📄 hodesysui.vm
字号:
####################获取图片目录
#macro(hodeSysUI_imgPath $img)
#set($img = $action.getText("config.imgPath"))
#end
####################用户登陆的皮肤颜色
#macro(hodeSysUI_color $color)
#if ( $!{user.intTemplate} )
#set( $intTemplate = ${user.intTemplate} )
#else
#set( $intTemplate = 1 )
#end
#set($c1 = $action.getText("config.template.color${intTemplate}.1"))
#set($c2 = $action.getText("config.template.color${intTemplate}.2"))
#set($c3 = $action.getText("config.template.color${intTemplate}.3"))
#set($c4 = $action.getText("config.template.color${intTemplate}.4"))
#set($c5 = $action.getText("config.template.color${intTemplate}.5"))
#set($color = [$c1,$c2,$c3,$c4,$c5])
#end
####################list列表的检索Table
#macro(hodeSysUI_TableBeginSearch )
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" align="center" bgcolor="$!color.get(4)" id="searchAreaId" style="display:none">
#bodytag( Component "template=Tpl_FormHeaderCom.vm" )
#param( "formName" "frmSearch" )
#param( "needHiddenParams" "false" )
#end
#end
####################table结束标志
#macro(hodeSysUI_TableEnd)
</table>
#end
####################主体列表区表头
#macro(hodeSysUI_MainBodyHeader $isNeedForm $methodType)
#hodeSysUI_color($color)
#if(($isNeedForm =="yes") || ($isNeedForm ==1))
#if($methodType == "")
#set($methodType = "post")
#end
<TABLE width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="$color.get(2)">
#bodytag( Component "template=Tpl_FormHeaderCom.vm" )
#param( "actionName" "" )
#param( "formName" "frmMainList" )
#param( "methodName" $methodType )
#param( "needHiddenParams" "true" )
#end
#hodeSysHTMLUI_htmlHidden("objInfo.intID" "")
#else
<TABLE width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="$color.get(2)">
#end
#end
####################主体列表区表尾
#macro(hodeSysUI_MainBodyFoot $isNeedForm)
#if(($isNeedForm =="yes") || ($isNeedForm ==1))
#parse("$action.getText('config.templatePath')/Tpl_FormFooter.vm")
#end
</table>
#end
####################list列表的检索Table的TR
#macro(hodeSysUI_TrBeginSearch)
#hodeSysUI_color($color)
<TR height='30' bgcolor="$!color.get(4)">
#end
####################list列表的主区域的信息对于的标题
#macro(hodeSysUI_TrBeginMainTitle)
#hodeSysUI_color($color)
<TR ALIGN="center" CLASS="9p" BGCOLOR="$color.get(3)" HEIGHT="25">
#end
####################list列表的主区域的信息TR
#macro(hodeSysUI_TrBeginMainBody)
#hodeSysUI_color($color)
#set($onMouseOverColor = $color.get(3))
#set($onMouseOutColor = $color.get(4))
<TR BGCOLOR="$color.get(4)" CLASS="td-content" HEIGHT="24" ALIGN="center" OnMouseOver="this.style.backgroundColor='$onMouseOverColor'" OnMouseOut="this.style.backgroundColor='$onMouseOutColor'">
#end
####################TR结束标志
#macro(hodeSysUI_TrEnd)
</TR>
#end
####################TD开始标志
#macro(hodeSysUI_TdStart $colspan $rowspan)
<TD #if($colspan!="")colspan="$colspan"#end #if($rowspan!="")rowspan="$rowspan"#end>
#end
####################TD结束标志
#macro(hodeSysUI_TdEnd)
</TD>
#end
####################list列表的主区域的信息TD
#macro(hodeSysUI_TdMainBody $content $align $width $size)
#if($size>0)
#hodeSysUI_subStr3($!content $rtn $size $rtn1)
#if($rtn1==1)
#hodeSysBean_htmlSpecChars($content $rtn2)
<TD #if($align!="")ALIGN="$align"#end #if($width!="")WIDTH="$!width"#end title="$rtn2">$rtn</TD>
#else
<TD #if($align!="")ALIGN="$align"#end #if($width!="")WIDTH="$!width"#end>$rtn</TD>
#end
#else
<TD #if($align!="")ALIGN="$align"#end #if($width!="")WIDTH="$!width"#end>$!content</TD>
#end
#end
####################list列表的主区域的信息对于的标题的全选
#macro(hodeSysUI_TdCheckBoxMainTitle)
<TD WIDTH="25">#hodeSysHTMLUI_htmlCheckbox("" "" "" " $action.getText('global.operation.selectTitle') " 0 "selectAll(document.frmMainList.elements['objInfo.intIDList'],this)" "")</TD>
#end
####################list列表的主区域的信息
#macro(hodeSysUI_TdCheckBoxMainBody $isDisabled)
<TD WIDTH="center">
#hodeSysHTMLUI_htmlCheckbox( "objInfo.intIDList" "$objInfo.intID" "" "" $isDisabled "" "" )
</TD>
#end
####################list列表的主区域的信息的修改按钮
#macro(hodeSysUI_TdMainEdit $intIsDelete $title $actionName $msg $ids $vals $target)
#hodeSysUI_imgPath($img)
#if($actionName=="")
#set($actionName = "editForm.action")
#end
<TD ALIGN="center">
#if(($intIsDelete==2)||($intIsDelete==0))
#if($ids=="")
#set($ids = "''")
#end
#if($vals=="")
#set($vals = "''")
#end
#hodeSysHTMLUI_htmlImgBtn1("${img}/oa/opt_edit.gif" "editDoc(document.frmMainList,'$!actionName','$!objInfo.intID','$!msg',$!ids,$!vals,'$!target')" $!title 1)
#else
#end
</TD>
#end
####################list列表的主区域的信息不足而填充
#macro(hodeSysUI_fillMain $col)
#hodeSysUI_color($color)
#if($user.intLineNum > $intNowCount)
#set( $row = $user.intLineNum - $intNowCount )
#foreach($i in [1..$row])
<TR BGCOLOR="$color.get(4)" CLASS="td-content" HEIGHT="24" ALIGN="center">
#foreach($i in [1..$col])
<TD> </TD>
#end
</TR>
#end
#end
#end
####################左框架的上部分
#macro(hodeSysUI_leftFrameHeader $title $tblHeight)
#set($tblWidth="160")
#if((!$tblHeight)||($tblHeight==""))
#set($tblHeight="200")
#end
#if((!$title)||($title==""))
#set($title=" ")
#end
#hodeSysUI_color($color)
<TABLE width="$!tblWidth" border="0" cellspacing="1" cellpadding="0" bgcolor="$!color.get(2)">
<TR>
<TD height="12">
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD bgcolor="$!color.get(2)" width="10" class="white"> </TD>
<TD bgcolor="$!color.get(2)" colspan="2" class="white" height="22" id="leftTitleId">$!title</TD>
</TR>
<TR valign="top">
<TD width="10" height="$tblHeight" bgcolor="$!color.get(4)"> </TD>
<TD width="140" height="$tblHeight" class="white" bgcolor="$!color.get(4)">
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="9p">
<TR>
<TD colspan="3"> </TD>
</TR>
#end
####################左框架的下部分
#macro(hodeSysUI_leftTblFooter $tblHeight)
#if((!$tblHeight)||($tblHeight==""))
#set($tblHeight="200")
#end
#hodeSysUI_color($color)
</TABLE>
</TD>
<TD width="10" class="white" height="$!tblHeight" bgcolor="$!color.get(4)"> </TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
#end
####################添加、修改界面的Form头
#macro(hodeSysUI_EditBodyHeader $actionName $onSubmit $methodType $isNeedMultipart)
#if($methodType == "")
#set($methodType = "post")
#end
#hodeSysUI_color($color)
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="$color.get(4)">
#bodytag( Component "template=Tpl_FormHeaderCom.vm" )
#param( "formName" "frmOperation")
#param( "needHiddenParams" "true" )
#param( "actionName" "$!actionName")
#param( "onSubmit" "$!onSubmit" )
#param( "formid" "frmOperation" )
#param( "methodName" $methodType )
#if($isNeedMultipart == 1 )
#param( "enctype" "multipart/form-data" )
#end
#end
<TR>
<TD>
#end
####################添加、修改界面的Form尾
#macro(hodeSysUI_EditBodyFoot $optArr)
#hodeSysUI_color($color)
#if($optArr.size()>=1)
<TABLE width="100%" align="center" border="0" cellspacing="0" cellpadding="0" bgcolor="$color.get(4)" id="optPage">
<TR>
<TD bgcolor="$color.get(3)" height="30" class="white10p" align="center">
#foreach($i in [1..$optArr.size()])
#set($thisID = $i - 1 )
#if($optArr.get($thisID) == "save" )
<INPUT TYPE="submit" class="button" value="$action.getText('global.operation.save')" id="btnSubmit" name="btnSubmit">
#elseif($optArr.get($thisID) == "reset" )
<INPUT TYPE="submit" class="button" value="$action.getText('global.operation.reset')" id="btnSubmit" name="btnSubmit">
#elseif($optArr.get($thisID) == "del" )
<INPUT TYPE="submit" class="button" value="$action.getText('global.operation.del')" id="btnSubmit" name="btnSubmit">
#elseif($optArr.get($thisID) == "close" )
<INPUT type="button" class="button" value="$action.getText('global.operation.close')" id="btnClose" name="btnClose" onclick="window.close()">
#elseif($optArr.get($thisID) == "cancel" )
<INPUT TYPE="button" class="button" id="btnCancel" name="btnCancel" value="$action.getText('global.operation.return')" onclick="history.back()">
#elseif($optArr.get($thisID) == "selectall" )
<INPUT TYPE="button" class="button" value="$action.getText('global.operation.selectTitle')" id="btnSubmit" name="btnSubmit" onclick="selectAll2($checkBoxName)">
#end
#end
</TD>
</TR>
</TABLE>
#end
</TD>
</TR>
#parse("$action.getText('config.templatePath')/Tpl_FormFooter.vm")
</TABLE>
#end
#macro(hodeSysUI_EditMainBodyStart $id $display )
<TABLE border="0" align="center" cellspacing="2" cellpadding="4" id="" style="display:" bgcolor="#ffffff">
#end
#macro(hodeSysUI_EditMainBodyEnd $id $display )
</TABLE>
#end
####################显示Text文本区域,主要用在添加和修改界面
#macro(hodeSysUI_showText $id $label $colspan $necessary $name $value $size $maxlength $readonly )
#set($asterisk = $action.getText('global.interpunction.asterisk'))
#set($colon = $action.getText('global.interpunction.colon'))
<TD width="120" align="right" id="$id">#if($necessary=="yes") $asterisk #end$label${colon}</TD>
<TD colspan=$colspan>
#hodeSysHTMLUI_htmlText("$name" "$value" "$maxlength" "$size" "$readonly" )
</TD>
#end
####################显示TextArea文本区域,主要用在添加和修改界面
#macro(hodeSysUI_showTextArea $id $label $colspan $necessary $name $value $rows $cols $readonly)
#set($asterisk = $action.getText('global.interpunction.asterisk'))
#set($colon = $action.getText('global.interpunction.colon'))
<TD width="120" align="right" id="$id">#if($necessary=="yes") $asterisk #end$label${colon}</TD>
<TD colspan=$colspan>
#hodeSysHTMLUI_htmlTextArea("$name" "" "$value" "$rows" "$cols" "$readonly" 0)
</TD>
#end
####################显示File文本区域,主要用在添加和修改界面
#macro(hodeSysUI_showFile $id $label $colspan $necessary $name $value)
#set($asterisk = $action.getText('global.interpunction.asterisk'))
#set($colon = $action.getText('global.interpunction.colon'))
<TD width="120" align="right" id="$id">#if($necessary=="yes") $asterisk #end$label${colon}</TD>
<TD colspan=$colspan>
#hodeSysHTMLUI_htmlFile("$name" "$value")
</TD>
#end
####################显示Password文本区域,主要用在添加和修改界面
#macro(hodeSysUI_showPassword $id $label $colspan $necessary $name $value $readonly)
#set($asterisk = $action.getText('global.interpunction.asterisk'))
#set($colon = $action.getText('global.interpunction.colon'))
<TD width="120" align="right" id="$id">#if($necessary=="yes") $asterisk #end$label${colon}</TD>
<TD colspan=$colspan>
#hodeSysHTMLUI_htmlPassword("$name" "$value")
</TD>
#end
####################显示WebEditor文本区域,主要用在添加和修改界面
#macro(hodeSysUI_showEditor $id $label $colspan $necessary $name $value $style $width $height)
#set($asterisk = $action.getText('global.interpunction.asterisk'))
#set($colon = $action.getText('global.interpunction.colon'))
<TD width="120" align="right" id="$id">#if($necessary=="yes") $asterisk #end$label${colon}</TD>
<TD colspan=$colspan>
#hodeSysHTMLUI_htmlTextArea( "$name" "content1" "$!value" "0" "0" "" 1)
#if($style=="advance")
<IFRAME ID="eWebEditor1" src="$action.getText('config.projectName')/webeditor/webeditorAdvance.action?sContentID=content1" frameborder="0" scrolling="no" width="$width" height="$height"></IFRAME>
#elseif($style=="standard")
<IFRAME ID="eWebEditor1" src="$action.getText('config.projectName')/webeditor/webeditorStandard.action?sContentID=content1" frameborder="0" scrolling="no" width="$width" height="$height"></IFRAME>
#elseif($style=="mini")
<IFRAME ID="eWebEditor1" src="$action.getText('config.projectName')/webeditor/webeditorMini.action?sContentID=content1" frameborder="0" scrolling="no" width="$width" height="$height"></IFRAME>
#elseif($style=="view")
<IFRAME ID="eWebEditor1" src="$action.getText('config.projectName')/webeditor/webeditorView.action?sContentID=content1" frameborder="0" scrolling="no" width="$width" height="$height"></IFRAME>
#else
<IFRAME ID="eWebEditor1" src="$action.getText('config.projectName')/webeditor/webeditorEasy.action?sContentID=content1" frameborder="0" scrolling="no" width="$width" height="$height"></IFRAME>
#end
</TD>
#end
####################显示文字文本区域,主要用在添加和修改界面
#macro(hodeSysUI_showMsg $msg $colNum $alignType $isBold)
#if($alignType=="")
#set($alignType="center")
#end
<TD align="$alignType" colspan='$!colNum'>
#if($isBold==1)
<b>$!msg</b>
#else
$!msg
#end
</TD>
#end
#macro(hodeSysUI_showPage $actionName $formName $deleteConfirm $addBtn $delBtn $returnBtn $prtBtn $needPagination )
##包含功能操作区与分页区
#bodytag( Component "template=Tpl_MainBtnPageCom.vm" )
#param( "addBtn" "$!addBtn" )
#param( "addBtnTitle" "$action.getText('rbac.group.operation.add')" )
#param( "addBtnOnClick" "addDoc(document.frmMainList,'addForm.action','',new Array('objSearch.intID'),new Array('$!objSearch.intID'))" )
#param( "delBtn" "$!delBtn" )
#param( "returnBtn" "$!returnBtn" )
#param( "prtBtn" "$!prtBtn" )
#param( "delBtnTitle" "$action.getText('global.operation.delete')" )
#param( "delBtnOnClick" "deleteDoc(document.frmMainList,'del.action','','$!deleteConfirm')" )
#param( "formName" $formName )
#param( "actionName" $actionName )
#param( "needHiddenParams" "true" )
#param( "needPagination" $needPagination)
#end
#end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -