📄 edit.asp
字号:
return false;
}
if (document.submitinput.vguige.value.length>50)
{
alert("对不起,您输入的物品类别不符合定义格式,请重新输入!");
document.submitinput.vguige.focus();
return false;
}
if (document.submitinput.vstyle.value.length>255)
{
alert("对不起,您输入的物品规格不符合定义格式,请重新输入!");
document.submitinput.vstyle.focus();
return false;
}
if (document.submitinput.vlevel.value.length>10)
{
alert("对不起,您输入的物品等级字符数超过最大限制,请重新输入!");
document.submitinput.vlevel.focus();
return false;
}
MM_validateForm('vcount','','RisNum');
if(document.MM_returnValue)
{
document.submitinput.submit();
};
return false;
rphtml('vname','vplace','vstyle','vlevel','vguige','vtext');
document.submitinput.submit();
}
function setname(ifrom,ito1,ito2)
{ if(document.all(ifrom).value!='')
{
temp=document.all(ifrom).value.split('^')
document.all(ito1).value=temp[0]
document.all(ito2).value=temp[1]
document.submitinput.vcount.focus();
}}
function showdetail()
{
var flag=document.all.isnew.checked
disable(document.all.detail,flag);
readonly(document.all.vnumber,flag);
readonly(document.all.vname,flag);
if(flag)
document.submitinput.vname.focus();
}
//-->
</script>
</head>
<body eoncontextmenu="self.event.returnValue=false" id=all class=vtext <%if opFlag<>"cmdEdit" then response.write("onLoad='showdetail();'")%> >
<form name=submitinput action="save.asp?opFlag=<%=opFlag%>&Number=<%=Number%>" method=post >
<!-- #include file="../inc/title.asp" -->
<table cellspacing=1 cellpadding=2 width=95% bgcolor=<%=Session("vtablebordercolor")%> border=0 class=vtext align="center">
<tr>
<td align=right width="80" nowrap height="25" bgcolor="<%=Session("vtabletitlebackcolor")%>">名称(N):</td>
<td nowrap bgcolor="<%=Session("vtabletitlebackcolor")%>" colspan="3" >
<input name=vname class=css0 style="width=60%;filter:chroma(color=#ffffff);" value="<%if opFlag="cmdAddNew" then response.write("") else response.write(rs("vname"))%>" accesskey="n" tabindex="0" onKeyDown=gonext("vcount")>
<% if opFlag<>"cmdEdit" then%>
<select name="namelist" style="width=39%" onChange=setname('namelist','vname','vnumber')>
<option >----请选择-----</option>
<%=namelist%>
</select>
<%end if%>
</td>
</tr>
<% if opFlag="cmdAddNew" then%>
<tr>
<td align=right width="80" nowrap height="25" bgcolor="<%=Session("vtabletitlebackcolor")%>">数量(C):</td>
<td nowrap bgcolor="<%=Session("vcolcolor")%>" >
<input name=vcount class=css0 style="width=100%" value="<%if opFlag="cmdAddNew" then response.write("1") else response.write(rs("vcount"))%>" accesskey="c" onKeyPress="checkkey()" onKeyDown=gonext("vnumber") oncontextmenu="self.event.returnValue=false">
</td>
<td nowrap bgcolor="<%=Session("vtabletitlebackcolor")%>" width="80" align="right" >编号(X):</td>
<td nowrap bgcolor="<%=Session("vcolcolor")%>" >
<input name=vnumber class=css0 style="width=100%" value="<%if opFlag="cmdAddNew" then response.write("") else response.write(rs("vnumber"))%>" accesskey="x" onKeyDown=gonext("vstyle")>
</td>
</tr>
<tr>
<td align=right width="80" nowrap height="25" bgcolor="<%=Session("vtabletitlebackcolor")%>"> </td>
<td colspan="3" bgcolor="<%=Session("vcolcolor")%>" >
<input type="hidden" name="voutcount" value="<%if opFlag="cmdAddNew" then response.write("0") else response.write(rs("voutcount"))%>">
<input type="hidden" name="vtime" value="<%if opFlag="cmdAddNew" then response.write(nowdate) else response.write(rs("vtime"))%>">
<input type="checkbox" name="isnew" value="yes" onClick="showdetail()" >
新物品种类
</td>
</tr>
<%elseif opFlag="cmdEdit" then%>
<input type="checkbox" name="isnew" value="yes" checked style="visibility: hidden" onClick="showdetail()" >
<%else%>
<tr>
<td align=right width="80" nowrap height="25" bgcolor="<%=Session("vtabletitlebackcolor")%>">数量(H):</td>
<td nowrap bgcolor="<%=Session("vcolcolor")%>" >
<input name=vcount class=css0 style="width=100%" value="<%if opFlag="cmdAddNew" then response.write("1") else response.write(rs("vcount"))%>" accesskey="h" onKeyPress="checkkey()" onKeyDown=gonext("vnumber") oncontextmenu="self.event.returnValue=false">
</td>
<input name=vnumber type=hidden>
</tr>
<tr>
<td align=right width="80" nowrap height="25" bgcolor="<%=Session("vtabletitlebackcolor")%>"> </td>
<td colspan="3" bgcolor="<%=Session("vcolcolor")%>" >
<input type="hidden" name="voutcount" value="<%if opFlag="cmdAddNew" then response.write("0") else response.write(rs("voutcount"))%>">
<input type="hidden" name="vtime" value="<%if opFlag="cmdAddNew" then response.write(nowdate) else response.write(rs("vtime"))%>">
<input type="checkbox" name="isnew" value="yes" checked onClick="showdetail()" >
新物品种类
</td>
</tr>
<%end if%>
</table>
<table name="detail" id="detail" cellspacing=1 cellpadding=2 width=95% bgcolor=<%=Session("vtablebordercolor")%> border=0 class=vtext align="center" >
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="80" align="right" height="0" >类别(L):</td>
<td bgcolor=<%=Session("vcolcolor")%> width="228" >
<input name=vstyle class=css0 style="width=120" value="<%=rs("vstyle")%>" accesskey="l" tabindex="0" onKeyDown=gonext("vguige")>
<select name="stylelist" style="width:100" onChange="setvalue(this.name,'vstyle');document.submitinput.vguige.focus();">
<option >----请选择-----</option>
<%=stylelist%>
</select>
</td>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> nowrap rowspan="4" valign="top" width="80" align="right" >规格(T):</td>
<td bgcolor=<%=Session("vcolcolor")%> nowrap rowspan="4" valign="top" >
<input name="vguige" class="css0" style="width=100%;height=100%" accesskey="t" onKeyDown=gonext("vunit") value=<%response.write(rs("vguige"))%>>
</td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="80" align="right" height="0" >单位(W):</td>
<td bgcolor=<%=Session("vcolcolor")%> width="228" >
<input name=vunit class=css0 style="width=120" value="<%if opFlag="cmdAddNew" then response.write("") else response.write(rs("vunit"))%>" accesskey="w" tabindex="0" onKeyDown=gonext("vplace")>
<select name="unitlist" style="width:100" onChange="setvalue(this.name,'vunit');document.submitinput.vplace.focus(); ">
<option >----请选择-----</option>
<%=unitlist%>
</select>
</td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="80" align="right" height="0" >产地(A):</td>
<td bgcolor=<%=Session("vcolcolor")%> width="228" >
<input name=vplace class=css0 style="width=120" value="<%if opFlag="cmdAddNew" then response.write("") else response.write(rs("vplace"))%>" accesskey="a" tabindex="0" onKeyDown=gonext("vlevel")>
<select name="placelist" style="width:100" onChange="setvalue(this.name,'vplace');document.submitinput.vlevel.focus();" >
<option >----请选择-----</option>
<%=placelist%>
</select>
</td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="80" align="right" height="0" >等级(O):</td>
<td bgcolor=<%=Session("vcolcolor")%> width="228" >
<input name=vlevel class=css0 style="width=120" value="<%if opFlag="cmdAddNew" then response.write("") else response.write(rs("vlevel"))%>" accesskey="o" tabindex="0" onKeyDown=gonext("vtext")>
<select name="levellist" style="width:100" onChange="setvalue(this.name,'vlevel');document.submitinput.vtext.focus();" >
<option >----请选择-----</option>
<%=levellist%>
</select>
</td>
</tr>
<tr>
<td bgcolor=<%=Session("vtabletitlebackcolor")%> width="80" align="right" nowrap height="25" valign="top">备注(M):</td>
<td bgcolor=<%=Session("vcolcolor")%> colspan="3" >
<textarea name="vtext" class="css0" style="width=100%" rows="5" cols="50" accesskey="m" ><%=rs("vtext")%></textarea>
</td>
</tr>
</table>
<p align=center>
<% if opFlag="cmdAddNew" then%>
<button class=vinputbutton name=vsave style="height=24" onClick="getit();"><img src="../images/save.gif" align="absmiddle"> 保存</button>
<%else%>
<br>
<button class=vinputbutton name=vsave style="height=24" type=submit><img src="../images/save.gif" align="absmiddle"> 保存</button>
<%end if%>
<button class=vinputbutton style="height=24" onClick=javascript:history.go(-2);><img src="../images/back.gif" align="absmiddle"> 返回</button> </p>
</form>
<% '关闭记录源
rs.close
set rs=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -