?? danwei_modi.asp
字號(hào):
<%
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%> - 修改計(jì)量單位</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">你不具備此權(quán)限,請(qǐng)與管理員聯(lián)系!</font></center>
<%
response.end
end if
%>
<%if request("hid1")="" then%>
<script language="javascript">
function check()
{
if (document.form1.danwei.value=="")
{
alert("有*號(hào)的必須填寫!");
return false;
}
}
</script>
<%
sql="select * from danwei 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> 修改計(jì)量單位信息</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">修改計(jì)量單位信息<font size="-1"> (帶*號(hào)的為必填項(xiàng))</font></th>
</tr>
<tr bgcolor="#ffffff">
<td width="28%" height="30" align="right"><b>計(jì)量單位名稱:</b> </td>
<td width="72%">
<input type="text" name="danwei" style="width:300px" value="<%=rs("danwei")%>">
<font color="#ff0000">*</font></td>
</tr>
<tr bgcolor="#ececec">
<td height="30"> </td>
<td>
<input name="submit" type="submit" onClick="return check()" value=" 確 認(rèn) ">
<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
nowdanwei=request("danwei")
sql="select * from danwei where danwei='"&nowdanwei&"' and id<>"&request("id")
set rs=conn.execute(sql)
if rs.eof=false then
%>
<script language="javascript">
alert("您輸入的計(jì)量單位名已經(jīng)存在!")
window.history.go(-1)
</script>
<%
response.end
end if
sql="update danwei set danwei='"&nowdanwei&"' where id="&request("id")
conn.execute(sql)
%>
<script language="javascript">
alert("計(jì)量單位修改成功!")
window.location.href="danwei.asp"
</script>
<%
end if
%>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -