gyedit.asp
来自「创建和运行动态、交互的Web服务器应用程序」· ASP 代码 · 共 382 行 · 第 1/2 页
ASP
382 行
<!--#include file="conn.asp"-->
<html>
<head>
<title>供应商资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<%dim gyid,action
action=request.QueryString("action")
gyid=request.querystring("id")
set rs=server.createobject("adodb.recordset")
if gyid<>"" then
rs.open "select * from shop_gongyi where gyid="&gyid,conn,1,1
else
rs.open "select * from shop_gongyi",conn,1,1
end if
select case action
case "list"
'//浏览界面%>
<table width="90%" border="0" height="450" cellpadding="0" cellspacing="0">
<tr><td valign="top" bgcolor="#ece9d8"><br>
<table width="98%" border="0" height="80" align="center" cellpadding="0" cellspacing="0" bgcolor="#ece9d8">
<tr><td>
<table width=77 border="0" cellpadding="0" cellspacing="0">
<tr valign=bottom>
<td background=images/get_img.gif width=77 height=26><P style='PADDING-LEFT: 7px'><div align="center"><font color=#ffffff>详细资料</font></div></td>
</tr>
</table>
<table width="100%" border="0" align=left cellspacing="1" cellpadding="3" bgcolor="#666666">
<form name="form1" method="post" action="gyedit.asp?action=edit&id=<%=rs("gyid")%>">
<tr>
<td width="17%" align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">供应商名称:</td>
<td bgcolor="#eeeeee" colspan="3" style="PADDING-LEFT: 8px"><%=trim(rs("gyname"))%></td>
<input name="gyid" type="hidden" id="gyid" size="30" value=<%=trim(rs("gyid"))%>>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">所在地区:</td>
<td bgcolor="#eeeeee" colspan="3" style="PADDING-LEFT: 8px"><%=trim(rs("shengshi"))%></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">详细地址:</td>
<td bgcolor="#eeeeee" colspan="3" style="PADDING-LEFT: 8px"><%=trim(rs("dizhi"))%></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">联系人:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><%=trim(rs("lxr"))%>
<td width="12%" align="right" bgcolor="#cccccc" style="PADDING-LEFT: 5px">销售方式:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px">
<% if rs("xiaoshoufangshi")=1 then
response.write"经销"
else
response.write"代销"
end if%></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">公司电话:</td>
<td width="40%" bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><%=trim(rs("gytel"))%></td>
<td width="12%" align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">手机号:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><%=trim(rs("lxrshouji"))%></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">邮编:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><%=trim(rs("youbian"))%>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 5px">邮箱地址:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><%=trim(rs("gyemail"))%></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">发货方式:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px">
<% if rs("songhuofangshi")=1 then
response.write"自提"
else
response.write"铁路"
end if%></td>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 5px">发货折扣:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><%=trim(rs("zk"))%></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">公司帐号:</td>
<td bgcolor="#eeeeee" colspan="3" style="PADDING-LEFT: 8px"><%=trim(rs("gyzhanghao"))%></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">公司开户行:</td>
<td bgcolor="#eeeeee" colspan="3" style="PADDING-LEFT: 8px"><%=trim(rs("gyhaihuhan"))%></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">建立时间:</td>
<td bgcolor="#eeeeee" colspan="3" style="PADDING-LEFT: 8px"><%=rs("adddate")%></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc">最后登陆时间:</td>
<td bgcolor="#eeeeee" colspan="3" style="PADDING-LEFT: 8px"><%=rs("lastlogin")%></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">登陆次数:</td>
<td bgcolor="#eeeeee" colspan="3" style="PADDING-LEFT: 8px"><%=rs("logins")%>次</td>
</tr>
<%rs.close
set rs=nothing
conn.close
set conn=nothing%>
<tr>
<td height="28" colspan="4" bgcolor="#eeeeee"><div align="center">
<input type="button" name="Submit2" value="确 认" onclick="location.href='managegongyi.asp'">
<input type="submit" name="Submit" value="修 改">
</div></td>
</tr>
</form>
</table>
</tr>
</table>
</tr>
</table>
<%case "edit"
'//修改界面%>
<table width="90%" border="0" height="450" cellpadding="0" cellspacing="0">
<tr><td valign="top" bgcolor="#ece9d8"><br>
<table width="98%" border="0" height="80" align="center" cellpadding="0" cellspacing="0" bgcolor="#ece9d8">
<tr><td>
<table width=77 border="0" cellpadding="0" cellspacing="0">
<tr valign=bottom>
<td background=images/get_img.gif width=77 height=26><P style='PADDING-LEFT: 7px'><div align="center"><font color=#ffffff>资料修改</font></div></td>
</tr>
</table>
<table width="100%" border="1" align=left cellspacing="0" cellpadding="3" bordercolordark="#FFFFFF" bordercolorlight="#666666">
<form name="form1" method="post" action="savegy.asp?action=save&id=<%=rs("gyid")%>">
<tr>
<td width="15%" align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">供应商名称:</td>
<td bgcolor="#eeeeee" colspan="3" style="PADDING-LEFT: 8px"><input name="gyname" type="text" id="gyname" size="30" value=<%=trim(rs("gyname"))%>></td>
<input name="gyid" type="hidden" id="gyid" size="30" value=<%=trim(rs("gyid"))%>>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">所在地区:</td>
<td bgcolor="#eeeeee" colspan="3" style="PADDING-LEFT: 8px"><input name="shengshi" type="text" id="shengshi" size="8" value=<%=trim(rs("shengshi"))%>></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">详细地址:</td>
<td bgcolor="#eeeeee" colspan="3" style="PADDING-LEFT: 8px"><input name="dizhi" type="text" id="dizhi" size="50" value=<%=trim(rs("dizhi"))%>></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">联系人:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><input name="lxr" type="text" id="lxr" size="10" value=<%=trim(rs("lxr"))%>>
<td width="12%" align="right" bgcolor="#cccccc" style="PADDING-LEFT: 5px">销售方式:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px">
<select name="xiaoshoufangshi" id="xiaoshoufangshi">
<% if rs("xiaoshoufangshi")=1 then
response.write"<option value='1' selected>经销</option>"
response.write"<option value='2'>代销</option>"
else
response.write"<option value='1'>经销</option>"
response.write"<option value='2' selected>代销</option>"
end if%>
</select>
</td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">公司电话:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><input name="gytel" type="text" id="gytel" value=<%=trim(rs("gytel"))%> onkeypress="return regInput(this, /^[0-9]*$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^[0-9]*$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^[0-9]*$/, event.dataTransfer.getData('Text'))"></td>
<td width="12%" align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">手机号:</td>
<% if rs("lxrshouji")="" then%>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><input name="lxrshouji" type="text" id="lxrshouji" value="13 " onkeypress="return regInput(this, /^[0-9]*$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^[0-9]*$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^[0-9]*$/, event.dataTransfer.getData('Text'))">
<%else%>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><input name="lxrshouji" type="text" id="lxrshouji" value=<%=trim(rs("lxrshouji"))%> onkeypress="return regInput(this, /^[0-9]*$/, String.fromCharCode(event.keyCode))"
onpaste = "return regInput(this, /^[0-9]*$/, window.clipboardData.getData('Text'))"
ondrop = "return regInput(this, /^[0-9]*$/, event.dataTransfer.getData('Text'))"></td>
<%end if%>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">邮编:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><input name="youbian" type="text" id="youbian" size="8" value=<%=trim(rs("youbian"))%>>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 5px">邮箱地址:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px"><input name="gyemail" type="text" id="gyemail" value=<%=trim(rs("gyemail"))%>></td>
</tr>
<tr>
<td align="right" bgcolor="#cccccc" style="PADDING-LEFT: 8px">发货方式:</td>
<td bgcolor="#eeeeee" style="PADDING-LEFT: 8px">
<select name="songhuofangshi" id="songhuofangshi">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?