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

📄 checkkhindex.asp

📁 企业进销存管理系统 企业级别的进销存管理系统
💻 ASP
字号:
<%
path=request.servervariables("path_info")
set conn=server.createobject("adodb.connection")
set rs=server.createobject("adodb.recordset")
conn.open application("dsn")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>显示客户查询信息</title>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body>
<br>
<%
if request.Form("tptsel")<>"" then 
	tj=request("tptsel")
	lname=request("enter")
	jname=request("sel")
	session("tj")=tj
	session("lname")=lname
	session("jname")=jname
end if
%>
<%'查询'
if session("tj")="=" then
	sql="select * from tab_khinfo where "&session("jname")&" = '"&session("lname")&"'"
end if 
if session("tj")="like" then 
	sql="select * from tab_khinfo where "&session("jname")&" like '%"&session("lname")&"%'"
end if 
if session("tj")="all" then 		
	sql="select * from tab_khinfo"	
end if 
rs.open sql,conn,1,3
if rs.eof then%>
	<script language="javascript">
	alert("您输入的客户不存在")
	history.back(1)
	</script>
	<%response.end() 
end if
%>
<%'分页'
rs.pagesize=3
page=clng(request("page"))
if page<1 then page=1
if page>rs.pagecount then page=rs.pagecount
rs.absolutepage=page
for i=1 to rs.pagesize
%>
<table width="590" height="82" border=1 align="center" cellpadding=-1 cellspacing=0 bordercolor="#ffffff" 
                  bordercolorlight="#9CA6C6" bordercolordark="#ffffff">
  <tr bgcolor="#dddddd"> 
    <td width="202" bgcolor="#D9ECFF"><font color="#336699">客户全称</font><font color="#336699">: 
      <%=rs("khname") %> </font></td>
    <td width="135" bgcolor="#D9ECFF"><font color="#336699">简称: <%=rs("jian") %> 
      </font></td>
    <td bgcolor="#D9ECFF" width="245"><font color="#336699">地址: <%=rs("address")%> 
      </font></td>
  </tr>
  <tr bgcolor="#dddddd"> 
    <td width="202" bgcolor="#D9ECFF" height="17"><font color="#336699">邮政编码: 
      <%=rs("bianma")%> </font></td>
    <td width="135" bgcolor="#D9ECFF" height="17"><font color="#336699">电话: <%=rs("tel")%> 
      </font></td>
    <td bgcolor="#D9ECFF" width="245" height="17"><font color="#336699">传真: <%=rs("fax")%> 
      </font></td>
  </tr>
  <tr bgcolor="#dddddd"> 
    <td width="202" bgcolor="#D9ECFF"><font color="#336699">联系人电话: <%=rs("ltel")%> 
      </font></td>
    <td width="135" bgcolor="#D9ECFF"><font color="#336699">联系人: <%=rs("lian")%> 
      </font></td>
    <td bgcolor="#D9ECFF" width="245"><font color="#336699">开户银行: <%=rs("xinhang")%> 
      </font></td>
  </tr>
  <tr bgcolor="#dddddd"> 
    <td width="202" height="20" bgcolor="#D9ECFF"><font color="#336699">银行帐号: 
      <%=rs("hao")%> </font></td>
    <td colspan="2" bgcolor="#D9ECFF"><font color="#336699">E-Mail:<%=rs("mail")%> 
      </font></td>
  </tr>
</table><br>
<%rs.movenext
if rs.eof then exit for
next%>
 <form action="<%=path%>" method="get">
  <div align="center">
    <% if page<>1 then%>
    <font size="2"> <a href=<%=path%>?page=1>第一页</a> 
    </font><a href=<%=path%>?page=<%=(page-1)%>>上一页</a> 
    <%end if 
if page<>rs.pagecount then%>
    <a href=<%=path%>?page=<%=(page+1)%>>下一页</a> 
    <a href=<%=path%>?page=<%=rs.pagecount%>>最后一页</a> 
    <%end if%>
    <font color="#336699">输入页次 
    <input type="text" name="page" size="3">
    页次 </font><font color=red><%=page%>/<%=rs.pagecount%></font> [ <a href="khindex.asp">返回</a> ] <br>
  </div>
</form>
</body>
</html>

⌨️ 快捷键说明

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