?? editdictionary.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> <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> $!dictionaryForm.getDescription():</td>
<td>
<input type="text" name="content" maxlength="12" value="$!formData.getContent()" class="inputStyle1">
</td>
</tr>
<!--tr>
<td align=right> 描 述 :</td>
<td>
<input type="text" name="descript" maxlength="20" value="" class="inputStyle1">
</td>
</tr-->
<tr height=20><td colspan=2> </td></tr>
<tr>
<td colspan="2" align="center">
<input type=button onclick="submit_onclick()" value="確 定" >
<input type=button onclick="return history.back();" value="取 消">
</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 + -