📄 ku_modi.asp
字号:
<%
if session("username")="" then
%>
<script language="javascript">
top.location.href="../login.asp"
</script>
<%
response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->
<html>
<head>
<title><%=dianming%> - 修改仓库</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style2.css" rel="stylesheet" type="text/css"></HEAD>
<BODY>
<%
if fla5="0" then
%>
<br><center><font color="#FF0000">你不具备此权限,请与管理员联系!</font></center>
<%
response.end
end if
%>
<%if request("hid1")="" then%>
<script language="javascript">
function check()
{
if (document.form1.ku.value=="")
{
alert("有*号的必须填写!");
return false;
}
}
</script>
<%
sql="select * from ku where id="&request("id")
set rs=conn.execute(sql)
%>
<form name="form1">
<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
<tr>
<td height="21"> <img src="../Images/ico/ico06.gif" width="32" height="32" hspace="2" vspace="2" align="absmiddle"><font size="+1"><strong> 修改仓库信息</strong></font></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="1" cellpadding="2" align="center" class="TableMenu">
<tr class="a1" style="color:#ffffff;font-size:12px;">
<th height="30" style="color:#ffffff;font-size:14px" colspan="2"><img src="../images/res.gif" border="0" hspace="2" align="absmiddle">修改仓库信息<font size="-1"> (带*号的为必填项)</font></th>
</tr>
<tr bgcolor="#ffffff">
<td width="28%" height="30" align="right"><b>仓库名称:</b> </td>
<td width="72%"><input type="text" name="ku" style="width:300px" value="<%=rs("ku")%>">
<font color="#ff0000">*</font></td>
</tr>
<tr bgcolor="#ececec">
<td height="30"><div align="right"><strong>管理员名</strong>:</div></td>
<td><input type="text" name="ku2" style="width:300px" value="<%=rs("login")%>"></td>
</tr>
<tr bgcolor="#ececec">
<td height="30"><div align="right"><b>仓库地址:</b></div></td>
<td><input type="text" name="ku3" style="width:300px" value="<%=rs("address")%>"></td>
</tr>
<tr bgcolor="#ececec">
<td height="30"><div align="right"><b>仓库电话:</b></div></td>
<td><input type="text" name="ku4" style="width:300px" value="<%=rs("tel")%>"></td>
</tr>
<tr bgcolor="#ececec">
<td height="30"><div align="right"><b>仓库备注</b>:</div></td>
<td><textarea name="ku5" style="width:300px"><%=rs("beizhu")%></textarea></td>
</tr>
<tr bgcolor="#ececec">
<td height="30"> </td>
<td> </td>
</tr>
<tr bgcolor="#ececec">
<td height="30"> </td>
<td>
<input name="submit" type="submit" onClick="return check()" value=" 确 认 ">
<input type="hidden" name="hid1" value="ok">
<input type="hidden" name="id" value="<%=request("id")%>">
<input name="reset" type="reset" value=" 重新填写 ">
<input type="button" value=" 放弃修改返回 " onClick="window.history.go(-1)"> </td>
</tr>
</table>
</form>
<%
else
nowku=request("ku")
nuser=request("ku2")
nadd=request("ku3")
ntel=request("ku4")
nbz=request("ku5")
sql="select * from ku where ku='"&nowku&"' and id<>"&request("id")
set rs=conn.execute(sql)
if rs.eof=false then
%>
<script language="javascript">
alert("您输入的仓库名称已经存在!")
window.history.go(-1)
</script>
<%
response.end
end if
sql="update ku set ku='"&nowku&"',login='"&nuser&"',address='"&nadd&"',tel='"&ntel&"',beizhu='"&nbz&"' where id="&request("id")
conn.execute(sql)
%>
<script language="javascript">
alert("仓库修改成功!")
window.location.href="ku.asp"
</script>
<%
end if
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -