📄 main.vm
字号:
##页面头
#parse("$action.getText('config.templatePath')/Header.vm")
#parse("$action.getText('config.vmPath')/jsvm/date.js.vm")
#hode_color($color)
<!--
<br><br>
strUserAccount = $user.strUserAccount
<br>
strUserPassword = $user.strUserPassword
<br>
strName = $user.strName
<br>
intUnitID = $user.intUnitID
<br>
strUnitName = $user.strUnitName
<br>
intGroupID = $user.intGroupID
<br>
strGroupName = $user.strGroupName
<br>
intRoleID = $user.intRoleID
<br>
strRoleName = $user.strRoleName
<br>
groups =
#foreach($gid in $user.intGroupIDs)
$gid |
#end
<br>
roles =
#foreach($rid in $user.intRoleIDs)
$rid |
#end
<br>
privileges =
#foreach($pid in $user.intPrivilegeIDs)
$pid |
#end
intLineNum = $user.intLineNum
<div align="center">
<h1>$action.getText('global.prj.title')</h1>
</div>
<br>
online user number : $onlineUserList.size()
<br>
online user :
#foreach($userinfo in $onlineUserList)
$userinfo.get(1) |
#end
-->
#macro (hode_subStr8 $str $rtn $length $rtn1)
#set ($stringUtil = $webwork.bean("com.hode.util.common.StringUtil"))
#set ($rtn="")
#if($str!="" && $str.length() > $length)
#set ($rtn1=1)
#set ($rtn = "$stringUtil.substring($str,0,$length)...")
#else
#set ($rtn=$!str)
#set ($rtn1=0)
#end
#end
#macro (oa_getNewBulletinListInfo)
<table width=98% align='center'>
#set ($oaUtil = $webwork.bean("com.hode.oa.action.OAUtil"))
#set ($list1 = $oaUtil.getNewBulletin(10,$!user.intUnitID))
#foreach($i in $list1)
#oa_bulletinLevel($!i.intLevel $intLevel)
<tr>
<td>
#hode_subStr3($!i.strTitle $rtn 25 $rtn1)
$action.getText('global.interpunction.bracket3') [ $intLevel ]
<a href="$action.getText('config.projectName')/oa/bulletin/view.action?objInfo.intID=$i.intID">$!rtn </a></td>
<td>$action.getText('global.interpunction.bracket1') $!i.dtmCreateDateTime $action.getText('global.interpunction.bracket2')
</td></tr>
#end
</table>
#end
#macro (oa_getCardGroupList1)
<table width=98% align='center'>
#set ($oaUtil = $webwork.bean("com.hode.oa.action.OAUtil"))
#set ($list2 = $oaUtil.getCardGroupList())
#foreach($i in $list2)
<tr>
<td height="20"> <img src="$action.getText('config.imgPath')/main$user.intTemplate/menu5.gif" width="11" height="11">
<a style="cursor:hand" onclick="openURL('$action.getText('config.projectName')/oa/callingcardgroup/leftTreeForCard.action','$action.getText('config.projectName')/oa/callingcard/showList.action?objSearch.intGroupID=$i.intID','')">$!i.strName</a>
</td></tr>
#end
</table>
#end
##-------------------------------------------------------------
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="$color.get(4)" height="1"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="$color.get(4)" width="204" valign="top">
<table width="201" border="0" cellspacing="1" cellpadding="0" bgcolor="$color.get(2)">
<tr>
<td height="22">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" width="27%"><img src="$action.getText('config.imgPath')/main$user.intTemplate/menu3.gif" width="15" height="12"></td>
<td width="73%" class="bigwhite"> $action.getText('oa.main.schedule')</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="$color.get(4)">
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#FFFFFF">
<tr bgcolor="$action.getText("config.template.color${user.intTemplate}.5")" height="24">
<script language="JavaScript">
fDrawCal(giYear, giMonth, 8, '10');
</script>
</tr>
</table>
<script language="JavaScript">
//alert("giYear()="+giYear+";giMonth()="+giMonth+";getDate()=");
//alert(giMonth);
fUpdateCal(giYear,giMonth,1)
</script>
</td>
</tr>
</table>
<br>
<table width="201" border="0" cellspacing="1" cellpadding="0" bgcolor="$color.get(2)">
<tr>
<td height="22">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" width="27%"><img src="$action.getText('config.imgPath')/main$user.intTemplate/menu3.gif" width="15" height="12"></td>
<td width="73%" class="bigwhite"> $action.getText('oa.main.message')</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="$color.get(4)">
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#FFFFFF">
<tr bgcolor="$color.get(4)">
<td bgcolor="$color.get(4)" height="20"> <img src="$action.getText('config.imgPath')/main$user.intTemplate/menu5.gif" width="11" height="11"> <a style="cursor:hand" onclick="openURL('$action.getText('config.projectName')/oa/message/leftTree.action','$action.getText('config.projectName')/oa/message/addForm.action','')">$action.getText('oa.message.menu.newMsg')</a></td>
</tr>
<tr bgcolor="$color.get(4)">
<td bgcolor="$color.get(4)" height="20"> <img src="$action.getText('config.imgPath')/main$user.intTemplate/menu5.gif" width="11" height="11"> <a style="cursor:hand" onclick="openURL('$action.getText('config.projectName')/oa/message/leftTree.action','$action.getText('config.projectName')/oa/message/showReceiveList.action','')">$action.getText('oa.message.menu.receivList')</a></td>
</tr>
<tr bgcolor="$color.get(4)">
<td bgcolor="$color.get(4)" height="20"> <img src="$action.getText('config.imgPath')/main$user.intTemplate/menu5.gif" width="11" height="11"> <a style="cursor:hand" onclick="openURL('$action.getText('config.projectName')/oa/message/leftTree.action','$action.getText('config.projectName')/oa/message/showSentList.action','')">$action.getText('oa.message.menu.sentList')</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width="201" border="0" cellspacing="1" cellpadding="0" bgcolor="$color.get(2)">
<tr>
<td height="22">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" width="27%"><img src="$action.getText('config.imgPath')/main$user.intTemplate/menu3.gif" width="15" height="12"></td>
<td width="73%" class="bigwhite"> $action.getText('oa.main.callingCard')</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="$color.get(4)">
#oa_getCardGroupList1()
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -