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

📄 editdictionary.vm

📁 负责公文的传输及一些处理功能
💻 VM
字号:
<html>
<head>
<title>编辑<%=title%>信息</title>
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/csslib/style.css">
<script Language="JavaScript" src="$request.getContextPath()/jslib/function.js"></script>
<script language="javascript">
function submit_onclick(){
	if (check()){
		thisForm.submit();
	}else{
		return false;
	}
}
function check(){
	var name = thisForm.content.value;
	if (trim(name) == "") {
		alert("请填写$!dictionaryForm.getDescription()!");
		thisForm.content.focus();
		return false;
	}
	if(!checkString(name)){
		alert("$!dictionaryForm.getDescription()不能包含特殊字符!");
		thisForm.content.focus();
	    return false;
	}
	if(name.indexOf('\\') != -1 || name.indexOf(' ') != -1 || name.indexOf(' ') != -1){
  		alert("名称中包含非法字符,请重新输入!");
		thisForm.content.focus();
	  	return false;
	}
	#set ($i=0)
	#foreach($diction in $dictionaryList)
		if(trim(name) == '$!diction.getContent()' && trim(name) != '$!formData.getContent()'){
			alert(name + " 重名,请重新输入!");
			thisForm.content.focus();
			return false;
		}
	#set ($i=$i+1)
	#end
	return true;
}
function  init(){
	thisForm.content.focus();
}
</script>
</head>
<body scroll=no onload="init()">
<form action="$request.getContextPath()/dictionlist.do?method=saveData&codeId=$!dictionaryForm.getId()" method="post" name="thisForm">

<input type=hidden name="fatherId" value="$!dictionaryForm.getId()">
<input type=hidden name="description" value="$!dictionaryForm.getDescription()">
<input type=hidden name="unitId" value="$!unitId">
<input type="hidden" name="id" value="$!formData.getId()">
<br>
<p>&nbsp;&nbsp;<img src="$request.getContextPath()/image/p_you.jpg" width="67" height="57"></p>
<p><br><br>
<hr width="60%" size="1" color=black>
</p><br>
<table width="60%" border="0"  align="center" cellpadding="0" cellspacing="0">
<tr>
  <td align=right><font color="#FF0000">*</font>&nbsp;$!dictionaryForm.getDescription():</td>
  <td>
    <input type="text" name="content" maxlength="12" value="$!formData.getContent()" class="inputStyle1">
  </td>
</tr>
<!--tr>
  <td align=right>&nbsp;描&nbsp;&nbsp;述&nbsp;:</td>
  <td>
    <input type="text" name="descript" maxlength="20" value="" class="inputStyle1">
  </td>
</tr-->
<tr height=20><td colspan=2>&nbsp;</td></tr>
<tr>
  <td colspan="2" align="center">
    <input type=button  onclick="submit_onclick()"  value="确&nbsp;定" >
    &nbsp;&nbsp;
    <input type=button  onclick="return history.back();"   value="取&nbsp;消">
  </td>
</tr>
</table>
<br>
<br>
<p>
<hr width="60%" size="1" color=black>
</p>
<input type="text" name="a" value="" style="display:none">
</form>
</body>
</html>

⌨️ 快捷键说明

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