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

📄 f_clientinfo2.asp

📁 一个很好的在线购物系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:


<!--#include file="../include/Pubconn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>单据查询</title><link href="../cread.css" rel="stylesheet" type="text/css">
</head>

<%
'**************************
'
'Author:Ruphi  Updating  Time:2001-09-20
'功能说明:技术合同输入页面的客户选择
'实现当前页面翻页或直接提交后能将选中的客户自动填写到指定的页面并不丢失带过来的参数
'
'**************************
%>

<%
'在选择客户之前带过来二个参数值
hth=request("hth")
gcsxh=request("gcsxh")
if gcsxh="" then
   response.write"<center>请先选择工程师!<a href=javascript:close()>关闭</a>"
   response.end
end if 
%>
<%
'区域下拉单
 set rssj=Server.CreateObject("ADODB.RecordSet")
        sql="select NumValue from A_ConfigInfo  Where Subject='salearea'"
        rssj.open sql,Pubconn,1,1
        if not rssj.eof then
          if not isnull(rssj("NumValue")) then
              CloseTime=Split(trim(rssj("NumValue")),",")
          end if 
        end if 
 set rssj=nothing
%>

<%

'本表单提交后的值
khmc=request("khmc")  
khlx=request("khlx")
khjb=request("khjb")
%>

<%
set RSkh=server.createobject("adodb.recordset")
str="select * from D_ClientInfo where ( tag='khindex'or (type='潜在客户' and tag='kh') or (type='预期客户' and tag='kh')or (type='首次购买客户' and tag='kh') or (type='忠诚客户'and tag='kh') or (type='重复购买客户' and tag='kh') or  tag='hbdealer' ) and StuffNum='"&Session("UserID")&"'and (delflag<>'1') "
if khmc<>"" then
      str=str&" and (ClientName like '%"&khmc&"%')  "
end  if

if khlx<>"" then
      if khlx="hbdealer"  or khlx="khindex"  then
         str=str&" and (tag='"&khlx&"')"
      else
         str=str&" and  (type='"&khlx&"' and tag='kh') "
      end if 
end  if

if khjb<>""  then
      str=str&"  and (Area='"&khjb&"') "
end  if 

RSkh.open str&"order by ID desc" ,pubconn,1
'response.write str
%>                                     
<script language="vbscript">
   sub GoPage()
        page1=document.myform.page1.value
        hth=document.myform.hth.value
        gcsxh=document.myform.gcsxh.value
        khmc=document.form1.khmc.value
        khlx=document.form1.khlx.value
        khjb=document.form1.khjb.value

       a="F_clientInfo2.asp?page="+page1+"&khlx="+khlx+"&khmc="+khmc+"&khjb="+khjb+"&hth="+hth+"&gcsxh="+gcsxh
       window.location=a
   end sub
   sub winsub()
      window.myform.submit
      window.close
  end sub
</script>  

<body bgcolor="#FFFFFF" >
 
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td width="100%"><b><font size="3"><img border="0" src="../pic/it_22.gif"> 
      </font>       
     <font size="2">客户信息查询      
     </font>      
     </b><hr width="40%" size="1" align="left">             
                   
    </td>             
  </tr>             
</table>                    
<form method="post" action="F_clientInfo2.asp" name="form1" >                                                   
                                                    
<div align="center">   
 <center> 
  <input type="hidden" name="hth" value="<%=hth%>">    
 <input type="hidden" name="gcsxh" value="<%=gcsxh%>">                                                  
                                                    
<table border="0" cellspacing="0" width="100%">                                                         
  <tr>                                                          
    <td width="80" align="center" width="151" width="150" bgcolor="#F1E8DA">         
         
     <p align="right">      
     <font size="2">客户名称      
     </font>      
        
     </p>        
        
    </td>                                                           
    <td width="80" align="center" width="104" width="104" bgcolor="#F1E8DA">                                                         
        
    <p align="left">        
    <input type="text" name="khmc" size="12">      
      
    </p>         
         
    </td>                                                                   
    <td width="109" align="center" width="96" width="123" bgcolor="#F1E8DA">         
           
     <font size="2">客户类型      
   
       
        
    </td>                                                        
                                                             
    <td width="120" align="center" width="263" width="243" bgcolor="#F1E8DA">                                                              
        
      <p align="left">        
     
      <select size="1" name="khlx" style="width:120;">        
      <option value="">全部</option> 
       
    
      <% if khlx="潜在客户"  then%>    
          <option value="潜在客户"  selected>潜在客户</option>    
      <%else%>    
         <option value="潜在客户">潜在客户</option>    
      <%end if%>    
      <% if khlx="预期客户"  then%>       
          <option value="预期客户" selected>预期客户</option>    
      <%else%>    
         <option value="预期客户">预期客户</option>    
      <%end if %>    
      <% if khlx="首次购买客户" then%>       
      <option value="首次购买客户"  selected>首次购买客户</option>    
      <%else%>    
         <option value="首次购买客户">首次购买客户</option>    
      <%end if %>  
      <% if khlx="重复购买客户" then%>       
      <option value="重复购买客户"  selected>重复购买客户</option>    
      <%else%>    
         <option value="重复购买客户">重复购买客户</option>    
      <%end if %>    
   
      <% if khlx="忠诚客户"  then%>       
         <option value="忠诚客户" selectd>忠诚客户</option>    
      <%else%>      
         <option value="忠诚客户">忠诚客户</option>    
      <%end if %>  
      <% if khlx="hbdealer"  then%>       
         <option value="hbdealer" selectd>经销商</option>    
      <%else%>      
         <option value="hbdealer">经销商</option>    
      <%end if %>    
      </select>       

⌨️ 快捷键说明

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