?? msearch.asp
字號(hào):
<!--#include file="Session.asp"-->
<!--#include file="Conn.asp"-->
<html>
<head>
<title>會(huì)員搜索</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel=STYLESHEET type=text/css>
<script>
function show(id) { window.open("memberinfo.asp?moreid="+id,"","height=400,width=600,left=190,top=30,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");}
</script>
</head>
<body leftmargin="0" topmargin="0">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainmiddle">
<tr>
<td width="29" height="32"> <div align="left">
<p class="maindaohang"> </p>
</div></td>
<td width="709"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
</table>
<b><font color="#000000"><b> <span class="bigNavi">會(huì)員搜索</span> </b></font></b></td>
<td width="8" class="mainrights"></td>
</tr>
</table>
<br>
<table width="65%" height="26" border="0" align="center" cellpadding="3" cellspacing="1" class="tabbgcolor">
<form action="?action=search" method="post" name="form1">
<tr class="tabbgcolorli">
<td width="25%" height="24"> <div align="center">會(huì)員搜索</div></td>
<td width="32%"> <div align="center"></div>
<div align="center"></div>
<div align="center">
<input type="text" name="word" size="20" class="border">
</div></td>
<td width="25%"><div align="center"><select name="c1" size="1">
<option value="用戶代碼" >用戶代碼</option>
<option value="用戶姓名" >用戶姓名</option>
</select></div></td>
<td width="18%">
<div align="center">
<input type="submit" name="sub1" class="border" value="查找">
</div></td>
</tr>
</form>
</table>
<%
'=======================================
'88red科技獨(dú)立開發(fā)完成本程序,并提供免費(fèi)技術(shù)支持與升級(jí)服務(wù)
'官方網(wǎng)站 http://www.88red.com QQ:8375158 TEL:13964489818
'對(duì)于商業(yè)客戶,本站提供細(xì)致周到的各項(xiàng)售后服務(wù);對(duì)于盜版客戶恕不提供,對(duì)于散播本程序者本站將追究其法律責(zé)任
'88red科技將陸續(xù)開發(fā)其他各種先進(jìn)程序,例如企業(yè)網(wǎng)站建站系統(tǒng)等等,對(duì)老客戶購(gòu)買其他程序給予最大程度的優(yōu)惠,歡迎洽談
'=======================================
If request("action")="search" then
word1=request("word")
if word1="" then
response.end
else
set rs=server.createobject("adodb.recordset")
if request("c1")="用戶代碼" then
sql="select * from member where cname='"&word1&"'"
else
sql="select * from member where truename='"&word1&"'"
end if
rs.open sql,conn,1,1
if rs.eof then
response.write"<br><div align=center>沒有找到此用戶</div>"
response.end
else
%>
<br>
<table width="95%" height="22" border="0" align="center" cellpadding="3" cellspacing="1" class="tabbgcolor">
<tr class="tabbgcolorli">
<td width="30%"><div align="center">用戶代碼</div></td>
<td width="25%"><div align="center">用戶類型</div></td>
<td width="25%"><div align="center">注冊(cè)時(shí)間</div></td>
<td width="10%"><div align="center">操作</div></td>
</tr>
<tr class="tabbgcolorli">
<td width="30%"><div align="center"><a href="javascript:show(<%=rs("id")%>)"><%=rs("cname")%></a></div></td>
<td width="25%"><div align="center"><%if rs("vip")=true then%>VIP會(huì)員<%else%>普通會(huì)員<%end if%></div></td>
<td width="25%"><div align="center"><%=rs("regtime")%></div></td>
<td width="10%"><div align="center"><a href="memberaction.asp?action=del2&chuanid=<%=rs("id")%>">刪除</a></div></td>
</tr>
</table>
<%end if
rs.close
set rs=nothing
end if
End If
%>
<br>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -