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

📄 add_edit.asp

📁 矮子多用户版客户管理系统2.0Bate2
💻 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("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 cust_user where id="&request("id")&"and vest_m="&session("dd")&" and cust_s="&request("cust")&"" 
else
sql="select * from cust_user where id="&request("id")&"and kongzhi='"&session("name")&"' and vest_m="&session("dd")&" and cust_s="&request("cust")&"" 
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 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="add_editsave.asp" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" >















<input type="hidden" name="sclass" value="<%=request("sclass")%>">



  <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">客户姓名&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">&nbsp;<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="name" size="20" maxlength="50" value=<%=rs("name")%>> 
		<font color="#FF0000">此项目为必须填写项</font></td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">客户性别&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">
		<%

		if rs("sex") ="0" then
		response.write"<input type=radio value=0 name=sex checked>男"
		response.write"<input type=radio value=1 name=sex >女"
		else
        response.write"<input type=radio value=0 name=sex >男"
		response.write"<input type=radio value=1 name=sex checked>女"
		end if
		
		
		
	
		%>
		     
      </td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">职&nbsp;&nbsp;&nbsp; 
		务&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">&nbsp;<input type="text" name="zhiwu" size="20" maxlength="250" value="<%=rs("zhiwu")%>"> 
		联系人的职务信息</td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">部&nbsp;&nbsp;&nbsp; 
		门&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">&nbsp;<input type="text" name="city" size="20" maxlength="250" value="<%=rs("city")%>"> 
		联系人的职务信息</td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">联系手机&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">&nbsp;<input type="text" name="mobile" size="20" maxlength="20" value="<%=rs("mobile")%>">  
      	输入联系人的手机号码</td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">固定电话&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">&nbsp;<input type="text" name="homephone" size="20" maxlength="20" value="<%=rs("homephone")%>">  
      	如不填则默认为公司电话,可填写电话分机如:305</td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">家庭传真&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">&nbsp;<input type="text" name="fax" size="20" maxlength="20" value="<%=rs("fax")%>">  
      	您可以在输入号码时输入区号,这将提高您的记忆</td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">电子邮件&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">&nbsp;<input type="text" name="email" size="20" maxlength="255" value="<%=rs("email")%>"> 
		请输入正规的邮件格式,如:wang@163.com</td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">Oicq&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">&nbsp;<input type="text" name="oicq" size="20" maxlength="255" value="<%=rs("oicq")%>"> 
		腾讯Oicq的号码</td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">MSN&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">&nbsp;<input type="text" name="msn" size="20" maxlength="20" value="<%=rs("msn")%>"> 
		请完整填写,如:wang@hotmail.com</td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">重要度&nbsp; </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 >一般&nbsp;"
      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>一般&nbsp;"
      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 >一般&nbsp;"
      response.write"<input type=radio value=2 name=zy checked>重要"
		end if
		
		
		

		
		
		%>
		
		
      
      
      
      </td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">所属单位&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">&nbsp;<%	
     	dim foldersql,folderrs
     	set folderrs=server.createobject("adodb.recordset")    
		   foldersql="select * from customer where vest_m ="&session("dd")&" "     
  
		     
		  
		    folderrs.open foldersql,conn,1,1 
		   
		    %><select size="1" name="cust_s" style="font-family: 宋体; font-size: 9pt;color:#0000FF" > 
	  
	  <%    
  do while not folderrs.EOF    
%>



   <option value="<%=folderrs("id")%>"<%if folderrs("id")=rs("cust_s") then%>selected<%end if%>>&nbsp;<%=folderrs("com_name")%>&nbsp;</option>" 
   <% 
    folderrs.movenext
    loop
    folderrs.close
    set folderrs=nothing
%>
  </select></td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">备注&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">
		&nbsp;<textarea rows="4" name="content" cols="63" style="font-family: 宋体; font-size: 9pt;color:#0000FF"><%=rs("content")%></textarea></td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">录入人&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">&nbsp;<%=rs("kongzhi")%></td>
	</tr>
	<tr>
		<td width="143" bgcolor="#EBEBEB" height="25" align="right">录入时间&nbsp; </td>
		<td width="408" bgcolor="#FFFFFF" height="25">
		&nbsp;<%=rs("time")%></td>
	</tr>
	</table>
  
  
  
  
  
  
  
  
 	</div>
  
  
  
  
  
  
  

 <p align="center">
 
 <input type="submit" value="修改" name="B1">&nbsp;&nbsp; <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 + -