📄 editdictionarystate.vm
字号:
<html>
<head>
<title>字典维护列表</title>
<link rel="stylesheet" href="$request.getContextPath()/csslib/style.css" type="text/css">
<script Language="JavaScript" src="$request.getContextPath()/jslib/FloatButton.js"></script>
<script language="javascript" src="$request.getContextPath()/jslib/function.js"></script>
<script language="javascript">
var arr = new Array();
#set($k=0)
#foreach($dictionary in $list)
arr[$k] = new Array('$dictionary.getId()','$dictionary.getState()');
#set($k=$k+1)
#end
function change(id,state){
for(var j=0;j<arr.length;j++){
if(arr[j][0]==id){
arr[j][1]=state;
}
}
}
function submit_onclick(){
var diction_T = "";
var diction_F = "";
for(var l=0;l<arr.length;l++){
if(arr[l][1]=="T"){
diction_T=diction_T+arr[l][0]+',';
}else{
diction_F=diction_F+arr[l][0]+',';
}
}
// alert("diction_T="+diction_T);
// alert("diction_F="+diction_F);
location='$request.getContextPath()/dictionlist.do?method=saveState&diction_T=' + diction_T + '&diction_F=' + diction_F;
}
</script>
</head>
<body>
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" background="$request.getContextPath()/image/4_bar.gif">
<tr height=30>
<td> </td>
<td width="160" colspan=2><font face="宋体, 新宋体">用户字典列表</font></td>
<td align="right">
<button onclick="submit_onclick()" accesskey="R">修改(R)</button>
</td>
</tr>
<tr><td height=1 bgcolor="#FFFFFF" colspan=10> </td></tr>
</table>
<table width="98%" align="center" cellpadding="0" cellspacing="0" border="1" bordercolordark="#BEC3ED" bordercolorlight="#BEC3ED">
<tr height=26 style="background:url($request.getContextPath()/image/table_title.gif)" align="center">
<td nowrap width=15%><font color=white>序号</font></td>
<td nowrap width=50%><font color=white>名称</font></td>
<td nowrap width=20%><font color=white>状态</font></td>
</tr>
#set ($i=1)
#foreach($diction in $list)
<tr height=23 align="center" bgcolor="$page.getOddRowColor()">
<td align="center">$i</td>
<td align="center">$!diction.getDescription()</td>
<td align="center"><select name="state" onchange="change('$!diction.getId()',this.value)" style="padding:0; width: 65; height: 51; background-color:#DEDFDE; font-size:9pt" >
<option value="T" #if($!diction.getState()=="T")selected #end>已激活</option>
<option value="F" #if($!diction.getState()=="F")selected #end>屏蔽</option>
</select>
</td>
</tr>
<tr></tr>
#set ($i=$i+1)
#end
</table>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -