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

📄 ku_modi.asp

📁 AVON进销存管理系统破解版AVON进销存管理系统破解版
💻 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">&nbsp;<img src="../Images/ico/ico50.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/add.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%">&nbsp;&nbsp;
        <input type="text" name="ku" value="<%=rs("ku")%>" style="width:200px">
        &nbsp;<font color="#ff0000">*</font></td>
  </tr>
  <tr class="a3">
    <td width="28%" height="30" align="right"><b>负责人:</b> </td>
    <td width="72%">&nbsp;&nbsp;
		  <%
		  sql1="select * from login order by id"
		  set rs1_login=conn.execute(sql1)
		  if rs1_login.eof then
		  %>
		    <a href="user_add.asp">先添加员工</a>
		  <%
		  else
		  %>
		  <select name="login">
		  
		  <%
		  do while rs1_login.eof=false
		  %>
		    <option value="<%=rs1_login("username")%>"<%if rs1_login("username")=rs("login") then%> selected="selected" <%end if%>><%=rs1_login("username")%></option>
		  <%
		    rs1_login.movenext
		  loop
		  %>
		  </select>
		  <%
		  end if
		  %>
		  </td>
  </tr>
  <tr bgcolor="#ffffff">
    <td width="28%" height="30" align="right"><b>联系电话:</b> </td>
    <td width="72%">&nbsp;&nbsp;
        <input type="text" name="tel" value="<%=rs("tel")%>" style="width:200px">
        &nbsp;</td>
  </tr>   
  <tr class="a3">
    <td width="28%" height="30" align="right"><b>仓库地址:</b> </td>
    <td width="72%">&nbsp;&nbsp;
        <input type="text" name="address"  value="<%=rs("address")%>" style="width:300px">
        &nbsp;</td>
  </tr>  
  <tr bgcolor="#ffffff">
    <td width="28%" height="30" align="right"><b>仓库备注:</b> </td>
    <td width="72%">&nbsp;&nbsp;
        <input type="text" name="beizhu" value="<%=rs("beizhu")%>"  style="width:400px">
        &nbsp;</td>
  </tr>  
  <tr bgcolor="#ffffff">
    <td height="30"> </td>
    <td>&nbsp;&nbsp;
        <input name="submit" type="submit" onClick="return check()" value=" 确 认 ">
      &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="hidden" name="hid1" value="ok">
        <input type="hidden" name="id" value="<%=request("id")%>">
        <input name="reset" type="reset" value=" 重新填写 ">
    </td>
  </tr>
</table>


</form>
<%
else
id=request.QueryString("id")
nowku=request("ku")
nowtel=request("tel")
nowaddress=request("address")
nowlogin=request("login")
nowbeizhu=request("beizhu")
'nowmoren=request("moren")
if id="" or id=null then 
 Response.Write ("参数错误") 
 Response.End() 
end if

sql="update ku set ku='"&nowku&"',tel='"&nowtel&"',address='"&nowaddress&"',login='"&nowlogin&"',beizhu='"&nowbeizhu&"' where id="&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 + -