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

📄 sk_crm_cust_edit.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
if session("quanxian")="1"  then
Response.Write("<script>alert(""对不起,你的权限不够!"");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>
		<tr>
			<td height="30"><b>修改联系人 -  <a target="main" href="vbscript:history.back()" style="text-decoration: none">返回上页</a></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="SK_CRM_cust_editsave.asp" name="FrontPage_Form1" onSubmit="return FrontPage_Form1_Validator(this)" >
<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="172" height="25" align="right">联系人名</td>
	  <td width="789" height="25"><input type="hidden" name="SK_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="30" maxlength="50" value=<%=rs("name")%>> 
	  <font color="#FF0000">*必填</font></td>
	</tr>
	<!-- 
	<tr>
		<td width="172" height="25" align="right">性别 </td>
		<td width="789" 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="172" height="25" align="right">联系人职务 </td>
		<td width="789" height="25"><input type="text" name="zhiwu" size="30" maxlength="250" value="<%=rs("zhiwu")%>"> 
	  联系人职务信息</td>
	</tr>
	<!-- 
	<tr>
		<td width="172" height="25" align="right">所在部门 </td>
		<td width="789" height="25"><input type="text" name="city" size="30" maxlength="250" value="<%=rs("city")%>"> 
	  联系人所在部门</td>
	</tr> -->
	<tr>
		<td width="172" height="25" align="right">联系人手机 </td>
		<td width="789" height="25"><input type="text" name="mobile" size="30" maxlength="20" value="<%=rs("mobile")%>">  
   	  联系人手机号码</td>
	</tr>
	<!-- <tr>
		<td width="172" height="25" align="right">电话 </td>
	    <td width="789" height="25"><input type="text" name="homephone" size="30" maxlength="20" value="<%=rs("homephone")%>">  
      	如不填则默认为公司电话</td>
	</tr> 
	<tr>
		<td width="172" height="25" align="right">传真 </td>
      <td width="789" height="25"><input type="text" name="fax" size="30" maxlength="20" value="<%=rs("fax")%>"></td>
	</tr> -->
	<tr>
		<td width="172" height="25" align="right">联系人Email </td>
	  <td width="789" height="25"><input type="text" name="email" size="30" maxlength="255" value="<%=rs("email")%>"> 
		*必填</td>
	</tr>
	<tr>
		<td width="172" height="25" align="right">联系人icq </td>
		<td width="789" height="25"><input type="text" name="oicq" size="30" maxlength="255" value="<%=rs("oicq")%>"> 
	  腾讯Oicq的号码</td>
	</tr>
	<tr>
		<td width="172" height="25" align="right">联系人MSN </td>
	  <td width="789" height="25"><input type="text" name="msn" size="30" maxlength="50" value="<%=rs("msn")%>"> 
		请完整填写</td>
	</tr>
	<tr>
	  <td height="25" align="right">联系人Skype</td>
	  <td height="25"><input type="text" name="skype" size="30" maxlength="50" value="<%=rs("skype")%>"></td>
    </tr>
	<tr>
	  <td height="25" align="right">联系人QQ</td>
	  <td height="25"><input type="text" name="qq" size="30" maxlength="50" value="<%=rs("qq")%>"></td>
    </tr>
	<tr>
		<td width="172" height="25" align="right">重要度 </td>
		<td width="789" 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="172" height="25" align="right">所属单位 </td>
		<td width="789" height="25"><%	
     	dim foldersql,folderrs
     	set folderrs=server.createobject("adodb.recordset")    
		   foldersql="select * from SK_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%>><%=folderrs("com_name")%></option>" 
   <% 
    folderrs.movenext
    loop
    folderrs.close
    set folderrs=nothing
%>
  </select></td>
	</tr>
	<tr>
		<td width="172" height="25" align="right">备注 </td>
		<td width="789" height="25">
	  <textarea rows="8" name="content" cols="63" style="font-family: 宋体; font-size: 9pt;color:#0000FF"><%=rs("content")%></textarea></td>
	</tr>
	<tr>
		<td width="172" height="25" align="right">录入人 </td>
		<td width="789" height="25"><%=rs("kongzhi")%></td>
	</tr>
	<tr>
		<td width="172" height="25" align="right">录入时间 </td>
		<td width="789" height="25">
		<%=rs("time")%></td>
	</tr>
	<tr>
	  <td height="25" align="right">&nbsp;</td>
	  <td height="25"><input type="submit" value=" 修改 " name="B1">
        <input type="reset" value=" 还原 " name="B2"></td>
    </tr>
	</table>

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

⌨️ 快捷键说明

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