📄 edit.asp
字号:
<!--#include file="conn.asp" -->
<%if session("name")="" or session("dd")="" then
response.write "SORRY <br>"
response.write "数据在携带中出现意外!<br>"
response.write "<a href=login.asp target=_top>回去重来</a>"
response.end
end if
if session("name")="" or session("dd")="" then
response.write "SORRY <br>"
response.write "数据在携带中出现意外!<br>"
response.write "<a href=login.asp target=_top>回去重来</a>"
response.end
end if
if session("quanxian")="1" then
response.write "SORRY <br>"
response.write "您的权限不够!请勿尝试非法访问!<br>"
response.end
end if
dim rs,sql
if session("chayue")="0" then
sql="select * from customer where id="&request("id")&"and vest_m="&session("dd")&" and vest_s="&request("sclass")&""
else
sql="select * from customer where id="&request("id")&"and com_kongzhi='"&session("name")&"' and vest_m="&session("dd")&" and vest_s="&request("sclass")&""
end if
set rs=server.createobject("adodb.recordset")
rs.Open sql,conn,1,3
if not rs.EOF then
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>客户管理系统</title>
</head>
<STYLE type=text/css>
BODY { FONT-FAMILY: "宋体","Arial Narrow","Times New Roman"; FONT-SIZE: 9pt}
TD { FONT-FAMILY: "宋体","Arial Narrow","Times New Roman"; FONT-SIZE: 9pt; line-height: 150%}
a:link { color: #3366FF; text-decoration: none}
a:visited { color: #3366FF; text-decoration: none}
a:hover { color: #FF0080; text-decoration: underline}
.p1 { FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
.p2 { COLOR: #c0c0c0; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
input { font-family: "宋体"; font-size: 9pt;color:#0000FF}
</STYLE>
<body>
<div align="center">
<table border="0" width="554" id="table2" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td>修改单位基本信息 - <a href="add_cust.asp?company=<%=rs("com_name")%>&id=<%=request("id")%>&sclass=<%=request("sclass")%>">增加联系人</a>
|
<a target="mainFrame" href="vbscript:history.back()" style="text-decoration: none">返回上页</a></td>
</tr>
</table>
</div>
<script Language="JavaScript">
<!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.sclass.selectedIndex < 0)
{
alert("分类必须选择!");
theForm.sclass.focus();
return (false);
}
if (theForm.name.value == "")
{
alert("客户姓名必须填写!");
theForm.name.focus();
return (false);
}
if (theForm.name.value.length >16)
{
alert("您的客户姓名填写是否正确?请确认!");
theForm.name.focus();
return (false);
}
return (true);
}
//-->
</script>
<form method="POST" action="editsave.asp" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" >
<div align="center">
<table border="0" width="554" cellspacing="1" cellpadding="0" height="211" bgcolor="#DADADA" id="table1">
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">单位名称 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="hidden" name="mclass" size="18" maxlength="20" value="<%=session("dd")%>"><input type="hidden" name="id" size="18" maxlength="20" value="<%=request("id")%>"><input type="text" name="com_name" size="20" maxlength="50" value="<%=rs("com_name")%>">
<font color="#FF0000">此项目为必须填写项</font></td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">省
份 </td>
<td width="408" bgcolor="#FFFFFF" height="25">
<input type="text" name="com_shen" size="20" maxlength="250" value="<%=rs("com_shen")%>">
单位所在的省份</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">城
市 </td>
<td width="408" bgcolor="#FFFFFF" height="25">
<input type="text" name="com_city" size="20" maxlength="250" value="<%=rs("com_city")%>">
单位所在的城市</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">所属地区 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_diqu" size="20" maxlength="250" value="<%=rs("com_diqu")%>">
单位所在城市的地区,如:南镇、南区</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">单位电话 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_phone" size="20" maxlength="20" value="<%=rs("com_phone")%>">
您可以在输入电话时输入区号、分机号等</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">单位传真 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_fax" size="20" maxlength="20" value="<%=rs("com_fax")%>">
您可以在输入电话时输入区号、分机号等</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">电子邮件 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_email" size="20" maxlength="20" value="<%=rs("com_email")%>">
请输入正规的邮件格式,如:wang@163.com</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">单位地址 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_address" size="20" maxlength="20" value="<%=rs("com_address")%>">
单位所在的地址</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right"> 邮政编码 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_zip" size="20" maxlength="250" value="<%=rs("com_zip")%>">
单位的邮政编码</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">负 责 人 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_fuzeren" size="20" maxlength="34" value="<%=rs("com_fuzeren")%>">
单位最主要的负责人</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">注册资金 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_zczj" size="20" maxlength="20" value="<%=rs("com_zczj")%>">
如为企业单位,可填写该单位的注册资金</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">成立日期 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_setup" size="20" maxlength="20" value="<%=rs("com_setup")%>">
该单位的成立日期</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">投资方式 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_touzi" size="20" maxlength="20" value="<%=rs("com_touzi")%>">
如:政府投资、美国投资、中外合资</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">所属行业 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_hangye" size="20" maxlength="20" value="<%=rs("com_hangye")%>">
如:电子制造、通讯、制衣、制鞋</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">经营产品 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_porduct" size="20" maxlength="20" value="<%=rs("com_porduct")%>">
如为政府单位可填写主要从事工作,如:工商</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">生产产值 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_chanzhi" size="20" maxlength="20" value="<%=rs("com_chanzhi")%>">
年、月、日的生产产值,请填入单位</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">认证状况 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_rzzk" size="20" maxlength="20" value="<%=rs("com_rzzk")%>">
如:通过ISO9001认证</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">公司网址 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <input type="text" name="com_web" size="20" maxlength="255" value="<%=rs("com_web")%>">
如有的话请填入,这将帮助您更好的查阅资料</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">重要度 </td>
<td width="408" bgcolor="#FFFFFF" height="25">
<%
if rs("zy") ="0" then
response.write"<input type=radio value=0 name=zy checked>初步"
response.write"<input type=radio value=1 name=zy >一般 "
response.write"<input type=radio value=2 name=zy >重要"
end if
if rs("zy") ="1" then
response.write"<input type=radio value=0 name=zy >初步"
response.write"<input type=radio value=1 name=zy checked>一般 "
response.write"<input type=radio value=2 name=zy >重要"
end if
if rs("zy") ="2" then
response.write"<input type=radio value=0 name=zy >初步"
response.write"<input type=radio value=1 name=zy >一般 "
response.write"<input type=radio value=2 name=zy checked>重要"
end if
%>
</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">所属类别 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%
dim foldersql,folderrs
set folderrs=server.createobject("adodb.recordset")
foldersql="select * from sclass,customer where vest ="&Request("mclass")&" and id="&Request("id")&" order by sclass.paixu asc;"
'Response.Write rs("vest_s")&"<br>"
folderrs.open foldersql,conn,1,1
'response.write folderrs("sclass_id")
%><select size="1" name="sclass" style="font-family: 宋体; font-size: 9pt;color:#0000FF" >
<%
do while not folderrs.EOF
%>
<option value="<%=folderrs("sclass_id")%>"<%if folderrs("sclass_id")=rs("vest_s") then%>selected<%end if%>> <%=folderrs("sclass_folder")%> </option>"
<%
folderrs.movenext
loop
folderrs.close
set folderrs=nothing
%>
</select></td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">备注 </td>
<td width="408" bgcolor="#FFFFFF" height="25">
<textarea rows="4" name="content" cols="58" style="font-family: 宋体; font-size: 9pt;color:#0000FF"><%=rs("content")%></textarea></td>
</tr><tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right" style="font-family: 宋体,'Arial Narrow','Times New Roman'; font-size: 9pt; line-height: 150%">
录入人 </td>
<td width="408" bgcolor="#FFFFFF" height="25" style="font-family: 宋体,'Arial Narrow','Times New Roman'; font-size: 9pt; line-height: 150%"> <%=rs("com_kongzhi")%></td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">录入时间 </td>
<td width="408" bgcolor="#FFFFFF" height="25">
<%=rs("time")%></td>
</tr>
</table>
</div>
<p align="center">
<input type="submit" value="修改" name="B1"> <input type="reset" value="还原" name="B2"></p>
</form>
</body>
</html>
<%
rs.Close
set rs=nothing
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -