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

📄 supplier_edit.asp

📁 Sellandsavingmanagementsystem是一个进销存管理系统,是用ASP编写的.集销售,管理与一体.可以对仓库情况进行查询管理.
💻 ASP
字号:
<!-- #include file="admin_protect.inc" -->
<!-- #include file="../opendb.inc" -->
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta Name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta Name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; chaRset=gb2312">
<title>供应商资料修改</title>
</head>

<body>
<%
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open(sqlOpenDB)	 	'打开数据库

Set Rs=Server.CreateObject("ADODB.RecordSet")
Rs.Open"Supplier",Conn,1,3


%>

 <%
If Request("Action")="delsupplier" Then 
KillCompanyName=Request("KillCompanyName")
Conn.Execute "Delete  From Supplier Where CompanyName='"&KillCompanyName&"'"

Response.Redirect "Success.Asp?Success=008"
Rseponse.End
End If
%>
<p align="center"><font color="#0000FF"><b>供应商帐号资料修改</b></font></p>
<%
If Request("Action")="Editsupplier" Then 
Address=Request.Form("Address")
City=Request.Form("City")
Postalcode=Request.Form("Postalcode")
Country=Request.Form("Country")
Phone=Request.Form("Phone")
Fax=Request.Form("Fax")
Email=Request.Form("Email")

Conn.Execute "Update Supplier Set Address='"&Address&"',City='"&City&"',Postalcode='"&Postalcode&"',Country='"&Country&"',Phone='"&Phone&"',Fax='"&Fax&"',Email='"&Email&"' Where CompanyName='"&Request("EditcompanyName")&"'"

Response.Redirect "Success.Asp?Success=007"
End If
%>
<%
Sql="Select * From Supplier Where CompanyName='"&Request("SearchSupplier")&"'"
Set Rs=Conn.Execute(Sql)
If Rs.Eof Or Rs.Bof Then
Response.Write"<script language=Javascript>alert('对不起,没有此配送商!');"
Response.Write"javascript:history.go(-1)</script>"
End If
%> 



<form method="POST" Name="form1" action="supplier_edit.asp">
<p align="center"> </p>
  <div align="center">
    <center>
  <table border="1" cellspacing="1" width="50%" id="AutoNumber1" height="275">
    <tr>
      <td width="28%" height="14">供应商帐号</td>
      <td width="72%" height="14"><%=Rs("companyName")%></td>
    </tr>
    <tr>
      <td width="28%" height="22">地&nbsp;&nbsp;&nbsp; 址</td>
      <td width="72%" height="22">
      <input type="text" Name="Address" size="20" value="<%=Rs("Address")%>"></td>
    </tr>
    <tr>
      <td width="28%" height="16">所在城市</td>
      <td width="72%" height="16">
      <input type="text" Name="City" size="20" value="<%=Rs("City")%>"></td>
    </tr>
    <tr>
      <td width="28%" height="16">邮政编码</td>
      <td width="72%" height="16">
      <input type="text" Name="PostalCode" size="20" value="<%=Rs("PostalCode")%>"></td>
    </tr>
    <tr>
      <td width="28%" height="17">所在国家</td>
      <td width="72%" height="17">
      <input type="text" Name="Country" size="20" value="<%=Rs("Country")%>"></td>
    </tr>
    <tr>
      <td width="28%" height="16">联系电话</td>
      <td width="72%" height="16">
      <input type="text" Name="Phone" size="20" value="<%=Rs("Phone")%>"></td>
    </tr>
    <tr>
      <td width="28%" height="16">地&nbsp;&nbsp;&nbsp; 区</td>
      <td width="72%" height="16">
      <input type="text" Name="region" size="20" value="<%=Rs("region")%>"></td>
    </tr>
    <tr>
      <td width="28%" height="16">FAX</td>
      <td width="72%" height="16">
      <input type="text" Name="Fax" size="20" value="<%=Rs("Fax")%>"></td>
    </tr>
    <tr>
      <td width="28%" height="16">Email</td>
      <td width="72%" height="16">
      <input type="text" Name="Email" size="20" value="<%=Rs("Email")%>"></td>
    </tr>
    <tr>
      <td width="100%" colspan="2" height="36">
      <p align="center"> 
          <input type="submit" Name="Submit" value="修改此帐号资料" class="Tips_bo">
          <input type="hidden" Name="action" value="Editsupplier">
          <input type="hidden" Name="editcompanyName" value="<%=request("searchsupplier")%>">
</td>
    </tr>
  </table>
    </center>
  </div>
</form>

<form Name="delsupplier" method="post" action="supplier_edit.asp">
        <div align="center">
          &nbsp;<input type="hidden" Name="action" value="delsupplier"><input type="hidden" Name="KillCompanyName" value="<%=request("SearchSupplier")%>"><input type="submit" Name="Submit" value="删除此帐号" ></div>
      </form>

</body>


</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -