?? kehu_linkman.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=DataBase/conn.asp-->
<!--#include file=config.asp-->
<%
if request("post")<>"" then
if request("tiao")="模糊查詢" then
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Linkman where "&request("sel")&" like '%"&request("search")&"%' order by id desc"
rs.open sql,conn,1,1
else
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Linkman where "&request("sel")&"='"&request("search")&"' order by id desc"
rs.open sql,conn,1,1
end if
else
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Linkman order by id desc"
rs.open sql,conn,1,1
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無標題文檔</title>
<link href="css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
background-color: #DFEEFF;
}
.style3 {color: #FFFFFF}
-->
</style></head>
<script language="javascript">
function HLItem(obj){
obj.oldClassName=obj.className;
obj.className="List";
}
function Re(obj){
obj.className=obj.oldClassName
}
</script>
<body>
<table width="100%" border="0" >
<tr>
<td valign="top"> <fieldset class="fiedset">
<legend>
<input name="radiobutton" type="radio" value="radiobutton" onClick="location='KeHu_KeHu.asp'" >
客戶信息管理
<input name="radiobutton" type="radio" value="radiobutton" checked>
聯系人信息管理
<input type="radio" name="radiobutton" value="radiobutton" onClick="location='KeHu_Pact.asp'">
合同信息管理</legend>
<%if request("dd")="" then%>
<form action="" method="post">
<table width="90%" height="27" border="0" align="center" cellspacing="0" class="table">
<tr align="center">
<td width="14%" height="27">快速查詢:
<input name="post" type="hidden" id="post" value="true"></td>
<td width="16%"><span class="style3">
<select name="tiao" id="tiao">
<option value="模糊查詢" <%if request("tiao")="模糊查詢" then%>selected<%end if%>>模糊查詢</option>
<option value="精確查詢" <%if request("tiao")="精確查詢" then%>selected<%end if%>>精確查詢</option>
</select>
</span></td>
<td width="7%">字段:</td>
<td width="17%"><span class="style3">
<select name="sel" id="sel">
<option value="LinkmanName" <%if request("sel")="LinkmanName" then%>selected<%end if%>>姓名</option>
<option value="LinkmanTel" <%if request("sel")="LinkmanTel" then%>selected<%end if%>>電話</option>
<option value="LinkmanHander" <%if request("sel")="LinkmanHander" then%>selected<%end if%>>手機</option>
<option value="LinkmanFax" <%if request("sel")="LinkmanFax" then%>selected<%end if%>>傳真</option>
</select>
</span></td>
<td width="7%" >關鍵字:</td>
<td width="23%"><input name="search" type="text" id="search" value="<%=request("search")%>"></td>
<td width="16%"><input name="Submit" type="submit" class="input" value=" 查 詢 "></td>
</tr>
</table>
</form>
<%end if%>
<form name="form2" method="post" action="KeHu_Linkman_del.asp?p=<%=request("p")%>">
<table width="90%" border="0" align="center" cellspacing="0">
<tr>
<td width="6%"><table width="100%" border="0" cellspacing="0" class="table">
<tr>
<td bgcolor="#000099" class="listTitle"> </td>
</tr>
<%
if not rs.eof then
tol=rs.recordcount
rs.pagesize=15
maxpage=rs.pagecount
requestpage=clng(request("p"))
if requestpage="" or requestpage=0 then
requestpage=1
end if
if requestpage>maxpage then
requestpage=maxpage
end if
if requestpage<>1 then
rs.move (requestpage-1)*rs.pagesize
end if
for i=1 to rs.pagesize and not rs.eof
if i mod 2=1 then
bg="#FFFFFF"
else
bg="#efefef"
end if
%>
<tr>
<td align="center" bgcolor=<%=bg%>><input name="del" type="checkbox" id="del" value="<%=rs("id")%>"></td>
</tr>
<%
rs.movenext
if rs.eof then exit for
next
else
response.Write(" ")
end if
%>
</table></td>
<td width="94%"><table width="100%" border="0" align="center" cellspacing="0" bordercolor="#FFFFFF" class="table">
<tr bordercolor="#ffffff" cellpadding="0">
<td width="19%" align="center" class="listTitle">聯系人姓名</td>
<td width="19%" align="center" class="listTitle">聯系電話</td>
<td width="19%" align="center" class="listTitle">傳真</td>
<td width="19%" align="center" class="listTitle">手機</td>
<td width="19%" align="center" class="listTitle">電子郵箱</td>
</tr>
<%
if request("post")<>"" then
if request("tiao")="模糊查詢" then
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Linkman where "&request("sel")&" like '%"&request("search")&"%' order by id desc"
rs.open sql,conn,1,1
else
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Linkman where "&request("sel")&"='"&request("search")&"' order by id desc"
rs.open sql,conn,1,1
end if
else
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Linkman order by id desc"
rs.open sql,conn,1,1
end if
if not rs.eof then
tol=rs.recordcount
rs.pagesize=15
maxpage=rs.pagecount
requestpage=clng(request("p"))
if requestpage="" or requestpage=0 then
requestpage=1
end if
if requestpage>maxpage then
requestpage=maxpage
end if
if requestpage<>1 then
rs.move (requestpage-1)*rs.pagesize
end if
for i=1 to rs.pagesize and not rs.eof
if i mod 2=1 then
bg="#FFFFFF"
else
bg="#efefef"
end if
%>
<tr align="center" bgcolor=<%=bg%> style="cursor:hand" onClick="window.parent.frames('bo').window.location = 'KeHu_Linkman_ed.asp?id=<%=rs("id")%>'" onMouseOver="HLItem(this)" onMouseOut="Re(this)">
<td height="22"><%=rs("LinkmanName")%></td>
<td><%=rs("LinkmanTel")%></td>
<td><%=rs("LinkmanFax")%></td>
<td><%=rs("LinkmanHander")%></td>
<td><%=rs("LinkmanEmail")%></td>
</tr>
<%
rs.movenext
if rs.eof then exit for
next
else
response.Write("沒有聯系人的信息,請<a href='KeHu_Linkman_add.asp' target='bo'>添加</a>")
end if
%>
</table></td>
</tr>
</table>
<table width="90%" border="0" align="center">
<tr>
<td width="37%"><input name="Submit2" type="button" class="input" value=" 添 加 " onClick="window.parent.frames('bo').window.location = 'KeHu_Linkman_add.asp'">
<input name="Submit22" type="submit" class="input" value=" 刪 除 " onClick="return confirm('確定刪除嗎?')">
<input name="Submit3" type="button" class="input" onClick="window.location='javascript:history.go(-1)'" value=" 返 回 ">
<input name="Submit32" type="button" class="input" onClick="window.location='KeHu_Linkman.asp'" value=" 刷 新 "></td>
<td width="63%" align="right">
<%if request("post")="" then%>
<a href="KeHu_Linkman.asp?p=1">首頁</a> <a href="KeHu_Linkman.asp?p=<%=requestpage-1%>">上一頁</a> <a href="KeHu_Linkman.asp?p=<%=requestpage+1%>">下一頁</a> <a href="KeHu_Linkman.asp?p=<%=maxpage%>">最后一頁</a> 當前頁:<%=requestpage%> 總頁數:<%=maxpage%> 總人數:<%=tol%>
<%else
if request("dd")="" then
%>
<a href="KeHu_Linkman.asp?p=1&tiao=<%=request("tiao")%>&sel=<%=request("sel")%>&search=<%=request("search")%>&post=true">首頁</a> <a href="KeHu_Linkman.asp?p=<%=requestpage-1%>&tiao=<%=request("tiao")%>&sel=<%=request("sel")%>&search=<%=request("search")%>&post=true">上一頁</a> <a href="KeHu_Linkman.asp?p=<%=requestpage+1%>&tiao=<%=request("tiao")%>&sel=<%=request("sel")%>&search=<%=request("search")%>&post=true">下一頁</a> <a href="KeHu_Linkman.asp?p=<%=maxpage%>&tiao=<%=request("tiao")%>&sel=<%=request("sel")%>&search=<%=request("search")%>&post=true">最后一頁</a> 當前頁:<%=requestpage%> 總頁數:<%=maxpage%> 總客戶數:<%=tol%>
<%else%>
<a href="KeHu_Linkman.asp?p=1&tiao=<%=request("tiao")%>&sel=<%=request("sel")%>&search=<%=request("search")%>&post=true&dd=dd">首頁</a> <a href="KeHu_Linkman.asp?p=<%=requestpage-1%>&tiao=<%=request("tiao")%>&sel=<%=request("sel")%>&search=<%=request("search")%>&post=true&dd=dd">上一頁</a> <a href="KeHu_Linkman.asp?p=<%=requestpage+1%>&tiao=<%=request("tiao")%>&sel=<%=request("sel")%>&search=<%=request("search")%>&post=true&dd=dd">下一頁</a> <a href="KeHu_Linkman.asp?p=<%=maxpage%>&tiao=<%=request("tiao")%>&sel=<%=request("sel")%>&search=<%=request("search")%>&post=true&dd=dd">最后一頁</a> 當前頁:<%=requestpage%> 總頁數:<%=maxpage%> 總人數:<%=tol%>
<%end if%>
<%end if%>
每頁顯示15條信息</td>
</tr>
</table>
</form>
<p><br>
</p>
</fieldset></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -