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

📄 sk_crm_cust_views.asp

📁 为你节约成本,让你的企业在信息时代助上一臂之力!!! 真正做到无纸办公,全自动化信息办公,不受地点的限制,只要你能上网就能随时随地掌握公司动向.
💻 ASP
字号:
<!--#include file="conn.asp" --> 
<%
if session("name")="" or session("dd")="" then
Response.Write("<script>alert(""非法登陆,请确认密码的正确性!\n或者已经被管理员锁定!"");history.back();</script>")
response.end
end if
dim rs,sql
   if session("chayue")="0" then
sql="select * from SK_cust_user where id="&request("id")&"and vest_m="&session("dd")&" and cust_s="&request("cust")&"" 
else
sql="select * from SK_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
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.3790.2993" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0 marginheight="0">
<LINK href="images/style.css" type=text/css rel=stylesheet>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
  <TBODY>
  <TR>
    <TD class=td>
      <DIV align=left>您现在的位置:CRM &gt;&gt; 客户管理 &gt;&gt; 查看单位联系人</DIV></TD></TR></TBODY></TABLE>

  
<TABLE borderColor=#ffffff cellSpacing=0 borderColorDark=#ffffff cellPadding=3 
width="100%" borderColorLight=#dfdfdf border=1>
<%	
     	dim foldersql,folderrs,rSK_sclass
     	rSK_sclass=Request("SK_sclass")
     	set folderrs=server.createobject("adodb.recordset")    
		       foldersql="select * from SK_customer where id="&request("cust")&" and vest_m ="&session("dd")&" "   
		    folderrs.open foldersql,conn,1,1 
		   com_name=folderrs("com_name") 
    folderrs.close
    set folderrs=nothing
%>
		<tr>
			<td height="30"><b><%=com_name%> - 联系人信息</b></td>
		</tr>
		</table>
<script Language="JavaScript">
<!--
function FrontPage_Form1_Validator(theForm)
{ 

   if (theForm.SK_sclass.selectedIndex < 0)
  {
    alert("单位必须选择!");
    theForm.SK_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="id" size="18" maxlength="20" value="<%=request("id")%>"><input type="hidden" name="SK_mclass" size="18" maxlength="20" value="<%=session("dd")%>">















<input type="hidden" name="SK_sclass" value="<%=request("SK_sclass")%>">
    
<TABLE borderColor=#ffffff cellSpacing=0 borderColorDark=#ffffff cellPadding=3 
width="100%" borderColorLight=#dfdfdf border=1>

	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">联系人名 </td>
		<td width="795" height="25" bgcolor="#FFFFFF"><%=rs("name")%>	  </td>
	</tr>
	<!-- 
	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">性别 </td>
		<td width="795" height="25" bgcolor="#FFFFFF">
		  <%

		if rs("sex") ="0" then
		response.write"男"
		else
		response.write"女"
		end if
		%>      </td>
	</tr>
<%end if%> -->
	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">所属单位 </td>
		<td width="795" height="25" bgcolor="#FFFFFF"><%=com_name%></td>
	</tr>
<%
if rs("city") ="不详" then
response.write""
else
%>
	<!-- <tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">部 
		门 </td>
	  <td width="795" height="25" bgcolor="#FFFFFF"><%=rs("city")%></td>
	</tr>
	<%end if

		if rs("zhiwu") ="不详" then
		response.write""
		else
%>  -->
	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">联系人职务</td>
	  <td width="795" height="25" bgcolor="#FFFFFF"><%=rs("zhiwu")%></td>
	</tr><%
end if
		if rs("mobile") ="未填" then
		response.write""
		else
%>
	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">联系人手机 </td>
	    <td width="795" height="25" bgcolor="#FFFFFF"><%=rs("mobile")%></td>
	</tr>
	<%end if%>
		<%

		if rs("homephone") ="未知或无" then
		response.write""
		else
%>

	<!-- <tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">固定电话 </td>
	  <td width="795" height="25" bgcolor="#FFFFFF"><%=rs("homephone")%></td>
	</tr>
	<%end if%>
		<%

		if rs("fax") ="未填" then
		response.write""
		else
%>

	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">单位传真 </td>
	  <td width="795" height="25" bgcolor="#FFFFFF"><%=rs("fax")%></td>
	</tr>
	<%end if%>
		
		<%

		if rs("email") ="未填" then
		response.write""
		else
%>
-->
	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">联系人Email</td>
	  <td width="795" height="25" bgcolor="#FFFFFF"><%=rs("email")%><a href="SK_CRM_cust_send.asp">点此给该客户发送邮件</a></td>
	</tr>
	<%end if%>
		<%

		if rs("oicq") ="未填" then
		response.write""
		else
%>
	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">联系人icq </td>
	    <td width="795" height="25" bgcolor="#FFFFFF"><%=rs("oicq")%><a alt="点击发送消息给对方" target="_blank" href="http://wpa.qq.com/msgrd?V=1&Uin=<%=rs("oicq")%>&Menu=no">点击发送消息给对方</a></td>
	</tr>
		<%end if%>
		<%

		if rs("msn") ="未填" then
		response.write""
		else
%>
	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">联系人MSN </td>
	  <td width="795" height="25" bgcolor="#FFFFFF"><%=rs("msn")%></td>
	</tr>
	<tr>
	  <td height="25" align="right" bgcolor="#FFFFFF">联系人Skype</td>
	  <td height="25" bgcolor="#FFFFFF"><%=rs("skype")%></td>
    </tr>
	<tr>
	  <td height="25" align="right" bgcolor="#FFFFFF">联系人QQ</td>
	  <td height="25" bgcolor="#FFFFFF"><%=rs("qq")%></td>
    </tr>
	<%end if%>
	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">重要度 </td>
		<td width="795" height="25" bgcolor="#FFFFFF">
		  <%
		
		if rs("zy") ="0" then
	response.write"初步联络的客户"     

		end if
		
		
		if rs("zy") ="1" then

      response.write"一般客户"

		end if
		
		
			if rs("zy") ="2" then

      response.write"<font color=#FF0000>重要的客户</font>"
		end if
		%>      </td>
	</tr>
<%
if rs("content") ="无注释" then
response.write""
else
%>

	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">备注 </td>
		<td width="795" height="25" bgcolor="#FFFFFF">
		<%=rs("content")%></td>
	</tr>
	<%end if%>
	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">录入人 </td>
	  <td width="795" height="25" bgcolor="#FFFFFF"><%=rs("kongzhi")%></td>
	</tr>
	<tr>
		<td width="161" height="25" align="right" bgcolor="#FFFFFF">录入时间 </td>
		<td width="795" height="25" bgcolor="#FFFFFF">
		<%=rs("time")%></td>
	</tr>
	<tr>
	  <td height="25" colspan="2" align="center" bgcolor="#FFFFFF"><%if session("quanxian")>=2 then%><a href="SK_CRM_cust_add.asp?company=<%=com_name%>&id=<%=rs("cust_s")%>&SK_mclass=<%=session("dd")%>&SK_sclass=<%=request("SK_sclass")%>">
添加该公司下的新联系人</a><%end if%>
	<a target="main" href="vbscript:history.back()" style="text-decoration: none">
返回上页</a></td>
    </tr>
  </table>

</form>
</body>
</html>
<%
rs.Close 
set rs=nothing
%>

⌨️ 快捷键说明

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